objective c - OS X Programmatically Set Default Output Device -


i have been attempting change audio device computer sends sound to. end goal create program can make laptop output built-in speakers when headphones plugged headphone jack.

i stumbled across this project, methods uses (specifically audiohardwaresetproperty) deprecated. doesn't work (it changed output device, sound still go headphones).

coreaudio seems poorly documented , not find code online did not use function. go deprecated function if did wanted, doesn't. i'm unsure weather it's broken or doesn't think does, doesn't matter in end.

i attempted @ comments on audiohardwaresetproperty found in discussion section:

note value of property should not considered changed until hal has called listeners many properties values changed asynchronously. note same functionality provided function audioobjectgetpropertydata().

this not true, since know fact audioobjectgetpropertydata used getting information one specific audio device.

is trying possible coreaudio?


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -