summaryrefslogtreecommitdiffstats
path: root/waftools/fragments/coreaudio.c
blob: c7411311a734a5e0f6736c70c5c2df9ae0e39f6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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;
}