mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 07:42:17 +00:00
16 lines
457 B
C
16 lines
457 B
C
|
#include <CoreAudio/CoreAudio.h>
|
||
|
#include <AudioToolbox/AudioToolbox.h>
|
||
|
#include <AudioUnit/AudioUnit.h>
|
||
|
|
||
|
int main(int argc, char **argv)
|
||
|
{
|
||
|
AudioComponentDescription desc = (AudioComponentDescription) {
|
||
|
.componentType = kAudioUnitType_Output,
|
||
|
.componentSubType = kAudioUnitSubType_DefaultOutput,
|
||
|
.componentManufacturer = kAudioUnitManufacturer_Apple,
|
||
|
};
|
||
|
|
||
|
AudioComponentFindNext(NULL, &desc);
|
||
|
return 0;
|
||
|
}
|