23 May '13 - 11:41 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: how do I detect only sound cards?  (Read 1284 times)
RevG
Posts: 453


« on: 4 Aug '04 - 20:54 »
Reply with quoteQuote

I am using BASS_GetDeviceDescription to enumerate the sound devices on a machine.

I am getting a mix of actual sound cards as well as "Modem #0 Line Playback (Emulated)" however I do not want this to be enumerated because it is not actually a sound card. I imagine since I am getting this weird device on my machine that there are probably other scenarios where I could end up having some device in the list that is not a sound card.

Is there some way to exclude these entries which are not sound cards?

Thanks,
Greg
Logged
RevG
Posts: 453


« Reply #1 on: 5 Aug '04 - 14:08 »
Reply with quoteQuote

I figured out that all I have to do is call BASS_Init to ensure the device can be initialized.

Thanks anyway,
Greg
Logged
Ian @ un4seen
Administrator
Posts: 15269


« Reply #2 on: 5 Aug '04 - 14:18 »
Reply with quoteQuote

Yep, was just about to suggest that... similar to how the 3DTEST example checks for 3D/EAX support.
Logged
MrTDelphi
Posts: 111


« Reply #3 on: 12 Aug '04 - 04:02 »
Reply with quoteQuote

Hi RevG..

I have same problem like this..
Can you post your code at this forum..

Thanks a lot be4

Best, LuQ
Logged
RevG
Posts: 453


« Reply #4 on: 13 Aug '04 - 15:42 »
Reply with quoteQuote

Hey Man,

Here is what I did,

int count=1; // the device counter
while (BASS_GetDeviceDescription(count))
 {
    if(BASS_Init(count,44100,0,m_hWnd,NULL))
    {
         //if we get in here then the device was initialized so that means
         //it is a real sound device
    }
}

Cheers,
Greg
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines