19 May '13 - 15:36 *
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: BASS_GetDeviceInfo() on mac  (Read 663 times)
BogdanC
Posts: 5


« on: 22 Jun '12 - 10:18 »
Reply with quoteQuote

I am trying to find out if an output device and an input device are part of the same device.

The problem I'm having is that, for example on MAC OS you have "Built-in Output" and "Built-in Input", that I reckon are part of the same sound board, and the device driver string that BASS_GetDeviceInfo() returns is empty on mac.

On windows I compared the driver string to get results.

Is there another way, using BASS to find out if the two devices(the input and the output), are part of the same device on MAC OS?
Logged
Ian @ un4seen
Administrator
Posts: 15244


« Reply #1 on: 22 Jun '12 - 17:12 »
Reply with quoteQuote

Yep, the BASS_DEVICEINFO "driver" member is currently unused on OSX. But here's an update to try, which will put the device's UID (unique identifier) in there...

   www.un4seen.com/stuff/libbass.dylib

The UID can be used to get related devices via the AudioHardware API, eg. AudioObjectGetPropertyData. You would use the kAudioHardwarePropertyDeviceForUID property to translate the UID to an AudioDeviceID, and then use the kAudioDevicePropertyRelatedDevices property on that to get the related devices.
Logged
BogdanC
Posts: 5


« Reply #2 on: 26 Jun '12 - 14:44 »
Reply with quoteQuote

Thanks for the reply,
I tried the lib and I can get the device UID in the BASS_DEVICEINFO. But I can't initialize any device anymore.
Logged
Ian @ un4seen
Administrator
Posts: 15244


« Reply #3 on: 26 Jun '12 - 15:19 »
Reply with quoteQuote

That's strange. If you use BASS_ErrorGetCode to get the error code (after the failed BASS_Init call), what does it say?
Logged
BogdanC
Posts: 5


« Reply #4 on: 28 Jun '12 - 12:55 »
Reply with quoteQuote

Solved the problem, it was my fault, I was mixing some older bass libraries, just changed them with the newest ones and everything works.

Just wanted to ask if this dylib you linked is the version without MP3?
Logged
Ian @ un4seen
Administrator
Posts: 15244


« Reply #5 on: 28 Jun '12 - 15:49 »
Reply with quoteQuote

It is indeed an "mp3-free" version.
Logged
BogdanC
Posts: 5


« Reply #6 on: 29 Jun '12 - 07:17 »
Reply with quoteQuote

Thanks allot for your help Smiley. And sorry if I took long to reply, I was also working on other issues.
Logged
Ian @ un4seen
Administrator
Posts: 15244


« Reply #7 on: 29 Jun '12 - 17:28 »
Reply with quoteQuote

No probs Smiley
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines