[vlc-devel] Default audio device

Derk-Jan Hartman d.hartman at student.utwente.nl
Wed Feb 5 23:44:31 CET 2003


You can use this to retrieve the ID of the defaultAudioDevice.
I haven't done any work on this before and i don't know how this fits  
in our preferences model etc.
Can someone work from here?


I was doing this from the aout.m:InitHardware()

p_devices = (AudioDeviceID *)malloc( sizeof( AudioDeviceID ) );
i_param_size = sizeof( AudioDeviceID );
AudioHardwareGetProperty(kAudioHardwarePropertyDefaultOutputDevice,  
&i_param_size, (void *)p_devices

p_devices would now contain the AudioDeviceID of the defaultdevice.  
Errors might be present, the code is untested.

------------------------------------------------------------------------ 
---
Universiteit Twente
------------------------------------------------------------------------ 
---
Derk-Jan 'The DJ' Hartman
ICQnr: 10111559
Mail:  mailto:d.hartman at student.utwente.nl
WWW:   http://home.student.utwente.nl/d.hartman/
Goto:  http://www.student.utwente.nl/~macsatcampus

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc-devel mailing list