]> git.sesse.net Git - vlc/blob - modules/gui/macosx/adev_discovery.h
* Mac OS X audio device discovery and selection, patch courtesy of
[vlc] / modules / gui / macosx / adev_discovery.h
1 //
2 //  main.h
3 //  FindHW
4 //
5 //  Created by Heiko Panther on Sun Sep 08 2002.
6 //
7
8 #import <Foundation/Foundation.h>
9 #import <CoreAudio/CoreAudio.h>
10
11 enum audiodeviceClasses
12 {
13     audiodevice_class_ac3       =1<<0,  // compressed AC3
14     audiodevice_class_pcm2      =1<<1,  // stereo PCM (uncompressed)
15     audiodevice_class_pcm6      =1<<2   // 6-channel PCM (uncompressed)
16 };
17
18 // specifies a rule for finding if a Device belongs to a class from above.
19 // if value==0, the value is ignored when matching. All other values must match.
20 struct classificationRule
21 {
22     UInt32 mFormatID;
23     UInt32 mChannelsPerFrame;
24     enum audiodeviceClasses characteristic;
25     char qualifierString[16];
26 };