annotate dstep/coreaudio/AudioHardwarePlugIn.d @ 16:19885b43130e

Huge update, the bridge actually works now
author Jacob Carlborg <doob@me.com>
date Sun, 03 Jan 2010 22:06:11 +0100
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
1 /**
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
2 * Copyright: Copyright (c) 2009 Jacob Carlborg.
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
3 * Authors: Jacob Carlborg
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
4 * Version: Initial created: Sep 30, 2009
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0)
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
6 */
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
7 module dstep.coreaudio.AudioHardwarePlugIn;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
8
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
9 import dstep.coreaudio.AudioHardware;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
10 import dstep.coreaudio.CoreAudioTypes;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
11 import dstep.corefoundation.CFPlugInCOM;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
12 import dstep.corefoundation.CoreFoundation;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
13 import dstep.coreservices.carboncore.MacTypes;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
14
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
15 alias AudioHardwarePlugInInterface** AudioHardwarePlugInRef;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
16
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
17 struct AudioHardwarePlugInInterface
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
18 {
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
19 void* _reserved;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
20
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
21 extern (C)
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
22 {
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
23 HRESULT function (void* inSelf, REFIID inUUID, LPVOID* outInterface) QueryInterface;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
24 ULONG function (void* inSelf) AddRef;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
25 ULONG function (void* inSelf) Release;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
26 OSStatus function (AudioHardwarePlugInRef inSelf) Initialize;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
27 OSStatus function (AudioHardwarePlugInRef inSelf) Teardown;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
28 OSStatus function (AudioHardwarePlugInRef inSelf, AudioDeviceID inDevice, AudioDeviceIOProc inProc, void* inClientData) DeviceAddIOProc;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
29 OSStatus function (AudioHardwarePlugInRef inSelf, AudioDeviceID inDevice, AudioDeviceIOProc inProc) DeviceRemoveIOProc;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
30 OSStatus function (AudioHardwarePlugInRef inSelf, AudioDeviceID inDevice, AudioDeviceIOProcID inProc) DeviceStart;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
31 OSStatus function (AudioHardwarePlugInRef inSelf, AudioDeviceID inDevice, AudioDeviceIOProcID inProc) DeviceStop;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
32 OSStatus function (AudioHardwarePlugInRef inSelf, AudioDeviceID inDevice, AudioTimeStamp inStartTime, AudioBufferList* outData) DeviceRead;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
33 OSStatus function (AudioHardwarePlugInRef inSelf, AudioDeviceID inDevice, AudioTimeStamp* outTime) DeviceGetCurrentTime;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
34 OSStatus function (AudioHardwarePlugInRef inSelf, AudioDeviceID inDevice, AudioTimeStamp* inTime, AudioTimeStamp* outTime) DeviceTranslateTime;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
35 OSStatus function (AudioHardwarePlugInRef inSelf, AudioDeviceID inDevice, uint inChannel, bool isInput, AudioDevicePropertyID inPropertyID, uint* outSize, bool* outWritable) DeviceGetPropertyInfo;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
36 OSStatus function (AudioHardwarePlugInRef inSelf, AudioDeviceID inDevice, uint inChannel, bool isInput, AudioDevicePropertyID inPropertyID, uint* ioPropertyDataSize, void* outPropertyData) DeviceGetProperty;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
37 OSStatus function (AudioHardwarePlugInRef inSelf, AudioDeviceID inDevice, uint inChannel, bool isInput, AudioDevicePropertyID inPropertyID, uint inPropertyDataSize, void* inPropertyData) DeviceSetProperty;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
38 OSStatus function (AudioHardwarePlugInRef inSelf, AudioStreamID inStream, uint inChannel, AudioDevicePropertyID inPropertyID, uint outSize, bool* outWritable) StreamGetPropertyInfo;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
39 OSStatus function (AudioHardwarePlugInRef inSelf, AudioStreamID inStream, uint inChannel, AudioDevicePropertyID inPropertyID, uint* inPropertyDataSize, void* outPropertyData) StreamGetProperty;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
40 OSStatus function (AudioHardwarePlugInRef inSelf, AudioStreamID inStream, uint inChannel, AudioDevicePropertyID inPropertyID, uint inPropertyDataSize, void* inPropertyData) StreamSetProperty;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
41 OSStatus function (AudioHardwarePlugInRef inSelf, AudioDeviceID inDevice, AudioDeviceIOProc inProc, AudioTimeStamp* ioRequestedStartTime, uint inFlags) DeviceStartAtTime;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
42 OSStatus function (AudioHardwarePlugInRef inSelf, AudioDeviceID inDevice, AudioTimeStamp* ioRequestedStartTime, uint inFlags) DeviceGetNearestStartTime;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
43 OSStatus function (AudioHardwarePlugInRef inSelf, AudioObjectID inObjectID) InitializeWithObjectID;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
44 void function (AudioHardwarePlugInRef inSelf, AudioObjectID inObjectID) ObjectShow;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
45 bool function (AudioHardwarePlugInRef inSelf, AudioObjectID inObjectID, AudioObjectPropertyAddress* inAddress) ObjectHasProperty;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
46 OSStatus function (AudioHardwarePlugInRef inSelf, AudioObjectID inObjectID, AudioObjectPropertyAddress* inAddress, bool* outIsSettable) ObjectIsPropertySettable;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
47 OSStatus function (AudioHardwarePlugInRef inSelf, AudioObjectID inObjectID, AudioObjectPropertyAddress* inAddress, uint inQualifierDataSize, void* inQualifierData, uint* outDataSize) ObjectGetPropertyDataSize;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
48 OSStatus function (AudioHardwarePlugInRef inSelf, AudioObjectID inObjectID, AudioObjectPropertyAddress* inAddress, uint inQualifierDataSize, void* inQualifierData, uint* ioDataSize, void* outData) ObjectGetPropertyData;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
49 OSStatus function (AudioHardwarePlugInRef inSelf, AudioObjectID inObjectID, AudioObjectPropertyAddress* inAddress, uint inQualifierDataSize, void* inQualifierData, uint inDataSize, void* inData) ObjectSetPropertyData;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
50 OSStatus function (AudioHardwarePlugInRef inSelf, AudioDeviceID inDevice, AudioDeviceIOProc inProc, void* inClientData, AudioDeviceIOProcID* outIOProcID) DeviceCreateIOProcID;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
51 OSStatus function (AudioHardwarePlugInRef inSelf, AudioDeviceID inDevice, AudioDeviceIOProcID inIOProcID) DeviceDestroyIOProcID;
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
52 }
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
53 }
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
54
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
55 extern (C)
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
56 {
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
57 int AudioObjectCreate (AudioHardwarePlugInRef inOwningPlugIn, uint inOwningObjectID, uint inClassID, AudioObjectID* outAudioObjectID);
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
58 int AudioObjectsPublishedAndDied (AudioHardwarePlugInRef inOwningPlugIn, uint inOwningObjectID, uint inNumberPublishedAudioObjects, AudioObjectID* inPublishedAudioObjects, uint inNumberDeadAudioObjects, AudioObjectID* inDeadAudioObjects);
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
59 int AudioObjectPropertiesChanged (AudioHardwarePlugInRef inOwningPlugIn, uint inObjectID, uint inNumberAddresses, AudioObjectPropertyAddress* inAddresses);
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
60 int AudioHardwareClaimAudioDeviceID (AudioHardwarePlugInRef inOwner, AudioDeviceID* outAudioDeviceID);
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
61 int AudioHardwareDevicesCreated (AudioHardwarePlugInRef inOwner, uint inNumberDevices, AudioDeviceID* inAudioDeviceIDs);
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
62 int AudioHardwareDevicesDied (AudioHardwarePlugInRef inOwner, uint inNumberDevices, AudioDeviceID* inAudioDeviceIDs);
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
63 int AudioHardwareDevicePropertyChanged (AudioHardwarePlugInRef inOwner, uint inDeviceID, uint inChannel, ubyte isInput, uint inPropertyID);
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
64 int AudioHardwareClaimAudioStreamID (AudioHardwarePlugInRef inOwner, uint inOwningDeviceID, AudioStreamID* outAudioStreamID);
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
65 int AudioHardwareStreamsCreated (AudioHardwarePlugInRef inOwner, uint inOwningDeviceID, uint inNumberStreams, AudioStreamID* inAudioStreamIDs);
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
66 int AudioHardwareStreamsDied (AudioHardwarePlugInRef inOwner, uint inOwningDeviceID, uint inNumberStreams, AudioStreamID* inAudioStreamIDs);
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
67 int AudioHardwareStreamPropertyChanged (AudioHardwarePlugInRef inOwner, uint inOwningDeviceID, uint inStreamID, uint inChannel, uint inPropertyID);
19885b43130e Huge update, the bridge actually works now
Jacob Carlborg <doob@me.com>
parents:
diff changeset
68 }