CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Thread: 2 Sound Cards

  1. #1
    Join Date
    Aug 2001
    Posts
    1

    2 Sound Cards

    I don't know if this can be done, but I want to use 2 sound cards on my computer. Can anyone pass on some information or code that would help me out.


  2. #2
    Join Date
    Jun 2001
    Location
    Memphis, TN
    Posts
    146

    Re: 2 Sound Cards

    Correct me if i'm wrong guys! As far as i know, the only way to successfully have two sound cards in one system (assuming you don't get IRQ, DMA, and driver conflicts) is to put each card into its own hardware configuration profile. This means windows can only access one of the sound cards until you reboot and select the other profile. I've never seen any other way to do this but like i said, i could be wrong so please chime in you guys if you have some ideas!

    jeff




  3. #3
    Join Date
    Jan 2001
    Posts
    165

    Re: 2 Sound Cards

    2nd-hand knowledge:

    My brother does a lot of audio mixing, sampling and recording at home on his computer and he does use 2 sound cards. He is running Windows 98SE and he told me that he just installed both sound cards and if there is an IRQ conflict you must change one of the cards IRQ settings. I'm not sure how you would program using 2 cards but he said that when he uses 2 cards if one card is busy then Windows will automatically send the new output to the other card.

    Good luck!

    -K


  4. #4
    Join Date
    Jun 2001
    Location
    Memphis, TN
    Posts
    146

    Re: 2 Sound Cards

    Wow thats cool... i'm amazed windows can handle switching between the two audio devices... i'm even more amazed that i'm feeling a sense of awe over something windows can do...


  5. #5
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: 2 Sound Cards

    Selecting which sound card is used cannot be done in plain old VB. 99% of the sound related stuff in VB uses the system that is specified as default in Windows.However, it isn't impossible. You can do this, but that would involve you having to use DirectX, here you can decide which sound system to use. Note one thingm that using DirectX from VB isn't very easy, and a lot of the (neat) functions can only be used from C++. I would advice you (if you really want to get through with this), to check out some sites like planetsourcecode.com and stuff, where example code is available for download.

    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  6. #6
    Join Date
    Feb 2000
    Location
    OH - USA
    Posts
    1,892

    Re: 2 Sound Cards

    I encounter the same problem a while back when I was working on an automated radio broadcast program. In win95/98/NT<=4 you can use the MMControl to use two sound cards, however in Win2000 this (Some of MCI) is no longer supported. So if you are running in a win95/98/ NT<=4 environment you can take a look at microsofts code sample:
    http://support.microsoft.com/support.../Q180/0/32.ASP

    If you are interested in Win2000 then check out this product (Also Works in win95/98/nt):

    http://www.binarywork.net/bwmp3.htm

    Good Luck

    Good Luck,
    Craig - CRG IT Solutions - Microsoft Gold Partner

    -My posts after 08/2015 = .NET 4.x and Visual Studio 2015
    -My posts after 11/2011 = .NET 4.x and Visual Studio 2012
    -My posts after 02/2010 = .NET 4.0 and Visual Studio 2010
    -My posts after 12/2007 = .NET 3.5 and Visual Studio 2008
    -My posts after 04/2007 = .NET 3.0 and Visual Studio 2005
    -My posts before 04/2007 = .NET 1.1/2.0

    *I do not follow all threads, so if you have a secondary question, message me.

  7. #7
    Join Date
    Feb 2000
    Location
    OH - USA
    Posts
    1,892

    Re: 2 Sound Cards

    PS. You are going to have issues with two sound cards in one system, so here is what I got to work. Use one PCI sound card and an ISA sound card. If that doesnt work you can use one PCI or ISA card and one multifunction card like a Modem/Soundcard. The latter seems to be the easiest to set up!

    Good Luck,
    Craig - CRG IT Solutions - Microsoft Gold Partner

    -My posts after 08/2015 = .NET 4.x and Visual Studio 2015
    -My posts after 11/2011 = .NET 4.x and Visual Studio 2012
    -My posts after 02/2010 = .NET 4.0 and Visual Studio 2010
    -My posts after 12/2007 = .NET 3.5 and Visual Studio 2008
    -My posts after 04/2007 = .NET 3.0 and Visual Studio 2005
    -My posts before 04/2007 = .NET 1.1/2.0

    *I do not follow all threads, so if you have a secondary question, message me.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured