26 May '13 - 01:59 *
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: Mac 10.8 Mountain Lion - BASS_GetDeviceInfo does not return all output devices  (Read 389 times)
jalbers
Posts: 43


« on: 2 Sep '12 - 04:35 »
Reply with quoteQuote

Trying to test my app against Mac 10.8 Mountain Lion and noticed that BASS_GetDeviceInfo does not return all output devices.

Here is what it returns:
0 - No Sound
1 - AirPlay
2 - Built-in Output

However there are 4 different AirPlay devices on my network and they all show up as different output devices in System Preferences. I tried to see if perhaps all AirPlay devices were simply listed as one device with many channels but that doesn't seem to be the case. Interesting that the device is simply called "AirPlay" without specifying which AirPlay device. System AirPlay output is new to Mountain Lion so perhaps there is something different about it?

On a separate note, why isn't there a "Default Sound" (-1) device for Mac? With Snow Leopard and Lion I was able to hard-code in device 1 since this appeared to always be the "Built-in Output" but this doesn't appear to be the case anymore with Mountain Lion.
Logged
Ian @ un4seen
Administrator
Posts: 15276


« Reply #1 on: 3 Sep '12 - 16:52 »
Reply with quoteQuote

Trying to test my app against Mac 10.8 Mountain Lion and noticed that BASS_GetDeviceInfo does not return all output devices...

I'll send you a debug version to get some info on what's happening there.

On a separate note, why isn't there a "Default Sound" (-1) device for Mac? With Snow Leopard and Lion I was able to hard-code in device 1 since this appeared to always be the "Built-in Output" but this doesn't appear to be the case anymore with Mountain Lion.

The BASS device list (available from BASS_GetDeviceInfo) doesn't include a -1 entry (on any platform), but if you specify device number -1 in a BASS_Init call, then BASS should use the default output device (as set in the system preferences). Is that not the case when you try it?

If you would like to identify what the default device is without initializing it, you can use BASS_GetDeviceInfo and look for the device that has the BASS_DEVICE_DEFAULT flag set.
Logged
jalbers
Posts: 43


« Reply #2 on: 3 Sep '12 - 20:33 »
Reply with quoteQuote

Ok. I've sent you the results of the log, etc.

Per your suggestion, I've updated my app to look for the BASS_DEVICE_DEFAULT flag instead of hardcoding to device 1. I vaguely remember that using -1 with BASS_Init was causing weird results for me somehow and thats why I stopped using it, but I can't remember why.
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines