Documentation
¶
Overview ¶
Use the Core Audio framework to interact with device’s audio hardware.
Index ¶
- type ClassID
- type DeviceClockAlgorithmSelector
- type DeviceID
- type DeviceIOBlock
- type DeviceIOProc
- type DevicePropertyID
- type DevicePropertyListenerProc
- type DriverPlugInDevicePropertyChangedProc
- type DriverPlugInStreamPropertyChangedProc
- type HardwareIOProcStreamUsage
- type HardwarePowerHint
- type HardwarePropertyID
- type HardwarePropertyListenerProc
- type LevelControlTransferFunction
- type ObjectID
- type ObjectPropertyAddress
- type ObjectPropertyElement
- type ObjectPropertyListenerBlock
- type ObjectPropertyListenerProc
- type ObjectPropertyScope
- type ObjectPropertySelector
- type ServerPlugInCustomPropertyDataType
- type ServerPlugInIOOperation
- type StreamID
- type StreamPropertyListenerProc
- type StreamRangedDescription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceIOBlock ¶
type DeviceIOBlock = func(inNow *coreaudiotypes.TimeStamp, inInputData *coreaudiotypes.BufferList, inInputTime *coreaudiotypes.TimeStamp, outOutputData *coreaudiotypes.BufferList, inOutputTime *coreaudiotypes.TimeStamp)
[Full Topic]
type DeviceIOProc ¶
type DeviceIOProc = func(inDevice ObjectID, inNow *coreaudiotypes.TimeStamp, inInputData *coreaudiotypes.BufferList, inInputTime *coreaudiotypes.TimeStamp, outOutputData *coreaudiotypes.BufferList, inOutputTime *coreaudiotypes.TimeStamp, inClientData unsafe.Pointer) uint
[Full Topic]
type DevicePropertyListenerProc ¶
type DevicePropertyListenerProc = func(inDevice DeviceID, inChannel uint32, isInput bool, inPropertyID DevicePropertyID, inClientData unsafe.Pointer) uint
[Full Topic]
type DriverPlugInDevicePropertyChangedProc ¶
type DriverPlugInDevicePropertyChangedProc = func(inDevice DeviceID, inChannel uint32, isInput bool, inPropertyID DevicePropertyID) uint
[Full Topic]
type DriverPlugInStreamPropertyChangedProc ¶
type DriverPlugInStreamPropertyChangedProc = func(inDevice DeviceID, inIOAudioStream unsafe.Pointer, inChannel uint32, inPropertyID DevicePropertyID) uint
[Full Topic]
type HardwareIOProcStreamUsage ¶
type HardwareIOProcStreamUsage struct { MIOProc uintptr MNumberStreams uint32 MStreamIsOn [1]uint32 }
[Full Topic]
type HardwarePowerHint ¶
type HardwarePowerHint uint32
[Full Topic]
const ( KHardwarePowerHintFavorSavingPower HardwarePowerHint = 1 KHardwarePowerHintNone HardwarePowerHint = 0 )
type HardwarePropertyListenerProc ¶
type HardwarePropertyListenerProc = func(inPropertyID HardwarePropertyID, inClientData unsafe.Pointer) uint
[Full Topic]
type LevelControlTransferFunction ¶
type LevelControlTransferFunction uint32
[Full Topic]
const ( KLevelControlTranferFunction10Over1 LevelControlTransferFunction = 13 KLevelControlTranferFunction11Over1 LevelControlTransferFunction = 14 KLevelControlTranferFunction12Over1 LevelControlTransferFunction = 15 KLevelControlTranferFunction1Over2 LevelControlTransferFunction = 2 KLevelControlTranferFunction1Over3 LevelControlTransferFunction = 1 KLevelControlTranferFunction2Over1 LevelControlTransferFunction = 5 KLevelControlTranferFunction3Over1 LevelControlTransferFunction = 6 KLevelControlTranferFunction3Over2 LevelControlTransferFunction = 4 KLevelControlTranferFunction3Over4 LevelControlTransferFunction = 3 KLevelControlTranferFunction4Over1 LevelControlTransferFunction = 7 KLevelControlTranferFunction5Over1 LevelControlTransferFunction = 8 KLevelControlTranferFunction6Over1 LevelControlTransferFunction = 9 KLevelControlTranferFunction7Over1 LevelControlTransferFunction = 10 KLevelControlTranferFunction8Over1 LevelControlTransferFunction = 11 KLevelControlTranferFunction9Over1 LevelControlTransferFunction = 12 KLevelControlTranferFunctionLinear LevelControlTransferFunction = 0 )
type ObjectPropertyAddress ¶
[Full Topic]
type ObjectPropertyListenerBlock ¶
type ObjectPropertyListenerBlock = func(inNumberAddresses uint32, inAddresses *ObjectPropertyAddress)
[Full Topic]
type ObjectPropertyListenerProc ¶
type ObjectPropertyListenerProc = func(inObjectID ObjectID, inNumberAddresses uint32, inAddresses *ObjectPropertyAddress, inClientData unsafe.Pointer) uint
[Full Topic]
type ServerPlugInCustomPropertyDataType ¶
type ServerPlugInCustomPropertyDataType uint32
[Full Topic]
type StreamPropertyListenerProc ¶
type StreamPropertyListenerProc = func(inStream StreamID, inChannel uint32, inPropertyID DevicePropertyID, inClientData unsafe.Pointer) uint
[Full Topic]
type StreamRangedDescription ¶
type StreamRangedDescription struct { MFormat uintptr // _Ctype_struct_AudioStreamBasicDescription MSampleRateRange uintptr // _Ctype_struct_AudioValueRange }
[Full Topic]
Click to show internal directories.
Click to hide internal directories.