coreaudio

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Use the Core Audio framework to interact with device’s audio hardware.

Apple Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClassID

type ClassID uint32
[Full Topic]

type DeviceClockAlgorithmSelector

type DeviceClockAlgorithmSelector uint32
[Full Topic]

type DeviceID

type DeviceID ObjectID
[Full Topic]

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 DevicePropertyID

type DevicePropertyID ObjectPropertySelector
[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 HardwarePropertyID

type HardwarePropertyID ObjectPropertySelector
[Full Topic]

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 ObjectID

type ObjectID uint32
[Full Topic]

type ObjectPropertyAddress

type ObjectPropertyAddress struct {
	MSelector uint32
	MScope    uint32
	MElement  uint32
}
[Full Topic]

type ObjectPropertyElement

type ObjectPropertyElement uint32
[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 ObjectPropertyScope

type ObjectPropertyScope uint32
[Full Topic]

type ObjectPropertySelector

type ObjectPropertySelector uint32
[Full Topic]

type ServerPlugInCustomPropertyDataType

type ServerPlugInCustomPropertyDataType uint32
[Full Topic]

type ServerPlugInIOOperation

type ServerPlugInIOOperation uint32
[Full Topic]

type StreamID

type StreamID ObjectID
[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]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL