Documentation
¶
Overview ¶
Package avfaudio provides purego-based Go bindings for the macOS AVFAudio framework.
Apple documentation: https://developer.apple.com/documentation/avfaudio
Index ¶
- func AVAudioApplicationInputMuteStateChangeNotification() uintptr
- func AVAudioApplicationMuteStateKey() uintptr
- func AVAudioApplicationRequestRecordPermissionWithCompletionHandler(response func(bool))
- func AVAudioBitRateStrategy_Constant() uintptr
- func AVAudioBitRateStrategy_LongTermAverage() uintptr
- func AVAudioBitRateStrategy_Variable() uintptr
- func AVAudioBitRateStrategy_VariableConstrained() uintptr
- func AVAudioEngineConfigurationChangeNotification() uintptr
- func AVAudioFileTypeKey() uintptr
- func AVAudioSequencerInfoDictionaryKeyAlbum() uintptr
- func AVAudioSequencerInfoDictionaryKeyApproximateDurationInSeconds() uintptr
- func AVAudioSequencerInfoDictionaryKeyArtist() uintptr
- func AVAudioSequencerInfoDictionaryKeyChannelLayout() uintptr
- func AVAudioSequencerInfoDictionaryKeyComments() uintptr
- func AVAudioSequencerInfoDictionaryKeyComposer() uintptr
- func AVAudioSequencerInfoDictionaryKeyCopyright() uintptr
- func AVAudioSequencerInfoDictionaryKeyEncodingApplication() uintptr
- func AVAudioSequencerInfoDictionaryKeyGenre() uintptr
- func AVAudioSequencerInfoDictionaryKeyISRC() uintptr
- func AVAudioSequencerInfoDictionaryKeyKeySignature() uintptr
- func AVAudioSequencerInfoDictionaryKeyLyricist() uintptr
- func AVAudioSequencerInfoDictionaryKeyNominalBitRate() uintptr
- func AVAudioSequencerInfoDictionaryKeyRecordedDate() uintptr
- func AVAudioSequencerInfoDictionaryKeySourceBitDepth() uintptr
- func AVAudioSequencerInfoDictionaryKeySourceEncoder() uintptr
- func AVAudioSequencerInfoDictionaryKeySubTitle() uintptr
- func AVAudioSequencerInfoDictionaryKeyTempo() uintptr
- func AVAudioSequencerInfoDictionaryKeyTimeSignature() uintptr
- func AVAudioSequencerInfoDictionaryKeyTitle() uintptr
- func AVAudioSequencerInfoDictionaryKeyTrackNumber() uintptr
- func AVAudioSequencerInfoDictionaryKeyYear() uintptr
- func AVAudioSessionInterruptionWasSuspendedKey() uintptr
- func AVAudioSessionLocationLower() *foundation.NSString
- func AVAudioSessionLocationUpper() *foundation.NSString
- func AVAudioSessionOrientationBack() *foundation.NSString
- func AVAudioSessionOrientationBottom() *foundation.NSString
- func AVAudioSessionOrientationFront() *foundation.NSString
- func AVAudioSessionOrientationLeft() *foundation.NSString
- func AVAudioSessionOrientationRight() *foundation.NSString
- func AVAudioSessionOrientationTop() *foundation.NSString
- func AVAudioSessionPolarPatternCardioid() *foundation.NSString
- func AVAudioSessionPolarPatternOmnidirectional() *foundation.NSString
- func AVAudioSessionPolarPatternSubcardioid() *foundation.NSString
- func AVAudioTimeHostTimeForSeconds(seconds float64) uint64
- func AVAudioTimeSecondsForHostTime(hostTime uint64) float64
- func AVAudioUnitComponentManagerRegistrationsChangedNotification() uintptr
- func AVAudioUnitComponentTagsDidChangeNotification() uintptr
- func AVAudioUnitInstantiateWithComponentDescriptionOptionsCompletionHandler(audioComponentDescription objc.ID, options objc.ID, ...)
- func AVAudioUnitManufacturerNameApple() uintptr
- func AVAudioUnitTypeEffect() uintptr
- func AVAudioUnitTypeFormatConverter() uintptr
- func AVAudioUnitTypeGenerator() uintptr
- func AVAudioUnitTypeMIDIProcessor() uintptr
- func AVAudioUnitTypeMixer() uintptr
- func AVAudioUnitTypeMusicDevice() uintptr
- func AVAudioUnitTypeMusicEffect() uintptr
- func AVAudioUnitTypeOfflineEffect() uintptr
- func AVAudioUnitTypeOutput() uintptr
- func AVAudioUnitTypePanner() uintptr
- func AVChannelLayoutKey() uintptr
- func AVEncoderASPFrequencyKey() uintptr
- func AVEncoderAudioQualityForVBRKey() uintptr
- func AVEncoderAudioQualityKey() uintptr
- func AVEncoderBitDepthHintKey() uintptr
- func AVEncoderBitRateKey() uintptr
- func AVEncoderBitRatePerChannelKey() uintptr
- func AVEncoderBitRateStrategyKey() uintptr
- func AVEncoderContentSourceKey() uintptr
- func AVEncoderDynamicRangeControlConfigurationKey() uintptr
- func AVExtendedNoteOnEventDefaultInstrument() uint
- func AVFormatIDKey() uintptr
- func AVLinearPCMBitDepthKey() uintptr
- func AVLinearPCMIsBigEndianKey() uintptr
- func AVLinearPCMIsFloatKey() uintptr
- func AVLinearPCMIsNonInterleaved() uintptr
- func AVNumberOfChannelsKey() uintptr
- func AVSampleRateConverterAlgorithmKey() uintptr
- func AVSampleRateConverterAlgorithm_Mastering() uintptr
- func AVSampleRateConverterAlgorithm_MinimumPhase() uintptr
- func AVSampleRateConverterAlgorithm_Normal() uintptr
- func AVSampleRateConverterAudioQualityKey() uintptr
- func AVSampleRateKey() uintptr
- func AVSpeechSynthesisAvailableVoicesDidChangeNotification() *foundation.NSString
- func AVSpeechSynthesisIPANotationAttribute() uintptr
- func AVSpeechSynthesisProviderVoiceUpdateSpeechVoices()
- func AVSpeechSynthesisVoiceCurrentLanguageCode() *foundation.NSString
- func AVSpeechSynthesisVoiceIdentifierAlex() uintptr
- func AVSpeechSynthesisVoiceSpeechVoices() *foundation.NSArray[*AVSpeechSynthesisVoice]
- func AVSpeechSynthesizerRequestPersonalVoiceAuthorizationWithCompletionHandler(handler func(AVSpeechSynthesisPersonalVoiceAuthorizationStatus))
- func AVSpeechUtteranceDefaultSpeechRate() uintptr
- func AVSpeechUtteranceMaximumSpeechRate() uintptr
- func AVSpeechUtteranceMinimumSpeechRate() uintptr
- func SymbolAvailable(symbol string) bool
- type AVAUPresetEvent
- func (o *AVAUPresetEvent) Element() uint
- func (o *AVAUPresetEvent) InitWithScopeElementDictionary(scope uint, element uint, ...) *AVAUPresetEvent
- func (o *AVAUPresetEvent) PresetDictionary() *foundation.NSDictionary[objc.ID, objc.ID]
- func (o *AVAUPresetEvent) Scope() uint
- func (o *AVAUPresetEvent) SetElement(element uint)
- func (o *AVAUPresetEvent) SetScope(scope uint)
- type AVAudio3DAngularOrientation
- type AVAudio3DMixing
- type AVAudio3DMixingPointSourceInHeadMode
- type AVAudio3DMixingRenderingAlgorithm
- type AVAudio3DMixingSourceMode
- type AVAudio3DPoint
- type AVAudio3DVector
- type AVAudio3DVectorOrientation
- type AVAudioApplication
- func (o *AVAudioApplication) IsInputMuted() bool
- func (o *AVAudioApplication) RecordPermission() AVAudioApplicationRecordPermission
- func (o *AVAudioApplication) SetInputMuteStateChangeHandlerError(inputMuteHandler func(bool) bool) (bool, error)
- func (o *AVAudioApplication) SetInputMutedError(muted bool) (bool, error)
- type AVAudioApplicationMicrophoneInjectionPermission
- type AVAudioApplicationRecordPermission
- type AVAudioBuffer
- type AVAudioChannelLayout
- func (o *AVAudioChannelLayout) ChannelCount() uint32
- func (o *AVAudioChannelLayout) InitWithLayout(layout *coreaudiotypes.AudioChannelLayout) *AVAudioChannelLayout
- func (o *AVAudioChannelLayout) InitWithLayoutTag(layoutTag uint) *AVAudioChannelLayout
- func (o *AVAudioChannelLayout) IsEqual(object objc.ID) bool
- func (o *AVAudioChannelLayout) Layout() *coreaudiotypes.AudioChannelLayout
- func (o *AVAudioChannelLayout) LayoutTag() uint
- type AVAudioCommonFormat
- type AVAudioCompressedBuffer
- func (o *AVAudioCompressedBuffer) ByteCapacity() uint32
- func (o *AVAudioCompressedBuffer) ByteLength() uint32
- func (o *AVAudioCompressedBuffer) Data() unsafe.Pointer
- func (o *AVAudioCompressedBuffer) InitWithFormatPacketCapacity(format *AVAudioFormat, packetCapacity uint32) *AVAudioCompressedBuffer
- func (o *AVAudioCompressedBuffer) InitWithFormatPacketCapacityMaximumPacketSize(format *AVAudioFormat, packetCapacity uint32, maximumPacketSize int) *AVAudioCompressedBuffer
- func (o *AVAudioCompressedBuffer) MaximumPacketSize() int
- func (o *AVAudioCompressedBuffer) PacketCapacity() uint32
- func (o *AVAudioCompressedBuffer) PacketCount() uint32
- func (o *AVAudioCompressedBuffer) PacketDependencies() *coreaudiotypes.AudioStreamPacketDependencyDescription
- func (o *AVAudioCompressedBuffer) PacketDescriptions() *coreaudiotypes.AudioStreamPacketDescription
- func (o *AVAudioCompressedBuffer) SetByteLength(byteLength uint32)
- func (o *AVAudioCompressedBuffer) SetPacketCount(packetCount uint32)
- type AVAudioConnectionPoint
- type AVAudioContentSource
- type AVAudioConverter
- func (o *AVAudioConverter) ApplicableEncodeBitRates() *foundation.NSArray[*foundation.NSNumber]
- func (o *AVAudioConverter) ApplicableEncodeSampleRates() *foundation.NSArray[*foundation.NSNumber]
- func (o *AVAudioConverter) AudioSyncPacketFrequency() int
- func (o *AVAudioConverter) AvailableEncodeBitRates() *foundation.NSArray[*foundation.NSNumber]
- func (o *AVAudioConverter) AvailableEncodeChannelLayoutTags() *foundation.NSArray[*foundation.NSNumber]
- func (o *AVAudioConverter) AvailableEncodeSampleRates() *foundation.NSArray[*foundation.NSNumber]
- func (o *AVAudioConverter) BitRate() int
- func (o *AVAudioConverter) BitRateStrategy() *foundation.NSString
- func (o *AVAudioConverter) ChannelMap() *foundation.NSArray[*foundation.NSNumber]
- func (o *AVAudioConverter) ContentSource() AVAudioContentSource
- func (o *AVAudioConverter) ConvertToBufferErrorWithInputFromBlock(outputBuffer *AVAudioBuffer, outError unsafe.Pointer, inputBlock objc.Block) AVAudioConverterOutputStatus
- func (o *AVAudioConverter) ConvertToBufferFromBufferError(outputBuffer *AVAudioPCMBuffer, inputBuffer *AVAudioPCMBuffer) (bool, error)
- func (o *AVAudioConverter) Dither() bool
- func (o *AVAudioConverter) Downmix() bool
- func (o *AVAudioConverter) DynamicRangeControlConfiguration() AVAudioDynamicRangeControlConfiguration
- func (o *AVAudioConverter) InitFromFormatToFormat(fromFormat *AVAudioFormat, toFormat *AVAudioFormat) *AVAudioConverter
- func (o *AVAudioConverter) InputFormat() *AVAudioFormat
- func (o *AVAudioConverter) MagicCookie() *foundation.NSData
- func (o *AVAudioConverter) MaximumOutputPacketSize() int
- func (o *AVAudioConverter) OutputFormat() *AVAudioFormat
- func (o *AVAudioConverter) PrimeInfo() AVAudioConverterPrimeInfo
- func (o *AVAudioConverter) PrimeMethod() AVAudioConverterPrimeMethod
- func (o *AVAudioConverter) Reset()
- func (o *AVAudioConverter) SampleRateConverterAlgorithm() *foundation.NSString
- func (o *AVAudioConverter) SampleRateConverterQuality() int
- func (o *AVAudioConverter) SetAudioSyncPacketFrequency(audioSyncPacketFrequency int)
- func (o *AVAudioConverter) SetBitRate(bitRate int)
- func (o *AVAudioConverter) SetBitRateStrategy(bitRateStrategy *foundation.NSString)
- func (o *AVAudioConverter) SetChannelMap(channelMap *foundation.NSArray[*foundation.NSNumber])
- func (o *AVAudioConverter) SetContentSource(contentSource AVAudioContentSource)
- func (o *AVAudioConverter) SetDither(dither bool)
- func (o *AVAudioConverter) SetDownmix(downmix bool)
- func (o *AVAudioConverter) SetDynamicRangeControlConfiguration(dynamicRangeControlConfiguration AVAudioDynamicRangeControlConfiguration)
- func (o *AVAudioConverter) SetMagicCookie(magicCookie *foundation.NSData)
- func (o *AVAudioConverter) SetPrimeInfo(primeInfo AVAudioConverterPrimeInfo)
- func (o *AVAudioConverter) SetPrimeMethod(primeMethod AVAudioConverterPrimeMethod)
- func (o *AVAudioConverter) SetSampleRateConverterAlgorithm(sampleRateConverterAlgorithm *foundation.NSString)
- func (o *AVAudioConverter) SetSampleRateConverterQuality(sampleRateConverterQuality int)
- type AVAudioConverterInputStatus
- type AVAudioConverterOutputStatus
- type AVAudioConverterPrimeInfo
- type AVAudioConverterPrimeMethod
- type AVAudioDynamicRangeControlConfiguration
- type AVAudioEngine
- func (o *AVAudioEngine) AttachNode(node *AVAudioNode)
- func (o *AVAudioEngine) AttachedNodes() *foundation.NSSet[*AVAudioNode]
- func (o *AVAudioEngine) ConnectMIDIToFormatBlock(sourceNode *AVAudioNode, destinationNode *AVAudioNode, format *AVAudioFormat, ...)
- func (o *AVAudioEngine) ConnectMIDIToFormatEventListBlock(sourceNode *AVAudioNode, destinationNode *AVAudioNode, format *AVAudioFormat, ...)
- func (o *AVAudioEngine) ConnectMIDIToNodesFormatBlock(sourceNode *AVAudioNode, destinationNodes *foundation.NSArray[*AVAudioNode], ...)
- func (o *AVAudioEngine) ConnectMIDIToNodesFormatEventListBlock(sourceNode *AVAudioNode, destinationNodes *foundation.NSArray[*AVAudioNode], ...)
- func (o *AVAudioEngine) ConnectToConnectionPointsFromBusFormat(sourceNode *AVAudioNode, ...)
- func (o *AVAudioEngine) ConnectToFormat(node1 *AVAudioNode, node2 *AVAudioNode, format *AVAudioFormat)
- func (o *AVAudioEngine) ConnectToFromBusToBusFormat(node1 *AVAudioNode, node2 *AVAudioNode, bus1 uint, bus2 uint, ...)
- func (o *AVAudioEngine) DetachNode(node *AVAudioNode)
- func (o *AVAudioEngine) DisableManualRenderingMode()
- func (o *AVAudioEngine) DisconnectMIDIFrom(sourceNode *AVAudioNode, destinationNode *AVAudioNode)
- func (o *AVAudioEngine) DisconnectMIDIFromNodes(sourceNode *AVAudioNode, destinationNodes *foundation.NSArray[*AVAudioNode])
- func (o *AVAudioEngine) DisconnectMIDIInput(node *AVAudioNode)
- func (o *AVAudioEngine) DisconnectMIDIOutput(node *AVAudioNode)
- func (o *AVAudioEngine) DisconnectNodeInput(node *AVAudioNode)
- func (o *AVAudioEngine) DisconnectNodeInputBus(node *AVAudioNode, bus uint)
- func (o *AVAudioEngine) DisconnectNodeOutput(node *AVAudioNode)
- func (o *AVAudioEngine) DisconnectNodeOutputBus(node *AVAudioNode, bus uint)
- func (o *AVAudioEngine) EnableManualRenderingModeFormatMaximumFrameCountError(mode AVAudioEngineManualRenderingMode, pcmFormat *AVAudioFormat, ...) (bool, error)
- func (o *AVAudioEngine) Init() *AVAudioEngine
- func (o *AVAudioEngine) InputConnectionPointForNodeInputBus(node *AVAudioNode, bus uint) *AVAudioConnectionPoint
- func (o *AVAudioEngine) InputNode() *AVAudioInputNode
- func (o *AVAudioEngine) IsAutoShutdownEnabled() bool
- func (o *AVAudioEngine) IsInManualRenderingMode() bool
- func (o *AVAudioEngine) IsRunning() bool
- func (o *AVAudioEngine) MainMixerNode() *AVAudioMixerNode
- func (o *AVAudioEngine) ManualRenderingBlock() objc.Block
- func (o *AVAudioEngine) ManualRenderingFormat() *AVAudioFormat
- func (o *AVAudioEngine) ManualRenderingMaximumFrameCount() uint32
- func (o *AVAudioEngine) ManualRenderingMode() AVAudioEngineManualRenderingMode
- func (o *AVAudioEngine) ManualRenderingSampleTime() int64
- func (o *AVAudioEngine) MusicSequence() unsafe.Pointer
- func (o *AVAudioEngine) OutputConnectionPointsForNodeOutputBus(node *AVAudioNode, bus uint) *foundation.NSArray[*AVAudioConnectionPoint]
- func (o *AVAudioEngine) OutputNode() *AVAudioOutputNode
- func (o *AVAudioEngine) Pause()
- func (o *AVAudioEngine) Prepare()
- func (o *AVAudioEngine) RenderOfflineToBufferError(numberOfFrames uint32, buffer *AVAudioPCMBuffer) (AVAudioEngineManualRenderingStatus, error)
- func (o *AVAudioEngine) Reset()
- func (o *AVAudioEngine) SetAutoShutdownEnabled(autoShutdownEnabled bool)
- func (o *AVAudioEngine) SetMusicSequence(musicSequence unsafe.Pointer)
- func (o *AVAudioEngine) StartAndReturnError() (bool, error)
- func (o *AVAudioEngine) Stop()
- type AVAudioEngineManualRenderingError
- type AVAudioEngineManualRenderingMode
- type AVAudioEngineManualRenderingStatus
- type AVAudioEnvironmentDistanceAttenuationModel
- type AVAudioEnvironmentDistanceAttenuationParameters
- func (o *AVAudioEnvironmentDistanceAttenuationParameters) DistanceAttenuationModel() AVAudioEnvironmentDistanceAttenuationModel
- func (o *AVAudioEnvironmentDistanceAttenuationParameters) MaximumDistance() float32
- func (o *AVAudioEnvironmentDistanceAttenuationParameters) ReferenceDistance() float32
- func (o *AVAudioEnvironmentDistanceAttenuationParameters) RolloffFactor() float32
- func (o *AVAudioEnvironmentDistanceAttenuationParameters) SetDistanceAttenuationModel(distanceAttenuationModel AVAudioEnvironmentDistanceAttenuationModel)
- func (o *AVAudioEnvironmentDistanceAttenuationParameters) SetMaximumDistance(maximumDistance float32)
- func (o *AVAudioEnvironmentDistanceAttenuationParameters) SetReferenceDistance(referenceDistance float32)
- func (o *AVAudioEnvironmentDistanceAttenuationParameters) SetRolloffFactor(rolloffFactor float32)
- type AVAudioEnvironmentNode
- func (o *AVAudioEnvironmentNode) ApplicableRenderingAlgorithms() *foundation.NSArray[*foundation.NSNumber]
- func (o *AVAudioEnvironmentNode) DistanceAttenuationParameters() *AVAudioEnvironmentDistanceAttenuationParameters
- func (o *AVAudioEnvironmentNode) Init() *AVAudioEnvironmentNode
- func (o *AVAudioEnvironmentNode) IsListenerHeadTrackingEnabled() bool
- func (o *AVAudioEnvironmentNode) ListenerAngularOrientation() AVAudio3DAngularOrientation
- func (o *AVAudioEnvironmentNode) ListenerPosition() AVAudio3DPoint
- func (o *AVAudioEnvironmentNode) ListenerVectorOrientation() AVAudio3DVectorOrientation
- func (o *AVAudioEnvironmentNode) NextAvailableInputBus() uint
- func (o *AVAudioEnvironmentNode) OutputType() AVAudioEnvironmentOutputType
- func (o *AVAudioEnvironmentNode) OutputVolume() float32
- func (o *AVAudioEnvironmentNode) ReverbParameters() *AVAudioEnvironmentReverbParameters
- func (o *AVAudioEnvironmentNode) SetListenerAngularOrientation(listenerAngularOrientation AVAudio3DAngularOrientation)
- func (o *AVAudioEnvironmentNode) SetListenerHeadTrackingEnabled(listenerHeadTrackingEnabled bool)
- func (o *AVAudioEnvironmentNode) SetListenerPosition(listenerPosition AVAudio3DPoint)
- func (o *AVAudioEnvironmentNode) SetListenerVectorOrientation(listenerVectorOrientation AVAudio3DVectorOrientation)
- func (o *AVAudioEnvironmentNode) SetOutputType(outputType AVAudioEnvironmentOutputType)
- func (o *AVAudioEnvironmentNode) SetOutputVolume(outputVolume float32)
- type AVAudioEnvironmentOutputType
- type AVAudioEnvironmentReverbParameters
- func (o *AVAudioEnvironmentReverbParameters) Enable() bool
- func (o *AVAudioEnvironmentReverbParameters) FilterParameters() *AVAudioUnitEQFilterParameters
- func (o *AVAudioEnvironmentReverbParameters) Level() float32
- func (o *AVAudioEnvironmentReverbParameters) LoadFactoryReverbPreset(preset AVAudioUnitReverbPreset)
- func (o *AVAudioEnvironmentReverbParameters) SetEnable(enable bool)
- func (o *AVAudioEnvironmentReverbParameters) SetLevel(level float32)
- type AVAudioFile
- func (o *AVAudioFile) Close()
- func (o *AVAudioFile) FileFormat() *AVAudioFormat
- func (o *AVAudioFile) FramePosition() int64
- func (o *AVAudioFile) Init() *AVAudioFiledeprecated
- func (o *AVAudioFile) InitForReadingCommonFormatInterleavedError(fileURL *foundation.NSURL, format AVAudioCommonFormat, interleaved bool) (*AVAudioFile, error)
- func (o *AVAudioFile) InitForReadingError(fileURL *foundation.NSURL) (*AVAudioFile, error)
- func (o *AVAudioFile) InitForWritingSettingsCommonFormatInterleavedError(fileURL *foundation.NSURL, ...) (*AVAudioFile, error)
- func (o *AVAudioFile) InitForWritingSettingsError(fileURL *foundation.NSURL, ...) (*AVAudioFile, error)
- func (o *AVAudioFile) IsOpen() bool
- func (o *AVAudioFile) Length() int64
- func (o *AVAudioFile) ProcessingFormat() *AVAudioFormat
- func (o *AVAudioFile) ReadIntoBufferError(buffer *AVAudioPCMBuffer) (bool, error)
- func (o *AVAudioFile) ReadIntoBufferFrameCountError(buffer *AVAudioPCMBuffer, frames uint32) (bool, error)
- func (o *AVAudioFile) SetFramePosition(framePosition int64)
- func (o *AVAudioFile) Url() *foundation.NSURL
- func (o *AVAudioFile) WriteFromBufferError(buffer *AVAudioPCMBuffer) (bool, error)
- type AVAudioFormat
- func (o *AVAudioFormat) ChannelCount() uint32
- func (o *AVAudioFormat) ChannelLayout() *AVAudioChannelLayout
- func (o *AVAudioFormat) CommonFormat() AVAudioCommonFormat
- func (o *AVAudioFormat) FormatDescription() unsafe.Pointer
- func (o *AVAudioFormat) InitStandardFormatWithSampleRateChannelLayout(sampleRate float64, layout *AVAudioChannelLayout) *AVAudioFormat
- func (o *AVAudioFormat) InitStandardFormatWithSampleRateChannels(sampleRate float64, channels uint32) *AVAudioFormat
- func (o *AVAudioFormat) InitWithCMAudioFormatDescription(formatDescription unsafe.Pointer) *AVAudioFormat
- func (o *AVAudioFormat) InitWithCommonFormatSampleRateChannelsInterleaved(format AVAudioCommonFormat, sampleRate float64, channels uint32, ...) *AVAudioFormat
- func (o *AVAudioFormat) InitWithCommonFormatSampleRateInterleavedChannelLayout(format AVAudioCommonFormat, sampleRate float64, interleaved bool, ...) *AVAudioFormat
- func (o *AVAudioFormat) InitWithSettings(settings *foundation.NSDictionary[*foundation.NSString, objc.ID]) *AVAudioFormat
- func (o *AVAudioFormat) InitWithStreamDescription(asbd *coreaudiotypes.AudioStreamBasicDescription) *AVAudioFormat
- func (o *AVAudioFormat) InitWithStreamDescriptionChannelLayout(asbd *coreaudiotypes.AudioStreamBasicDescription, layout *AVAudioChannelLayout) *AVAudioFormat
- func (o *AVAudioFormat) IsEqual(object objc.ID) bool
- func (o *AVAudioFormat) IsInterleaved() bool
- func (o *AVAudioFormat) IsStandard() bool
- func (o *AVAudioFormat) MagicCookie() *foundation.NSData
- func (o *AVAudioFormat) SampleRate() float64
- func (o *AVAudioFormat) SetMagicCookie(magicCookie *foundation.NSData)
- func (o *AVAudioFormat) Settings() *foundation.NSDictionary[*foundation.NSString, objc.ID]
- func (o *AVAudioFormat) StreamDescription() *coreaudiotypes.AudioStreamBasicDescription
- type AVAudioIONode
- type AVAudioInputNode
- func (o *AVAudioInputNode) IsVoiceProcessingAGCEnabled() bool
- func (o *AVAudioInputNode) IsVoiceProcessingBypassed() bool
- func (o *AVAudioInputNode) IsVoiceProcessingInputMuted() bool
- func (o *AVAudioInputNode) SetManualRenderingInputPCMFormatInputBlock(format *AVAudioFormat, block func(uint32) *coreaudiotypes.AudioBufferList) bool
- func (o *AVAudioInputNode) SetMutedSpeechActivityEventListener(listenerBlock func(AVAudioVoiceProcessingSpeechActivityEvent)) bool
- func (o *AVAudioInputNode) SetVoiceProcessingAGCEnabled(voiceProcessingAGCEnabled bool)
- func (o *AVAudioInputNode) SetVoiceProcessingBypassed(voiceProcessingBypassed bool)
- func (o *AVAudioInputNode) SetVoiceProcessingInputMuted(voiceProcessingInputMuted bool)
- func (o *AVAudioInputNode) SetVoiceProcessingOtherAudioDuckingConfiguration(...)
- func (o *AVAudioInputNode) VoiceProcessingOtherAudioDuckingConfiguration() AVAudioVoiceProcessingOtherAudioDuckingConfiguration
- type AVAudioMixerNode
- type AVAudioMixing
- type AVAudioMixingDestination
- type AVAudioNode
- func (o *AVAudioNode) AUAudioUnit() objc.ID
- func (o *AVAudioNode) Engine() *AVAudioEngine
- func (o *AVAudioNode) InputFormatForBus(bus uint) *AVAudioFormat
- func (o *AVAudioNode) InstallTapOnBusBufferSizeFormatBlock(bus uint, bufferSize uint32, format *AVAudioFormat, ...)
- func (o *AVAudioNode) LastRenderTime() *AVAudioTime
- func (o *AVAudioNode) Latency() float64
- func (o *AVAudioNode) NameForInputBus(bus uint) *foundation.NSString
- func (o *AVAudioNode) NameForOutputBus(bus uint) *foundation.NSString
- func (o *AVAudioNode) NumberOfInputs() uint
- func (o *AVAudioNode) NumberOfOutputs() uint
- func (o *AVAudioNode) OutputFormatForBus(bus uint) *AVAudioFormat
- func (o *AVAudioNode) OutputPresentationLatency() float64
- func (o *AVAudioNode) RemoveTapOnBus(bus uint)
- func (o *AVAudioNode) Reset()
- type AVAudioOutputNode
- type AVAudioPCMBuffer
- func (o *AVAudioPCMBuffer) FloatChannelData() unsafe.Pointer
- func (o *AVAudioPCMBuffer) FrameCapacity() uint32
- func (o *AVAudioPCMBuffer) FrameLength() uint32
- func (o *AVAudioPCMBuffer) InitWithPCMFormatBufferListNoCopyDeallocator(format *AVAudioFormat, bufferList *coreaudiotypes.AudioBufferList, ...) *AVAudioPCMBuffer
- func (o *AVAudioPCMBuffer) InitWithPCMFormatFrameCapacity(format *AVAudioFormat, frameCapacity uint32) *AVAudioPCMBuffer
- func (o *AVAudioPCMBuffer) Int16ChannelData() unsafe.Pointer
- func (o *AVAudioPCMBuffer) Int32ChannelData() unsafe.Pointer
- func (o *AVAudioPCMBuffer) SetFrameLength(frameLength uint32)
- func (o *AVAudioPCMBuffer) Stride() uint
- type AVAudioPlayer
- func (o *AVAudioPlayer) AveragePowerForChannel(channelNumber uint) float32
- func (o *AVAudioPlayer) CurrentDevice() *foundation.NSString
- func (o *AVAudioPlayer) CurrentTime() float64
- func (o *AVAudioPlayer) Data() *foundation.NSData
- func (o *AVAudioPlayer) Delegate() AVAudioPlayerDelegate
- func (o *AVAudioPlayer) DeviceCurrentTime() float64
- func (o *AVAudioPlayer) Duration() float64
- func (o *AVAudioPlayer) EnableRate() bool
- func (o *AVAudioPlayer) Format() *AVAudioFormat
- func (o *AVAudioPlayer) InitWithContentsOfURLError(url *foundation.NSURL) (*AVAudioPlayer, error)
- func (o *AVAudioPlayer) InitWithContentsOfURLFileTypeHintError(url *foundation.NSURL, utiString *foundation.NSString) (*AVAudioPlayer, error)
- func (o *AVAudioPlayer) InitWithDataError(data *foundation.NSData) (*AVAudioPlayer, error)
- func (o *AVAudioPlayer) InitWithDataFileTypeHintError(data *foundation.NSData, utiString *foundation.NSString) (*AVAudioPlayer, error)
- func (o *AVAudioPlayer) IsMeteringEnabled() bool
- func (o *AVAudioPlayer) IsPlaying() bool
- func (o *AVAudioPlayer) NumberOfChannels() uint
- func (o *AVAudioPlayer) NumberOfLoops() int
- func (o *AVAudioPlayer) Pan() float32
- func (o *AVAudioPlayer) Pause()
- func (o *AVAudioPlayer) PeakPowerForChannel(channelNumber uint) float32
- func (o *AVAudioPlayer) Play() bool
- func (o *AVAudioPlayer) PlayAtTime(time_ float64) bool
- func (o *AVAudioPlayer) PrepareToPlay() bool
- func (o *AVAudioPlayer) Rate() float32
- func (o *AVAudioPlayer) SetCurrentDevice(currentDevice *foundation.NSString)
- func (o *AVAudioPlayer) SetCurrentTime(currentTime float64)
- func (o *AVAudioPlayer) SetDelegate(delegate AVAudioPlayerDelegate)
- func (o *AVAudioPlayer) SetEnableRate(enableRate bool)
- func (o *AVAudioPlayer) SetMeteringEnabled(meteringEnabled bool)
- func (o *AVAudioPlayer) SetNumberOfLoops(numberOfLoops int)
- func (o *AVAudioPlayer) SetPan(pan float32)
- func (o *AVAudioPlayer) SetRate(rate float32)
- func (o *AVAudioPlayer) SetVolume(volume float32)
- func (o *AVAudioPlayer) SetVolumeFadeDuration(volume float32, duration float64)
- func (o *AVAudioPlayer) Settings() *foundation.NSDictionary[*foundation.NSString, objc.ID]
- func (o *AVAudioPlayer) Stop()
- func (o *AVAudioPlayer) UpdateMeters()
- func (o *AVAudioPlayer) Url() *foundation.NSURL
- func (o *AVAudioPlayer) Volume() float32
- type AVAudioPlayerDelegate
- type AVAudioPlayerNode
- func (o *AVAudioPlayerNode) Init() *AVAudioPlayerNode
- func (o *AVAudioPlayerNode) IsPlaying() bool
- func (o *AVAudioPlayerNode) NodeTimeForPlayerTime(playerTime *AVAudioTime) *AVAudioTime
- func (o *AVAudioPlayerNode) Pause()
- func (o *AVAudioPlayerNode) Play()
- func (o *AVAudioPlayerNode) PlayAtTime(when *AVAudioTime)
- func (o *AVAudioPlayerNode) PlayerTimeForNodeTime(nodeTime *AVAudioTime) *AVAudioTime
- func (o *AVAudioPlayerNode) PrepareWithFrameCount(frameCount uint32)
- func (o *AVAudioPlayerNode) ScheduleBufferAtTimeOptionsCompletionCallbackTypeCompletionHandler(buffer *AVAudioPCMBuffer, when *AVAudioTime, ...)
- func (o *AVAudioPlayerNode) ScheduleBufferAtTimeOptionsCompletionHandler(buffer *AVAudioPCMBuffer, when *AVAudioTime, ...)
- func (o *AVAudioPlayerNode) ScheduleBufferCompletionCallbackTypeCompletionHandler(buffer *AVAudioPCMBuffer, callbackType AVAudioPlayerNodeCompletionCallbackType, ...)
- func (o *AVAudioPlayerNode) ScheduleBufferCompletionHandler(buffer *AVAudioPCMBuffer, completionHandler func())
- func (o *AVAudioPlayerNode) ScheduleFileAtTimeCompletionCallbackTypeCompletionHandler(file *AVAudioFile, when *AVAudioTime, ...)
- func (o *AVAudioPlayerNode) ScheduleFileAtTimeCompletionHandler(file *AVAudioFile, when *AVAudioTime, completionHandler func())
- func (o *AVAudioPlayerNode) ScheduleSegmentStartingFrameFrameCountAtTimeCompletionCallbackTypeCompletionHandler(file *AVAudioFile, startFrame int64, numberFrames uint32, when *AVAudioTime, ...)
- func (o *AVAudioPlayerNode) ScheduleSegmentStartingFrameFrameCountAtTimeCompletionHandler(file *AVAudioFile, startFrame int64, numberFrames uint32, when *AVAudioTime, ...)
- func (o *AVAudioPlayerNode) Stop()
- type AVAudioPlayerNodeBufferOptions
- type AVAudioPlayerNodeCompletionCallbackType
- type AVAudioQuality
- type AVAudioRecorder
- func (o *AVAudioRecorder) AveragePowerForChannel(channelNumber uint) float32
- func (o *AVAudioRecorder) CurrentTime() float64
- func (o *AVAudioRecorder) Delegate() AVAudioRecorderDelegate
- func (o *AVAudioRecorder) DeleteRecording() bool
- func (o *AVAudioRecorder) DeviceCurrentTime() float64
- func (o *AVAudioRecorder) Format() *AVAudioFormat
- func (o *AVAudioRecorder) InitWithURLFormatError(url *foundation.NSURL, format *AVAudioFormat) (*AVAudioRecorder, error)
- func (o *AVAudioRecorder) InitWithURLSettingsError(url *foundation.NSURL, ...) (*AVAudioRecorder, error)
- func (o *AVAudioRecorder) IsMeteringEnabled() bool
- func (o *AVAudioRecorder) IsRecording() bool
- func (o *AVAudioRecorder) Pause()
- func (o *AVAudioRecorder) PeakPowerForChannel(channelNumber uint) float32
- func (o *AVAudioRecorder) PrepareToRecord() bool
- func (o *AVAudioRecorder) Record() bool
- func (o *AVAudioRecorder) RecordAtTime(time_ float64) bool
- func (o *AVAudioRecorder) RecordAtTimeForDuration(time_ float64, duration float64) bool
- func (o *AVAudioRecorder) RecordForDuration(duration float64) bool
- func (o *AVAudioRecorder) SetDelegate(delegate AVAudioRecorderDelegate)
- func (o *AVAudioRecorder) SetMeteringEnabled(meteringEnabled bool)
- func (o *AVAudioRecorder) Settings() *foundation.NSDictionary[*foundation.NSString, objc.ID]
- func (o *AVAudioRecorder) Stop()
- func (o *AVAudioRecorder) UpdateMeters()
- func (o *AVAudioRecorder) Url() *foundation.NSURL
- type AVAudioRecorderDelegate
- type AVAudioRoutingArbiter
- type AVAudioRoutingArbitrationCategory
- type AVAudioSequencer
- func (o *AVAudioSequencer) BeatsForHostTimeError(inHostTime uint64) (float64, error)
- func (o *AVAudioSequencer) BeatsForSeconds(seconds float64) float64
- func (o *AVAudioSequencer) CreateAndAppendTrack() *AVMusicTrack
- func (o *AVAudioSequencer) CurrentPositionInBeats() float64
- func (o *AVAudioSequencer) CurrentPositionInSeconds() float64
- func (o *AVAudioSequencer) DataWithSMPTEResolutionError(sMPTEResolution int) (*foundation.NSData, error)
- func (o *AVAudioSequencer) HostTimeForBeatsError(inBeats float64) (uint64, error)
- func (o *AVAudioSequencer) Init() *AVAudioSequencer
- func (o *AVAudioSequencer) InitWithAudioEngine(engine *AVAudioEngine) *AVAudioSequencer
- func (o *AVAudioSequencer) IsPlaying() bool
- func (o *AVAudioSequencer) LoadFromDataOptionsError(data *foundation.NSData, options AVMusicSequenceLoadOptions) (bool, error)
- func (o *AVAudioSequencer) LoadFromURLOptionsError(fileURL *foundation.NSURL, options AVMusicSequenceLoadOptions) (bool, error)
- func (o *AVAudioSequencer) PrepareToPlay()
- func (o *AVAudioSequencer) Rate() float32
- func (o *AVAudioSequencer) RemoveTrack(track *AVMusicTrack) bool
- func (o *AVAudioSequencer) ReverseEvents()
- func (o *AVAudioSequencer) SecondsForBeats(beats float64) float64
- func (o *AVAudioSequencer) SetCurrentPositionInBeats(currentPositionInBeats float64)
- func (o *AVAudioSequencer) SetCurrentPositionInSeconds(currentPositionInSeconds float64)
- func (o *AVAudioSequencer) SetRate(rate float32)
- func (o *AVAudioSequencer) SetUserCallback(userCallback func(*AVMusicTrack, *foundation.NSData, float64))
- func (o *AVAudioSequencer) StartAndReturnError() (bool, error)
- func (o *AVAudioSequencer) Stop()
- func (o *AVAudioSequencer) TempoTrack() *AVMusicTrack
- func (o *AVAudioSequencer) Tracks() *foundation.NSArray[*AVMusicTrack]
- func (o *AVAudioSequencer) UserInfo() *foundation.NSDictionary[*foundation.NSString, objc.ID]
- func (o *AVAudioSequencer) WriteToURLSMPTEResolutionReplaceExistingError(fileURL *foundation.NSURL, resolution int, replace bool) (bool, error)
- type AVAudioSessionActivationOptions
- type AVAudioSessionCapability
- type AVAudioSessionCategoryOptions
- type AVAudioSessionIOType
- type AVAudioSessionInterruptionOptions
- type AVAudioSessionInterruptionReason
- type AVAudioSessionInterruptionType
- type AVAudioSessionMicrophoneInjectionMode
- type AVAudioSessionPortOverride
- type AVAudioSessionPromptStyle
- type AVAudioSessionRecordPermission
- type AVAudioSessionRenderingMode
- type AVAudioSessionRouteChangeReason
- type AVAudioSessionRouteSharingPolicy
- type AVAudioSessionSetActiveOptions
- type AVAudioSessionSilenceSecondaryAudioHintType
- type AVAudioSinkNode
- type AVAudioSourceNode
- type AVAudioStereoMixing
- type AVAudioStereoOrientation
- type AVAudioTime
- func AVAudioTimeFromID(id objc.ID) *AVAudioTime
- func AVAudioTimeTimeWithAudioTimeStampSampleRate(ts *coreaudiotypes.AudioTimeStamp, sampleRate float64) *AVAudioTime
- func AVAudioTimeTimeWithHostTime(hostTime uint64) *AVAudioTime
- func AVAudioTimeTimeWithHostTimeSampleTimeAtRate(hostTime uint64, sampleTime int64, sampleRate float64) *AVAudioTime
- func AVAudioTimeTimeWithSampleTimeAtRate(sampleTime int64, sampleRate float64) *AVAudioTime
- func (o *AVAudioTime) AudioTimeStamp() coreaudiotypes.AudioTimeStamp
- func (o *AVAudioTime) ExtrapolateTimeFromAnchor(anchorTime *AVAudioTime) *AVAudioTime
- func (o *AVAudioTime) HostTime() uint64
- func (o *AVAudioTime) InitWithAudioTimeStampSampleRate(ts *coreaudiotypes.AudioTimeStamp, sampleRate float64) *AVAudioTime
- func (o *AVAudioTime) InitWithHostTime(hostTime uint64) *AVAudioTime
- func (o *AVAudioTime) InitWithHostTimeSampleTimeAtRate(hostTime uint64, sampleTime int64, sampleRate float64) *AVAudioTime
- func (o *AVAudioTime) InitWithSampleTimeAtRate(sampleTime int64, sampleRate float64) *AVAudioTime
- func (o *AVAudioTime) IsHostTimeValid() bool
- func (o *AVAudioTime) IsSampleTimeValid() bool
- func (o *AVAudioTime) SampleRate() float64
- func (o *AVAudioTime) SampleTime() int64
- type AVAudioUnit
- func (o *AVAudioUnit) AudioComponentDescription() objc.ID
- func (o *AVAudioUnit) AudioUnit() *carboncore.ComponentInstanceRecord
- func (o *AVAudioUnit) LoadAudioUnitPresetAtURLError(url *foundation.NSURL) (bool, error)
- func (o *AVAudioUnit) ManufacturerName() *foundation.NSString
- func (o *AVAudioUnit) Name() *foundation.NSString
- type AVAudioUnitComponent
- func (o *AVAudioUnitComponent) AllTagNames() *foundation.NSArray[*foundation.NSString]
- func (o *AVAudioUnitComponent) AudioComponent() unsafe.Pointer
- func (o *AVAudioUnitComponent) AudioComponentDescription() objc.ID
- func (o *AVAudioUnitComponent) AvailableArchitectures() *foundation.NSArray[*foundation.NSNumber]
- func (o *AVAudioUnitComponent) ComponentURL() *foundation.NSURL
- func (o *AVAudioUnitComponent) ConfigurationDictionary() *foundation.NSDictionary[*foundation.NSString, objc.ID]
- func (o *AVAudioUnitComponent) HasCustomView() bool
- func (o *AVAudioUnitComponent) HasMIDIInput() bool
- func (o *AVAudioUnitComponent) HasMIDIOutput() bool
- func (o *AVAudioUnitComponent) Icon() *appkit.NSImage
- func (o *AVAudioUnitComponent) IconURL() *foundation.NSURL
- func (o *AVAudioUnitComponent) IsSandboxSafe() bool
- func (o *AVAudioUnitComponent) LocalizedTypeName() *foundation.NSString
- func (o *AVAudioUnitComponent) ManufacturerName() *foundation.NSString
- func (o *AVAudioUnitComponent) Name() *foundation.NSString
- func (o *AVAudioUnitComponent) PassesAUVal() bool
- func (o *AVAudioUnitComponent) SetUserTagNames(userTagNames *foundation.NSArray[*foundation.NSString])
- func (o *AVAudioUnitComponent) SupportsNumberInputChannelsOutputChannels(numInputChannels int, numOutputChannels int) bool
- func (o *AVAudioUnitComponent) TypeName() *foundation.NSString
- func (o *AVAudioUnitComponent) UserTagNames() *foundation.NSArray[*foundation.NSString]
- func (o *AVAudioUnitComponent) VersionString() *foundation.NSString
- type AVAudioUnitComponentManager
- func (o *AVAudioUnitComponentManager) ComponentsMatchingDescription(desc objc.ID) *foundation.NSArray[*AVAudioUnitComponent]
- func (o *AVAudioUnitComponentManager) ComponentsMatchingPredicate(predicate *foundation.NSPredicate) *foundation.NSArray[*AVAudioUnitComponent]
- func (o *AVAudioUnitComponentManager) ComponentsPassingTest(testHandler func(*AVAudioUnitComponent, *bool) bool) *foundation.NSArray[*AVAudioUnitComponent]
- func (o *AVAudioUnitComponentManager) StandardLocalizedTagNames() *foundation.NSArray[*foundation.NSString]
- func (o *AVAudioUnitComponentManager) TagNames() *foundation.NSArray[*foundation.NSString]
- type AVAudioUnitDelay
- func (o *AVAudioUnitDelay) DelayTime() float64
- func (o *AVAudioUnitDelay) Feedback() float32
- func (o *AVAudioUnitDelay) LowPassCutoff() float32
- func (o *AVAudioUnitDelay) SetDelayTime(delayTime float64)
- func (o *AVAudioUnitDelay) SetFeedback(feedback float32)
- func (o *AVAudioUnitDelay) SetLowPassCutoff(lowPassCutoff float32)
- func (o *AVAudioUnitDelay) SetWetDryMix(wetDryMix float32)
- func (o *AVAudioUnitDelay) WetDryMix() float32
- type AVAudioUnitDistortion
- func (o *AVAudioUnitDistortion) LoadFactoryPreset(preset AVAudioUnitDistortionPreset)
- func (o *AVAudioUnitDistortion) PreGain() float32
- func (o *AVAudioUnitDistortion) SetPreGain(preGain float32)
- func (o *AVAudioUnitDistortion) SetWetDryMix(wetDryMix float32)
- func (o *AVAudioUnitDistortion) WetDryMix() float32
- type AVAudioUnitDistortionPreset
- type AVAudioUnitEQ
- type AVAudioUnitEQFilterParameters
- func (o *AVAudioUnitEQFilterParameters) Bandwidth() float32
- func (o *AVAudioUnitEQFilterParameters) Bypass() bool
- func (o *AVAudioUnitEQFilterParameters) FilterType() AVAudioUnitEQFilterType
- func (o *AVAudioUnitEQFilterParameters) Frequency() float32
- func (o *AVAudioUnitEQFilterParameters) Gain() float32
- func (o *AVAudioUnitEQFilterParameters) SetBandwidth(bandwidth float32)
- func (o *AVAudioUnitEQFilterParameters) SetBypass(bypass bool)
- func (o *AVAudioUnitEQFilterParameters) SetFilterType(filterType AVAudioUnitEQFilterType)
- func (o *AVAudioUnitEQFilterParameters) SetFrequency(frequency float32)
- func (o *AVAudioUnitEQFilterParameters) SetGain(gain float32)
- type AVAudioUnitEQFilterType
- type AVAudioUnitEffect
- type AVAudioUnitGenerator
- type AVAudioUnitMIDIInstrument
- func (o *AVAudioUnitMIDIInstrument) InitWithAudioComponentDescription(description objc.ID) *AVAudioUnitMIDIInstrument
- func (o *AVAudioUnitMIDIInstrument) SendControllerWithValueOnChannel(controller uint8, value uint8, channel uint8)
- func (o *AVAudioUnitMIDIInstrument) SendMIDIEventData1(midiStatus uint8, data1 uint8)
- func (o *AVAudioUnitMIDIInstrument) SendMIDIEventData1Data2(midiStatus uint8, data1 uint8, data2 uint8)
- func (o *AVAudioUnitMIDIInstrument) SendMIDIEventList(eventList *coremidi.MIDIEventList)
- func (o *AVAudioUnitMIDIInstrument) SendMIDISysExEvent(midiData *foundation.NSData)
- func (o *AVAudioUnitMIDIInstrument) SendPitchBendOnChannel(pitchbend uint16, channel uint8)
- func (o *AVAudioUnitMIDIInstrument) SendPressureForKeyWithValueOnChannel(key uint8, value uint8, channel uint8)
- func (o *AVAudioUnitMIDIInstrument) SendPressureOnChannel(pressure uint8, channel uint8)
- func (o *AVAudioUnitMIDIInstrument) SendProgramChangeBankMSBBankLSBOnChannel(program uint8, bankMSB uint8, bankLSB uint8, channel uint8)
- func (o *AVAudioUnitMIDIInstrument) SendProgramChangeOnChannel(program uint8, channel uint8)
- func (o *AVAudioUnitMIDIInstrument) StartNoteWithVelocityOnChannel(note uint8, velocity uint8, channel uint8)
- func (o *AVAudioUnitMIDIInstrument) StopNoteOnChannel(note uint8, channel uint8)
- type AVAudioUnitReverb
- type AVAudioUnitReverbPreset
- type AVAudioUnitSampler
- func (o *AVAudioUnitSampler) GlobalTuning() float32
- func (o *AVAudioUnitSampler) LoadAudioFilesAtURLsError(audioFiles *foundation.NSArray[*foundation.NSURL]) (bool, error)
- func (o *AVAudioUnitSampler) LoadInstrumentAtURLError(instrumentURL *foundation.NSURL) (bool, error)
- func (o *AVAudioUnitSampler) LoadSoundBankInstrumentAtURLProgramBankMSBBankLSBError(bankURL *foundation.NSURL, program uint8, bankMSB uint8, bankLSB uint8) (bool, error)
- func (o *AVAudioUnitSampler) MasterGain() float32
- func (o *AVAudioUnitSampler) OverallGain() float32
- func (o *AVAudioUnitSampler) SetGlobalTuning(globalTuning float32)
- func (o *AVAudioUnitSampler) SetMasterGain(masterGain float32)deprecated
- func (o *AVAudioUnitSampler) SetOverallGain(overallGain float32)
- func (o *AVAudioUnitSampler) SetStereoPan(stereoPan float32)
- func (o *AVAudioUnitSampler) StereoPan() float32
- type AVAudioUnitTimeEffect
- type AVAudioUnitTimePitch
- func (o *AVAudioUnitTimePitch) Overlap() float32
- func (o *AVAudioUnitTimePitch) Pitch() float32
- func (o *AVAudioUnitTimePitch) Rate() float32
- func (o *AVAudioUnitTimePitch) SetOverlap(overlap float32)
- func (o *AVAudioUnitTimePitch) SetPitch(pitch float32)
- func (o *AVAudioUnitTimePitch) SetRate(rate float32)
- type AVAudioUnitVarispeed
- type AVAudioVoiceProcessingOtherAudioDuckingConfiguration
- type AVAudioVoiceProcessingOtherAudioDuckingLevel
- type AVAudioVoiceProcessingSpeechActivityEvent
- type AVBeatRange
- type AVExtendedNoteOnEvent
- func (o *AVExtendedNoteOnEvent) Duration() float64
- func (o *AVExtendedNoteOnEvent) GroupID() uint
- func (o *AVExtendedNoteOnEvent) InitWithMIDINoteVelocityGroupIDDuration(midiNote float32, velocity float32, groupID uint, duration float64) *AVExtendedNoteOnEvent
- func (o *AVExtendedNoteOnEvent) InitWithMIDINoteVelocityInstrumentIDGroupIDDuration(midiNote float32, velocity float32, instrumentID uint, groupID uint, ...) *AVExtendedNoteOnEvent
- func (o *AVExtendedNoteOnEvent) InstrumentID() uint
- func (o *AVExtendedNoteOnEvent) MidiNote() float32
- func (o *AVExtendedNoteOnEvent) SetDuration(duration float64)
- func (o *AVExtendedNoteOnEvent) SetGroupID(groupID uint)
- func (o *AVExtendedNoteOnEvent) SetInstrumentID(instrumentID uint)
- func (o *AVExtendedNoteOnEvent) SetMidiNote(midiNote float32)
- func (o *AVExtendedNoteOnEvent) SetVelocity(velocity float32)
- func (o *AVExtendedNoteOnEvent) Velocity() float32
- type AVExtendedTempoEvent
- type AVMIDIChannelEvent
- type AVMIDIChannelPressureEvent
- type AVMIDIControlChangeEvent
- type AVMIDIControlChangeMessageType
- type AVMIDIMetaEvent
- type AVMIDIMetaEventType
- type AVMIDINoteEvent
- func (o *AVMIDINoteEvent) Channel() uint
- func (o *AVMIDINoteEvent) Duration() float64
- func (o *AVMIDINoteEvent) InitWithChannelKeyVelocityDuration(channel uint, keyNum uint, velocity uint, duration float64) *AVMIDINoteEvent
- func (o *AVMIDINoteEvent) Key() uint
- func (o *AVMIDINoteEvent) SetChannel(channel uint)
- func (o *AVMIDINoteEvent) SetDuration(duration float64)
- func (o *AVMIDINoteEvent) SetKey(key uint)
- func (o *AVMIDINoteEvent) SetVelocity(velocity uint)
- func (o *AVMIDINoteEvent) Velocity() uint
- type AVMIDIPitchBendEvent
- type AVMIDIPlayer
- func (o *AVMIDIPlayer) CurrentPosition() float64
- func (o *AVMIDIPlayer) Duration() float64
- func (o *AVMIDIPlayer) InitWithContentsOfURLSoundBankURLError(inURL *foundation.NSURL, bankURL *foundation.NSURL) (*AVMIDIPlayer, error)
- func (o *AVMIDIPlayer) InitWithDataSoundBankURLError(data *foundation.NSData, bankURL *foundation.NSURL) (*AVMIDIPlayer, error)
- func (o *AVMIDIPlayer) IsPlaying() bool
- func (o *AVMIDIPlayer) Play(completionHandler func())
- func (o *AVMIDIPlayer) PrepareToPlay()
- func (o *AVMIDIPlayer) Rate() float32
- func (o *AVMIDIPlayer) SetCurrentPosition(currentPosition float64)
- func (o *AVMIDIPlayer) SetRate(rate float32)
- func (o *AVMIDIPlayer) Stop()
- type AVMIDIPolyPressureEvent
- func (o *AVMIDIPolyPressureEvent) InitWithChannelKeyPressure(channel uint, key uint, pressure uint) *AVMIDIPolyPressureEvent
- func (o *AVMIDIPolyPressureEvent) Key() uint
- func (o *AVMIDIPolyPressureEvent) Pressure() uint
- func (o *AVMIDIPolyPressureEvent) SetKey(key uint)
- func (o *AVMIDIPolyPressureEvent) SetPressure(pressure uint)
- type AVMIDIProgramChangeEvent
- type AVMIDISysexEvent
- type AVMusicEvent
- type AVMusicSequenceLoadOptions
- type AVMusicTrack
- func (o *AVMusicTrack) AddEventAtBeat(event *AVMusicEvent, beat float64)
- func (o *AVMusicTrack) ClearEventsInRange(range_ AVBeatRange)
- func (o *AVMusicTrack) CopyAndMergeEventsInRangeFromTrackMergeAtBeat(range_ AVBeatRange, sourceTrack *AVMusicTrack, mergeStartBeat float64)
- func (o *AVMusicTrack) CopyEventsInRangeFromTrackInsertAtBeat(range_ AVBeatRange, sourceTrack *AVMusicTrack, insertStartBeat float64)
- func (o *AVMusicTrack) CutEventsInRange(range_ AVBeatRange)
- func (o *AVMusicTrack) DestinationAudioUnit() *AVAudioUnit
- func (o *AVMusicTrack) DestinationMIDIEndpoint() uint
- func (o *AVMusicTrack) EnumerateEventsInRangeUsing(range_ AVBeatRange, block func(*AVMusicEvent, *float64, *bool))
- func (o *AVMusicTrack) IsLoopingEnabled() bool
- func (o *AVMusicTrack) IsMuted() bool
- func (o *AVMusicTrack) IsSoloed() bool
- func (o *AVMusicTrack) LengthInBeats() float64
- func (o *AVMusicTrack) LengthInSeconds() float64
- func (o *AVMusicTrack) LoopRange() AVBeatRange
- func (o *AVMusicTrack) MoveEventsInRangeByAmount(range_ AVBeatRange, beatAmount float64)
- func (o *AVMusicTrack) NumberOfLoops() int
- func (o *AVMusicTrack) OffsetTime() float64
- func (o *AVMusicTrack) SetDestinationAudioUnit(destinationAudioUnit *AVAudioUnit)
- func (o *AVMusicTrack) SetDestinationMIDIEndpoint(destinationMIDIEndpoint uint)
- func (o *AVMusicTrack) SetLengthInBeats(lengthInBeats float64)
- func (o *AVMusicTrack) SetLengthInSeconds(lengthInSeconds float64)
- func (o *AVMusicTrack) SetLoopRange(loopRange AVBeatRange)
- func (o *AVMusicTrack) SetLoopingEnabled(loopingEnabled bool)
- func (o *AVMusicTrack) SetMuted(muted bool)
- func (o *AVMusicTrack) SetNumberOfLoops(numberOfLoops int)
- func (o *AVMusicTrack) SetOffsetTime(offsetTime float64)
- func (o *AVMusicTrack) SetSoloed(soloed bool)
- func (o *AVMusicTrack) SetUsesAutomatedParameters(usesAutomatedParameters bool)
- func (o *AVMusicTrack) TimeResolution() uint
- func (o *AVMusicTrack) UsesAutomatedParameters() bool
- type AVMusicTrackLoopCount
- type AVMusicUserEvent
- type AVParameterEvent
- func (o *AVParameterEvent) Element() uint
- func (o *AVParameterEvent) InitWithParameterIDScopeElementValue(parameterID uint, scope uint, element uint, value float32) *AVParameterEvent
- func (o *AVParameterEvent) ParameterID() uint
- func (o *AVParameterEvent) Scope() uint
- func (o *AVParameterEvent) SetElement(element uint)
- func (o *AVParameterEvent) SetParameterID(parameterID uint)
- func (o *AVParameterEvent) SetScope(scope uint)
- func (o *AVParameterEvent) SetValue(value float32)
- func (o *AVParameterEvent) Value() float32
- type AVSpeechBoundary
- type AVSpeechSynthesisMarker
- func (o *AVSpeechSynthesisMarker) BookmarkName() *foundation.NSString
- func (o *AVSpeechSynthesisMarker) ByteSampleOffset() uint
- func (o *AVSpeechSynthesisMarker) InitWithBookmarkNameAtByteSampleOffset(mark *foundation.NSString, byteSampleOffset int) *AVSpeechSynthesisMarker
- func (o *AVSpeechSynthesisMarker) InitWithMarkerTypeForTextRangeAtByteSampleOffset(type_ AVSpeechSynthesisMarkerMark, range_ foundation.NSRange, ...) *AVSpeechSynthesisMarker
- func (o *AVSpeechSynthesisMarker) InitWithParagraphRangeAtByteSampleOffset(range_ foundation.NSRange, byteSampleOffset int) *AVSpeechSynthesisMarker
- func (o *AVSpeechSynthesisMarker) InitWithPhonemeStringAtByteSampleOffset(phoneme *foundation.NSString, byteSampleOffset int) *AVSpeechSynthesisMarker
- func (o *AVSpeechSynthesisMarker) InitWithSentenceRangeAtByteSampleOffset(range_ foundation.NSRange, byteSampleOffset int) *AVSpeechSynthesisMarker
- func (o *AVSpeechSynthesisMarker) InitWithWordRangeAtByteSampleOffset(range_ foundation.NSRange, byteSampleOffset int) *AVSpeechSynthesisMarker
- func (o *AVSpeechSynthesisMarker) Mark() AVSpeechSynthesisMarkerMark
- func (o *AVSpeechSynthesisMarker) Phoneme() *foundation.NSString
- func (o *AVSpeechSynthesisMarker) SetBookmarkName(bookmarkName *foundation.NSString)
- func (o *AVSpeechSynthesisMarker) SetByteSampleOffset(byteSampleOffset uint)
- func (o *AVSpeechSynthesisMarker) SetMark(mark AVSpeechSynthesisMarkerMark)
- func (o *AVSpeechSynthesisMarker) SetPhoneme(phoneme *foundation.NSString)
- func (o *AVSpeechSynthesisMarker) SetTextRange(textRange foundation.NSRange)
- func (o *AVSpeechSynthesisMarker) TextRange() foundation.NSRange
- type AVSpeechSynthesisMarkerMark
- type AVSpeechSynthesisPersonalVoiceAuthorizationStatus
- type AVSpeechSynthesisProviderAudioUnit
- func (o *AVSpeechSynthesisProviderAudioUnit) CancelSpeechRequest()
- func (o *AVSpeechSynthesisProviderAudioUnit) InitPtr(id objc.ID)
- func (o *AVSpeechSynthesisProviderAudioUnit) Ptr() objc.ID
- func (o *AVSpeechSynthesisProviderAudioUnit) SetSpeechSynthesisOutputMetadataBlock(...)
- func (o *AVSpeechSynthesisProviderAudioUnit) SetSpeechVoices(speechVoices *foundation.NSArray[*AVSpeechSynthesisProviderVoice])
- func (o *AVSpeechSynthesisProviderAudioUnit) SpeechSynthesisOutputMetadataBlock() objc.Block
- func (o *AVSpeechSynthesisProviderAudioUnit) SpeechVoices() *foundation.NSArray[*AVSpeechSynthesisProviderVoice]
- func (o *AVSpeechSynthesisProviderAudioUnit) SynthesizeSpeechRequest(speechRequest *AVSpeechSynthesisProviderRequest)
- type AVSpeechSynthesisProviderRequest
- func (o *AVSpeechSynthesisProviderRequest) InitWithSSMLRepresentationVoice(text *foundation.NSString, voice *AVSpeechSynthesisProviderVoice) *AVSpeechSynthesisProviderRequest
- func (o *AVSpeechSynthesisProviderRequest) SsmlRepresentation() *foundation.NSString
- func (o *AVSpeechSynthesisProviderRequest) Voice() *AVSpeechSynthesisProviderVoice
- type AVSpeechSynthesisProviderVoice
- func (o *AVSpeechSynthesisProviderVoice) Age() int
- func (o *AVSpeechSynthesisProviderVoice) Gender() AVSpeechSynthesisVoiceGender
- func (o *AVSpeechSynthesisProviderVoice) Identifier() *foundation.NSString
- func (o *AVSpeechSynthesisProviderVoice) InitWithNameIdentifierPrimaryLanguagesSupportedLanguages(name *foundation.NSString, identifier *foundation.NSString, ...) *AVSpeechSynthesisProviderVoice
- func (o *AVSpeechSynthesisProviderVoice) Name() *foundation.NSString
- func (o *AVSpeechSynthesisProviderVoice) PrimaryLanguages() *foundation.NSArray[*foundation.NSString]
- func (o *AVSpeechSynthesisProviderVoice) SetAge(age int)
- func (o *AVSpeechSynthesisProviderVoice) SetGender(gender AVSpeechSynthesisVoiceGender)
- func (o *AVSpeechSynthesisProviderVoice) SetVoiceSize(voiceSize int64)
- func (o *AVSpeechSynthesisProviderVoice) SupportedLanguages() *foundation.NSArray[*foundation.NSString]
- func (o *AVSpeechSynthesisProviderVoice) VoiceSize() int64
- type AVSpeechSynthesisVoice
- func (o *AVSpeechSynthesisVoice) AudioFileSettings() *foundation.NSDictionary[*foundation.NSString, objc.ID]
- func (o *AVSpeechSynthesisVoice) Gender() AVSpeechSynthesisVoiceGender
- func (o *AVSpeechSynthesisVoice) Identifier() *foundation.NSString
- func (o *AVSpeechSynthesisVoice) Language() *foundation.NSString
- func (o *AVSpeechSynthesisVoice) Name() *foundation.NSString
- func (o *AVSpeechSynthesisVoice) Quality() AVSpeechSynthesisVoiceQuality
- func (o *AVSpeechSynthesisVoice) VoiceTraits() AVSpeechSynthesisVoiceTraits
- type AVSpeechSynthesisVoiceGender
- type AVSpeechSynthesisVoiceQuality
- type AVSpeechSynthesisVoiceTraits
- type AVSpeechSynthesizer
- func (o *AVSpeechSynthesizer) ContinueSpeaking() bool
- func (o *AVSpeechSynthesizer) Delegate() AVSpeechSynthesizerDelegate
- func (o *AVSpeechSynthesizer) IsPaused() bool
- func (o *AVSpeechSynthesizer) IsSpeaking() bool
- func (o *AVSpeechSynthesizer) PauseSpeakingAtBoundary(boundary AVSpeechBoundary) bool
- func (o *AVSpeechSynthesizer) SetDelegate(delegate AVSpeechSynthesizerDelegate)
- func (o *AVSpeechSynthesizer) SpeakUtterance(utterance *AVSpeechUtterance)
- func (o *AVSpeechSynthesizer) StopSpeakingAtBoundary(boundary AVSpeechBoundary) bool
- func (o *AVSpeechSynthesizer) WriteUtteranceToBufferCallback(utterance *AVSpeechUtterance, bufferCallback func(*AVAudioBuffer))
- func (o *AVSpeechSynthesizer) WriteUtteranceToBufferCallbackToMarkerCallback(utterance *AVSpeechUtterance, bufferCallback func(*AVAudioBuffer), ...)
- type AVSpeechSynthesizerDelegate
- type AVSpeechUtterance
- func AVSpeechUtteranceFromID(id objc.ID) *AVSpeechUtterance
- func AVSpeechUtteranceSpeechUtteranceWithAttributedString(string_ *foundation.NSAttributedString) *AVSpeechUtterance
- func AVSpeechUtteranceSpeechUtteranceWithSSMLRepresentation(string_ *foundation.NSString) *AVSpeechUtterance
- func AVSpeechUtteranceSpeechUtteranceWithString(string_ *foundation.NSString) *AVSpeechUtterance
- func (o *AVSpeechUtterance) AttributedSpeechString() *foundation.NSAttributedString
- func (o *AVSpeechUtterance) InitWithAttributedString(string_ *foundation.NSAttributedString) *AVSpeechUtterance
- func (o *AVSpeechUtterance) InitWithSSMLRepresentation(string_ *foundation.NSString) *AVSpeechUtterance
- func (o *AVSpeechUtterance) InitWithString(string_ *foundation.NSString) *AVSpeechUtterance
- func (o *AVSpeechUtterance) PitchMultiplier() float32
- func (o *AVSpeechUtterance) PostUtteranceDelay() float64
- func (o *AVSpeechUtterance) PreUtteranceDelay() float64
- func (o *AVSpeechUtterance) PrefersAssistiveTechnologySettings() bool
- func (o *AVSpeechUtterance) Rate() float32
- func (o *AVSpeechUtterance) SetPitchMultiplier(pitchMultiplier float32)
- func (o *AVSpeechUtterance) SetPostUtteranceDelay(postUtteranceDelay float64)
- func (o *AVSpeechUtterance) SetPreUtteranceDelay(preUtteranceDelay float64)
- func (o *AVSpeechUtterance) SetPrefersAssistiveTechnologySettings(prefersAssistiveTechnologySettings bool)
- func (o *AVSpeechUtterance) SetRate(rate float32)
- func (o *AVSpeechUtterance) SetVoice(voice *AVSpeechSynthesisVoice)
- func (o *AVSpeechUtterance) SetVolume(volume float32)
- func (o *AVSpeechUtterance) SpeechString() *foundation.NSString
- func (o *AVSpeechUtterance) Voice() *AVSpeechSynthesisVoice
- func (o *AVSpeechUtterance) Volume() float32
- type Acl_entry_id_t
- type Acl_flag_t
- type Acl_perm_t
- type Acl_tag_t
- type Acl_type_t
- type CGLCPContextPriorityRequest
- type Clockid_t
- type Dispatch_autorelease_frequency_t
- type Dispatch_block_flags_t
- type EvCmd
- type Filesec_property_t
- type Idtype_t
- type Ipc_info_object_type_t
- type Launch_data_type_t
- type MDLabelDomain
- type MDQueryOptionFlags
- type MDQuerySortOptionFlags
- type Mach_vm_range_flags_t
- type Mach_vm_range_flavor_t
- type Mach_vm_range_tag_t
- type Mpo_flags_t
- type NXMouseButton
- type Os_clockid_t
- type PMPageToPaperMappingType
- type Ptrauth_key
- type Qos_class_t
- type Virtual_memory_guard_exception_code_t
- type Xpc_listener_create_flags_t
- type Xpc_session_create_flags_t
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AVAudioApplicationInputMuteStateChangeNotification ¶
func AVAudioApplicationInputMuteStateChangeNotification() uintptr
@brief Notification sent to registered listeners when the application's input is muted or unmuted. Check the notification's userInfo dictionary for the mute state `AVAudioApplicationMuteStateKey` which will have a boolean value 0 for unmuted or value 1 for muted. @note this notification will only be dispatched for state changes when there is an active record session (i.e. record or playAndRecord category). Setting the `inputMuted` state while the record session is not active is allowed and will be stored, but it will not trigger a notification for the state change. When the record session subsequently goes active, the `inputMuted` state will be applied, and this notification will be dispatched with the latest input muted state.
func AVAudioApplicationMuteStateKey ¶
func AVAudioApplicationMuteStateKey() uintptr
Keys for AVAudioApplicationInputMuteStateChangeNotification Value is NSNumber type with boolean value 0 for unmuted or value 1 for muted (samples zeroed out)
func AVAudioApplicationRequestRecordPermissionWithCompletionHandler ¶
func AVAudioApplicationRequestRecordPermissionWithCompletionHandler(response func(bool))
Determines whether the app has permission to record audio.
func AVAudioBitRateStrategy_Constant ¶
func AVAudioBitRateStrategy_Constant() uintptr
func AVAudioBitRateStrategy_LongTermAverage ¶
func AVAudioBitRateStrategy_LongTermAverage() uintptr
func AVAudioBitRateStrategy_Variable ¶
func AVAudioBitRateStrategy_Variable() uintptr
func AVAudioBitRateStrategy_VariableConstrained ¶
func AVAudioBitRateStrategy_VariableConstrained() uintptr
func AVAudioEngineConfigurationChangeNotification ¶
func AVAudioEngineConfigurationChangeNotification() uintptr
@constant AVAudioEngineConfigurationChangeNotification @abstract A notification generated on engine configuration changes when rendering to/from an audio device. Register for this notification on your engine instances, as follows: ``` [[NSNotificationCenter defaultCenter] addObserver: myObject selector: @selector(handleInterruption:) name: AVAudioEngineConfigurationChangeNotification object: engine]; ``` When the engine's I/O unit observes a change to the audio input or output hardware's channel count or sample rate, the engine stops itself (see `AVAudioEngine(stop)`), and issues this notification. The nodes remain attached and connected with previously set formats. However, the app must reestablish connections if the connection formats need to change (e.g. in an input node chain, connections must follow the hardware sample rate, while in an output only chain, the output node supports rate conversion). Note that the engine must not be deallocated from within the client's notification handler because the callback happens on an internal dispatch queue and can deadlock while trying to synchronously teardown the engine.
func AVAudioFileTypeKey ¶
func AVAudioFileTypeKey() uintptr
func AVAudioSequencerInfoDictionaryKeyAlbum ¶
func AVAudioSequencerInfoDictionaryKeyAlbum() uintptr
func AVAudioSequencerInfoDictionaryKeyApproximateDurationInSeconds ¶
func AVAudioSequencerInfoDictionaryKeyApproximateDurationInSeconds() uintptr
func AVAudioSequencerInfoDictionaryKeyArtist ¶
func AVAudioSequencerInfoDictionaryKeyArtist() uintptr
func AVAudioSequencerInfoDictionaryKeyChannelLayout ¶
func AVAudioSequencerInfoDictionaryKeyChannelLayout() uintptr
func AVAudioSequencerInfoDictionaryKeyComments ¶
func AVAudioSequencerInfoDictionaryKeyComments() uintptr
func AVAudioSequencerInfoDictionaryKeyComposer ¶
func AVAudioSequencerInfoDictionaryKeyComposer() uintptr
func AVAudioSequencerInfoDictionaryKeyCopyright ¶
func AVAudioSequencerInfoDictionaryKeyCopyright() uintptr
func AVAudioSequencerInfoDictionaryKeyEncodingApplication ¶
func AVAudioSequencerInfoDictionaryKeyEncodingApplication() uintptr
func AVAudioSequencerInfoDictionaryKeyGenre ¶
func AVAudioSequencerInfoDictionaryKeyGenre() uintptr
func AVAudioSequencerInfoDictionaryKeyISRC ¶
func AVAudioSequencerInfoDictionaryKeyISRC() uintptr
func AVAudioSequencerInfoDictionaryKeyKeySignature ¶
func AVAudioSequencerInfoDictionaryKeyKeySignature() uintptr
func AVAudioSequencerInfoDictionaryKeyLyricist ¶
func AVAudioSequencerInfoDictionaryKeyLyricist() uintptr
func AVAudioSequencerInfoDictionaryKeyNominalBitRate ¶
func AVAudioSequencerInfoDictionaryKeyNominalBitRate() uintptr
func AVAudioSequencerInfoDictionaryKeyRecordedDate ¶
func AVAudioSequencerInfoDictionaryKeyRecordedDate() uintptr
func AVAudioSequencerInfoDictionaryKeySourceBitDepth ¶
func AVAudioSequencerInfoDictionaryKeySourceBitDepth() uintptr
func AVAudioSequencerInfoDictionaryKeySourceEncoder ¶
func AVAudioSequencerInfoDictionaryKeySourceEncoder() uintptr
func AVAudioSequencerInfoDictionaryKeySubTitle ¶
func AVAudioSequencerInfoDictionaryKeySubTitle() uintptr
func AVAudioSequencerInfoDictionaryKeyTempo ¶
func AVAudioSequencerInfoDictionaryKeyTempo() uintptr
func AVAudioSequencerInfoDictionaryKeyTimeSignature ¶
func AVAudioSequencerInfoDictionaryKeyTimeSignature() uintptr
func AVAudioSequencerInfoDictionaryKeyTitle ¶
func AVAudioSequencerInfoDictionaryKeyTitle() uintptr
func AVAudioSequencerInfoDictionaryKeyTrackNumber ¶
func AVAudioSequencerInfoDictionaryKeyTrackNumber() uintptr
func AVAudioSequencerInfoDictionaryKeyYear ¶
func AVAudioSequencerInfoDictionaryKeyYear() uintptr
func AVAudioSessionInterruptionWasSuspendedKey ¶
func AVAudioSessionInterruptionWasSuspendedKey() uintptr
Only present in begin interruption events, where the interruption is a direct result of the application being suspended by the operating sytem. Value is a boolean NSNumber, where a true value indicates that the interruption is the result of the application being suspended, rather than being interrupted by another audio session. Starting in iOS 10, the system will deactivate the audio session of most apps in response to the app process being suspended. When the app starts running again, it will receive the notification that its session has been deactivated by the system. Note that the notification is necessarily delayed in time, due to the fact that the application was suspended at the time the session was deactivated by the system and the notification can only be delivered once the app is running again.
func AVAudioSessionLocationLower ¶
func AVAudioSessionLocationLower() *foundation.NSString
func AVAudioSessionLocationUpper ¶
func AVAudioSessionLocationUpper() *foundation.NSString
func AVAudioSessionOrientationBack ¶
func AVAudioSessionOrientationBack() *foundation.NSString
func AVAudioSessionOrientationBottom ¶
func AVAudioSessionOrientationBottom() *foundation.NSString
func AVAudioSessionOrientationFront ¶
func AVAudioSessionOrientationFront() *foundation.NSString
func AVAudioSessionOrientationLeft ¶
func AVAudioSessionOrientationLeft() *foundation.NSString
func AVAudioSessionOrientationRight ¶
func AVAudioSessionOrientationRight() *foundation.NSString
func AVAudioSessionOrientationTop ¶
func AVAudioSessionOrientationTop() *foundation.NSString
func AVAudioSessionPolarPatternCardioid ¶
func AVAudioSessionPolarPatternCardioid() *foundation.NSString
func AVAudioSessionPolarPatternOmnidirectional ¶
func AVAudioSessionPolarPatternOmnidirectional() *foundation.NSString
func AVAudioSessionPolarPatternSubcardioid ¶
func AVAudioSessionPolarPatternSubcardioid() *foundation.NSString
func AVAudioTimeHostTimeForSeconds ¶
Converts seconds to host time.
func AVAudioTimeSecondsForHostTime ¶
Converts host time to seconds.
func AVAudioUnitComponentManagerRegistrationsChangedNotification ¶
func AVAudioUnitComponentManagerRegistrationsChangedNotification() uintptr
@constant AVAudioUnitComponentManagerRegistrationsChangedNotification @abstract A notification generated when AVAudioUnitComponentManager updates its list of components. @discussion Register for this notification on the shared AVAudioUnitComponentManager instance, as follows: ``` [[NSNotificationCenter defaultCenter] addObserver: myObject selector: @selector(registrationsChanged:) name: AVAudioUnitComponentManagerRegistrationsChangedNotification object: [AVAudioUnitComponentManager sharedAudioUnitComponentManager]]; ```
func AVAudioUnitComponentTagsDidChangeNotification ¶
func AVAudioUnitComponentTagsDidChangeNotification() uintptr
func AVAudioUnitInstantiateWithComponentDescriptionOptionsCompletionHandler ¶
func AVAudioUnitInstantiateWithComponentDescriptionOptionsCompletionHandler(audioComponentDescription objc.ID, options objc.ID, completionHandler func(*AVAudioUnit, unsafe.Pointer))
Creates an instance of an audio unit component asynchronously and wraps it in an audio unit class.
func AVAudioUnitManufacturerNameApple ¶
func AVAudioUnitManufacturerNameApple() uintptr
func AVAudioUnitTypeEffect ¶
func AVAudioUnitTypeEffect() uintptr
func AVAudioUnitTypeFormatConverter ¶
func AVAudioUnitTypeFormatConverter() uintptr
func AVAudioUnitTypeGenerator ¶
func AVAudioUnitTypeGenerator() uintptr
func AVAudioUnitTypeMIDIProcessor ¶
func AVAudioUnitTypeMIDIProcessor() uintptr
func AVAudioUnitTypeMixer ¶
func AVAudioUnitTypeMixer() uintptr
func AVAudioUnitTypeMusicDevice ¶
func AVAudioUnitTypeMusicDevice() uintptr
func AVAudioUnitTypeMusicEffect ¶
func AVAudioUnitTypeMusicEffect() uintptr
func AVAudioUnitTypeOfflineEffect ¶
func AVAudioUnitTypeOfflineEffect() uintptr
func AVAudioUnitTypeOutput ¶
func AVAudioUnitTypeOutput() uintptr
func AVAudioUnitTypePanner ¶
func AVAudioUnitTypePanner() uintptr
func AVChannelLayoutKey ¶
func AVChannelLayoutKey() uintptr
func AVEncoderASPFrequencyKey ¶
func AVEncoderASPFrequencyKey() uintptr
func AVEncoderAudioQualityForVBRKey ¶
func AVEncoderAudioQualityForVBRKey() uintptr
func AVEncoderAudioQualityKey ¶
func AVEncoderAudioQualityKey() uintptr
func AVEncoderBitDepthHintKey ¶
func AVEncoderBitDepthHintKey() uintptr
func AVEncoderBitRateKey ¶
func AVEncoderBitRateKey() uintptr
func AVEncoderBitRatePerChannelKey ¶
func AVEncoderBitRatePerChannelKey() uintptr
func AVEncoderBitRateStrategyKey ¶
func AVEncoderBitRateStrategyKey() uintptr
func AVEncoderContentSourceKey ¶
func AVEncoderContentSourceKey() uintptr
func AVEncoderDynamicRangeControlConfigurationKey ¶
func AVEncoderDynamicRangeControlConfigurationKey() uintptr
func AVExtendedNoteOnEventDefaultInstrument ¶
func AVExtendedNoteOnEventDefaultInstrument() uint
func AVFormatIDKey ¶
func AVFormatIDKey() uintptr
func AVLinearPCMBitDepthKey ¶
func AVLinearPCMBitDepthKey() uintptr
func AVLinearPCMIsBigEndianKey ¶
func AVLinearPCMIsBigEndianKey() uintptr
func AVLinearPCMIsFloatKey ¶
func AVLinearPCMIsFloatKey() uintptr
func AVLinearPCMIsNonInterleaved ¶
func AVLinearPCMIsNonInterleaved() uintptr
func AVNumberOfChannelsKey ¶
func AVNumberOfChannelsKey() uintptr
func AVSampleRateConverterAlgorithmKey ¶
func AVSampleRateConverterAlgorithmKey() uintptr
func AVSampleRateConverterAlgorithm_Mastering ¶
func AVSampleRateConverterAlgorithm_Mastering() uintptr
func AVSampleRateConverterAlgorithm_MinimumPhase ¶
func AVSampleRateConverterAlgorithm_MinimumPhase() uintptr
func AVSampleRateConverterAlgorithm_Normal ¶
func AVSampleRateConverterAlgorithm_Normal() uintptr
func AVSampleRateConverterAudioQualityKey ¶
func AVSampleRateConverterAudioQualityKey() uintptr
func AVSampleRateKey ¶
func AVSampleRateKey() uintptr
func AVSpeechSynthesisAvailableVoicesDidChangeNotification ¶
func AVSpeechSynthesisAvailableVoicesDidChangeNotification() *foundation.NSString
func AVSpeechSynthesisIPANotationAttribute ¶
func AVSpeechSynthesisIPANotationAttribute() uintptr
func AVSpeechSynthesisProviderVoiceUpdateSpeechVoices ¶
func AVSpeechSynthesisProviderVoiceUpdateSpeechVoices()
Updates the voices your app provides to the system.
func AVSpeechSynthesisVoiceCurrentLanguageCode ¶
func AVSpeechSynthesisVoiceCurrentLanguageCode() *foundation.NSString
Returns the language and locale code for the user’s current locale.
func AVSpeechSynthesisVoiceIdentifierAlex ¶
func AVSpeechSynthesisVoiceIdentifierAlex() uintptr
func AVSpeechSynthesisVoiceSpeechVoices ¶
func AVSpeechSynthesisVoiceSpeechVoices() *foundation.NSArray[*AVSpeechSynthesisVoice]
Retrieves all available voices on the device.
func AVSpeechSynthesizerRequestPersonalVoiceAuthorizationWithCompletionHandler ¶
func AVSpeechSynthesizerRequestPersonalVoiceAuthorizationWithCompletionHandler(handler func(AVSpeechSynthesisPersonalVoiceAuthorizationStatus))
Prompts the user to authorize your app to use personal voices.
func AVSpeechUtteranceDefaultSpeechRate ¶
func AVSpeechUtteranceDefaultSpeechRate() uintptr
func AVSpeechUtteranceMaximumSpeechRate ¶
func AVSpeechUtteranceMaximumSpeechRate() uintptr
func AVSpeechUtteranceMinimumSpeechRate ¶
func AVSpeechUtteranceMinimumSpeechRate() uintptr
func SymbolAvailable ¶
SymbolAvailable reports whether the named C symbol was bound when the library loaded. Calling a generated wrapper whose symbol is unavailable dereferences a nil function variable and panics.
Types ¶
type AVAUPresetEvent ¶
type AVAUPresetEvent struct {
AVMusicEvent
}
An object that represents a preset load and change on the music track’s destination audio unit.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaupresetevent
func AVAUPresetEventFromID ¶
func AVAUPresetEventFromID(id objc.ID) *AVAUPresetEvent
func (*AVAUPresetEvent) Element ¶
func (o *AVAUPresetEvent) Element() uint
@property element The element index within the scope (see AudioUnitElement). This should usually be set to 0.
func (*AVAUPresetEvent) InitWithScopeElementDictionary ¶
func (o *AVAUPresetEvent) InitWithScopeElementDictionary(scope uint, element uint, presetDictionary *foundation.NSDictionary[objc.ID, objc.ID]) *AVAUPresetEvent
Creates an event with the scope, element, and dictionary for the preset.
func (*AVAUPresetEvent) PresetDictionary ¶
func (o *AVAUPresetEvent) PresetDictionary() *foundation.NSDictionary[objc.ID, objc.ID]
@property presetDictionary An NSDictionary containing the preset.
func (*AVAUPresetEvent) Scope ¶
func (o *AVAUPresetEvent) Scope() uint
@property scope The audio unit scope for the parameter (see AudioUnitScope). This should always be set to Global.
func (*AVAUPresetEvent) SetElement ¶
func (o *AVAUPresetEvent) SetElement(element uint)
func (*AVAUPresetEvent) SetScope ¶
func (o *AVAUPresetEvent) SetScope(scope uint)
type AVAudio3DAngularOrientation ¶
A structure that represents the angular orientation of the listener in 3D space.
func AVAudioMake3DAngularOrientation ¶
func AVAudioMake3DAngularOrientation(yaw float32, pitch float32, roll float32) AVAudio3DAngularOrientation
@abstract Creates and returns an AVAudio3DAngularOrientation object
type AVAudio3DMixing ¶
type AVAudio3DMixing interface {
RenderingAlgorithm() AVAudio3DMixingRenderingAlgorithm
SetRenderingAlgorithm(renderingAlgorithm AVAudio3DMixingRenderingAlgorithm)
SourceMode() AVAudio3DMixingSourceMode
SetSourceMode(sourceMode AVAudio3DMixingSourceMode)
PointSourceInHeadMode() AVAudio3DMixingPointSourceInHeadMode
SetPointSourceInHeadMode(pointSourceInHeadMode AVAudio3DMixingPointSourceInHeadMode)
Rate() float32
SetRate(rate float32)
ReverbBlend() float32
SetReverbBlend(reverbBlend float32)
Obstruction() float32
SetObstruction(obstruction float32)
Occlusion() float32
SetOcclusion(occlusion float32)
Position() AVAudio3DPoint
SetPosition(position AVAudio3DPoint)
}
AVAudio3DMixing wraps the ObjC protocol AVAudio3DMixing.
type AVAudio3DMixingPointSourceInHeadMode ¶
type AVAudio3DMixingPointSourceInHeadMode int64
The in-head modes for a point source.
const ( // The point source remains a single mono source inside the head of the listener regardless of the channels it consists of. AVAudio3DMixingPointSourceInHeadModeMono AVAudio3DMixingPointSourceInHeadMode = 0 // The point source distributes into each output channel inside the head of the listener. AVAudio3DMixingPointSourceInHeadModeBypass AVAudio3DMixingPointSourceInHeadMode = 1 )
func (AVAudio3DMixingPointSourceInHeadMode) String ¶
func (e AVAudio3DMixingPointSourceInHeadMode) String() string
type AVAudio3DMixingRenderingAlgorithm ¶
type AVAudio3DMixingRenderingAlgorithm int64
The types of rendering algorithms available per input bus of the environment node.
const ( // An algorithm that pans the data of the mixer bus into a stereo field. AVAudio3DMixingRenderingAlgorithmEqualPowerPanning AVAudio3DMixingRenderingAlgorithm = 0 // An algorithm that emulates 3D space in headphones by simulating interaural time delays and other spatial cues. AVAudio3DMixingRenderingAlgorithmSphericalHead AVAudio3DMixingRenderingAlgorithm = 1 // A high-quality algorithm that uses filtering to emulate 3D space in headphones. AVAudio3DMixingRenderingAlgorithmHRTF AVAudio3DMixingRenderingAlgorithm = 2 // An algorithm that renders to multichannel hardware. AVAudio3DMixingRenderingAlgorithmSoundField AVAudio3DMixingRenderingAlgorithm = 3 // An algorithm to use when the source data doesn’t need localization. AVAudio3DMixingRenderingAlgorithmStereoPassThrough AVAudio3DMixingRenderingAlgorithm = 5 // A higher-quality head-related transfer function rendering algorithm. AVAudio3DMixingRenderingAlgorithmHRTFHQ AVAudio3DMixingRenderingAlgorithm = 6 // Automatically selects the highest-quality rendering algorithm available for the current playback hardware. AVAudio3DMixingRenderingAlgorithmAuto AVAudio3DMixingRenderingAlgorithm = 7 )
func (AVAudio3DMixingRenderingAlgorithm) String ¶
func (e AVAudio3DMixingRenderingAlgorithm) String() string
type AVAudio3DMixingSourceMode ¶
type AVAudio3DMixingSourceMode int64
The source modes for the input bus of the audio environment node.
const ( // A mono input bus that renders as a point source at the location of the source node. AVAudio3DMixingSourceModeSpatializeIfMono AVAudio3DMixingSourceMode = 0 // A mode that does no spatial rendering. AVAudio3DMixingSourceModeBypass AVAudio3DMixingSourceMode = 1 // All channels of the bus render as a single source at the location of the source node. AVAudio3DMixingSourceModePointSource AVAudio3DMixingSourceMode = 2 // The input channels spread around the listener as far-field sources that anchor to global space. AVAudio3DMixingSourceModeAmbienceBed AVAudio3DMixingSourceMode = 3 )
func (AVAudio3DMixingSourceMode) String ¶
func (e AVAudio3DMixingSourceMode) String() string
type AVAudio3DPoint ¶
A structure that represents a point in 3D space.
func AVAudioMake3DPoint ¶
func AVAudioMake3DPoint(x float32, y float32, z float32) AVAudio3DPoint
@abstract Creates and returns an AVAudio3DPoint object
func AVAudioMake3DVector ¶
func AVAudioMake3DVector(x float32, y float32, z float32) AVAudio3DPoint
@abstract Creates and returns an AVAudio3DVector object
type AVAudio3DVector ¶
type AVAudio3DVector = AVAudio3DPoint
AVAudio3DVector is an alias for AVAudio3DPoint (C typedef AVAudio3DVector).
type AVAudio3DVectorOrientation ¶
type AVAudio3DVectorOrientation struct {
Forward AVAudio3DPoint
Up AVAudio3DPoint
}
A structure that represents two orthogonal vectors that describe the orientation of the listener in 3D space.
func AVAudioMake3DVectorOrientation ¶
func AVAudioMake3DVectorOrientation(forward AVAudio3DPoint, up AVAudio3DPoint) AVAudio3DVectorOrientation
@abstract Creates and returns an AVAudio3DVectorOrientation object
type AVAudioApplication ¶
type AVAudioApplication struct {
foundation.NSObject
}
An object that manages one or more audio sessions that belong to an app.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudioapplication
func AVAudioApplicationFromID ¶
func AVAudioApplicationFromID(id objc.ID) *AVAudioApplication
func AVAudioApplicationSharedInstance ¶
func AVAudioApplicationSharedInstance() *AVAudioApplication
Returns the singleton instance
func (*AVAudioApplication) IsInputMuted ¶
func (o *AVAudioApplication) IsInputMuted() bool
Get the input muted state - return value is boolean 0 for unmuted or value 1 for muted (input samples zeroed out)
func (*AVAudioApplication) RecordPermission ¶
func (o *AVAudioApplication) RecordPermission() AVAudioApplicationRecordPermission
Returns an enum indicating whether the user has granted or denied permission to record, or has not been asked
func (*AVAudioApplication) SetInputMuteStateChangeHandlerError ¶
func (o *AVAudioApplication) SetInputMuteStateChangeHandlerError(inputMuteHandler func(bool) bool) (bool, error)
Sets a callback to handle changes to application-level audio muting states.
func (*AVAudioApplication) SetInputMutedError ¶
func (o *AVAudioApplication) SetInputMutedError(muted bool) (bool, error)
Sets a Boolean value that indicates whether the app’s audio input is in a muted state.
type AVAudioApplicationMicrophoneInjectionPermission ¶
type AVAudioApplicationMicrophoneInjectionPermission int64
Constants that indicate an app’s permission to add audio to calls.
const ( AVAudioApplicationMicrophoneInjectionPermissionServiceDisabled AVAudioApplicationMicrophoneInjectionPermission = 1936876659 AVAudioApplicationMicrophoneInjectionPermissionUndetermined AVAudioApplicationMicrophoneInjectionPermission = 1970168948 AVAudioApplicationMicrophoneInjectionPermissionDenied AVAudioApplicationMicrophoneInjectionPermission = 1684369017 AVAudioApplicationMicrophoneInjectionPermissionGranted AVAudioApplicationMicrophoneInjectionPermission = 1735552628 )
func (AVAudioApplicationMicrophoneInjectionPermission) String ¶
func (e AVAudioApplicationMicrophoneInjectionPermission) String() string
type AVAudioApplicationRecordPermission ¶
type AVAudioApplicationRecordPermission int64
Constants that indicate the app’s permission to record audio.
const ( AVAudioApplicationRecordPermissionUndetermined AVAudioApplicationRecordPermission = 1970168948 AVAudioApplicationRecordPermissionDenied AVAudioApplicationRecordPermission = 1684369017 AVAudioApplicationRecordPermissionGranted AVAudioApplicationRecordPermission = 1735552628 )
func (AVAudioApplicationRecordPermission) String ¶
func (e AVAudioApplicationRecordPermission) String() string
type AVAudioBuffer ¶
type AVAudioBuffer struct {
foundation.NSObject
}
An object that represents a buffer of audio data with a format.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiobuffer
func AVAudioBufferFromID ¶
func AVAudioBufferFromID(id objc.ID) *AVAudioBuffer
func (*AVAudioBuffer) AudioBufferList ¶
func (o *AVAudioBuffer) AudioBufferList() *coreaudiotypes.AudioBufferList
@property audioBufferList @abstract The buffer's underlying AudioBufferList. @discussion For compatibility with lower-level CoreAudio and AudioToolbox API's, this method accesses the buffer implementation's internal AudioBufferList. The buffer list structure must not be modified, though you may modify buffer contents. The mDataByteSize fields of this AudioBufferList express the buffer's current frameLength.
func (*AVAudioBuffer) Format ¶
func (o *AVAudioBuffer) Format() *AVAudioFormat
@property format @abstract The format of the audio in the buffer.
func (*AVAudioBuffer) MutableAudioBufferList ¶
func (o *AVAudioBuffer) MutableAudioBufferList() *coreaudiotypes.AudioBufferList
@property mutableAudioBufferList @abstract A mutable version of the buffer's underlying AudioBufferList. @discussion Some lower-level CoreAudio and AudioToolbox API's require a mutable AudioBufferList, for example, AudioConverterConvertComplexBuffer. The mDataByteSize fields of this AudioBufferList express the buffer's current frameCapacity. If they are altered, you should modify the buffer's frameLength to match.
type AVAudioChannelLayout ¶
type AVAudioChannelLayout struct {
foundation.NSObject
}
An object that describes the roles of a set of audio channels.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiochannellayout
func AVAudioChannelLayoutFromID ¶
func AVAudioChannelLayoutFromID(id objc.ID) *AVAudioChannelLayout
func AVAudioChannelLayoutLayoutWithLayout ¶
func AVAudioChannelLayoutLayoutWithLayout(layout *coreaudiotypes.AudioChannelLayout) *AVAudioChannelLayout
Creates an audio channel layout object from an existing one.
func AVAudioChannelLayoutLayoutWithLayoutTag ¶
func AVAudioChannelLayoutLayoutWithLayoutTag(layoutTag uint) *AVAudioChannelLayout
Creates an audio channel layout object from an audio channel layout tag.
func (*AVAudioChannelLayout) ChannelCount ¶
func (o *AVAudioChannelLayout) ChannelCount() uint32
@property channelCount @abstract The number of channels of audio data.
func (*AVAudioChannelLayout) InitWithLayout ¶
func (o *AVAudioChannelLayout) InitWithLayout(layout *coreaudiotypes.AudioChannelLayout) *AVAudioChannelLayout
Creates an audio channel layout object from an existing one.
func (*AVAudioChannelLayout) InitWithLayoutTag ¶
func (o *AVAudioChannelLayout) InitWithLayoutTag(layoutTag uint) *AVAudioChannelLayout
Creates an audio channel layout object from a layout tag.
func (*AVAudioChannelLayout) IsEqual ¶
func (o *AVAudioChannelLayout) IsEqual(object objc.ID) bool
Indicates whether another audio channel layout is exactly equal to the current layout.
func (*AVAudioChannelLayout) Layout ¶
func (o *AVAudioChannelLayout) Layout() *coreaudiotypes.AudioChannelLayout
@property layout @abstract The underlying AudioChannelLayout.
func (*AVAudioChannelLayout) LayoutTag ¶
func (o *AVAudioChannelLayout) LayoutTag() uint
@property layoutTag @abstract The layout's tag.
type AVAudioCommonFormat ¶
type AVAudioCommonFormat uint64
The format options that describe common audio formats.
const ( // A format other than one the enumeration specifies. AVAudioOtherFormat AVAudioCommonFormat = 0 // A format that represents the standard format as native-endian floats. AVAudioPCMFormatFloat32 AVAudioCommonFormat = 1 // A format that represents native-endian doubles. AVAudioPCMFormatFloat64 AVAudioCommonFormat = 2 // A format that represents signed 16-bit native-endian integers. AVAudioPCMFormatInt16 AVAudioCommonFormat = 3 // A format that represents signed 32-bit native-endian integers. AVAudioPCMFormatInt32 AVAudioCommonFormat = 4 )
func (AVAudioCommonFormat) String ¶
func (e AVAudioCommonFormat) String() string
type AVAudioCompressedBuffer ¶
type AVAudioCompressedBuffer struct {
AVAudioBuffer
}
An object that represents an audio buffer that you use for compressed audio formats.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiocompressedbuffer
func AVAudioCompressedBufferFromID ¶
func AVAudioCompressedBufferFromID(id objc.ID) *AVAudioCompressedBuffer
func (*AVAudioCompressedBuffer) ByteCapacity ¶
func (o *AVAudioCompressedBuffer) ByteCapacity() uint32
@property byteCapacity @abstract The buffer's capacity in bytes
func (*AVAudioCompressedBuffer) ByteLength ¶
func (o *AVAudioCompressedBuffer) ByteLength() uint32
@property byteLength @abstract The current number of valid bytes in the buffer. @discussion Can be changed as part of an operation that modifies the contents.
func (*AVAudioCompressedBuffer) Data ¶
func (o *AVAudioCompressedBuffer) Data() unsafe.Pointer
@property data @abstract Access the buffer's data bytes.
func (*AVAudioCompressedBuffer) InitWithFormatPacketCapacity ¶
func (o *AVAudioCompressedBuffer) InitWithFormatPacketCapacity(format *AVAudioFormat, packetCapacity uint32) *AVAudioCompressedBuffer
Creates a buffer that contains constant bytes per packet of audio data in a compressed state.
func (*AVAudioCompressedBuffer) InitWithFormatPacketCapacityMaximumPacketSize ¶
func (o *AVAudioCompressedBuffer) InitWithFormatPacketCapacityMaximumPacketSize(format *AVAudioFormat, packetCapacity uint32, maximumPacketSize int) *AVAudioCompressedBuffer
Creates a buffer that contains audio data in a compressed state.
func (*AVAudioCompressedBuffer) MaximumPacketSize ¶
func (o *AVAudioCompressedBuffer) MaximumPacketSize() int
@property maximumPacketSize @abstract The maximum size of a compressed packet in bytes.
func (*AVAudioCompressedBuffer) PacketCapacity ¶
func (o *AVAudioCompressedBuffer) PacketCapacity() uint32
@property packetCapacity @abstract The number of compressed packets the buffer can contain.
func (*AVAudioCompressedBuffer) PacketCount ¶
func (o *AVAudioCompressedBuffer) PacketCount() uint32
@property packetCount @abstract The current number of compressed packets in the buffer. @discussion You may modify the packetCount as part of an operation that modifies its contents. The packetCount must be less than or equal to the packetCapacity.
func (*AVAudioCompressedBuffer) PacketDependencies ¶
func (o *AVAudioCompressedBuffer) PacketDependencies() *coreaudiotypes.AudioStreamPacketDependencyDescription
@property packetDependencies @abstract Access the buffer's array of packet dependencies, if any. @discussion If the format doesn't employ packet dependencies, this will be nil.
func (*AVAudioCompressedBuffer) PacketDescriptions ¶
func (o *AVAudioCompressedBuffer) PacketDescriptions() *coreaudiotypes.AudioStreamPacketDescription
@property packetDescriptions @abstract Access the buffer's array of packet descriptions, if any. @discussion If the format has constant bytes per packet (format.streamDescription->mBytesPerPacket != 0), then this will return nil.
func (*AVAudioCompressedBuffer) SetByteLength ¶
func (o *AVAudioCompressedBuffer) SetByteLength(byteLength uint32)
func (*AVAudioCompressedBuffer) SetPacketCount ¶
func (o *AVAudioCompressedBuffer) SetPacketCount(packetCount uint32)
type AVAudioConnectionPoint ¶
type AVAudioConnectionPoint struct {
foundation.NSObject
}
A representation of either a source or destination connection point in the audio engine.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudioconnectionpoint
func AVAudioConnectionPointFromID ¶
func AVAudioConnectionPointFromID(id objc.ID) *AVAudioConnectionPoint
func (*AVAudioConnectionPoint) Bus ¶
func (o *AVAudioConnectionPoint) Bus() uint
@property bus @abstract Returns the bus on the node in the connection point.
func (*AVAudioConnectionPoint) InitWithNodeBus ¶
func (o *AVAudioConnectionPoint) InitWithNodeBus(node *AVAudioNode, bus uint) *AVAudioConnectionPoint
Creates a connection point object.
func (*AVAudioConnectionPoint) Node ¶
func (o *AVAudioConnectionPoint) Node() *AVAudioNode
@property node @abstract Returns the node in the connection point.
type AVAudioContentSource ¶
type AVAudioContentSource int64
const ( AVAudioContentSource_Unspecified AVAudioContentSource = -1 AVAudioContentSource_Reserved AVAudioContentSource = 0 AVAudioContentSource_AppleCapture_Traditional AVAudioContentSource = 1 AVAudioContentSource_AppleCapture_Spatial AVAudioContentSource = 2 AVAudioContentSource_AppleCapture_Spatial_Enhanced AVAudioContentSource = 3 AVAudioContentSource_AppleMusic_Traditional AVAudioContentSource = 4 AVAudioContentSource_AppleMusic_Spatial AVAudioContentSource = 5 AVAudioContentSource_AppleAV_Traditional_Offline AVAudioContentSource = 6 AVAudioContentSource_AppleAV_Spatial_Offline AVAudioContentSource = 7 AVAudioContentSource_AppleAV_Traditional_Live AVAudioContentSource = 8 AVAudioContentSource_AppleAV_Spatial_Live AVAudioContentSource = 9 AVAudioContentSource_ApplePassthrough AVAudioContentSource = 10 AVAudioContentSource_Capture_Traditional AVAudioContentSource = 33 AVAudioContentSource_Capture_Spatial AVAudioContentSource = 34 AVAudioContentSource_Capture_Spatial_Enhanced AVAudioContentSource = 35 AVAudioContentSource_Music_Traditional AVAudioContentSource = 36 AVAudioContentSource_Music_Spatial AVAudioContentSource = 37 AVAudioContentSource_AV_Traditional_Offline AVAudioContentSource = 38 AVAudioContentSource_AV_Spatial_Offline AVAudioContentSource = 39 AVAudioContentSource_AV_Traditional_Live AVAudioContentSource = 40 AVAudioContentSource_AV_Spatial_Live AVAudioContentSource = 41 AVAudioContentSource_Passthrough AVAudioContentSource = 42 )
func (AVAudioContentSource) String ¶
func (e AVAudioContentSource) String() string
type AVAudioConverter ¶
type AVAudioConverter struct {
foundation.NSObject
}
An object that converts streams of audio between formats.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudioconverter
func AVAudioConverterFromID ¶
func AVAudioConverterFromID(id objc.ID) *AVAudioConverter
func (*AVAudioConverter) ApplicableEncodeBitRates ¶
func (o *AVAudioConverter) ApplicableEncodeBitRates() *foundation.NSArray[*foundation.NSNumber]
@property applicableEncodeBitRates @abstract When encoding, an NSArray of NSNumber of bit rates that can be applied based on the current formats and settings. Returns nil if not encoding.
func (*AVAudioConverter) ApplicableEncodeSampleRates ¶
func (o *AVAudioConverter) ApplicableEncodeSampleRates() *foundation.NSArray[*foundation.NSNumber]
@property applicableEncodeSampleRates @abstract When encoding, an NSArray of NSNumber of output sample rates that can be applied based on the current formats and settings. Returns nil if not encoding.
func (*AVAudioConverter) AudioSyncPacketFrequency ¶
func (o *AVAudioConverter) AudioSyncPacketFrequency() int
@property audioSyncPacketFrequency @abstract Number of packets between consecutive sync packets. @discussion A sync packet is an independently-decodable packet that completely refreshes the decoder without needing to decode other packets. When compressing to a format which supports it (such as APAC), the audio sync packet frequency indicates the distance in packets between two sync packets, with non-sync packets between. This is useful to set when saving compressed packets to a file and efficient random access is desired. Note: Separating sync packets by at least one second of encoded audio (e.g. 75 packets) is recommended.
func (*AVAudioConverter) AvailableEncodeBitRates ¶
func (o *AVAudioConverter) AvailableEncodeBitRates() *foundation.NSArray[*foundation.NSNumber]
@property availableEncodeBitRates @abstract When encoding, an NSArray of NSNumber of all bit rates provided by the codec. Returns nil if not encoding.
func (*AVAudioConverter) AvailableEncodeChannelLayoutTags ¶
func (o *AVAudioConverter) AvailableEncodeChannelLayoutTags() *foundation.NSArray[*foundation.NSNumber]
@property availableEncodeChannelLayoutTags @abstract When encoding, an NSArray of NSNumber of all output channel layout tags provided by the codec. Returns nil if not encoding.
func (*AVAudioConverter) AvailableEncodeSampleRates ¶
func (o *AVAudioConverter) AvailableEncodeSampleRates() *foundation.NSArray[*foundation.NSNumber]
@property availableEncodeSampleRates @abstract When encoding, an NSArray of NSNumber of all output sample rates provided by the codec. Returns nil if not encoding.
func (*AVAudioConverter) BitRate ¶
func (o *AVAudioConverter) BitRate() int
@property bitRate @abstract bitRate in bits per second. Only applies when encoding.
func (*AVAudioConverter) BitRateStrategy ¶
func (o *AVAudioConverter) BitRateStrategy() *foundation.NSString
@property bitRateStrategy @abstract When encoding, an AVEncoderBitRateStrategyKey value constant as defined in AVAudioSettings.h. Returns nil if not encoding.
func (*AVAudioConverter) ChannelMap ¶
func (o *AVAudioConverter) ChannelMap() *foundation.NSArray[*foundation.NSNumber]
@property channelMap @abstract An array of integers indicating from which input to derive each output. @discussion The array has size equal to the number of output channels. Each element's value is the input channel number, starting with zero, that is to be copied to that output. A negative value means that the output channel will have no source and will be silent. Setting a channel map overrides channel mapping due to any channel layouts in the input and output formats that may have been supplied.
func (*AVAudioConverter) ContentSource ¶
func (o *AVAudioConverter) ContentSource() AVAudioContentSource
@property contentSource @abstract Index to select a pre-defined content source type that describes the content type and how it was generated. Note: This is only supported when compressing audio to formats which support it.
func (*AVAudioConverter) ConvertToBufferErrorWithInputFromBlock ¶
func (o *AVAudioConverter) ConvertToBufferErrorWithInputFromBlock(outputBuffer *AVAudioBuffer, outError unsafe.Pointer, inputBlock objc.Block) AVAudioConverterOutputStatus
Performs a conversion between audio formats, if the system supports it.
func (*AVAudioConverter) ConvertToBufferFromBufferError ¶
func (o *AVAudioConverter) ConvertToBufferFromBufferError(outputBuffer *AVAudioPCMBuffer, inputBuffer *AVAudioPCMBuffer) (bool, error)
Performs a basic conversion between audio formats that doesn’t involve converting codecs or sample rates.
func (*AVAudioConverter) Dither ¶
func (o *AVAudioConverter) Dither() bool
@property dither @abstract Setting YES will turn on dither, if dither makes sense in given the current formats and settings. Default value is NO.
func (*AVAudioConverter) Downmix ¶
func (o *AVAudioConverter) Downmix() bool
@property downmix @abstract If YES and channel remapping is necessary, then channels will be mixed as appropriate instead of remapped. Default value is NO.
func (*AVAudioConverter) DynamicRangeControlConfiguration ¶
func (o *AVAudioConverter) DynamicRangeControlConfiguration() AVAudioDynamicRangeControlConfiguration
@property dynamicRangeControlConfiguration @abstract Encoder Dynamic Range Control (DRC) configuration. @discussion When supported by the encoder, this property controls which configuration is applied when a bitstream is generated. Note: This is only supported when compressing audio to formats which support it.
func (*AVAudioConverter) InitFromFormatToFormat ¶
func (o *AVAudioConverter) InitFromFormatToFormat(fromFormat *AVAudioFormat, toFormat *AVAudioFormat) *AVAudioConverter
Creates an audio converter object from the specified input and output formats.
func (*AVAudioConverter) InputFormat ¶
func (o *AVAudioConverter) InputFormat() *AVAudioFormat
@property inputFormat @abstract The format of the input audio stream. (NB. AVAudioFormat includes the channel layout)
func (*AVAudioConverter) MagicCookie ¶
func (o *AVAudioConverter) MagicCookie() *foundation.NSData
@property magicCookie @abstract Decoders require some data in the form of a magicCookie in order to decode properly. Encoders will produce a magicCookie.
func (*AVAudioConverter) MaximumOutputPacketSize ¶
func (o *AVAudioConverter) MaximumOutputPacketSize() int
@property maximumOutputPacketSize @abstract The maximum size of an output packet, in bytes. @discussion When encoding it is useful to know how large a packet can be in order to allocate a buffer to receive the output.
func (*AVAudioConverter) OutputFormat ¶
func (o *AVAudioConverter) OutputFormat() *AVAudioFormat
@property outputFormat @abstract The format of the output audio stream. (NB. AVAudioFormat includes the channel layout)
func (*AVAudioConverter) PrimeInfo ¶
func (o *AVAudioConverter) PrimeInfo() AVAudioConverterPrimeInfo
@property primeInfo @abstract Indicates the the number of priming frames.
func (*AVAudioConverter) PrimeMethod ¶
func (o *AVAudioConverter) PrimeMethod() AVAudioConverterPrimeMethod
@property primeMethod @abstract Indicates the priming method to be used by the sample rate converter or decoder.
func (*AVAudioConverter) Reset ¶
func (o *AVAudioConverter) Reset()
Resets the converter so you can convert a new audio stream.
func (*AVAudioConverter) SampleRateConverterAlgorithm ¶
func (o *AVAudioConverter) SampleRateConverterAlgorithm() *foundation.NSString
@property sampleRateConverterAlgorithm @abstract An AVSampleRateConverterAlgorithmKey value as defined in AVAudioSettings.h.
func (*AVAudioConverter) SampleRateConverterQuality ¶
func (o *AVAudioConverter) SampleRateConverterQuality() int
@property sampleRateConverterQuality @abstract An AVAudioQuality value as defined in AVAudioSettings.h.
func (*AVAudioConverter) SetAudioSyncPacketFrequency ¶
func (o *AVAudioConverter) SetAudioSyncPacketFrequency(audioSyncPacketFrequency int)
func (*AVAudioConverter) SetBitRate ¶
func (o *AVAudioConverter) SetBitRate(bitRate int)
func (*AVAudioConverter) SetBitRateStrategy ¶
func (o *AVAudioConverter) SetBitRateStrategy(bitRateStrategy *foundation.NSString)
func (*AVAudioConverter) SetChannelMap ¶
func (o *AVAudioConverter) SetChannelMap(channelMap *foundation.NSArray[*foundation.NSNumber])
func (*AVAudioConverter) SetContentSource ¶
func (o *AVAudioConverter) SetContentSource(contentSource AVAudioContentSource)
func (*AVAudioConverter) SetDither ¶
func (o *AVAudioConverter) SetDither(dither bool)
func (*AVAudioConverter) SetDownmix ¶
func (o *AVAudioConverter) SetDownmix(downmix bool)
func (*AVAudioConverter) SetDynamicRangeControlConfiguration ¶
func (o *AVAudioConverter) SetDynamicRangeControlConfiguration(dynamicRangeControlConfiguration AVAudioDynamicRangeControlConfiguration)
func (*AVAudioConverter) SetMagicCookie ¶
func (o *AVAudioConverter) SetMagicCookie(magicCookie *foundation.NSData)
func (*AVAudioConverter) SetPrimeInfo ¶
func (o *AVAudioConverter) SetPrimeInfo(primeInfo AVAudioConverterPrimeInfo)
func (*AVAudioConverter) SetPrimeMethod ¶
func (o *AVAudioConverter) SetPrimeMethod(primeMethod AVAudioConverterPrimeMethod)
func (*AVAudioConverter) SetSampleRateConverterAlgorithm ¶
func (o *AVAudioConverter) SetSampleRateConverterAlgorithm(sampleRateConverterAlgorithm *foundation.NSString)
func (*AVAudioConverter) SetSampleRateConverterQuality ¶
func (o *AVAudioConverter) SetSampleRateConverterQuality(sampleRateConverterQuality int)
type AVAudioConverterInputStatus ¶
type AVAudioConverterInputStatus int64
An option that indicates the status of an audio converter input block.
const ( // A status that indicates the normal case where you supply data to the converter. AVAudioConverterInputStatus_HaveData AVAudioConverterInputStatus = 0 // A status that indicates you’re out of data. AVAudioConverterInputStatus_NoDataNow AVAudioConverterInputStatus = 1 // A status that indicates you’re at the end of an audio stream. AVAudioConverterInputStatus_EndOfStream AVAudioConverterInputStatus = 2 )
func (AVAudioConverterInputStatus) String ¶
func (e AVAudioConverterInputStatus) String() string
type AVAudioConverterOutputStatus ¶
type AVAudioConverterOutputStatus int64
An option that indicates the return status of an audio converter method.
const ( // A status that indicates that the method returns all of the requested data. AVAudioConverterOutputStatus_HaveData AVAudioConverterOutputStatus = 0 // A status that indicates the method doesn’t have enough input available to satisfy the request. AVAudioConverterOutputStatus_InputRanDry AVAudioConverterOutputStatus = 1 // A status that indicates the method reaches the end of the stream, and doesn’t return any data. AVAudioConverterOutputStatus_EndOfStream AVAudioConverterOutputStatus = 2 // A status that indicates the method encounters an error. AVAudioConverterOutputStatus_Error AVAudioConverterOutputStatus = 3 )
func (AVAudioConverterOutputStatus) String ¶
func (e AVAudioConverterOutputStatus) String() string
type AVAudioConverterPrimeInfo ¶
Priming information for audio conversion.
type AVAudioConverterPrimeMethod ¶
type AVAudioConverterPrimeMethod int64
Options for the prime method property.
const ( // An option to prime with leading and trailing input frames. AVAudioConverterPrimeMethod_Pre AVAudioConverterPrimeMethod = 0 // An option to prime with trailing (zero latency) frames where the converter assumes the leading frames are silence. AVAudioConverterPrimeMethod_Normal AVAudioConverterPrimeMethod = 1 // An option to prime the converter assumes leading and trailing frames are silence. AVAudioConverterPrimeMethod_None AVAudioConverterPrimeMethod = 2 )
func (AVAudioConverterPrimeMethod) String ¶
func (e AVAudioConverterPrimeMethod) String() string
type AVAudioDynamicRangeControlConfiguration ¶
type AVAudioDynamicRangeControlConfiguration int64
const ( AVAudioDynamicRangeControlConfiguration_None AVAudioDynamicRangeControlConfiguration = 0 AVAudioDynamicRangeControlConfiguration_Music AVAudioDynamicRangeControlConfiguration = 1 AVAudioDynamicRangeControlConfiguration_Speech AVAudioDynamicRangeControlConfiguration = 2 AVAudioDynamicRangeControlConfiguration_Movie AVAudioDynamicRangeControlConfiguration = 3 AVAudioDynamicRangeControlConfiguration_Capture AVAudioDynamicRangeControlConfiguration = 4 )
func (AVAudioDynamicRangeControlConfiguration) String ¶
func (e AVAudioDynamicRangeControlConfiguration) String() string
type AVAudioEngine ¶
type AVAudioEngine struct {
foundation.NSObject
}
An object that manages a graph of audio nodes, controls playback, and configures real-time rendering constraints.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudioengine
func AVAudioEngineFromID ¶
func AVAudioEngineFromID(id objc.ID) *AVAudioEngine
func (*AVAudioEngine) AttachNode ¶
func (o *AVAudioEngine) AttachNode(node *AVAudioNode)
Attaches an audio node to the audio engine.
func (*AVAudioEngine) AttachedNodes ¶
func (o *AVAudioEngine) AttachedNodes() *foundation.NSSet[*AVAudioNode]
@property attachedNodes @abstract Set of all nodes attached to the engine.
func (*AVAudioEngine) ConnectMIDIToFormatBlock ¶
func (o *AVAudioEngine) ConnectMIDIToFormatBlock(sourceNode *AVAudioNode, destinationNode *AVAudioNode, format *AVAudioFormat, tapBlock func(int64, uint8, int, unsafe.Pointer) int)
Establishes a MIDI-only connection between two nodes. Deprecated: since macOS 13.0.
func (*AVAudioEngine) ConnectMIDIToFormatEventListBlock ¶
func (o *AVAudioEngine) ConnectMIDIToFormatEventListBlock(sourceNode *AVAudioNode, destinationNode *AVAudioNode, format *AVAudioFormat, tapBlock func(int64, uint8, unsafe.Pointer) int)
Establishes a MIDI connection between two nodes.
func (*AVAudioEngine) ConnectMIDIToNodesFormatBlock ¶
func (o *AVAudioEngine) ConnectMIDIToNodesFormatBlock(sourceNode *AVAudioNode, destinationNodes *foundation.NSArray[*AVAudioNode], format *AVAudioFormat, tapBlock func(int64, uint8, int, unsafe.Pointer) int)
Establishes a MIDI-only connection between a source node and multiple destination nodes. Deprecated: since macOS 13.0.
func (*AVAudioEngine) ConnectMIDIToNodesFormatEventListBlock ¶
func (o *AVAudioEngine) ConnectMIDIToNodesFormatEventListBlock(sourceNode *AVAudioNode, destinationNodes *foundation.NSArray[*AVAudioNode], format *AVAudioFormat, tapBlock func(int64, uint8, unsafe.Pointer) int)
Establishes a MIDI connection between a source node and multiple destination nodes.
func (*AVAudioEngine) ConnectToConnectionPointsFromBusFormat ¶
func (o *AVAudioEngine) ConnectToConnectionPointsFromBusFormat(sourceNode *AVAudioNode, destNodes *foundation.NSArray[*AVAudioConnectionPoint], sourceBus uint, format *AVAudioFormat)
Establishes a connection between a source node and multiple destination nodes.
func (*AVAudioEngine) ConnectToFormat ¶
func (o *AVAudioEngine) ConnectToFormat(node1 *AVAudioNode, node2 *AVAudioNode, format *AVAudioFormat)
Establishes a connection between two nodes.
func (*AVAudioEngine) ConnectToFromBusToBusFormat ¶
func (o *AVAudioEngine) ConnectToFromBusToBusFormat(node1 *AVAudioNode, node2 *AVAudioNode, bus1 uint, bus2 uint, format *AVAudioFormat)
Establishes a connection between two nodes, specifying the input and output busses.
func (*AVAudioEngine) DetachNode ¶
func (o *AVAudioEngine) DetachNode(node *AVAudioNode)
Detaches an audio node from the audio engine.
func (*AVAudioEngine) DisableManualRenderingMode ¶
func (o *AVAudioEngine) DisableManualRenderingMode()
Sets the engine to render to or from an audio device.
func (*AVAudioEngine) DisconnectMIDIFrom ¶
func (o *AVAudioEngine) DisconnectMIDIFrom(sourceNode *AVAudioNode, destinationNode *AVAudioNode)
Removes a MIDI connection between two nodes.
func (*AVAudioEngine) DisconnectMIDIFromNodes ¶
func (o *AVAudioEngine) DisconnectMIDIFromNodes(sourceNode *AVAudioNode, destinationNodes *foundation.NSArray[*AVAudioNode])
Removes a MIDI connection between one source node and multiple destination nodes.
func (*AVAudioEngine) DisconnectMIDIInput ¶
func (o *AVAudioEngine) DisconnectMIDIInput(node *AVAudioNode)
Disconnects all input MIDI connections from a node.
func (*AVAudioEngine) DisconnectMIDIOutput ¶
func (o *AVAudioEngine) DisconnectMIDIOutput(node *AVAudioNode)
Disconnects all output MIDI connections from a node.
func (*AVAudioEngine) DisconnectNodeInput ¶
func (o *AVAudioEngine) DisconnectNodeInput(node *AVAudioNode)
Removes all input connections of the node.
func (*AVAudioEngine) DisconnectNodeInputBus ¶
func (o *AVAudioEngine) DisconnectNodeInputBus(node *AVAudioNode, bus uint)
Removes the input connection of a node on the specified bus.
func (*AVAudioEngine) DisconnectNodeOutput ¶
func (o *AVAudioEngine) DisconnectNodeOutput(node *AVAudioNode)
Removes all output connections of a node.
func (*AVAudioEngine) DisconnectNodeOutputBus ¶
func (o *AVAudioEngine) DisconnectNodeOutputBus(node *AVAudioNode, bus uint)
Removes the output connection of a node on the specified bus.
func (*AVAudioEngine) EnableManualRenderingModeFormatMaximumFrameCountError ¶
func (o *AVAudioEngine) EnableManualRenderingModeFormatMaximumFrameCountError(mode AVAudioEngineManualRenderingMode, pcmFormat *AVAudioFormat, maximumFrameCount uint32) (bool, error)
Sets the engine to operate in manual rendering mode with the render format and maximum frame count you specify.
func (*AVAudioEngine) Init ¶
func (o *AVAudioEngine) Init() *AVAudioEngine
Creates an audio engine instance for rendering in real time.
func (*AVAudioEngine) InputConnectionPointForNodeInputBus ¶
func (o *AVAudioEngine) InputConnectionPointForNodeInputBus(node *AVAudioNode, bus uint) *AVAudioConnectionPoint
Returns connection information about a node’s input bus.
func (*AVAudioEngine) InputNode ¶
func (o *AVAudioEngine) InputNode() *AVAudioInputNode
@property inputNode @abstract The engine's singleton input node. Audio input is performed via an input node. The engine creates a singleton on demand when this property is first accessed. To receive input, connect another node from the output of the input node, or create a recording tap on it. When the engine is rendering to/from an audio device, the AVAudioSesssion category and/or availability of hardware determine whether an app can perform input. Check for the input node's input format (i.e. hardware format) for non-zero sample rate and channel count to see if input is enabled. Trying to perform input through the input node when it is not enabled or available will cause the engine to throw an error (when possible) or an exception. Note that if the engine has at any point previously had its inputNode enabled and permission to record was granted, then any time the engine is running, the mic-in-use indicator will appear. For applications which may need to dynamically switch between output-only and input-output modes, it may be advantageous to use two engine instances. In manual rendering mode, the input node can be used to synchronously supply data to the engine while it is rendering (see `AVAudioInputNode(setManualRenderingInputPCMFormat:inputBlock:)`.
func (*AVAudioEngine) IsAutoShutdownEnabled ¶
func (o *AVAudioEngine) IsAutoShutdownEnabled() bool
@property autoShutdownEnabled @abstract When auto shutdown is enabled, the engine can start and stop the audio hardware dynamically, to conserve power. This is the enforced behavior on watchOS and can be optionally enabled on other platforms. To conserve power, it is advised that the client pause/stop the engine when not in use. But when auto shutdown is enabled, the engine will stop the audio hardware if it was running idle for a certain duration, and restart it later when required. Note that, because this operation is dynamic, it may affect the start times of the source nodes (e.g. `AVAudioPlayerNode`), if the engine has to resume from its shutdown state. On watchOS, auto shutdown is always enabled. On other platforms, it is disabled by default, but the client can enable it if needed. This property is applicable only when the engine is rendering to/from an audio device. If the value is changed when the engine is in manual rendering mode, it will take effect whenever the engine is switched to render to/from the audio device.
func (*AVAudioEngine) IsInManualRenderingMode ¶
func (o *AVAudioEngine) IsInManualRenderingMode() bool
@property isInManualRenderingMode @abstract Whether or not the engine is operating in manual rendering mode, i.e. not connected to an audio device and rendering in response to the requests from the client
func (*AVAudioEngine) IsRunning ¶
func (o *AVAudioEngine) IsRunning() bool
@property running @abstract The engine's running state.
func (*AVAudioEngine) MainMixerNode ¶
func (o *AVAudioEngine) MainMixerNode() *AVAudioMixerNode
@property mainMixerNode @abstract The engine's optional singleton main mixer node. The engine will construct a singleton main mixer and connect it to the outputNode on demand, when this property is first accessed. You can then connect additional nodes to the mixer. If the client has never explicitly set the connection format between the mainMixerNode and the outputNode, the engine will always set/update the format to track the format of the outputNode on (re)start, even after an AVAudioEngineConfigurationChangeNotification. Otherwise, it's the client's responsibility to set/update this connection format after an AVAudioEngineConfigurationChangeNotification. By default, the mixer's output format (sample rate and channel count) will track the format of the output node. You may however make the connection explicitly with a different format.
func (*AVAudioEngine) ManualRenderingBlock ¶
func (o *AVAudioEngine) ManualRenderingBlock() objc.Block
@property manualRenderingBlock @abstract Block to render the engine operating in manual rendering mode This block based render call must be used to render the engine when operating in `AVAudioEngineManualRenderingModeRealtime`. In this mode, the engine operates under realtime constraints and will not make any blocking call (e.g. calling libdispatch, blocking on a mutex, allocating memory etc.) while rendering. Before invoking the rendering functionality, client must fetch this block and cache the result. The block can then be called from a realtime context, without any possibility of blocking. When rendering in `AVAudioEngineManualRenderingModeOffline`, either this block based render call or `renderOffline:toBuffer:error:` ObjC method can be used. All the rules outlined in `renderOffline:toBuffer:error:` are applicable here as well.
func (*AVAudioEngine) ManualRenderingFormat ¶
func (o *AVAudioEngine) ManualRenderingFormat() *AVAudioFormat
@property manualRenderingFormat @abstract The render format of the engine in manual rendering mode. Querying this property when the engine is not in manual rendering mode will return an invalid format, with zero sample rate and channel count.
func (*AVAudioEngine) ManualRenderingMaximumFrameCount ¶
func (o *AVAudioEngine) ManualRenderingMaximumFrameCount() uint32
@property manualRenderingMaximumFrameCount @abstract The maximum number of PCM sample frames the engine can produce in any single render call in the manual rendering mode. Querying this property when the engine is not in manual rendering mode will return zero.
func (*AVAudioEngine) ManualRenderingMode ¶
func (o *AVAudioEngine) ManualRenderingMode() AVAudioEngineManualRenderingMode
@property manualRenderingMode @abstract The manual rendering mode configured on the engine This property is meaningful only when the engine is operating in manual rendering mode, i.e. when `isInManualRenderingMode` returns true.
func (*AVAudioEngine) ManualRenderingSampleTime ¶
func (o *AVAudioEngine) ManualRenderingSampleTime() int64
@property manualRenderingSampleTime @abstract Indicates where the engine is on its render timeline in manual rendering mode. The timeline in manual rendering mode starts at a sample time of zero, and is in terms of the render format's sample rate. Resetting the engine (see `reset`) will reset the timeline back to zero.
func (*AVAudioEngine) MusicSequence ¶
func (o *AVAudioEngine) MusicSequence() unsafe.Pointer
@property musicSequence @abstract The MusicSequence previously attached to the engine (if any).
func (*AVAudioEngine) OutputConnectionPointsForNodeOutputBus ¶
func (o *AVAudioEngine) OutputConnectionPointsForNodeOutputBus(node *AVAudioNode, bus uint) *foundation.NSArray[*AVAudioConnectionPoint]
Returns connection information about a node’s output bus.
func (*AVAudioEngine) OutputNode ¶
func (o *AVAudioEngine) OutputNode() *AVAudioOutputNode
@property outputNode @abstract The engine's singleton output node. Audio output is performed via an output node. The engine creates a singleton on demand when this property is first accessed. Connect another node to the input of the output node, or obtain a mixer that is connected there by default, using the "mainMixerNode" property. When the engine is rendering to/from an audio device, the AVAudioSesssion category and/or availability of hardware determine whether an app can perform output. Check the output format of output node (i.e. hardware format) for non-zero sample rate and channel count to see if output is enabled. Trying to perform output through the output node when it is not enabled or available will cause the engine to throw an error (when possible) or an exception. In manual rendering mode, the output format of the output node will determine the render format of the engine. It can be changed through `enableManualRenderingMode:format:maximumFrameCount:error:`.
func (*AVAudioEngine) Prepare ¶
func (o *AVAudioEngine) Prepare()
Prepares the audio engine for starting.
func (*AVAudioEngine) RenderOfflineToBufferError ¶
func (o *AVAudioEngine) RenderOfflineToBufferError(numberOfFrames uint32, buffer *AVAudioPCMBuffer) (AVAudioEngineManualRenderingStatus, error)
Makes a render call to the engine operating in the offline manual rendering mode.
func (*AVAudioEngine) Reset ¶
func (o *AVAudioEngine) Reset()
Resets all audio nodes in the audio engine.
func (*AVAudioEngine) SetAutoShutdownEnabled ¶
func (o *AVAudioEngine) SetAutoShutdownEnabled(autoShutdownEnabled bool)
func (*AVAudioEngine) SetMusicSequence ¶
func (o *AVAudioEngine) SetMusicSequence(musicSequence unsafe.Pointer)
func (*AVAudioEngine) StartAndReturnError ¶
func (o *AVAudioEngine) StartAndReturnError() (bool, error)
Starts the audio engine.
func (*AVAudioEngine) Stop ¶
func (o *AVAudioEngine) Stop()
Stops the audio engine and releases any previously prepared resources.
type AVAudioEngineManualRenderingError ¶
type AVAudioEngineManualRenderingError int64
Constants that describe error codes that the framework returns from manual rendering mode methods.
const ( // An operation the system can’t perform because the engine isn’t in manual rendering mode or the right variant of it. AVAudioEngineManualRenderingErrorInvalidMode AVAudioEngineManualRenderingError = -80800 // An operation that the system can’t perform because the engine is still running. AVAudioEngineManualRenderingErrorInitialized AVAudioEngineManualRenderingError = -80801 // An operation the system can’t perform because the engine isn’t running. AVAudioEngineManualRenderingErrorNotRunning AVAudioEngineManualRenderingError = -80802 )
func (AVAudioEngineManualRenderingError) String ¶
func (e AVAudioEngineManualRenderingError) String() string
type AVAudioEngineManualRenderingMode ¶
type AVAudioEngineManualRenderingMode int64
The two modes for manual rendering.
const ( // An engine that operates in an offline mode. AVAudioEngineManualRenderingModeOffline AVAudioEngineManualRenderingMode = 0 // An engine that operates under real-time constraints and doesn’t make blocking calls while rendering. AVAudioEngineManualRenderingModeRealtime AVAudioEngineManualRenderingMode = 1 )
func (AVAudioEngineManualRenderingMode) String ¶
func (e AVAudioEngineManualRenderingMode) String() string
type AVAudioEngineManualRenderingStatus ¶
type AVAudioEngineManualRenderingStatus int64
Status codes that return from the render call to the engine operating in manual rendering mode.
const ( // A problem that occurs during rendering and results in no data returning. AVAudioEngineManualRenderingStatusError AVAudioEngineManualRenderingStatus = -1 // A status that indicates the successful return of the requested data. AVAudioEngineManualRenderingStatusSuccess AVAudioEngineManualRenderingStatus = 0 // A condition that occurs when the input node doesn’t return enough input data to satisfy the render request at the time of the request. AVAudioEngineManualRenderingStatusInsufficientDataFromInputNode AVAudioEngineManualRenderingStatus = 1 // An operation that the system can’t perform under the current conditions. AVAudioEngineManualRenderingStatusCannotDoInCurrentContext AVAudioEngineManualRenderingStatus = 2 )
func (AVAudioEngineManualRenderingStatus) String ¶
func (e AVAudioEngineManualRenderingStatus) String() string
type AVAudioEnvironmentDistanceAttenuationModel ¶
type AVAudioEnvironmentDistanceAttenuationModel int64
Types of distance attenuation models.
const ( // An exponential model that describes the drop-off in gain as the source moves away from the listener. AVAudioEnvironmentDistanceAttenuationModelExponential AVAudioEnvironmentDistanceAttenuationModel = 1 // An inverse model that describes the drop-off in gain as the source moves away from the listener. AVAudioEnvironmentDistanceAttenuationModelInverse AVAudioEnvironmentDistanceAttenuationModel = 2 // A linear model that describes the drop-off in gain as the source moves away from the listener. AVAudioEnvironmentDistanceAttenuationModelLinear AVAudioEnvironmentDistanceAttenuationModel = 3 )
func (AVAudioEnvironmentDistanceAttenuationModel) String ¶
func (e AVAudioEnvironmentDistanceAttenuationModel) String() string
type AVAudioEnvironmentDistanceAttenuationParameters ¶
type AVAudioEnvironmentDistanceAttenuationParameters struct {
foundation.NSObject
}
An object that specifies the amount of attenuation distance, the gradual loss in audio intensity, and other characteristics.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudioenvironmentdistanceattenuationparameters
func AVAudioEnvironmentDistanceAttenuationParametersFromID ¶
func AVAudioEnvironmentDistanceAttenuationParametersFromID(id objc.ID) *AVAudioEnvironmentDistanceAttenuationParameters
func (*AVAudioEnvironmentDistanceAttenuationParameters) DistanceAttenuationModel ¶
func (o *AVAudioEnvironmentDistanceAttenuationParameters) DistanceAttenuationModel() AVAudioEnvironmentDistanceAttenuationModel
@property distanceAttenuationModel @abstract Type of distance attenuation model @discussion Default: AVAudioEnvironmentDistanceAttenuationModelInverse
func (*AVAudioEnvironmentDistanceAttenuationParameters) MaximumDistance ¶
func (o *AVAudioEnvironmentDistanceAttenuationParameters) MaximumDistance() float32
@property maximumDistance @abstract The distance beyond which no further attenuation is applied @discussion Default: 100000.0 meters Models: AVAudioEnvironmentDistanceAttenuationModelLinear
func (*AVAudioEnvironmentDistanceAttenuationParameters) ReferenceDistance ¶
func (o *AVAudioEnvironmentDistanceAttenuationParameters) ReferenceDistance() float32
@property referenceDistance @abstract The minimum distance at which attenuation is applied @discussion Default: 1.0 meter Models: AVAudioEnvironmentDistanceAttenuationModelInverse, AVAudioEnvironmentDistanceAttenuationModelLinear
func (*AVAudioEnvironmentDistanceAttenuationParameters) RolloffFactor ¶
func (o *AVAudioEnvironmentDistanceAttenuationParameters) RolloffFactor() float32
@property rolloffFactor @abstract Determines the attenuation curve @discussion A higher value results in a steeper attenuation curve. The rolloff factor should be a value greater than 0. Default: 1.0 Models: AVAudioEnvironmentDistanceAttenuationModelExponential AVAudioEnvironmentDistanceAttenuationModelInverse AVAudioEnvironmentDistanceAttenuationModelLinear
func (*AVAudioEnvironmentDistanceAttenuationParameters) SetDistanceAttenuationModel ¶
func (o *AVAudioEnvironmentDistanceAttenuationParameters) SetDistanceAttenuationModel(distanceAttenuationModel AVAudioEnvironmentDistanceAttenuationModel)
func (*AVAudioEnvironmentDistanceAttenuationParameters) SetMaximumDistance ¶
func (o *AVAudioEnvironmentDistanceAttenuationParameters) SetMaximumDistance(maximumDistance float32)
func (*AVAudioEnvironmentDistanceAttenuationParameters) SetReferenceDistance ¶
func (o *AVAudioEnvironmentDistanceAttenuationParameters) SetReferenceDistance(referenceDistance float32)
func (*AVAudioEnvironmentDistanceAttenuationParameters) SetRolloffFactor ¶
func (o *AVAudioEnvironmentDistanceAttenuationParameters) SetRolloffFactor(rolloffFactor float32)
type AVAudioEnvironmentNode ¶
type AVAudioEnvironmentNode struct {
AVAudioNode
}
An object that simulates a 3D audio environment.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudioenvironmentnode
func AVAudioEnvironmentNodeFromID ¶
func AVAudioEnvironmentNodeFromID(id objc.ID) *AVAudioEnvironmentNode
func (*AVAudioEnvironmentNode) ApplicableRenderingAlgorithms ¶
func (o *AVAudioEnvironmentNode) ApplicableRenderingAlgorithms() *foundation.NSArray[*foundation.NSNumber]
@property applicableRenderingAlgorithms @abstract Returns an array of AVAudio3DMixingRenderingAlgorithm values based on the current output format @discussion AVAudioEnvironmentNode supports several rendering algorithms per input bus which are defined in <AVFAudio/AVAudioMixing.h>. Depending on the current output format of the environment node, this method returns an immutable array of the applicable rendering algorithms. This is important when the environment node has been configured to a multichannel output format because only a subset of the available rendering algorithms are designed to render to all of the channels. This information should be retrieved after a successful connection to the destination node via the engine's connect method.
func (*AVAudioEnvironmentNode) DistanceAttenuationParameters ¶
func (o *AVAudioEnvironmentNode) DistanceAttenuationParameters() *AVAudioEnvironmentDistanceAttenuationParameters
@property distanceAttenuationParameters @abstract The distance attenuation parameters for the environment
func (*AVAudioEnvironmentNode) Init ¶
func (o *AVAudioEnvironmentNode) Init() *AVAudioEnvironmentNode
Creates a new environment node object.
func (*AVAudioEnvironmentNode) IsListenerHeadTrackingEnabled ¶
func (o *AVAudioEnvironmentNode) IsListenerHeadTrackingEnabled() bool
@property listenerHeadTrackingEnabled @abstract On capable devices, listener orientation will be automatically rotated based on user's head-orientation if enabled.
func (*AVAudioEnvironmentNode) ListenerAngularOrientation ¶
func (o *AVAudioEnvironmentNode) ListenerAngularOrientation() AVAudio3DAngularOrientation
@property listenerAngularOrientation @abstract The listener's orientation in the environment @discussion Changing listenerAngularOrientation will result in a corresponding change in listenerVectorOrientation. All angles are specified in degrees. Default: The default orientation is with the listener looking directly along the negative Z axis. yaw: 0.0 pitch: 0.0 roll: 0.0
func (*AVAudioEnvironmentNode) ListenerPosition ¶
func (o *AVAudioEnvironmentNode) ListenerPosition() AVAudio3DPoint
@property listenerPosition @abstract Sets the listener's position in the 3D environment @discussion The coordinates are specified in meters. Default: The default position of the listener is at the origin. x: 0.0 y: 0.0 z: 0.0
func (*AVAudioEnvironmentNode) ListenerVectorOrientation ¶
func (o *AVAudioEnvironmentNode) ListenerVectorOrientation() AVAudio3DVectorOrientation
@property listenerVectorOrientation @abstract The listener's orientation in the environment @discussion Changing listenerVectorOrientation will result in a corresponding change in listenerAngularOrientation. Default: The default orientation is with the listener looking directly along the negative Z axis. forward: (0, 0, -1) up: (0, 1, 0)
func (*AVAudioEnvironmentNode) NextAvailableInputBus ¶
func (o *AVAudioEnvironmentNode) NextAvailableInputBus() uint
@property nextAvailableInputBus @abstract Find an unused input bus @discussion This will find and return the first input bus to which no other node is connected.
func (*AVAudioEnvironmentNode) OutputType ¶
func (o *AVAudioEnvironmentNode) OutputType() AVAudioEnvironmentOutputType
@property outputType @abstract Type of output hardware to be used with AVAudio3DMixingRenderingAlgorithmAuto @discussion Output hardware cannot be automatically determined in Manual Rendering modes or for wired output. This property can be used to override the output type if the correct type is known. Selecting an output type that does not match the actual hardware can produce unexpected results, especially with AVAudioEnvironmentOutputTypeBuiltInSpeakers. An app choosing a value other than AVAudio3DMixingOutputTypeAuto should listen to route change notifications and update the output type accordingly. Default: AVAudio3DMixingOutputTypeAuto
func (*AVAudioEnvironmentNode) OutputVolume ¶
func (o *AVAudioEnvironmentNode) OutputVolume() float32
@property outputVolume @abstract The mixer's output volume. @discussion This accesses the mixer's output volume (0.0-1.0, inclusive).
func (*AVAudioEnvironmentNode) ReverbParameters ¶
func (o *AVAudioEnvironmentNode) ReverbParameters() *AVAudioEnvironmentReverbParameters
@property reverbParameters @abstract The reverb parameters for the environment
func (*AVAudioEnvironmentNode) SetListenerAngularOrientation ¶
func (o *AVAudioEnvironmentNode) SetListenerAngularOrientation(listenerAngularOrientation AVAudio3DAngularOrientation)
func (*AVAudioEnvironmentNode) SetListenerHeadTrackingEnabled ¶
func (o *AVAudioEnvironmentNode) SetListenerHeadTrackingEnabled(listenerHeadTrackingEnabled bool)
func (*AVAudioEnvironmentNode) SetListenerPosition ¶
func (o *AVAudioEnvironmentNode) SetListenerPosition(listenerPosition AVAudio3DPoint)
func (*AVAudioEnvironmentNode) SetListenerVectorOrientation ¶
func (o *AVAudioEnvironmentNode) SetListenerVectorOrientation(listenerVectorOrientation AVAudio3DVectorOrientation)
func (*AVAudioEnvironmentNode) SetOutputType ¶
func (o *AVAudioEnvironmentNode) SetOutputType(outputType AVAudioEnvironmentOutputType)
func (*AVAudioEnvironmentNode) SetOutputVolume ¶
func (o *AVAudioEnvironmentNode) SetOutputVolume(outputVolume float32)
type AVAudioEnvironmentOutputType ¶
type AVAudioEnvironmentOutputType int64
The output types for using with the automatic 3D mixing rendering algorithm.
const ( // Automatically detects the playback route and picks the correct output. AVAudioEnvironmentOutputTypeAuto AVAudioEnvironmentOutputType = 0 // Renders the audio output for headphones. AVAudioEnvironmentOutputTypeHeadphones AVAudioEnvironmentOutputType = 1 // Renders the audio output for built-in speakers on the current hardware. AVAudioEnvironmentOutputTypeBuiltInSpeakers AVAudioEnvironmentOutputType = 2 // Renders the audio output for external speakers according to the audio environment node’s output channel layout. AVAudioEnvironmentOutputTypeExternalSpeakers AVAudioEnvironmentOutputType = 3 )
func (AVAudioEnvironmentOutputType) String ¶
func (e AVAudioEnvironmentOutputType) String() string
type AVAudioEnvironmentReverbParameters ¶
type AVAudioEnvironmentReverbParameters struct {
foundation.NSObject
}
A class that encapsulates the parameters that you use to control the reverb of the environment node class.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudioenvironmentreverbparameters
func AVAudioEnvironmentReverbParametersFromID ¶
func AVAudioEnvironmentReverbParametersFromID(id objc.ID) *AVAudioEnvironmentReverbParameters
func (*AVAudioEnvironmentReverbParameters) Enable ¶
func (o *AVAudioEnvironmentReverbParameters) Enable() bool
@property enable @abstract Turns on/off the reverb @discussion Default: NO
func (*AVAudioEnvironmentReverbParameters) FilterParameters ¶
func (o *AVAudioEnvironmentReverbParameters) FilterParameters() *AVAudioUnitEQFilterParameters
@property filterParameters @abstract filter that applies to the output of the reverb
func (*AVAudioEnvironmentReverbParameters) Level ¶
func (o *AVAudioEnvironmentReverbParameters) Level() float32
@property level @abstract Controls the master level of the reverb @discussion Range: -40 to 40 dB Default: 0.0
func (*AVAudioEnvironmentReverbParameters) LoadFactoryReverbPreset ¶
func (o *AVAudioEnvironmentReverbParameters) LoadFactoryReverbPreset(preset AVAudioUnitReverbPreset)
Loads one of the reverbs factory presets.
func (*AVAudioEnvironmentReverbParameters) SetEnable ¶
func (o *AVAudioEnvironmentReverbParameters) SetEnable(enable bool)
func (*AVAudioEnvironmentReverbParameters) SetLevel ¶
func (o *AVAudioEnvironmentReverbParameters) SetLevel(level float32)
type AVAudioFile ¶
type AVAudioFile struct {
foundation.NSObject
}
An object that represents an audio file that the system can open for reading or writing.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiofile
func AVAudioFileFromID ¶
func AVAudioFileFromID(id objc.ID) *AVAudioFile
func (*AVAudioFile) FileFormat ¶
func (o *AVAudioFile) FileFormat() *AVAudioFormat
@property fileFormat @abstract The on-disk format of the file.
func (*AVAudioFile) FramePosition ¶
func (o *AVAudioFile) FramePosition() int64
@property framePosition @abstract The position in the file at which the next read or write will occur. @discussion Set framePosition to perform a seek before a read or write. A read or write operation advances the frame position by the number of frames read or written.
func (*AVAudioFile) Init
deprecated
func (o *AVAudioFile) Init() *AVAudioFile
Deprecated: Deprecated - use initForReading or initForWriting
func (*AVAudioFile) InitForReadingCommonFormatInterleavedError ¶
func (o *AVAudioFile) InitForReadingCommonFormatInterleavedError(fileURL *foundation.NSURL, format AVAudioCommonFormat, interleaved bool) (*AVAudioFile, error)
Opens a file for reading using the specified processing format.
func (*AVAudioFile) InitForReadingError ¶
func (o *AVAudioFile) InitForReadingError(fileURL *foundation.NSURL) (*AVAudioFile, error)
Opens a file for reading using the standard, deinterleaved floating point format.
func (*AVAudioFile) InitForWritingSettingsCommonFormatInterleavedError ¶
func (o *AVAudioFile) InitForWritingSettingsCommonFormatInterleavedError(fileURL *foundation.NSURL, settings *foundation.NSDictionary[*foundation.NSString, objc.ID], format AVAudioCommonFormat, interleaved bool) (*AVAudioFile, error)
Opens a file for writing using a specified processing format and settings.
func (*AVAudioFile) InitForWritingSettingsError ¶
func (o *AVAudioFile) InitForWritingSettingsError(fileURL *foundation.NSURL, settings *foundation.NSDictionary[*foundation.NSString, objc.ID]) (*AVAudioFile, error)
Opens a file for writing using the specified settings.
func (*AVAudioFile) IsOpen ¶
func (o *AVAudioFile) IsOpen() bool
@property isOpen @abstract Whether the file is open or not.
func (*AVAudioFile) Length ¶
func (o *AVAudioFile) Length() int64
@property length @abstract The number of sample frames in the file. @discussion Note: this can be expensive to compute for the first time.
func (*AVAudioFile) ProcessingFormat ¶
func (o *AVAudioFile) ProcessingFormat() *AVAudioFormat
@property processingFormat @abstract The processing format of the file.
func (*AVAudioFile) ReadIntoBufferError ¶
func (o *AVAudioFile) ReadIntoBufferError(buffer *AVAudioPCMBuffer) (bool, error)
Reads an entire audio buffer.
func (*AVAudioFile) ReadIntoBufferFrameCountError ¶
func (o *AVAudioFile) ReadIntoBufferFrameCountError(buffer *AVAudioPCMBuffer, frames uint32) (bool, error)
Reads a portion of an audio buffer using the number of frames you specify.
func (*AVAudioFile) SetFramePosition ¶
func (o *AVAudioFile) SetFramePosition(framePosition int64)
func (*AVAudioFile) Url ¶
func (o *AVAudioFile) Url() *foundation.NSURL
@property url @abstract The URL the file is reading or writing.
func (*AVAudioFile) WriteFromBufferError ¶
func (o *AVAudioFile) WriteFromBufferError(buffer *AVAudioPCMBuffer) (bool, error)
@method writeFromBuffer:error: @abstract Write a buffer. @param buffer The buffer from which to write to the file. Its format must match the file's processing format. @param outError on exit, if an error occurs, a description of the error @return YES for success. @discussion Writes sequentially. The buffer's frameLength signifies how much of the buffer is to be written.
type AVAudioFormat ¶
type AVAudioFormat struct {
foundation.NSObject
}
An object that describes the representation of an audio format.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudioformat
func AVAudioFormatFromID ¶
func AVAudioFormatFromID(id objc.ID) *AVAudioFormat
func (*AVAudioFormat) ChannelCount ¶
func (o *AVAudioFormat) ChannelCount() uint32
@property channelCount @abstract The number of channels of audio data.
func (*AVAudioFormat) ChannelLayout ¶
func (o *AVAudioFormat) ChannelLayout() *AVAudioChannelLayout
@property channelLayout @abstract The underlying AVAudioChannelLayout, if any. @discussion Only formats with more than 2 channels are required to have channel layouts.
func (*AVAudioFormat) CommonFormat ¶
func (o *AVAudioFormat) CommonFormat() AVAudioCommonFormat
@property commonFormat @abstract An `AVAudioCommonFormat` identifying the format
func (*AVAudioFormat) FormatDescription ¶
func (o *AVAudioFormat) FormatDescription() unsafe.Pointer
@property formatDescription @abstract Converts to a CMAudioFormatDescriptionRef, for use with Core Media API's.
func (*AVAudioFormat) InitStandardFormatWithSampleRateChannelLayout ¶
func (o *AVAudioFormat) InitStandardFormatWithSampleRateChannelLayout(sampleRate float64, layout *AVAudioChannelLayout) *AVAudioFormat
Creates an audio format instance as a deinterleaved float with the specified sample rate and channel layout.
func (*AVAudioFormat) InitStandardFormatWithSampleRateChannels ¶
func (o *AVAudioFormat) InitStandardFormatWithSampleRateChannels(sampleRate float64, channels uint32) *AVAudioFormat
Creates an audio format instance with the specified sample rate and channel count.
func (*AVAudioFormat) InitWithCMAudioFormatDescription ¶
func (o *AVAudioFormat) InitWithCMAudioFormatDescription(formatDescription unsafe.Pointer) *AVAudioFormat
Creates an audio format instance from a Core Media audio format description.
func (*AVAudioFormat) InitWithCommonFormatSampleRateChannelsInterleaved ¶
func (o *AVAudioFormat) InitWithCommonFormatSampleRateChannelsInterleaved(format AVAudioCommonFormat, sampleRate float64, channels uint32, interleaved bool) *AVAudioFormat
Creates an audio format instance.
func (*AVAudioFormat) InitWithCommonFormatSampleRateInterleavedChannelLayout ¶
func (o *AVAudioFormat) InitWithCommonFormatSampleRateInterleavedChannelLayout(format AVAudioCommonFormat, sampleRate float64, interleaved bool, layout *AVAudioChannelLayout) *AVAudioFormat
Creates an audio format instance with the specified audio format, sample rate, interleaved state, and channel layout.
func (*AVAudioFormat) InitWithSettings ¶
func (o *AVAudioFormat) InitWithSettings(settings *foundation.NSDictionary[*foundation.NSString, objc.ID]) *AVAudioFormat
Creates an audio format instance using the specified settings dictionary.
func (*AVAudioFormat) InitWithStreamDescription ¶
func (o *AVAudioFormat) InitWithStreamDescription(asbd *coreaudiotypes.AudioStreamBasicDescription) *AVAudioFormat
Creates an audio format instance from a stream description.
func (*AVAudioFormat) InitWithStreamDescriptionChannelLayout ¶
func (o *AVAudioFormat) InitWithStreamDescriptionChannelLayout(asbd *coreaudiotypes.AudioStreamBasicDescription, layout *AVAudioChannelLayout) *AVAudioFormat
Creates an audio format instance from a stream description and channel layout.
func (*AVAudioFormat) IsEqual ¶
func (o *AVAudioFormat) IsEqual(object objc.ID) bool
Indicates whether the audio format instance and a specified object are functionally equivalent.
func (*AVAudioFormat) IsInterleaved ¶
func (o *AVAudioFormat) IsInterleaved() bool
@property interleaved @abstract Describes whether the samples are interleaved. @discussion For non-PCM formats, the value is undefined.
func (*AVAudioFormat) IsStandard ¶
func (o *AVAudioFormat) IsStandard() bool
@property standard @abstract Describes whether the format is deinterleaved native-endian float.
func (*AVAudioFormat) MagicCookie ¶
func (o *AVAudioFormat) MagicCookie() *foundation.NSData
@property magicCookie @abstract The underlying magic cookie, if any. @discussion A magic cookie contains metadata associated with encoders and decoders. Encoders produce a magic cookie, and some decoders require a magic cookie to decode properly.
func (*AVAudioFormat) SampleRate ¶
func (o *AVAudioFormat) SampleRate() float64
@property sampleRate @abstract A sampling rate in Hertz.
func (*AVAudioFormat) SetMagicCookie ¶
func (o *AVAudioFormat) SetMagicCookie(magicCookie *foundation.NSData)
func (*AVAudioFormat) Settings ¶
func (o *AVAudioFormat) Settings() *foundation.NSDictionary[*foundation.NSString, objc.ID]
@property settings @abstract Returns the format represented as a dictionary with keys from AVAudioSettings.h.
func (*AVAudioFormat) StreamDescription ¶
func (o *AVAudioFormat) StreamDescription() *coreaudiotypes.AudioStreamBasicDescription
@property streamDescription @abstract Returns the AudioStreamBasicDescription, for use with lower-level audio API's.
type AVAudioIONode ¶
type AVAudioIONode struct {
AVAudioNode
}
An object that performs audio input or output in the engine.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudioionode
func AVAudioIONodeFromID ¶
func AVAudioIONodeFromID(id objc.ID) *AVAudioIONode
func (*AVAudioIONode) AudioUnit ¶
func (o *AVAudioIONode) AudioUnit() *carboncore.ComponentInstanceRecord
@property audioUnit @abstract The node's underlying AudioUnit, if any. @discussion This is only necessary for certain advanced usages.
func (*AVAudioIONode) IsVoiceProcessingEnabled ¶
func (o *AVAudioIONode) IsVoiceProcessingEnabled() bool
@property voiceProcessingEnabled @abstract Indicates whether voice processing is enabled.
func (*AVAudioIONode) PresentationLatency ¶
func (o *AVAudioIONode) PresentationLatency() float64
@property presentationLatency @abstract The presentation or hardware latency, applicable when the engine is rendering to/from an audio device. @discussion This corresponds to kAudioDevicePropertyLatency and kAudioStreamPropertyLatency. See <CoreAudio/AudioHardwareBase.h>.
func (*AVAudioIONode) SetVoiceProcessingEnabledError ¶
func (o *AVAudioIONode) SetVoiceProcessingEnabledError(enabled bool) (bool, error)
Enables or disables voice processing on the I/O node.
type AVAudioInputNode ¶
type AVAudioInputNode struct {
AVAudioIONode
}
An object that connects to the system’s audio input.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudioinputnode
func AVAudioInputNodeFromID ¶
func AVAudioInputNodeFromID(id objc.ID) *AVAudioInputNode
func (*AVAudioInputNode) IsVoiceProcessingAGCEnabled ¶
func (o *AVAudioInputNode) IsVoiceProcessingAGCEnabled() bool
@property voiceProcessingAGCEnabled @abstract Enable automatic gain control on the processed microphone uplink. signal. Enabled by default. @discussion Querying this property when voice processing is disabled will return false.
func (*AVAudioInputNode) IsVoiceProcessingBypassed ¶
func (o *AVAudioInputNode) IsVoiceProcessingBypassed() bool
@property voiceProcessingBypassed @abstract Bypass all processing for microphone uplink done by the voice processing unit. @discussion Querying this property when voice processing is disabled will return false.
func (*AVAudioInputNode) IsVoiceProcessingInputMuted ¶
func (o *AVAudioInputNode) IsVoiceProcessingInputMuted() bool
@property voiceProcessingInputMuted @abstract Mutes the input of the voice processing unit. @discussion Querying this property when voice processing is disabled will return false.
func (*AVAudioInputNode) SetManualRenderingInputPCMFormatInputBlock ¶
func (o *AVAudioInputNode) SetManualRenderingInputPCMFormatInputBlock(format *AVAudioFormat, block func(uint32) *coreaudiotypes.AudioBufferList) bool
Supplies the data through the input node to the engine while operating in the manual rendering mode.
func (*AVAudioInputNode) SetMutedSpeechActivityEventListener ¶
func (o *AVAudioInputNode) SetMutedSpeechActivityEventListener(listenerBlock func(AVAudioVoiceProcessingSpeechActivityEvent)) bool
@method setMutedSpeechActivityEventListener @abstract Register a listener to be notified when speech activity event occurs while the input is muted. @param listenerBlock The block the engine will call when speech activity event occurs while the input is muted. Passing nil will remove an already set block. @return YES for success @discussion Continuous presence of or lack of speech activity during mute will not cause redundant notification. In order to use this API, it's expected to implement the mute via the voiceProcessingInputMuted.
func (*AVAudioInputNode) SetVoiceProcessingAGCEnabled ¶
func (o *AVAudioInputNode) SetVoiceProcessingAGCEnabled(voiceProcessingAGCEnabled bool)
func (*AVAudioInputNode) SetVoiceProcessingBypassed ¶
func (o *AVAudioInputNode) SetVoiceProcessingBypassed(voiceProcessingBypassed bool)
func (*AVAudioInputNode) SetVoiceProcessingInputMuted ¶
func (o *AVAudioInputNode) SetVoiceProcessingInputMuted(voiceProcessingInputMuted bool)
func (*AVAudioInputNode) SetVoiceProcessingOtherAudioDuckingConfiguration ¶
func (o *AVAudioInputNode) SetVoiceProcessingOtherAudioDuckingConfiguration(voiceProcessingOtherAudioDuckingConfiguration AVAudioVoiceProcessingOtherAudioDuckingConfiguration)
func (*AVAudioInputNode) VoiceProcessingOtherAudioDuckingConfiguration ¶
func (o *AVAudioInputNode) VoiceProcessingOtherAudioDuckingConfiguration() AVAudioVoiceProcessingOtherAudioDuckingConfiguration
@property voiceProcessingOtherAudioDuckingConfiguration @abstract The configuration of ducking other (i.e. non-voice) audio @discussion Configures the ducking of other (i.e. non-voice) audio, including advanced ducking enablement and ducking level. In general, when other audio is played during voice chat, applying a higher level of ducking could increase the intelligibility of the voice chat. If not set, the default ducking configuration is to disable advanced ducking, with a ducking level set to AVAudioVoiceProcessingOtherAudioDuckingLevelDefault.
type AVAudioMixerNode ¶
type AVAudioMixerNode struct {
AVAudioNode
}
An object that takes any number of inputs and converts them into a single output.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiomixernode
func AVAudioMixerNodeFromID ¶
func AVAudioMixerNodeFromID(id objc.ID) *AVAudioMixerNode
func (*AVAudioMixerNode) Init ¶
func (o *AVAudioMixerNode) Init() *AVAudioMixerNode
Creates an audio mixer node.
func (*AVAudioMixerNode) NextAvailableInputBus ¶
func (o *AVAudioMixerNode) NextAvailableInputBus() uint
@property nextAvailableInputBus @abstract Find an unused input bus. @discussion This will find and return the first input bus to which no other node is connected.
func (*AVAudioMixerNode) OutputVolume ¶
func (o *AVAudioMixerNode) OutputVolume() float32
@property outputVolume @abstract The mixer's output volume. @discussion This accesses the mixer's output volume (0.0-1.0, inclusive).
func (*AVAudioMixerNode) SetOutputVolume ¶
func (o *AVAudioMixerNode) SetOutputVolume(outputVolume float32)
type AVAudioMixing ¶
type AVAudioMixing interface {
AVAudioStereoMixing
AVAudio3DMixing
DestinationForMixerBus(mixer *AVAudioNode, bus uint) *AVAudioMixingDestination
Volume() float32
SetVolume(volume float32)
}
AVAudioMixing wraps the ObjC protocol AVAudioMixing.
type AVAudioMixingDestination ¶
type AVAudioMixingDestination struct {
foundation.NSObject
}
An object that represents a connection to a mixer node from a node that conforms to the audio mixing protocol.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiomixingdestination
func AVAudioMixingDestinationFromID ¶
func AVAudioMixingDestinationFromID(id objc.ID) *AVAudioMixingDestination
func (*AVAudioMixingDestination) ConnectionPoint ¶
func (o *AVAudioMixingDestination) ConnectionPoint() *AVAudioConnectionPoint
type AVAudioNode ¶
type AVAudioNode struct {
foundation.NSObject
}
An object you use for audio generation, processing, or an I/O block.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudionode
func AVAudioNodeFromID ¶
func AVAudioNodeFromID(id objc.ID) *AVAudioNode
func (*AVAudioNode) AUAudioUnit ¶
func (o *AVAudioNode) AUAudioUnit() objc.ID
@property AUAudioUnit @abstract An AUAudioUnit wrapping or underlying the implementation's AudioUnit. @discussion This provides an AUAudioUnit which either wraps or underlies the implementation's AudioUnit, depending on how that audio unit is packaged. Applications can interact with this AUAudioUnit to control custom properties, select presets, change parameters, etc. No operations that may conflict with state maintained by the engine should be performed directly on the audio unit. These include changing initialization state, stream formats, channel layouts or connections to other audio units.
func (*AVAudioNode) Engine ¶
func (o *AVAudioNode) Engine() *AVAudioEngine
@property engine @abstract The engine to which the node is attached (or nil).
func (*AVAudioNode) InputFormatForBus ¶
func (o *AVAudioNode) InputFormatForBus(bus uint) *AVAudioFormat
Gets the input format for the bus you specify.
func (*AVAudioNode) InstallTapOnBusBufferSizeFormatBlock ¶
func (o *AVAudioNode) InstallTapOnBusBufferSizeFormatBlock(bus uint, bufferSize uint32, format *AVAudioFormat, tapBlock func(*AVAudioPCMBuffer, *AVAudioTime))
Installs an audio tap on a bus you specify to record, monitor, and observe the output of the node.
func (*AVAudioNode) LastRenderTime ¶
func (o *AVAudioNode) LastRenderTime() *AVAudioTime
@property lastRenderTime @abstract Obtain the time for which the node most recently rendered. @discussion Will return nil if the engine is not running or if the node is not connected to an input or output node.
func (*AVAudioNode) Latency ¶
func (o *AVAudioNode) Latency() float64
@property latency @abstract The processing latency of the node, in seconds. @discussion This property reflects the delay between when an impulse in the audio stream arrives at the input vs. output of the node. This should reflect the delay due to signal processing (e.g. filters, FFT's, etc.), not delay or reverberation which is being applied as an effect. A value of zero indicates either no latency or an unknown latency.
func (*AVAudioNode) NameForInputBus ¶
func (o *AVAudioNode) NameForInputBus(bus uint) *foundation.NSString
Gets the name of the input bus you specify.
func (*AVAudioNode) NameForOutputBus ¶
func (o *AVAudioNode) NameForOutputBus(bus uint) *foundation.NSString
Retrieves the name of the output bus you specify.
func (*AVAudioNode) NumberOfInputs ¶
func (o *AVAudioNode) NumberOfInputs() uint
@property numberOfInputs @abstract The node's number of input busses.
func (*AVAudioNode) NumberOfOutputs ¶
func (o *AVAudioNode) NumberOfOutputs() uint
@property numberOfOutputs @abstract The node's number of output busses.
func (*AVAudioNode) OutputFormatForBus ¶
func (o *AVAudioNode) OutputFormatForBus(bus uint) *AVAudioFormat
Retrieves the output format for the bus you specify.
func (*AVAudioNode) OutputPresentationLatency ¶
func (o *AVAudioNode) OutputPresentationLatency() float64
@property outputPresentationLatency @abstract The maximum render pipeline latency downstream of the node, in seconds. @discussion This describes the maximum time it will take for the audio at the output of a node to be presented. For instance, the output presentation latency of the output node in the engine is: - zero in manual rendering mode - the presentation latency of the device itself when rendering to an audio device (see `AVAudioIONode(presentationLatency)`) The output presentation latency of a node connected directly to the output node is the output node's presentation latency plus the output node's processing latency (see `latency`). For a node which is exclusively in the input node chain (i.e. not connected to engine's output node), this property reflects the latency for the output of this node to be presented at the output of the terminating node in the input chain. A value of zero indicates either an unknown or no latency. Note that this latency value can change as the engine is reconfigured (started/stopped, connections made/altered downstream of this node etc.). So it is recommended not to cache this value and fetch it whenever it's needed.
func (*AVAudioNode) RemoveTapOnBus ¶
func (o *AVAudioNode) RemoveTapOnBus(bus uint)
Removes an audio tap on a bus you specify.
func (*AVAudioNode) Reset ¶
func (o *AVAudioNode) Reset()
Clears a unit’s previous processing state.
type AVAudioOutputNode ¶
type AVAudioOutputNode struct {
AVAudioIONode
}
An object that connects to the system’s audio output.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiooutputnode
func AVAudioOutputNodeFromID ¶
func AVAudioOutputNodeFromID(id objc.ID) *AVAudioOutputNode
type AVAudioPCMBuffer ¶
type AVAudioPCMBuffer struct {
AVAudioBuffer
}
An object that represents an audio buffer you use with PCM audio formats.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiopcmbuffer
func AVAudioPCMBufferFromID ¶
func AVAudioPCMBufferFromID(id objc.ID) *AVAudioPCMBuffer
func (*AVAudioPCMBuffer) FloatChannelData ¶
func (o *AVAudioPCMBuffer) FloatChannelData() unsafe.Pointer
@property floatChannelData @abstract Access the buffer's float audio samples. @discussion floatChannelData returns pointers to the buffer's audio samples if the buffer's format is 32-bit float, or nil if it is another format. The returned pointer is to format.channelCount pointers to float. Each of these pointers is to "frameLength" valid samples, which are spaced by "stride" samples. If format.interleaved is false (as with the standard deinterleaved float format), then the pointers will be to separate chunks of memory. "stride" is 1. If format.interleaved is true, then the pointers will refer into the same chunk of interleaved samples, each offset by 1 frame. "stride" is the number of interleaved channels.
func (*AVAudioPCMBuffer) FrameCapacity ¶
func (o *AVAudioPCMBuffer) FrameCapacity() uint32
@property frameCapacity @abstract The buffer's capacity, in audio sample frames.
func (*AVAudioPCMBuffer) FrameLength ¶
func (o *AVAudioPCMBuffer) FrameLength() uint32
@property frameLength @abstract The current number of valid sample frames in the buffer. @discussion You may modify the length of the buffer as part of an operation that modifies its contents. The length must be less than or equal to the frameCapacity. Modifying frameLength will update the mDataByteSize in each of the underlying AudioBufferList's AudioBuffer's correspondingly, and vice versa. Note that in the case of deinterleaved formats, mDataByteSize will refers the size of one channel's worth of audio samples.
func (*AVAudioPCMBuffer) InitWithPCMFormatBufferListNoCopyDeallocator ¶
func (o *AVAudioPCMBuffer) InitWithPCMFormatBufferListNoCopyDeallocator(format *AVAudioFormat, bufferList *coreaudiotypes.AudioBufferList, deallocator func(*coreaudiotypes.AudioBufferList)) *AVAudioPCMBuffer
Creates a PCM audio buffer instance without copying samples, for PCM audio data, with a specified buffer list and a deallocator closure.
func (*AVAudioPCMBuffer) InitWithPCMFormatFrameCapacity ¶
func (o *AVAudioPCMBuffer) InitWithPCMFormatFrameCapacity(format *AVAudioFormat, frameCapacity uint32) *AVAudioPCMBuffer
Creates a PCM audio buffer instance for PCM audio data.
func (*AVAudioPCMBuffer) Int16ChannelData ¶
func (o *AVAudioPCMBuffer) Int16ChannelData() unsafe.Pointer
@property int16ChannelData @abstract Access the buffer's int16_t audio samples. @discussion int16ChannelData returns the buffer's audio samples if the buffer's format has 2-byte integer samples, or nil if it is another format. See the discussion of floatChannelData.
func (*AVAudioPCMBuffer) Int32ChannelData ¶
func (o *AVAudioPCMBuffer) Int32ChannelData() unsafe.Pointer
@property int32ChannelData @abstract Access the buffer's int32_t audio samples. @discussion int32ChannelData returns the buffer's audio samples if the buffer's format has 4-byte integer samples, or nil if it is another format. See the discussion of floatChannelData.
func (*AVAudioPCMBuffer) SetFrameLength ¶
func (o *AVAudioPCMBuffer) SetFrameLength(frameLength uint32)
func (*AVAudioPCMBuffer) Stride ¶
func (o *AVAudioPCMBuffer) Stride() uint
@property stride @abstract The buffer's number of interleaved channels. @discussion Useful in conjunction with floatChannelData etc.
type AVAudioPlayer ¶
type AVAudioPlayer struct {
foundation.NSObject
}
An object that plays audio data from a file or buffer.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudioplayer
func AVAudioPlayerFromID ¶
func AVAudioPlayerFromID(id objc.ID) *AVAudioPlayer
func (*AVAudioPlayer) AveragePowerForChannel ¶
func (o *AVAudioPlayer) AveragePowerForChannel(channelNumber uint) float32
Returns the average power, in decibels full-scale (dBFS), for an audio channel.
func (*AVAudioPlayer) CurrentDevice ¶
func (o *AVAudioPlayer) CurrentDevice() *foundation.NSString
func (*AVAudioPlayer) CurrentTime ¶
func (o *AVAudioPlayer) CurrentTime() float64
func (*AVAudioPlayer) Data ¶
func (o *AVAudioPlayer) Data() *foundation.NSData
func (*AVAudioPlayer) Delegate ¶
func (o *AVAudioPlayer) Delegate() AVAudioPlayerDelegate
func (*AVAudioPlayer) DeviceCurrentTime ¶
func (o *AVAudioPlayer) DeviceCurrentTime() float64
func (*AVAudioPlayer) Duration ¶
func (o *AVAudioPlayer) Duration() float64
func (*AVAudioPlayer) EnableRate ¶
func (o *AVAudioPlayer) EnableRate() bool
func (*AVAudioPlayer) Format ¶
func (o *AVAudioPlayer) Format() *AVAudioFormat
func (*AVAudioPlayer) InitWithContentsOfURLError ¶
func (o *AVAudioPlayer) InitWithContentsOfURLError(url *foundation.NSURL) (*AVAudioPlayer, error)
Creates a player to play audio from a file.
func (*AVAudioPlayer) InitWithContentsOfURLFileTypeHintError ¶
func (o *AVAudioPlayer) InitWithContentsOfURLFileTypeHintError(url *foundation.NSURL, utiString *foundation.NSString) (*AVAudioPlayer, error)
Creates a player to play audio from a file of a particular type.
func (*AVAudioPlayer) InitWithDataError ¶
func (o *AVAudioPlayer) InitWithDataError(data *foundation.NSData) (*AVAudioPlayer, error)
Creates a player to play in-memory audio data.
func (*AVAudioPlayer) InitWithDataFileTypeHintError ¶
func (o *AVAudioPlayer) InitWithDataFileTypeHintError(data *foundation.NSData, utiString *foundation.NSString) (*AVAudioPlayer, error)
Creates a player to play in-memory audio data of a particular type.
func (*AVAudioPlayer) IsMeteringEnabled ¶
func (o *AVAudioPlayer) IsMeteringEnabled() bool
func (*AVAudioPlayer) IsPlaying ¶
func (o *AVAudioPlayer) IsPlaying() bool
func (*AVAudioPlayer) NumberOfChannels ¶
func (o *AVAudioPlayer) NumberOfChannels() uint
func (*AVAudioPlayer) NumberOfLoops ¶
func (o *AVAudioPlayer) NumberOfLoops() int
func (*AVAudioPlayer) Pan ¶
func (o *AVAudioPlayer) Pan() float32
func (*AVAudioPlayer) PeakPowerForChannel ¶
func (o *AVAudioPlayer) PeakPowerForChannel(channelNumber uint) float32
Returns the peak power, in decibels full-scale (dBFS), for an audio channel.
func (*AVAudioPlayer) PlayAtTime ¶
func (o *AVAudioPlayer) PlayAtTime(time_ float64) bool
Plays audio asynchronously, starting at a specified point in the audio output device’s timeline.
func (*AVAudioPlayer) PrepareToPlay ¶
func (o *AVAudioPlayer) PrepareToPlay() bool
Prepares the player for audio playback.
func (*AVAudioPlayer) Rate ¶
func (o *AVAudioPlayer) Rate() float32
func (*AVAudioPlayer) SetCurrentDevice ¶
func (o *AVAudioPlayer) SetCurrentDevice(currentDevice *foundation.NSString)
func (*AVAudioPlayer) SetCurrentTime ¶
func (o *AVAudioPlayer) SetCurrentTime(currentTime float64)
func (*AVAudioPlayer) SetDelegate ¶
func (o *AVAudioPlayer) SetDelegate(delegate AVAudioPlayerDelegate)
func (*AVAudioPlayer) SetEnableRate ¶
func (o *AVAudioPlayer) SetEnableRate(enableRate bool)
func (*AVAudioPlayer) SetMeteringEnabled ¶
func (o *AVAudioPlayer) SetMeteringEnabled(meteringEnabled bool)
func (*AVAudioPlayer) SetNumberOfLoops ¶
func (o *AVAudioPlayer) SetNumberOfLoops(numberOfLoops int)
func (*AVAudioPlayer) SetPan ¶
func (o *AVAudioPlayer) SetPan(pan float32)
func (*AVAudioPlayer) SetRate ¶
func (o *AVAudioPlayer) SetRate(rate float32)
func (*AVAudioPlayer) SetVolume ¶
func (o *AVAudioPlayer) SetVolume(volume float32)
func (*AVAudioPlayer) SetVolumeFadeDuration ¶
func (o *AVAudioPlayer) SetVolumeFadeDuration(volume float32, duration float64)
Changes the audio player’s volume over a duration of time.
func (*AVAudioPlayer) Settings ¶
func (o *AVAudioPlayer) Settings() *foundation.NSDictionary[*foundation.NSString, objc.ID]
func (*AVAudioPlayer) Stop ¶
func (o *AVAudioPlayer) Stop()
Stops playback and undoes the setup the system requires for playback.
func (*AVAudioPlayer) UpdateMeters ¶
func (o *AVAudioPlayer) UpdateMeters()
Refreshes the average and peak power values for all channels of an audio player.
func (*AVAudioPlayer) Url ¶
func (o *AVAudioPlayer) Url() *foundation.NSURL
func (*AVAudioPlayer) Volume ¶
func (o *AVAudioPlayer) Volume() float32
type AVAudioPlayerDelegate ¶
type AVAudioPlayerDelegate interface {
}
AVAudioPlayerDelegate wraps the ObjC protocol AVAudioPlayerDelegate.
type AVAudioPlayerNode ¶
type AVAudioPlayerNode struct {
AVAudioNode
}
An object for scheduling the playback of buffers or segments of audio files.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudioplayernode
func AVAudioPlayerNodeFromID ¶
func AVAudioPlayerNodeFromID(id objc.ID) *AVAudioPlayerNode
func (*AVAudioPlayerNode) Init ¶
func (o *AVAudioPlayerNode) Init() *AVAudioPlayerNode
Creates an initialized audio player node.
func (*AVAudioPlayerNode) IsPlaying ¶
func (o *AVAudioPlayerNode) IsPlaying() bool
func (*AVAudioPlayerNode) NodeTimeForPlayerTime ¶
func (o *AVAudioPlayerNode) NodeTimeForPlayerTime(playerTime *AVAudioTime) *AVAudioTime
Converts from player time to node time.
func (*AVAudioPlayerNode) Play ¶
func (o *AVAudioPlayerNode) Play()
Starts or resumes playback immediately.
func (*AVAudioPlayerNode) PlayAtTime ¶
func (o *AVAudioPlayerNode) PlayAtTime(when *AVAudioTime)
Starts or resumes playback at a time you specify.
func (*AVAudioPlayerNode) PlayerTimeForNodeTime ¶
func (o *AVAudioPlayerNode) PlayerTimeForNodeTime(nodeTime *AVAudioTime) *AVAudioTime
Converts from node time to player time.
func (*AVAudioPlayerNode) PrepareWithFrameCount ¶
func (o *AVAudioPlayerNode) PrepareWithFrameCount(frameCount uint32)
Prepares the file regions or buffers you schedule for playback.
func (*AVAudioPlayerNode) ScheduleBufferAtTimeOptionsCompletionCallbackTypeCompletionHandler ¶
func (o *AVAudioPlayerNode) ScheduleBufferAtTimeOptionsCompletionCallbackTypeCompletionHandler(buffer *AVAudioPCMBuffer, when *AVAudioTime, options AVAudioPlayerNodeBufferOptions, callbackType AVAudioPlayerNodeCompletionCallbackType, completionHandler func(AVAudioPlayerNodeCompletionCallbackType))
Schedules the playing samples from an audio buffer with the playback options you specify.
func (*AVAudioPlayerNode) ScheduleBufferAtTimeOptionsCompletionHandler ¶
func (o *AVAudioPlayerNode) ScheduleBufferAtTimeOptionsCompletionHandler(buffer *AVAudioPCMBuffer, when *AVAudioTime, options AVAudioPlayerNodeBufferOptions, completionHandler func())
Schedules the playing samples from an audio buffer at the time and playback options you specify.
func (*AVAudioPlayerNode) ScheduleBufferCompletionCallbackTypeCompletionHandler ¶
func (o *AVAudioPlayerNode) ScheduleBufferCompletionCallbackTypeCompletionHandler(buffer *AVAudioPCMBuffer, callbackType AVAudioPlayerNodeCompletionCallbackType, completionHandler func(AVAudioPlayerNodeCompletionCallbackType))
Schedules the playing samples from an audio buffer with the callback option you specify.
func (*AVAudioPlayerNode) ScheduleBufferCompletionHandler ¶
func (o *AVAudioPlayerNode) ScheduleBufferCompletionHandler(buffer *AVAudioPCMBuffer, completionHandler func())
Schedules the playing samples from an audio buffer.
func (*AVAudioPlayerNode) ScheduleFileAtTimeCompletionCallbackTypeCompletionHandler ¶
func (o *AVAudioPlayerNode) ScheduleFileAtTimeCompletionCallbackTypeCompletionHandler(file *AVAudioFile, when *AVAudioTime, callbackType AVAudioPlayerNodeCompletionCallbackType, completionHandler func(AVAudioPlayerNodeCompletionCallbackType))
Schedules the playing of an entire audio file with a callback option you specify.
func (*AVAudioPlayerNode) ScheduleFileAtTimeCompletionHandler ¶
func (o *AVAudioPlayerNode) ScheduleFileAtTimeCompletionHandler(file *AVAudioFile, when *AVAudioTime, completionHandler func())
Schedules the playing of an entire audio file.
func (*AVAudioPlayerNode) ScheduleSegmentStartingFrameFrameCountAtTimeCompletionCallbackTypeCompletionHandler ¶
func (o *AVAudioPlayerNode) ScheduleSegmentStartingFrameFrameCountAtTimeCompletionCallbackTypeCompletionHandler(file *AVAudioFile, startFrame int64, numberFrames uint32, when *AVAudioTime, callbackType AVAudioPlayerNodeCompletionCallbackType, completionHandler func(AVAudioPlayerNodeCompletionCallbackType))
Schedules the playing of an audio file segment with a callback option you specify.
func (*AVAudioPlayerNode) ScheduleSegmentStartingFrameFrameCountAtTimeCompletionHandler ¶
func (o *AVAudioPlayerNode) ScheduleSegmentStartingFrameFrameCountAtTimeCompletionHandler(file *AVAudioFile, startFrame int64, numberFrames uint32, when *AVAudioTime, completionHandler func())
Schedules the playing of an audio file segment.
func (*AVAudioPlayerNode) Stop ¶
func (o *AVAudioPlayerNode) Stop()
Clears all of the node’s events you schedule and stops playback.
type AVAudioPlayerNodeBufferOptions ¶
type AVAudioPlayerNodeBufferOptions uint64
The buffer options that control the playback scheduling.
const ( // An option that indicates the buffer loops indefinitely. AVAudioPlayerNodeBufferLoops AVAudioPlayerNodeBufferOptions = 1 // An option that indicates the buffer interrupts any buffer in a playing state. AVAudioPlayerNodeBufferInterrupts AVAudioPlayerNodeBufferOptions = 2 // An option that indicates the buffer interrupts any buffer in a playing state at its loop point. AVAudioPlayerNodeBufferInterruptsAtLoop AVAudioPlayerNodeBufferOptions = 4 )
func (AVAudioPlayerNodeBufferOptions) String ¶
func (e AVAudioPlayerNodeBufferOptions) String() string
type AVAudioPlayerNodeCompletionCallbackType ¶
type AVAudioPlayerNodeCompletionCallbackType int64
Constants that specify when the framework must invoke the completion handler.
const ( // A completion handler that indicates the player consumes the buffer or file data. AVAudioPlayerNodeCompletionDataConsumed AVAudioPlayerNodeCompletionCallbackType = 0 // A completion handler that indicates the player renders the buffer or file data. AVAudioPlayerNodeCompletionDataRendered AVAudioPlayerNodeCompletionCallbackType = 1 // A completion handler that indicates the player finishes the buffer or file data. AVAudioPlayerNodeCompletionDataPlayedBack AVAudioPlayerNodeCompletionCallbackType = 2 )
func (AVAudioPlayerNodeCompletionCallbackType) String ¶
func (e AVAudioPlayerNodeCompletionCallbackType) String() string
type AVAudioQuality ¶
type AVAudioQuality int64
The values that specify the sample rate audio quality for encoding and conversion.
const ( // A value that represents a minimum audio quality for encoding and conversion. AVAudioQualityMin AVAudioQuality = 0 // A value that represents a low audio quality for encoding and conversion. AVAudioQualityLow AVAudioQuality = 32 // A value that represents a medium audio quality for encoding and conversion. AVAudioQualityMedium AVAudioQuality = 64 // A value that represents a high audio quality for encoding and conversion. AVAudioQualityHigh AVAudioQuality = 96 // A value that represents a maximum audio quality for encoding and conversion. AVAudioQualityMax AVAudioQuality = 127 )
func (AVAudioQuality) String ¶
func (e AVAudioQuality) String() string
type AVAudioRecorder ¶
type AVAudioRecorder struct {
foundation.NSObject
}
An object that records audio data to a file.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiorecorder
func AVAudioRecorderFromID ¶
func AVAudioRecorderFromID(id objc.ID) *AVAudioRecorder
func (*AVAudioRecorder) AveragePowerForChannel ¶
func (o *AVAudioRecorder) AveragePowerForChannel(channelNumber uint) float32
Returns the average power, in decibels full-scale (dBFS), for an audio channel.
func (*AVAudioRecorder) CurrentTime ¶
func (o *AVAudioRecorder) CurrentTime() float64
@property currentTime @abstract Get the current time of the recording. @discussion This method is only vaild while recording.
func (*AVAudioRecorder) Delegate ¶
func (o *AVAudioRecorder) Delegate() AVAudioRecorderDelegate
@property delegate @abstract A delegate object to the AudioRecorder that conforms to the AVAudioRecorderDelegate protocol.
func (*AVAudioRecorder) DeleteRecording ¶
func (o *AVAudioRecorder) DeleteRecording() bool
Deletes a recorded audio file.
func (*AVAudioRecorder) DeviceCurrentTime ¶
func (o *AVAudioRecorder) DeviceCurrentTime() float64
@property deviceCurrentTime @abstract Get the device current time. @discussion This method is always valid.
func (*AVAudioRecorder) Format ¶
func (o *AVAudioRecorder) Format() *AVAudioFormat
@property format @abstract The audio format of the AudioRecorder. @discussion This property is fully valid only when prepareToRecord has been called.
func (*AVAudioRecorder) InitWithURLFormatError ¶
func (o *AVAudioRecorder) InitWithURLFormatError(url *foundation.NSURL, format *AVAudioFormat) (*AVAudioRecorder, error)
Creates an audio recorder with an audio format.
func (*AVAudioRecorder) InitWithURLSettingsError ¶
func (o *AVAudioRecorder) InitWithURLSettingsError(url *foundation.NSURL, settings *foundation.NSDictionary[*foundation.NSString, objc.ID]) (*AVAudioRecorder, error)
Creates an audio recorder with settings.
func (*AVAudioRecorder) IsMeteringEnabled ¶
func (o *AVAudioRecorder) IsMeteringEnabled() bool
@property meteringEnabled @abstract Turns level metering on or off. @discussion Default is off.
func (*AVAudioRecorder) IsRecording ¶
func (o *AVAudioRecorder) IsRecording() bool
@property recording @abstract Returns YES if the AudioRecorder is currently recording.
func (*AVAudioRecorder) PeakPowerForChannel ¶
func (o *AVAudioRecorder) PeakPowerForChannel(channelNumber uint) float32
Returns the peak power, in decibels full-scale (dBFS), for an audio channel.
func (*AVAudioRecorder) PrepareToRecord ¶
func (o *AVAudioRecorder) PrepareToRecord() bool
Creates an audio file and prepares the system for recording.
func (*AVAudioRecorder) Record ¶
func (o *AVAudioRecorder) Record() bool
Starts or resumes audio recording.
func (*AVAudioRecorder) RecordAtTime ¶
func (o *AVAudioRecorder) RecordAtTime(time_ float64) bool
Records audio starting at a specific time.
func (*AVAudioRecorder) RecordAtTimeForDuration ¶
func (o *AVAudioRecorder) RecordAtTimeForDuration(time_ float64, duration float64) bool
Records audio starting at a specific time for the indicated duration.
func (*AVAudioRecorder) RecordForDuration ¶
func (o *AVAudioRecorder) RecordForDuration(duration float64) bool
Records audio for the indicated duration of time.
func (*AVAudioRecorder) SetDelegate ¶
func (o *AVAudioRecorder) SetDelegate(delegate AVAudioRecorderDelegate)
func (*AVAudioRecorder) SetMeteringEnabled ¶
func (o *AVAudioRecorder) SetMeteringEnabled(meteringEnabled bool)
func (*AVAudioRecorder) Settings ¶
func (o *AVAudioRecorder) Settings() *foundation.NSDictionary[*foundation.NSString, objc.ID]
@property settings @abstract A dictionary of settings for the AudioRecorder. @discussion These settings are fully valid only when prepareToRecord has been called. For supported key-value pairs, see https://developer.apple.com/documentation/avfaudio/avaudiorecorder/1388386-initwithurl?language=objc
func (*AVAudioRecorder) Stop ¶
func (o *AVAudioRecorder) Stop()
Stops recording and closes the audio file.
func (*AVAudioRecorder) UpdateMeters ¶
func (o *AVAudioRecorder) UpdateMeters()
Refreshes the average and peak power values for all channels of an audio recorder.
func (*AVAudioRecorder) Url ¶
func (o *AVAudioRecorder) Url() *foundation.NSURL
@property url @abstract URL of the recorded file.
type AVAudioRecorderDelegate ¶
type AVAudioRecorderDelegate interface {
}
AVAudioRecorderDelegate wraps the ObjC protocol AVAudioRecorderDelegate.
type AVAudioRoutingArbiter ¶
type AVAudioRoutingArbiter struct {
foundation.NSObject
}
An object for configuring macOS apps to participate in AirPods Automatic Switching.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudioroutingarbiter
func AVAudioRoutingArbiterFromID ¶
func AVAudioRoutingArbiterFromID(id objc.ID) *AVAudioRoutingArbiter
func AVAudioRoutingArbiterSharedRoutingArbiter ¶
func AVAudioRoutingArbiterSharedRoutingArbiter() *AVAudioRoutingArbiter
@property sharedRoutingArbiter @abstract Returns the singleton AVAudioRoutingArbiter instance.
func (*AVAudioRoutingArbiter) BeginArbitrationWithCategoryCompletionHandler ¶
func (o *AVAudioRoutingArbiter) BeginArbitrationWithCategoryCompletionHandler(category AVAudioRoutingArbitrationCategory, handler func(bool, unsafe.Pointer))
Begins routing arbitration to take ownership of a nearby Bluetooth audio route.
func (*AVAudioRoutingArbiter) LeaveArbitration ¶
func (o *AVAudioRoutingArbiter) LeaveArbitration()
Stops an app’s participation in audio routing arbitration.
type AVAudioRoutingArbitrationCategory ¶
type AVAudioRoutingArbitrationCategory int64
Categories that describe the general nature of your app’s audio use.
const ( AVAudioRoutingArbitrationCategoryPlayback AVAudioRoutingArbitrationCategory = 0 AVAudioRoutingArbitrationCategoryPlayAndRecord AVAudioRoutingArbitrationCategory = 1 AVAudioRoutingArbitrationCategoryPlayAndRecordVoice AVAudioRoutingArbitrationCategory = 2 )
func (AVAudioRoutingArbitrationCategory) String ¶
func (e AVAudioRoutingArbitrationCategory) String() string
type AVAudioSequencer ¶
type AVAudioSequencer struct {
foundation.NSObject
}
An object that plays audio from a collection of MIDI events the system organizes into music tracks.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiosequencer
func AVAudioSequencerFromID ¶
func AVAudioSequencerFromID(id objc.ID) *AVAudioSequencer
func (*AVAudioSequencer) BeatsForHostTimeError ¶
func (o *AVAudioSequencer) BeatsForHostTimeError(inHostTime uint64) (float64, error)
Gets the beat the system plays at the specified host time.
func (*AVAudioSequencer) BeatsForSeconds ¶
func (o *AVAudioSequencer) BeatsForSeconds(seconds float64) float64
Gets the beat position (timestamp) for the specified time in the track.
func (*AVAudioSequencer) CreateAndAppendTrack ¶
func (o *AVAudioSequencer) CreateAndAppendTrack() *AVMusicTrack
Creates a new music track and appends it to the sequencer’s list.
func (*AVAudioSequencer) CurrentPositionInBeats ¶
func (o *AVAudioSequencer) CurrentPositionInBeats() float64
@property currentPositionInBeats @abstract The current playback position in beats @discussion Setting this positions the sequencer's player to the specified beat. This can be set while the player is playing, in which case playback will resume at the new position.
func (*AVAudioSequencer) CurrentPositionInSeconds ¶
func (o *AVAudioSequencer) CurrentPositionInSeconds() float64
@property currentPositionInSeconds @abstract The current playback position in seconds @discussion Setting this positions the sequencer's player to the specified time. This can be set while the player is playing, in which case playback will resume at the new position.
func (*AVAudioSequencer) DataWithSMPTEResolutionError ¶
func (o *AVAudioSequencer) DataWithSMPTEResolutionError(sMPTEResolution int) (*foundation.NSData, error)
Gets a data object that contains the events from the sequence.
func (*AVAudioSequencer) HostTimeForBeatsError ¶
func (o *AVAudioSequencer) HostTimeForBeatsError(inBeats float64) (uint64, error)
Gets the host time the sequence plays at the specified position.
func (*AVAudioSequencer) Init ¶
func (o *AVAudioSequencer) Init() *AVAudioSequencer
Creates an audio sequencer object.
func (*AVAudioSequencer) InitWithAudioEngine ¶
func (o *AVAudioSequencer) InitWithAudioEngine(engine *AVAudioEngine) *AVAudioSequencer
Creates an audio sequencer that the framework attaches to an audio engine instance.
func (*AVAudioSequencer) IsPlaying ¶
func (o *AVAudioSequencer) IsPlaying() bool
@property playing @abstract Indicates whether or not the sequencer's player is playing @discussion Returns TRUE if the sequencer's player has been started and not stopped. It may have "played" past the end of the events in the sequence, but it is still considered to be playing (and its time value increasing) until it is explicitly stopped.
func (*AVAudioSequencer) LoadFromDataOptionsError ¶
func (o *AVAudioSequencer) LoadFromDataOptionsError(data *foundation.NSData, options AVMusicSequenceLoadOptions) (bool, error)
Parses the data and adds its events to the sequence.
func (*AVAudioSequencer) LoadFromURLOptionsError ¶
func (o *AVAudioSequencer) LoadFromURLOptionsError(fileURL *foundation.NSURL, options AVMusicSequenceLoadOptions) (bool, error)
Loads the file the URL references and adds the events to the sequence.
func (*AVAudioSequencer) PrepareToPlay ¶
func (o *AVAudioSequencer) PrepareToPlay()
Gets ready to play the sequence by prerolling all events.
func (*AVAudioSequencer) Rate ¶
func (o *AVAudioSequencer) Rate() float32
@property rate @abstract The playback rate of the sequencer's player @discussion 1.0 is normal playback rate. Rate must be > 0.0.
func (*AVAudioSequencer) RemoveTrack ¶
func (o *AVAudioSequencer) RemoveTrack(track *AVMusicTrack) bool
Removes the music track from the sequencer.
func (*AVAudioSequencer) ReverseEvents ¶
func (o *AVAudioSequencer) ReverseEvents()
Reverses the order of all events in all music tracks, including the tempo track.
func (*AVAudioSequencer) SecondsForBeats ¶
func (o *AVAudioSequencer) SecondsForBeats(beats float64) float64
Gets the time for the specified beat position (timestamp) in the track, in seconds.
func (*AVAudioSequencer) SetCurrentPositionInBeats ¶
func (o *AVAudioSequencer) SetCurrentPositionInBeats(currentPositionInBeats float64)
func (*AVAudioSequencer) SetCurrentPositionInSeconds ¶
func (o *AVAudioSequencer) SetCurrentPositionInSeconds(currentPositionInSeconds float64)
func (*AVAudioSequencer) SetRate ¶
func (o *AVAudioSequencer) SetRate(rate float32)
func (*AVAudioSequencer) SetUserCallback ¶
func (o *AVAudioSequencer) SetUserCallback(userCallback func(*AVMusicTrack, *foundation.NSData, float64))
Adds a callback that the sequencer calls each time it encounters a user event during playback.
func (*AVAudioSequencer) StartAndReturnError ¶
func (o *AVAudioSequencer) StartAndReturnError() (bool, error)
Starts the sequencer’s player.
func (*AVAudioSequencer) TempoTrack ¶
func (o *AVAudioSequencer) TempoTrack() *AVMusicTrack
@property tempoTrack @abstract The tempo track @discussion Each AVMusicSequence has a single tempo track. All tempo events read from external MIDI files are placed into this track (as well as other appropriate events (e.g., the time signature meta event from the file). The tempo track can be edited and iterated upon as any other track. Non-tempo-related events will generate exceptions if added.
func (*AVAudioSequencer) Tracks ¶
func (o *AVAudioSequencer) Tracks() *foundation.NSArray[*AVMusicTrack]
@property tracks @abstract An NSArray containing all the AVMusicTracks in the sequence @discussion This list will not include the tempo track.
func (*AVAudioSequencer) UserInfo ¶
func (o *AVAudioSequencer) UserInfo() *foundation.NSDictionary[*foundation.NSString, objc.ID]
@property userInfo @abstract A dictionary containing meta-data derived from a sequence @discussion The dictionary can contain one or more of the values accessible via the AVAudioSequencerInfoDictionaryKeys.
func (*AVAudioSequencer) WriteToURLSMPTEResolutionReplaceExistingError ¶
func (o *AVAudioSequencer) WriteToURLSMPTEResolutionReplaceExistingError(fileURL *foundation.NSURL, resolution int, replace bool) (bool, error)
Creates and writes a MIDI file from the events in the sequence.
type AVAudioSessionActivationOptions ¶
type AVAudioSessionActivationOptions uint64
Constants that describe the options to pass when activating the audio session.
const ( // A value that indicates the system should activate the audio session with no options. AVAudioSessionActivationOptionNone AVAudioSessionActivationOptions = 0 )
func (AVAudioSessionActivationOptions) String ¶
func (e AVAudioSessionActivationOptions) String() string
type AVAudioSessionCapability ¶
type AVAudioSessionCapability struct {
foundation.NSObject
}
Describes whether a specific capability is supported and if that capability is currently enabled
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiosessioncapability
func AVAudioSessionCapabilityFromID ¶
func AVAudioSessionCapabilityFromID(id objc.ID) *AVAudioSessionCapability
func (*AVAudioSessionCapability) IsEnabled ¶
func (o *AVAudioSessionCapability) IsEnabled() bool
A Boolean value that indicates whether the capability is enabled.
func (*AVAudioSessionCapability) IsSupported ¶
func (o *AVAudioSessionCapability) IsSupported() bool
A Boolean value that indicates whether the capability is supported.
type AVAudioSessionCategoryOptions ¶
type AVAudioSessionCategoryOptions uint64
Constants that specify optional audio behaviors.
const ( // Controls whether other active audio apps will be interrupted or mixed with when your app's audio session goes active. Details depend on the category. - “AVAudioSessionCategoryPlayAndRecord“ or “AVAudioSessionCategoryMultiRoute“ with “AVAudioSessionModeDefault“: MixWithOthers defaults to false, but can be set to true, allowing other applications to play in the background while your app has both audio input and output enabled. - “AVAudioSessionCategoryPlayback“: MixWithOthers defaults to false, but can be set to true, allowing other applications to play in the background. Your app will still be able to play regardless of the setting of the ringer switch. - Other categories: MixWithOthers defaults to false and cannot be changed. MixWithOthers is only valid with “AVAudioSessionCategoryPlayAndRecord“, “AVAudioSessionCategoryPlayback“, and “AVAudioSessionCategoryMultiRoute“ with “AVAudioSessionModeDefault“. AVAudioSessionCategoryOptionMixWithOthers AVAudioSessionCategoryOptions = 1 // Controls whether or not other active audio apps will be ducked when when your app's audio session goes active. An example of this is a workout app, which provides periodic updates to the user. It reduces the volume of any music currently being played while it provides its status. Defaults to off. Note that the other audio will be ducked for as long as the current session is active. You will need to deactivate your audio session when you want to restore full volume playback (un-duck) other sessions. Setting this option will also make your session mixable with others (“AVAudioSessionCategoryOptionMixWithOthers“ will be set). DuckOthers is only valid with “AVAudioSessionCategoryAmbient“, “AVAudioSessionCategoryPlayAndRecord“, “AVAudioSessionCategoryPlayback“, and “AVAudioSessionCategoryMultiRoute“ with “AVAudioSessionModeDefault“. AVAudioSessionCategoryOptionDuckOthers AVAudioSessionCategoryOptions = 2 )
func (AVAudioSessionCategoryOptions) String ¶
func (e AVAudioSessionCategoryOptions) String() string
type AVAudioSessionIOType ¶
type AVAudioSessionIOType uint64
Constant values used to specify the audio session’s aggregated I/O behavior.
const ( AVAudioSessionIOTypeNotSpecified AVAudioSessionIOType = 0 AVAudioSessionIOTypeAggregated AVAudioSessionIOType = 1 )
func (AVAudioSessionIOType) String ¶
func (e AVAudioSessionIOType) String() string
type AVAudioSessionInterruptionOptions ¶
type AVAudioSessionInterruptionOptions uint64
Constants that indicate the state of an audio session after an interruption.
const ( // Indicates that you should resume playback now that the interruption has ended. AVAudioSessionInterruptionOptionShouldResume AVAudioSessionInterruptionOptions = 1 )
func (AVAudioSessionInterruptionOptions) String ¶
func (e AVAudioSessionInterruptionOptions) String() string
type AVAudioSessionInterruptionReason ¶
type AVAudioSessionInterruptionReason uint64
Constants that define the reasons for an audio session interruption.
const ( AVAudioSessionInterruptionReasonDefault AVAudioSessionInterruptionReason = 0 AVAudioSessionInterruptionReasonAppWasSuspended AVAudioSessionInterruptionReason = 1 AVAudioSessionInterruptionReasonBuiltInMicMuted AVAudioSessionInterruptionReason = 2 )
func (AVAudioSessionInterruptionReason) String ¶
func (e AVAudioSessionInterruptionReason) String() string
type AVAudioSessionInterruptionType ¶
type AVAudioSessionInterruptionType uint64
Constants that describe the type of an audio interruption.
const ( AVAudioSessionInterruptionTypeBegan AVAudioSessionInterruptionType = 1 AVAudioSessionInterruptionTypeEnded AVAudioSessionInterruptionType = 0 )
func (AVAudioSessionInterruptionType) String ¶
func (e AVAudioSessionInterruptionType) String() string
type AVAudioSessionMicrophoneInjectionMode ¶
type AVAudioSessionMicrophoneInjectionMode int64
The modes of injecting audio into another app’s input stream.
const ( // Default state, microphone injection is not preferred AVAudioSessionMicrophoneInjectionModeNone AVAudioSessionMicrophoneInjectionMode = 0 // Inject Spoken Audio, like synthesized speech, with microphone audio AVAudioSessionMicrophoneInjectionModeSpokenAudio AVAudioSessionMicrophoneInjectionMode = 1 )
func (AVAudioSessionMicrophoneInjectionMode) String ¶
func (e AVAudioSessionMicrophoneInjectionMode) String() string
type AVAudioSessionPortOverride ¶
type AVAudioSessionPortOverride uint64
Constants for use with the overrideOutputAudioPort(_:) method.
const ( // No override. Return audio routing to the default state for the current audio category. AVAudioSessionPortOverrideNone AVAudioSessionPortOverride = 0 )
func (AVAudioSessionPortOverride) String ¶
func (e AVAudioSessionPortOverride) String() string
type AVAudioSessionPromptStyle ¶
type AVAudioSessionPromptStyle uint64
Constants that indicate the prompt style to use.
const ( AVAudioSessionPromptStyleNone AVAudioSessionPromptStyle = 1852796517 AVAudioSessionPromptStyleShort AVAudioSessionPromptStyle = 1936224884 AVAudioSessionPromptStyleNormal AVAudioSessionPromptStyle = 1852992876 )
func (AVAudioSessionPromptStyle) String ¶
func (e AVAudioSessionPromptStyle) String() string
type AVAudioSessionRecordPermission ¶
type AVAudioSessionRecordPermission uint64
The values that define the current state of the record permission request.
func (AVAudioSessionRecordPermission) String ¶
func (e AVAudioSessionRecordPermission) String() string
type AVAudioSessionRenderingMode ¶
type AVAudioSessionRenderingMode int64
Audio session rendering mode identifiers.
const ( // Default Mode when no asset is loaded or playing AVAudioSessionRenderingModeNotApplicable AVAudioSessionRenderingMode = 0 // Default mode for non multi-channel cases AVAudioSessionRenderingModeMonoStereo AVAudioSessionRenderingMode = 1 // Default mode for multi-channel cases that do not fall into the modes below AVAudioSessionRenderingModeSurround AVAudioSessionRenderingMode = 2 // Fallback mode if provided content is Dolby variant but hardware capabilities don't support it AVAudioSessionRenderingModeSpatialAudio AVAudioSessionRenderingMode = 3 // Dolby Audio mode AVAudioSessionRenderingModeDolbyAudio AVAudioSessionRenderingMode = 4 // Dolby Atmos mode AVAudioSessionRenderingModeDolbyAtmos AVAudioSessionRenderingMode = 5 )
func (AVAudioSessionRenderingMode) String ¶
func (e AVAudioSessionRenderingMode) String() string
type AVAudioSessionRouteChangeReason ¶
type AVAudioSessionRouteChangeReason uint64
Constants that indicate the reason for an audio route change.
const ( // The reason is unknown. AVAudioSessionRouteChangeReasonUnknown AVAudioSessionRouteChangeReason = 0 // A new device became available (e.g. headphones have been plugged in). AVAudioSessionRouteChangeReasonNewDeviceAvailable AVAudioSessionRouteChangeReason = 1 AVAudioSessionRouteChangeReasonOldDeviceUnavailable AVAudioSessionRouteChangeReason = 2 // The audio category has changed (e.g. AVAudioSessionCategoryPlayback has been changed to AVAudioSessionCategoryPlayAndRecord). AVAudioSessionRouteChangeReasonCategoryChange AVAudioSessionRouteChangeReason = 3 // The route has been overridden (e.g. category is AVAudioSessionCategoryPlayAndRecord and the output has been changed from the receiver, which is the default, to the speaker). AVAudioSessionRouteChangeReasonOverride AVAudioSessionRouteChangeReason = 4 // The device woke from sleep. AVAudioSessionRouteChangeReasonWakeFromSleep AVAudioSessionRouteChangeReason = 6 // Returned when there is no route for the current category (for instance, the category is AVAudioSessionCategoryRecord but no input device is available). AVAudioSessionRouteChangeReasonNoSuitableRouteForCategory AVAudioSessionRouteChangeReason = 7 // Indicates that the set of input and/our output ports has not changed, but some aspect of their configuration has changed. For example, a port's selected data source has changed. (Introduced in iOS 7.0, watchOS 2.0, tvOS 9.0). AVAudioSessionRouteChangeReasonRouteConfigurationChange AVAudioSessionRouteChangeReason = 8 )
func (AVAudioSessionRouteChangeReason) String ¶
func (e AVAudioSessionRouteChangeReason) String() string
type AVAudioSessionRouteSharingPolicy ¶
type AVAudioSessionRouteSharingPolicy uint64
Cases that indicate the possible route-sharing policies for an audio session.
const ( AVAudioSessionRouteSharingPolicyDefault AVAudioSessionRouteSharingPolicy = 0 AVAudioSessionRouteSharingPolicyLongFormAudio AVAudioSessionRouteSharingPolicy = 1 )
func (AVAudioSessionRouteSharingPolicy) String ¶
func (e AVAudioSessionRouteSharingPolicy) String() string
type AVAudioSessionSetActiveOptions ¶
type AVAudioSessionSetActiveOptions uint64
Options that provide additional information about your app’s audio intentions upon session deactivation.
const ( // Notify an interrupted app that the interruption has ended and it may resume playback. Only valid on session deactivation. AVAudioSessionSetActiveOptionNotifyOthersOnDeactivation AVAudioSessionSetActiveOptions = 1 )
func (AVAudioSessionSetActiveOptions) String ¶
func (e AVAudioSessionSetActiveOptions) String() string
type AVAudioSessionSilenceSecondaryAudioHintType ¶
type AVAudioSessionSilenceSecondaryAudioHintType uint64
Constants that indicate whether optional secondary audio muting should begin or end.
const ( // Another application's primary audio has started. AVAudioSessionSilenceSecondaryAudioHintTypeBegin AVAudioSessionSilenceSecondaryAudioHintType = 1 // Another application's primary audio has stopped. AVAudioSessionSilenceSecondaryAudioHintTypeEnd AVAudioSessionSilenceSecondaryAudioHintType = 0 )
func (AVAudioSessionSilenceSecondaryAudioHintType) String ¶
func (e AVAudioSessionSilenceSecondaryAudioHintType) String() string
type AVAudioSinkNode ¶
type AVAudioSinkNode struct {
AVAudioNode
}
An object that receives audio data.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiosinknode
func AVAudioSinkNodeFromID ¶
func AVAudioSinkNodeFromID(id objc.ID) *AVAudioSinkNode
func (*AVAudioSinkNode) InitWithReceiverBlock ¶
func (o *AVAudioSinkNode) InitWithReceiverBlock(block func(*coreaudiotypes.AudioTimeStamp, uint32, *coreaudiotypes.AudioBufferList) int) *AVAudioSinkNode
Creates an audio sink node with a block that receives audio data.
type AVAudioSourceNode ¶
type AVAudioSourceNode struct {
AVAudioNode
}
An object that supplies audio data.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiosourcenode
func AVAudioSourceNodeFromID ¶
func AVAudioSourceNodeFromID(id objc.ID) *AVAudioSourceNode
func (*AVAudioSourceNode) InitWithFormatRenderBlock ¶
func (o *AVAudioSourceNode) InitWithFormatRenderBlock(format *AVAudioFormat, block func(*bool, *coreaudiotypes.AudioTimeStamp, uint32, *coreaudiotypes.AudioBufferList) int) *AVAudioSourceNode
Creates an audio source node with the audio format and a block that supplies audio data.
func (*AVAudioSourceNode) InitWithRenderBlock ¶
func (o *AVAudioSourceNode) InitWithRenderBlock(block func(*bool, *coreaudiotypes.AudioTimeStamp, uint32, *coreaudiotypes.AudioBufferList) int) *AVAudioSourceNode
Creates an audio source node with a block that supplies audio data.
type AVAudioStereoMixing ¶
AVAudioStereoMixing wraps the ObjC protocol AVAudioStereoMixing.
type AVAudioStereoOrientation ¶
type AVAudioStereoOrientation int64
Constants that define the supported stereo orientations.
const ( AVAudioStereoOrientationNone AVAudioStereoOrientation = 0 AVAudioStereoOrientationPortrait AVAudioStereoOrientation = 1 AVAudioStereoOrientationPortraitUpsideDown AVAudioStereoOrientation = 2 AVAudioStereoOrientationLandscapeRight AVAudioStereoOrientation = 3 AVAudioStereoOrientationLandscapeLeft AVAudioStereoOrientation = 4 )
func (AVAudioStereoOrientation) String ¶
func (e AVAudioStereoOrientation) String() string
type AVAudioTime ¶
type AVAudioTime struct {
foundation.NSObject
}
An object you use to represent a moment in time.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiotime
func AVAudioTimeFromID ¶
func AVAudioTimeFromID(id objc.ID) *AVAudioTime
func AVAudioTimeTimeWithAudioTimeStampSampleRate ¶
func AVAudioTimeTimeWithAudioTimeStampSampleRate(ts *coreaudiotypes.AudioTimeStamp, sampleRate float64) *AVAudioTime
Creates an audio time object with the specified timestamp and sample rate.
func AVAudioTimeTimeWithHostTime ¶
func AVAudioTimeTimeWithHostTime(hostTime uint64) *AVAudioTime
Creates an audio time object with the specified host time.
func AVAudioTimeTimeWithHostTimeSampleTimeAtRate ¶
func AVAudioTimeTimeWithHostTimeSampleTimeAtRate(hostTime uint64, sampleTime int64, sampleRate float64) *AVAudioTime
Creates an audio time object with the specified host time, sample time, and sample rate.
func AVAudioTimeTimeWithSampleTimeAtRate ¶
func AVAudioTimeTimeWithSampleTimeAtRate(sampleTime int64, sampleRate float64) *AVAudioTime
Creates an audio time object with the specified sample time and sample rate.
func (*AVAudioTime) AudioTimeStamp ¶
func (o *AVAudioTime) AudioTimeStamp() coreaudiotypes.AudioTimeStamp
@property audioTimeStamp @abstract The time expressed as an AudioTimeStamp structure. @discussion This may be useful for compatibility with lower-level CoreAudio and AudioToolbox API's.
func (*AVAudioTime) ExtrapolateTimeFromAnchor ¶
func (o *AVAudioTime) ExtrapolateTimeFromAnchor(anchorTime *AVAudioTime) *AVAudioTime
Creates an audio time object by converting between host time and sample time.
func (*AVAudioTime) HostTime ¶
func (o *AVAudioTime) HostTime() uint64
@property hostTime @abstract The host time.
func (*AVAudioTime) InitWithAudioTimeStampSampleRate ¶
func (o *AVAudioTime) InitWithAudioTimeStampSampleRate(ts *coreaudiotypes.AudioTimeStamp, sampleRate float64) *AVAudioTime
Creates an audio time object with the specified timestamp and sample rate.
func (*AVAudioTime) InitWithHostTime ¶
func (o *AVAudioTime) InitWithHostTime(hostTime uint64) *AVAudioTime
Creates an audio time object with the specified host time.
func (*AVAudioTime) InitWithHostTimeSampleTimeAtRate ¶
func (o *AVAudioTime) InitWithHostTimeSampleTimeAtRate(hostTime uint64, sampleTime int64, sampleRate float64) *AVAudioTime
Creates an audio time object with the specified host time, sample time, and sample rate.
func (*AVAudioTime) InitWithSampleTimeAtRate ¶
func (o *AVAudioTime) InitWithSampleTimeAtRate(sampleTime int64, sampleRate float64) *AVAudioTime
Creates an audio time object with the specified timestamp and sample rate.
func (*AVAudioTime) IsHostTimeValid ¶
func (o *AVAudioTime) IsHostTimeValid() bool
@property hostTimeValid @abstract Whether the hostTime property is valid.
func (*AVAudioTime) IsSampleTimeValid ¶
func (o *AVAudioTime) IsSampleTimeValid() bool
@property sampleTimeValid @abstract Whether the sampleTime and sampleRate properties are valid.
func (*AVAudioTime) SampleRate ¶
func (o *AVAudioTime) SampleRate() float64
@property sampleRate @abstract The sample rate at which sampleTime is being expressed.
func (*AVAudioTime) SampleTime ¶
func (o *AVAudioTime) SampleTime() int64
@property sampleTime @abstract The time as a number of audio samples, as tracked by the current audio device.
type AVAudioUnit ¶
type AVAudioUnit struct {
AVAudioNode
}
A subclass of the audio node class that, processes audio either in real time or nonreal time, depending on the type of the audio unit.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiounit
func AVAudioUnitFromID ¶
func AVAudioUnitFromID(id objc.ID) *AVAudioUnit
func (*AVAudioUnit) AudioComponentDescription ¶
func (o *AVAudioUnit) AudioComponentDescription() objc.ID
@property audioComponentDescription @abstract AudioComponentDescription of the underlying audio unit.
func (*AVAudioUnit) AudioUnit ¶
func (o *AVAudioUnit) AudioUnit() *carboncore.ComponentInstanceRecord
@property audioUnit @abstract Reference to the underlying audio unit. @discussion A reference to the underlying audio unit is provided so that parameters that are not exposed by AVAudioUnit subclasses can be modified using the AudioUnit C API. No operations that may conflict with state maintained by the engine should be performed directly on the audio unit. These include changing initialization state, stream formats, channel layouts or connections to other audio units.
func (*AVAudioUnit) LoadAudioUnitPresetAtURLError ¶
func (o *AVAudioUnit) LoadAudioUnitPresetAtURLError(url *foundation.NSURL) (bool, error)
Loads an audio unit using a specified preset.
func (*AVAudioUnit) ManufacturerName ¶
func (o *AVAudioUnit) ManufacturerName() *foundation.NSString
@property manufacturerName @abstract Manufacturer name of the audio unit.
func (*AVAudioUnit) Name ¶
func (o *AVAudioUnit) Name() *foundation.NSString
@property name @abstract Name of the audio unit.
type AVAudioUnitComponent ¶
type AVAudioUnitComponent struct {
foundation.NSObject
}
An object that provides details about an audio unit.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiounitcomponent
func AVAudioUnitComponentFromID ¶
func AVAudioUnitComponentFromID(id objc.ID) *AVAudioUnitComponent
func (*AVAudioUnitComponent) AllTagNames ¶
func (o *AVAudioUnitComponent) AllTagNames() *foundation.NSArray[*foundation.NSString]
@property allTagNames @abstract represent the tags from the current user and the system tags defined by AudioComponent.
func (*AVAudioUnitComponent) AudioComponent ¶
func (o *AVAudioUnitComponent) AudioComponent() unsafe.Pointer
@property audioComponent @abstract the audioComponent that can be used in AudioComponent APIs.
func (*AVAudioUnitComponent) AudioComponentDescription ¶
func (o *AVAudioUnitComponent) AudioComponentDescription() objc.ID
@property audioComponentDescription @abstract description of the audio component that can be used in AudioComponent APIs.
func (*AVAudioUnitComponent) AvailableArchitectures ¶
func (o *AVAudioUnitComponent) AvailableArchitectures() *foundation.NSArray[*foundation.NSNumber]
@property availableArchitectures @abstract NSArray of NSNumbers each of which corresponds to one of the constants in Mach-O Architecture in NSBundle Class Reference
func (*AVAudioUnitComponent) ComponentURL ¶
func (o *AVAudioUnitComponent) ComponentURL() *foundation.NSURL
@property componentURL @abstract URL representing location of component Deprecated: since macOS 10.11.
func (*AVAudioUnitComponent) ConfigurationDictionary ¶
func (o *AVAudioUnitComponent) ConfigurationDictionary() *foundation.NSDictionary[*foundation.NSString, objc.ID]
@property configurationDictionary @abstract A NSDictionary that contains information describing the capabilities of the AudioComponent. The specific information depends on the type and the keys are defined in AudioUnitProperties.h
func (*AVAudioUnitComponent) HasCustomView ¶
func (o *AVAudioUnitComponent) HasCustomView() bool
@property hasCustomView @abstract YES if the AudioComponent provides custom view, otherwise NO
func (*AVAudioUnitComponent) HasMIDIInput ¶
func (o *AVAudioUnitComponent) HasMIDIInput() bool
@property hasMIDIInput @abstract YES if AudioComponent has midi input, otherwise NO
func (*AVAudioUnitComponent) HasMIDIOutput ¶
func (o *AVAudioUnitComponent) HasMIDIOutput() bool
@property hasMIDIOutput @abstract YES if AudioComponent has midi output, otherwise NO
func (*AVAudioUnitComponent) Icon ¶
func (o *AVAudioUnitComponent) Icon() *appkit.NSImage
func (*AVAudioUnitComponent) IconURL ¶
func (o *AVAudioUnitComponent) IconURL() *foundation.NSURL
@property iconURL @abstract A URL that will specify the location of an icon file that can be used when presenting UI for this audio component.
func (*AVAudioUnitComponent) IsSandboxSafe ¶
func (o *AVAudioUnitComponent) IsSandboxSafe() bool
@property sandboxSafe @abstract On OSX, YES if the AudioComponent can be loaded into a sandboxed process otherwise NO. On iOS, this is always YES.
func (*AVAudioUnitComponent) LocalizedTypeName ¶
func (o *AVAudioUnitComponent) LocalizedTypeName() *foundation.NSString
@property localizedTypeName @abstract localized string of typeName for display
func (*AVAudioUnitComponent) ManufacturerName ¶
func (o *AVAudioUnitComponent) ManufacturerName() *foundation.NSString
@property manufacturerName @abstract the manufacturer name, extracted from the manufacturer key defined in Info.plist dictionary
func (*AVAudioUnitComponent) Name ¶
func (o *AVAudioUnitComponent) Name() *foundation.NSString
@property name @abstract the name of an audio component
func (*AVAudioUnitComponent) PassesAUVal ¶
func (o *AVAudioUnitComponent) PassesAUVal() bool
@property passesAUVal @abstract YES if the AudioComponent has passed the AU validation tests, otherwise NO
func (*AVAudioUnitComponent) SetUserTagNames ¶
func (o *AVAudioUnitComponent) SetUserTagNames(userTagNames *foundation.NSArray[*foundation.NSString])
func (*AVAudioUnitComponent) SupportsNumberInputChannelsOutputChannels ¶
func (o *AVAudioUnitComponent) SupportsNumberInputChannelsOutputChannels(numInputChannels int, numOutputChannels int) bool
Gets a Boolean value that indicates whether the audio unit component supports the specified number of input and output channels.
func (*AVAudioUnitComponent) TypeName ¶
func (o *AVAudioUnitComponent) TypeName() *foundation.NSString
@property typeName @abstract standard audio component types returned as strings
func (*AVAudioUnitComponent) UserTagNames ¶
func (o *AVAudioUnitComponent) UserTagNames() *foundation.NSArray[*foundation.NSString]
@property userTagNames @abstract User tags represent the tags from the current user.
func (*AVAudioUnitComponent) VersionString ¶
func (o *AVAudioUnitComponent) VersionString() *foundation.NSString
@property versionString @abstract version number as string
type AVAudioUnitComponentManager ¶
type AVAudioUnitComponentManager struct {
foundation.NSObject
}
An object that provides a way to search and query audio components that the system registers.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiounitcomponentmanager
func AVAudioUnitComponentManagerFromID ¶
func AVAudioUnitComponentManagerFromID(id objc.ID) *AVAudioUnitComponentManager
func AVAudioUnitComponentManagerSharedAudioUnitComponentManager ¶
func AVAudioUnitComponentManagerSharedAudioUnitComponentManager() *AVAudioUnitComponentManager
Gets the shared component manager instance.
func (*AVAudioUnitComponentManager) ComponentsMatchingDescription ¶
func (o *AVAudioUnitComponentManager) ComponentsMatchingDescription(desc objc.ID) *foundation.NSArray[*AVAudioUnitComponent]
Gets an array of audio component objects that match the description.
func (*AVAudioUnitComponentManager) ComponentsMatchingPredicate ¶
func (o *AVAudioUnitComponentManager) ComponentsMatchingPredicate(predicate *foundation.NSPredicate) *foundation.NSArray[*AVAudioUnitComponent]
Gets an array of audio component objects that match the search predicate.
func (*AVAudioUnitComponentManager) ComponentsPassingTest ¶
func (o *AVAudioUnitComponentManager) ComponentsPassingTest(testHandler func(*AVAudioUnitComponent, *bool) bool) *foundation.NSArray[*AVAudioUnitComponent]
Gets an array of audio components that pass the block method.
func (*AVAudioUnitComponentManager) StandardLocalizedTagNames ¶
func (o *AVAudioUnitComponentManager) StandardLocalizedTagNames() *foundation.NSArray[*foundation.NSString]
func (*AVAudioUnitComponentManager) TagNames ¶
func (o *AVAudioUnitComponentManager) TagNames() *foundation.NSArray[*foundation.NSString]
@discussion returns all tags associated with the current user as well as all system tags defined by the audio unit(s).
type AVAudioUnitDelay ¶
type AVAudioUnitDelay struct {
AVAudioUnitEffect
}
An object that implements a delay effect.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiounitdelay
func AVAudioUnitDelayFromID ¶
func AVAudioUnitDelayFromID(id objc.ID) *AVAudioUnitDelay
func (*AVAudioUnitDelay) DelayTime ¶
func (o *AVAudioUnitDelay) DelayTime() float64
@property delayTime Time taken by the delayed input signal to reach the output @abstract Range: 0 -> 2 Default: 1 Unit: Seconds
func (*AVAudioUnitDelay) Feedback ¶
func (o *AVAudioUnitDelay) Feedback() float32
@property feedback @abstract Amount of the output signal fed back into the delay line Range: -100 -> 100 Default: 50 Unit: Percent
func (*AVAudioUnitDelay) LowPassCutoff ¶
func (o *AVAudioUnitDelay) LowPassCutoff() float32
@property lowPassCutoff @abstract Cutoff frequency above which high frequency content is rolled off Range: 10 -> (samplerate/2) Default: 15000 Unit: Hertz
func (*AVAudioUnitDelay) SetDelayTime ¶
func (o *AVAudioUnitDelay) SetDelayTime(delayTime float64)
func (*AVAudioUnitDelay) SetFeedback ¶
func (o *AVAudioUnitDelay) SetFeedback(feedback float32)
func (*AVAudioUnitDelay) SetLowPassCutoff ¶
func (o *AVAudioUnitDelay) SetLowPassCutoff(lowPassCutoff float32)
func (*AVAudioUnitDelay) SetWetDryMix ¶
func (o *AVAudioUnitDelay) SetWetDryMix(wetDryMix float32)
func (*AVAudioUnitDelay) WetDryMix ¶
func (o *AVAudioUnitDelay) WetDryMix() float32
@property wetDryMix @abstract Blend of the wet and dry signals Range: 0 (all dry) -> 100 (all wet) Default: 100 Unit: Percent
type AVAudioUnitDistortion ¶
type AVAudioUnitDistortion struct {
AVAudioUnitEffect
}
An object that implements a multistage distortion effect.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiounitdistortion
func AVAudioUnitDistortionFromID ¶
func AVAudioUnitDistortionFromID(id objc.ID) *AVAudioUnitDistortion
func (*AVAudioUnitDistortion) LoadFactoryPreset ¶
func (o *AVAudioUnitDistortion) LoadFactoryPreset(preset AVAudioUnitDistortionPreset)
Configures the audio distortion unit by loading a distortion preset.
func (*AVAudioUnitDistortion) PreGain ¶
func (o *AVAudioUnitDistortion) PreGain() float32
@property preGain @abstract Gain applied to the signal before being distorted Range: -80 -> 20 Default: -6 Unit: dB
func (*AVAudioUnitDistortion) SetPreGain ¶
func (o *AVAudioUnitDistortion) SetPreGain(preGain float32)
func (*AVAudioUnitDistortion) SetWetDryMix ¶
func (o *AVAudioUnitDistortion) SetWetDryMix(wetDryMix float32)
func (*AVAudioUnitDistortion) WetDryMix ¶
func (o *AVAudioUnitDistortion) WetDryMix() float32
@property wetDryMix @abstract Blend of the distorted and dry signals Range: 0 (all dry) -> 100 (all distorted) Default: 50 Unit: Percent
type AVAudioUnitDistortionPreset ¶
type AVAudioUnitDistortionPreset int64
Constants that represent preset audio distortions.
const ( // A preset that represents a bit brush drums distortion. AVAudioUnitDistortionPresetDrumsBitBrush AVAudioUnitDistortionPreset = 0 // A preset that represents a buffer beat drums distortion. AVAudioUnitDistortionPresetDrumsBufferBeats AVAudioUnitDistortionPreset = 1 // A preset that represents a low fidelity drums distortion. AVAudioUnitDistortionPresetDrumsLoFi AVAudioUnitDistortionPreset = 2 // A preset that represents a broken speaker distortion. AVAudioUnitDistortionPresetMultiBrokenSpeaker AVAudioUnitDistortionPreset = 3 // A preset that represents a cellphone concert distortion. AVAudioUnitDistortionPresetMultiCellphoneConcert AVAudioUnitDistortionPreset = 4 // A preset that represents a variant of the decimated distortion. AVAudioUnitDistortionPresetMultiDecimated1 AVAudioUnitDistortionPreset = 5 // A preset that represents a variant of the decimated distortion. AVAudioUnitDistortionPresetMultiDecimated2 AVAudioUnitDistortionPreset = 6 // A preset that represents a variant of the decimated distortion. AVAudioUnitDistortionPresetMultiDecimated3 AVAudioUnitDistortionPreset = 7 // A preset that represents a variant of the decimated distortion. AVAudioUnitDistortionPresetMultiDecimated4 AVAudioUnitDistortionPreset = 8 // A preset that represents a distorted funk distortion. AVAudioUnitDistortionPresetMultiDistortedFunk AVAudioUnitDistortionPreset = 9 // A preset that represents a distorted cubed distortion. AVAudioUnitDistortionPresetMultiDistortedCubed AVAudioUnitDistortionPreset = 10 // A preset that represents a distorted squared distortion. AVAudioUnitDistortionPresetMultiDistortedSquared AVAudioUnitDistortionPreset = 11 // A preset that represents a variant of an echo distortion. AVAudioUnitDistortionPresetMultiEcho1 AVAudioUnitDistortionPreset = 12 // A preset that represents a variant of an echo distortion. AVAudioUnitDistortionPresetMultiEcho2 AVAudioUnitDistortionPreset = 13 // A preset that represents a variant of a tight echo distortion. AVAudioUnitDistortionPresetMultiEchoTight1 AVAudioUnitDistortionPreset = 14 // A preset that represents a variant of a tight echo distortion. AVAudioUnitDistortionPresetMultiEchoTight2 AVAudioUnitDistortionPreset = 15 // A preset that represents an everything-is-broken distortion. AVAudioUnitDistortionPresetMultiEverythingIsBroken AVAudioUnitDistortionPreset = 16 // A preset that represents an alien chatter distortion. AVAudioUnitDistortionPresetSpeechAlienChatter AVAudioUnitDistortionPreset = 17 // A preset that represents a cosmic interference distortion. AVAudioUnitDistortionPresetSpeechCosmicInterference AVAudioUnitDistortionPreset = 18 // A preset that represents a golden pi distortion. AVAudioUnitDistortionPresetSpeechGoldenPi AVAudioUnitDistortionPreset = 19 // A preset that represents a radio tower distortion. AVAudioUnitDistortionPresetSpeechRadioTower AVAudioUnitDistortionPreset = 20 // A preset that represents a speech wave distortion. AVAudioUnitDistortionPresetSpeechWaves AVAudioUnitDistortionPreset = 21 )
func (AVAudioUnitDistortionPreset) String ¶
func (e AVAudioUnitDistortionPreset) String() string
type AVAudioUnitEQ ¶
type AVAudioUnitEQ struct {
AVAudioUnitEffect
}
An object that implements a multiband equalizer.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiouniteq
func AVAudioUnitEQFromID ¶
func AVAudioUnitEQFromID(id objc.ID) *AVAudioUnitEQ
func (*AVAudioUnitEQ) Bands ¶
func (o *AVAudioUnitEQ) Bands() *foundation.NSArray[*AVAudioUnitEQFilterParameters]
@property bands @abstract Array of AVAudioUnitEQFilterParameters objects. @discussion The number of elements in the array is equal to the number of bands.
func (*AVAudioUnitEQ) GlobalGain ¶
func (o *AVAudioUnitEQ) GlobalGain() float32
@property globalGain @abstract Overall gain adjustment applied to the signal. @discussion Range: -96 -> 24 Default: 0 Unit: dB
func (*AVAudioUnitEQ) InitWithNumberOfBands ¶
func (o *AVAudioUnitEQ) InitWithNumberOfBands(numberOfBands uint) *AVAudioUnitEQ
Creates an audio unit equalizer object with the specified number of bands.
func (*AVAudioUnitEQ) SetGlobalGain ¶
func (o *AVAudioUnitEQ) SetGlobalGain(globalGain float32)
type AVAudioUnitEQFilterParameters ¶
type AVAudioUnitEQFilterParameters struct {
foundation.NSObject
}
An object that encapsulates the parameters that the equalizer uses.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiouniteqfilterparameters
func AVAudioUnitEQFilterParametersFromID ¶
func AVAudioUnitEQFilterParametersFromID(id objc.ID) *AVAudioUnitEQFilterParameters
func (*AVAudioUnitEQFilterParameters) Bandwidth ¶
func (o *AVAudioUnitEQFilterParameters) Bandwidth() float32
@property bandwidth @abstract Bandwidth in octaves. @discussion Range: 0.05 -> 5.0 Unit: Octaves
func (*AVAudioUnitEQFilterParameters) Bypass ¶
func (o *AVAudioUnitEQFilterParameters) Bypass() bool
@property bypass @abstract bypass state of band. @discussion Default: YES
func (*AVAudioUnitEQFilterParameters) FilterType ¶
func (o *AVAudioUnitEQFilterParameters) FilterType() AVAudioUnitEQFilterType
@property filterType @abstract AVAudioUnitEQFilterType @discussion Default: AVAudioUnitEQFilterTypeParametric
func (*AVAudioUnitEQFilterParameters) Frequency ¶
func (o *AVAudioUnitEQFilterParameters) Frequency() float32
@property frequency @abstract Frequency in Hertz. @discussion Range: 20 -> (SampleRate/2) Unit: Hertz
func (*AVAudioUnitEQFilterParameters) Gain ¶
func (o *AVAudioUnitEQFilterParameters) Gain() float32
@property gain @abstract Gain in dB. @discussion Range: -96 -> 24 Default: 0 Unit: dB
func (*AVAudioUnitEQFilterParameters) SetBandwidth ¶
func (o *AVAudioUnitEQFilterParameters) SetBandwidth(bandwidth float32)
func (*AVAudioUnitEQFilterParameters) SetBypass ¶
func (o *AVAudioUnitEQFilterParameters) SetBypass(bypass bool)
func (*AVAudioUnitEQFilterParameters) SetFilterType ¶
func (o *AVAudioUnitEQFilterParameters) SetFilterType(filterType AVAudioUnitEQFilterType)
func (*AVAudioUnitEQFilterParameters) SetFrequency ¶
func (o *AVAudioUnitEQFilterParameters) SetFrequency(frequency float32)
func (*AVAudioUnitEQFilterParameters) SetGain ¶
func (o *AVAudioUnitEQFilterParameters) SetGain(gain float32)
type AVAudioUnitEQFilterType ¶
type AVAudioUnitEQFilterType int64
Filter types available to use with the filter type property.
const ( // A type that represents a parametric filter that derives from a Butterworth analog prototype. AVAudioUnitEQFilterTypeParametric AVAudioUnitEQFilterType = 0 // A type that represents a simple Butterworth second-order low-pass filter. AVAudioUnitEQFilterTypeLowPass AVAudioUnitEQFilterType = 1 // A type that represents a simple Butterworth second-order high-pass filter. AVAudioUnitEQFilterTypeHighPass AVAudioUnitEQFilterType = 2 // A type that represents a low-pass filter with resonance support using the bandwidth parameter. AVAudioUnitEQFilterTypeResonantLowPass AVAudioUnitEQFilterType = 3 // A type that represents a high-pass filter with resonance support using the bandwidth parameter. AVAudioUnitEQFilterTypeResonantHighPass AVAudioUnitEQFilterType = 4 // A type that represents a bandpass filter. AVAudioUnitEQFilterTypeBandPass AVAudioUnitEQFilterType = 5 // A type that represents a band-stop filter, also known as a notch filter. AVAudioUnitEQFilterTypeBandStop AVAudioUnitEQFilterType = 6 // A type that represents a low-shelf filter. AVAudioUnitEQFilterTypeLowShelf AVAudioUnitEQFilterType = 7 // A type that represents a high-shelf filter. AVAudioUnitEQFilterTypeHighShelf AVAudioUnitEQFilterType = 8 // A type that represents a low-shelf filter with resonance support using the bandwidth parameter. AVAudioUnitEQFilterTypeResonantLowShelf AVAudioUnitEQFilterType = 9 // A type that represents a high-shelf filter with resonance support using the bandwidth parameter. AVAudioUnitEQFilterTypeResonantHighShelf AVAudioUnitEQFilterType = 10 )
func (AVAudioUnitEQFilterType) String ¶
func (e AVAudioUnitEQFilterType) String() string
type AVAudioUnitEffect ¶
type AVAudioUnitEffect struct {
AVAudioUnit
}
An object that processes audio in real time.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiouniteffect
func AVAudioUnitEffectFromID ¶
func AVAudioUnitEffectFromID(id objc.ID) *AVAudioUnitEffect
func (*AVAudioUnitEffect) Bypass ¶
func (o *AVAudioUnitEffect) Bypass() bool
func (*AVAudioUnitEffect) InitWithAudioComponentDescription ¶
func (o *AVAudioUnitEffect) InitWithAudioComponentDescription(audioComponentDescription objc.ID) *AVAudioUnitEffect
Creates an audio unit effect object with the specified description.
func (*AVAudioUnitEffect) SetBypass ¶
func (o *AVAudioUnitEffect) SetBypass(bypass bool)
type AVAudioUnitGenerator ¶
type AVAudioUnitGenerator struct {
AVAudioUnit
}
An object that generates audio output.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiounitgenerator
func AVAudioUnitGeneratorFromID ¶
func AVAudioUnitGeneratorFromID(id objc.ID) *AVAudioUnitGenerator
func (*AVAudioUnitGenerator) Bypass ¶
func (o *AVAudioUnitGenerator) Bypass() bool
func (*AVAudioUnitGenerator) InitWithAudioComponentDescription ¶
func (o *AVAudioUnitGenerator) InitWithAudioComponentDescription(audioComponentDescription objc.ID) *AVAudioUnitGenerator
Creates a generator audio unit with the specified description.
func (*AVAudioUnitGenerator) SetBypass ¶
func (o *AVAudioUnitGenerator) SetBypass(bypass bool)
type AVAudioUnitMIDIInstrument ¶
type AVAudioUnitMIDIInstrument struct {
AVAudioUnit
}
An object that represents music devices or remote instruments.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiounitmidiinstrument
func AVAudioUnitMIDIInstrumentFromID ¶
func AVAudioUnitMIDIInstrumentFromID(id objc.ID) *AVAudioUnitMIDIInstrument
func (*AVAudioUnitMIDIInstrument) InitWithAudioComponentDescription ¶
func (o *AVAudioUnitMIDIInstrument) InitWithAudioComponentDescription(description objc.ID) *AVAudioUnitMIDIInstrument
Creates a MIDI instrument audio unit with the component description you specify.
func (*AVAudioUnitMIDIInstrument) SendControllerWithValueOnChannel ¶
func (o *AVAudioUnitMIDIInstrument) SendControllerWithValueOnChannel(controller uint8, value uint8, channel uint8)
Sends a MIDI controller event to the instrument.
func (*AVAudioUnitMIDIInstrument) SendMIDIEventData1 ¶
func (o *AVAudioUnitMIDIInstrument) SendMIDIEventData1(midiStatus uint8, data1 uint8)
Sends a MIDI event which contains one data byte to the instrument.
func (*AVAudioUnitMIDIInstrument) SendMIDIEventData1Data2 ¶
func (o *AVAudioUnitMIDIInstrument) SendMIDIEventData1Data2(midiStatus uint8, data1 uint8, data2 uint8)
Sends a MIDI event which contains two data bytes to the instrument.
func (*AVAudioUnitMIDIInstrument) SendMIDIEventList ¶
func (o *AVAudioUnitMIDIInstrument) SendMIDIEventList(eventList *coremidi.MIDIEventList)
Sends a MIDI event list to the instrument.
func (*AVAudioUnitMIDIInstrument) SendMIDISysExEvent ¶
func (o *AVAudioUnitMIDIInstrument) SendMIDISysExEvent(midiData *foundation.NSData)
Sends a MIDI System Exclusive event to the instrument.
func (*AVAudioUnitMIDIInstrument) SendPitchBendOnChannel ¶
func (o *AVAudioUnitMIDIInstrument) SendPitchBendOnChannel(pitchbend uint16, channel uint8)
Sends a MIDI Pitch Bend event to the instrument.
func (*AVAudioUnitMIDIInstrument) SendPressureForKeyWithValueOnChannel ¶
func (o *AVAudioUnitMIDIInstrument) SendPressureForKeyWithValueOnChannel(key uint8, value uint8, channel uint8)
Sends a MIDI Polyphonic key pressure event to the instrument.
func (*AVAudioUnitMIDIInstrument) SendPressureOnChannel ¶
func (o *AVAudioUnitMIDIInstrument) SendPressureOnChannel(pressure uint8, channel uint8)
Sends a MIDI channel pressure event to the instrument.
func (*AVAudioUnitMIDIInstrument) SendProgramChangeBankMSBBankLSBOnChannel ¶
func (o *AVAudioUnitMIDIInstrument) SendProgramChangeBankMSBBankLSBOnChannel(program uint8, bankMSB uint8, bankLSB uint8, channel uint8)
Sends MIDI Program Change and Bank Select events to the instrument.
func (*AVAudioUnitMIDIInstrument) SendProgramChangeOnChannel ¶
func (o *AVAudioUnitMIDIInstrument) SendProgramChangeOnChannel(program uint8, channel uint8)
Sends MIDI Program Change and Bank Select events to the instrument.
func (*AVAudioUnitMIDIInstrument) StartNoteWithVelocityOnChannel ¶
func (o *AVAudioUnitMIDIInstrument) StartNoteWithVelocityOnChannel(note uint8, velocity uint8, channel uint8)
Sends a MIDI Note On event to the instrument.
func (*AVAudioUnitMIDIInstrument) StopNoteOnChannel ¶
func (o *AVAudioUnitMIDIInstrument) StopNoteOnChannel(note uint8, channel uint8)
Sends a MIDI Note Off event to the instrument.
type AVAudioUnitReverb ¶
type AVAudioUnitReverb struct {
AVAudioUnitEffect
}
An object that implements a reverb effect.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiounitreverb
func AVAudioUnitReverbFromID ¶
func AVAudioUnitReverbFromID(id objc.ID) *AVAudioUnitReverb
func (*AVAudioUnitReverb) LoadFactoryPreset ¶
func (o *AVAudioUnitReverb) LoadFactoryPreset(preset AVAudioUnitReverbPreset)
Configures the audio unit as a reverb preset.
func (*AVAudioUnitReverb) SetWetDryMix ¶
func (o *AVAudioUnitReverb) SetWetDryMix(wetDryMix float32)
func (*AVAudioUnitReverb) WetDryMix ¶
func (o *AVAudioUnitReverb) WetDryMix() float32
type AVAudioUnitReverbPreset ¶
type AVAudioUnitReverbPreset int64
Constants that represent preset reverbs.
const ( // A preset that represents a reverb with the acoustic characteristics of a small-sized room environment. AVAudioUnitReverbPresetSmallRoom AVAudioUnitReverbPreset = 0 // A preset that represents a reverb with the acoustic characteristics of a medium-sized room environment. AVAudioUnitReverbPresetMediumRoom AVAudioUnitReverbPreset = 1 // A preset that represents a reverb with the acoustic characteristics of a large-sized room environment. AVAudioUnitReverbPresetLargeRoom AVAudioUnitReverbPreset = 2 // A preset that represents a reverb with the acoustic characteristics of a medium-sized hall environment. AVAudioUnitReverbPresetMediumHall AVAudioUnitReverbPreset = 3 // A preset that represents a reverb with the acoustic characteristics of a large-sized hall environment. AVAudioUnitReverbPresetLargeHall AVAudioUnitReverbPreset = 4 // A preset that represents a reverb with the acoustic characteristics of a plate environment. AVAudioUnitReverbPresetPlate AVAudioUnitReverbPreset = 5 // A preset that represents a reverb with the acoustic characteristics of a medium-sized chamber environment. AVAudioUnitReverbPresetMediumChamber AVAudioUnitReverbPreset = 6 // A preset that represents a reverb with the acoustic characteristics of a large-sized chamber environment. AVAudioUnitReverbPresetLargeChamber AVAudioUnitReverbPreset = 7 // A preset that represents a reverb with the acoustic characteristics of a cathedral environment. AVAudioUnitReverbPresetCathedral AVAudioUnitReverbPreset = 8 // A preset that represents a reverb with the acoustic characteristics of an alternative large-sized room environment. AVAudioUnitReverbPresetLargeRoom2 AVAudioUnitReverbPreset = 9 // A preset that represents a reverb with the acoustic characteristics of an alternative medium-sized hall environment. AVAudioUnitReverbPresetMediumHall2 AVAudioUnitReverbPreset = 10 // A preset that represents a reverb with the acoustic characteristics of an alternative medium-sized hall environment. AVAudioUnitReverbPresetMediumHall3 AVAudioUnitReverbPreset = 11 // A preset that represents a reverb with the acoustic characteristics of an alternative large-sized hall environment. AVAudioUnitReverbPresetLargeHall2 AVAudioUnitReverbPreset = 12 )
func (AVAudioUnitReverbPreset) String ¶
func (e AVAudioUnitReverbPreset) String() string
type AVAudioUnitSampler ¶
type AVAudioUnitSampler struct {
AVAudioUnitMIDIInstrument
}
An object that you configure with one or more instrument samples, based on Apple’s Sampler audio unit.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiounitsampler
func AVAudioUnitSamplerFromID ¶
func AVAudioUnitSamplerFromID(id objc.ID) *AVAudioUnitSampler
func (*AVAudioUnitSampler) GlobalTuning ¶
func (o *AVAudioUnitSampler) GlobalTuning() float32
@property globalTuning @abstract adjusts the tuning of all the notes played. Range: -2400 -> +2400 cents Default: 0
func (*AVAudioUnitSampler) LoadAudioFilesAtURLsError ¶
func (o *AVAudioUnitSampler) LoadAudioFilesAtURLsError(audioFiles *foundation.NSArray[*foundation.NSURL]) (bool, error)
Configures the sampler by loading the specified audio files.
func (*AVAudioUnitSampler) LoadInstrumentAtURLError ¶
func (o *AVAudioUnitSampler) LoadInstrumentAtURLError(instrumentURL *foundation.NSURL) (bool, error)
Configures the sampler with the specified instrument file.
func (*AVAudioUnitSampler) LoadSoundBankInstrumentAtURLProgramBankMSBBankLSBError ¶
func (o *AVAudioUnitSampler) LoadSoundBankInstrumentAtURLProgramBankMSBBankLSBError(bankURL *foundation.NSURL, program uint8, bankMSB uint8, bankLSB uint8) (bool, error)
Loads a specific instrument from the specified soundbank.
func (*AVAudioUnitSampler) MasterGain ¶
func (o *AVAudioUnitSampler) MasterGain() float32
@property masterGain @abstract adjusts the gain of all the notes played Range: -90.0 -> +12 db Default: 0 db Deprecated: since macOS 12.0.
func (*AVAudioUnitSampler) OverallGain ¶
func (o *AVAudioUnitSampler) OverallGain() float32
@property overallGain @abstract adjusts the gain of all the notes played Range: -90.0 -> +12 db Default: 0 db
func (*AVAudioUnitSampler) SetGlobalTuning ¶
func (o *AVAudioUnitSampler) SetGlobalTuning(globalTuning float32)
func (*AVAudioUnitSampler) SetMasterGain
deprecated
func (o *AVAudioUnitSampler) SetMasterGain(masterGain float32)
Deprecated: since macOS 12.0.
func (*AVAudioUnitSampler) SetOverallGain ¶
func (o *AVAudioUnitSampler) SetOverallGain(overallGain float32)
func (*AVAudioUnitSampler) SetStereoPan ¶
func (o *AVAudioUnitSampler) SetStereoPan(stereoPan float32)
func (*AVAudioUnitSampler) StereoPan ¶
func (o *AVAudioUnitSampler) StereoPan() float32
@property stereoPan @abstract adjusts the pan for all the notes played. Range: -100 -> +100 Default: 0
type AVAudioUnitTimeEffect ¶
type AVAudioUnitTimeEffect struct {
AVAudioUnit
}
An object that processes audio in nonreal time.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiounittimeeffect
func AVAudioUnitTimeEffectFromID ¶
func AVAudioUnitTimeEffectFromID(id objc.ID) *AVAudioUnitTimeEffect
func (*AVAudioUnitTimeEffect) Bypass ¶
func (o *AVAudioUnitTimeEffect) Bypass() bool
func (*AVAudioUnitTimeEffect) InitWithAudioComponentDescription ¶
func (o *AVAudioUnitTimeEffect) InitWithAudioComponentDescription(audioComponentDescription objc.ID) *AVAudioUnitTimeEffect
Creates a time effect audio unit with the specified description.
func (*AVAudioUnitTimeEffect) SetBypass ¶
func (o *AVAudioUnitTimeEffect) SetBypass(bypass bool)
type AVAudioUnitTimePitch ¶
type AVAudioUnitTimePitch struct {
AVAudioUnitTimeEffect
}
An object that provides a good-quality playback rate and pitch shifting independently of each other.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiounittimepitch
func AVAudioUnitTimePitchFromID ¶
func AVAudioUnitTimePitchFromID(id objc.ID) *AVAudioUnitTimePitch
func (*AVAudioUnitTimePitch) Overlap ¶
func (o *AVAudioUnitTimePitch) Overlap() float32
@property overlap @abstract amount of overlap between segments of the input audio signal @discussion A higher value results in fewer artifacts in the output signal. This parameter also impacts the amount of CPU used. Range: 3.0 -> 32.0 Default: 8.0 Unit: Generic
func (*AVAudioUnitTimePitch) Pitch ¶
func (o *AVAudioUnitTimePitch) Pitch() float32
@property pitch @abstract amount by which the input signal is pitch shifted @discussion 1 octave = 1200 cents 1 musical semitone = 100 cents Range: -2400 -> 2400 Default: 0.0 Unit: Cents
func (*AVAudioUnitTimePitch) Rate ¶
func (o *AVAudioUnitTimePitch) Rate() float32
@property rate @abstract playback rate of the input signal Range: 1/32 -> 32.0 Default: 1.0 Unit: Generic
func (*AVAudioUnitTimePitch) SetOverlap ¶
func (o *AVAudioUnitTimePitch) SetOverlap(overlap float32)
func (*AVAudioUnitTimePitch) SetPitch ¶
func (o *AVAudioUnitTimePitch) SetPitch(pitch float32)
func (*AVAudioUnitTimePitch) SetRate ¶
func (o *AVAudioUnitTimePitch) SetRate(rate float32)
type AVAudioUnitVarispeed ¶
type AVAudioUnitVarispeed struct {
AVAudioUnitTimeEffect
}
An object that allows control of the playback rate.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avaudiounitvarispeed
func AVAudioUnitVarispeedFromID ¶
func AVAudioUnitVarispeedFromID(id objc.ID) *AVAudioUnitVarispeed
func (*AVAudioUnitVarispeed) Rate ¶
func (o *AVAudioUnitVarispeed) Rate() float32
func (*AVAudioUnitVarispeed) SetRate ¶
func (o *AVAudioUnitVarispeed) SetRate(rate float32)
type AVAudioVoiceProcessingOtherAudioDuckingConfiguration ¶
type AVAudioVoiceProcessingOtherAudioDuckingConfiguration struct {
EnableAdvancedDucking bool
DuckingLevel AVAudioVoiceProcessingOtherAudioDuckingLevel
}
The configuration of ducking non-voice audio.
type AVAudioVoiceProcessingOtherAudioDuckingLevel ¶
type AVAudioVoiceProcessingOtherAudioDuckingLevel int64
Constants that define the supported ducking levels.
const ( AVAudioVoiceProcessingOtherAudioDuckingLevelDefault AVAudioVoiceProcessingOtherAudioDuckingLevel = 0 AVAudioVoiceProcessingOtherAudioDuckingLevelMin AVAudioVoiceProcessingOtherAudioDuckingLevel = 10 AVAudioVoiceProcessingOtherAudioDuckingLevelMid AVAudioVoiceProcessingOtherAudioDuckingLevel = 20 AVAudioVoiceProcessingOtherAudioDuckingLevelMax AVAudioVoiceProcessingOtherAudioDuckingLevel = 30 )
func (AVAudioVoiceProcessingOtherAudioDuckingLevel) String ¶
func (e AVAudioVoiceProcessingOtherAudioDuckingLevel) String() string
type AVAudioVoiceProcessingSpeechActivityEvent ¶
type AVAudioVoiceProcessingSpeechActivityEvent int64
Types of speech activity events.
const ( // Indicates the start of speech activity. AVAudioVoiceProcessingSpeechActivityStarted AVAudioVoiceProcessingSpeechActivityEvent = 0 // Indicates the end of speech activity. AVAudioVoiceProcessingSpeechActivityEnded AVAudioVoiceProcessingSpeechActivityEvent = 1 )
func (AVAudioVoiceProcessingSpeechActivityEvent) String ¶
func (e AVAudioVoiceProcessingSpeechActivityEvent) String() string
type AVBeatRange ¶
C struct: _AVBeatRange
func AVMakeBeatRange ¶
func AVMakeBeatRange(startBeat float64, lengthInBeats float64) AVBeatRange
type AVExtendedNoteOnEvent ¶
type AVExtendedNoteOnEvent struct {
AVMusicEvent
}
An object that represents a custom extension of a MIDI note on event.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avextendednoteonevent
func AVExtendedNoteOnEventFromID ¶
func AVExtendedNoteOnEventFromID(id objc.ID) *AVExtendedNoteOnEvent
func (*AVExtendedNoteOnEvent) Duration ¶
func (o *AVExtendedNoteOnEvent) Duration() float64
@property duration The duration of this event in AVMusicTimeStamp beats. Range: Any nonnegative number.
func (*AVExtendedNoteOnEvent) GroupID ¶
func (o *AVExtendedNoteOnEvent) GroupID() uint
@property groupID This represents the audio unit channel (i.e., Group Scope) which should handle this event. Range: normally between 0 and 15, but may be higher if the AVMusicTrack's destinationAudioUnit supports more channels.
func (*AVExtendedNoteOnEvent) InitWithMIDINoteVelocityGroupIDDuration ¶
func (o *AVExtendedNoteOnEvent) InitWithMIDINoteVelocityGroupIDDuration(midiNote float32, velocity float32, groupID uint, duration float64) *AVExtendedNoteOnEvent
Creates an event with a MIDI note, velocity, group identifier, and duration.
func (*AVExtendedNoteOnEvent) InitWithMIDINoteVelocityInstrumentIDGroupIDDuration ¶
func (o *AVExtendedNoteOnEvent) InitWithMIDINoteVelocityInstrumentIDGroupIDDuration(midiNote float32, velocity float32, instrumentID uint, groupID uint, duration float64) *AVExtendedNoteOnEvent
Creates a note on event with the default instrument.
func (*AVExtendedNoteOnEvent) InstrumentID ¶
func (o *AVExtendedNoteOnEvent) InstrumentID() uint
@property instrumentID This should be set to AVExtendedNoteOnEventDefaultInstrument.
func (*AVExtendedNoteOnEvent) MidiNote ¶
func (o *AVExtendedNoteOnEvent) MidiNote() float32
@property midiNote The MIDI note number represented as a floating point. If the instrument within the AVMusicTrack's destinationAudioUnit supports fractional values, this may be used to generate arbitrary macro- and micro-tunings. Range: Destination-dependent, usually 0.0 - 127.0.
func (*AVExtendedNoteOnEvent) SetDuration ¶
func (o *AVExtendedNoteOnEvent) SetDuration(duration float64)
func (*AVExtendedNoteOnEvent) SetGroupID ¶
func (o *AVExtendedNoteOnEvent) SetGroupID(groupID uint)
func (*AVExtendedNoteOnEvent) SetInstrumentID ¶
func (o *AVExtendedNoteOnEvent) SetInstrumentID(instrumentID uint)
func (*AVExtendedNoteOnEvent) SetMidiNote ¶
func (o *AVExtendedNoteOnEvent) SetMidiNote(midiNote float32)
func (*AVExtendedNoteOnEvent) SetVelocity ¶
func (o *AVExtendedNoteOnEvent) SetVelocity(velocity float32)
func (*AVExtendedNoteOnEvent) Velocity ¶
func (o *AVExtendedNoteOnEvent) Velocity() float32
@property velocity The MIDI velocity represented as a floating point. If the instrument within the AVMusicTrack's destinationAudioUnit supports fractional values, this may be used to generate very precise changes in gain, etc. Range: Destination-dependent, usually 0.0 - 127.0.
type AVExtendedTempoEvent ¶
type AVExtendedTempoEvent struct {
AVMusicEvent
}
An object that represents a tempo change to a specific beats-per-minute value.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avextendedtempoevent
func AVExtendedTempoEventFromID ¶
func AVExtendedTempoEventFromID(id objc.ID) *AVExtendedTempoEvent
func (*AVExtendedTempoEvent) InitWithTempo ¶
func (o *AVExtendedTempoEvent) InitWithTempo(tempo float64) *AVExtendedTempoEvent
Creates an extended tempo event.
func (*AVExtendedTempoEvent) SetTempo ¶
func (o *AVExtendedTempoEvent) SetTempo(tempo float64)
func (*AVExtendedTempoEvent) Tempo ¶
func (o *AVExtendedTempoEvent) Tempo() float64
type AVMIDIChannelEvent ¶
type AVMIDIChannelEvent struct {
AVMusicEvent
}
A base class for all MIDI messages that operate on a single MIDI channel.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avmidichannelevent
func AVMIDIChannelEventFromID ¶
func AVMIDIChannelEventFromID(id objc.ID) *AVMIDIChannelEvent
func (*AVMIDIChannelEvent) Channel ¶
func (o *AVMIDIChannelEvent) Channel() uint
func (*AVMIDIChannelEvent) SetChannel ¶
func (o *AVMIDIChannelEvent) SetChannel(channel uint)
type AVMIDIChannelPressureEvent ¶
type AVMIDIChannelPressureEvent struct {
AVMIDIChannelEvent
}
An object that represents a MIDI channel pressure message.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avmidichannelpressureevent
func AVMIDIChannelPressureEventFromID ¶
func AVMIDIChannelPressureEventFromID(id objc.ID) *AVMIDIChannelPressureEvent
func (*AVMIDIChannelPressureEvent) InitWithChannelPressure ¶
func (o *AVMIDIChannelPressureEvent) InitWithChannelPressure(channel uint, pressure uint) *AVMIDIChannelPressureEvent
Creates a pressure event with a channel and pressure value.
func (*AVMIDIChannelPressureEvent) Pressure ¶
func (o *AVMIDIChannelPressureEvent) Pressure() uint
func (*AVMIDIChannelPressureEvent) SetPressure ¶
func (o *AVMIDIChannelPressureEvent) SetPressure(pressure uint)
type AVMIDIControlChangeEvent ¶
type AVMIDIControlChangeEvent struct {
AVMIDIChannelEvent
}
An object that represents a MIDI control change message.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avmidicontrolchangeevent
func AVMIDIControlChangeEventFromID ¶
func AVMIDIControlChangeEventFromID(id objc.ID) *AVMIDIControlChangeEvent
func (*AVMIDIControlChangeEvent) InitWithChannelMessageTypeValue ¶
func (o *AVMIDIControlChangeEvent) InitWithChannelMessageTypeValue(channel uint, messageType AVMIDIControlChangeMessageType, value uint) *AVMIDIControlChangeEvent
Creates an event with a channel, control change type, and a value.
func (*AVMIDIControlChangeEvent) MessageType ¶
func (o *AVMIDIControlChangeEvent) MessageType() AVMIDIControlChangeMessageType
@property messageType The type of control change message, specified as an AVMIDIControlChangeMessageType.
func (*AVMIDIControlChangeEvent) Value ¶
func (o *AVMIDIControlChangeEvent) Value() uint
@property value The value of the control change event. The range of this value depends on the type (see the General MIDI specification).
type AVMIDIControlChangeMessageType ¶
type AVMIDIControlChangeMessageType int64
Constants that represents control change event types.
const ( AVMIDIControlChangeMessageTypeBankSelect AVMIDIControlChangeMessageType = 0 AVMIDIControlChangeMessageTypeModWheel AVMIDIControlChangeMessageType = 1 AVMIDIControlChangeMessageTypeBreath AVMIDIControlChangeMessageType = 2 AVMIDIControlChangeMessageTypeFoot AVMIDIControlChangeMessageType = 4 AVMIDIControlChangeMessageTypePortamentoTime AVMIDIControlChangeMessageType = 5 AVMIDIControlChangeMessageTypeDataEntry AVMIDIControlChangeMessageType = 6 AVMIDIControlChangeMessageTypeVolume AVMIDIControlChangeMessageType = 7 AVMIDIControlChangeMessageTypeBalance AVMIDIControlChangeMessageType = 8 AVMIDIControlChangeMessageTypePan AVMIDIControlChangeMessageType = 10 AVMIDIControlChangeMessageTypeExpression AVMIDIControlChangeMessageType = 11 AVMIDIControlChangeMessageTypeSustain AVMIDIControlChangeMessageType = 64 AVMIDIControlChangeMessageTypePortamento AVMIDIControlChangeMessageType = 65 AVMIDIControlChangeMessageTypeSostenuto AVMIDIControlChangeMessageType = 66 AVMIDIControlChangeMessageTypeSoft AVMIDIControlChangeMessageType = 67 AVMIDIControlChangeMessageTypeLegatoPedal AVMIDIControlChangeMessageType = 68 AVMIDIControlChangeMessageTypeHold2Pedal AVMIDIControlChangeMessageType = 69 AVMIDIControlChangeMessageTypeFilterResonance AVMIDIControlChangeMessageType = 71 AVMIDIControlChangeMessageTypeReleaseTime AVMIDIControlChangeMessageType = 72 AVMIDIControlChangeMessageTypeAttackTime AVMIDIControlChangeMessageType = 73 AVMIDIControlChangeMessageTypeBrightness AVMIDIControlChangeMessageType = 74 AVMIDIControlChangeMessageTypeDecayTime AVMIDIControlChangeMessageType = 75 AVMIDIControlChangeMessageTypeVibratoRate AVMIDIControlChangeMessageType = 76 AVMIDIControlChangeMessageTypeVibratoDepth AVMIDIControlChangeMessageType = 77 AVMIDIControlChangeMessageTypeVibratoDelay AVMIDIControlChangeMessageType = 78 AVMIDIControlChangeMessageTypeReverbLevel AVMIDIControlChangeMessageType = 91 AVMIDIControlChangeMessageTypeChorusLevel AVMIDIControlChangeMessageType = 93 AVMIDIControlChangeMessageTypeRPN_LSB AVMIDIControlChangeMessageType = 100 AVMIDIControlChangeMessageTypeRPN_MSB AVMIDIControlChangeMessageType = 101 AVMIDIControlChangeMessageTypeAllSoundOff AVMIDIControlChangeMessageType = 120 AVMIDIControlChangeMessageTypeResetAllControllers AVMIDIControlChangeMessageType = 121 AVMIDIControlChangeMessageTypeAllNotesOff AVMIDIControlChangeMessageType = 123 AVMIDIControlChangeMessageTypeOmniModeOff AVMIDIControlChangeMessageType = 124 AVMIDIControlChangeMessageTypeOmniModeOn AVMIDIControlChangeMessageType = 125 AVMIDIControlChangeMessageTypeMonoModeOn AVMIDIControlChangeMessageType = 126 AVMIDIControlChangeMessageTypeMonoModeOff AVMIDIControlChangeMessageType = 127 )
func (AVMIDIControlChangeMessageType) String ¶
func (e AVMIDIControlChangeMessageType) String() string
type AVMIDIMetaEvent ¶
type AVMIDIMetaEvent struct {
AVMusicEvent
}
An object that represents MIDI meta event messages.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avmidimetaevent
func AVMIDIMetaEventFromID ¶
func AVMIDIMetaEventFromID(id objc.ID) *AVMIDIMetaEvent
func (*AVMIDIMetaEvent) InitWithTypeData ¶
func (o *AVMIDIMetaEvent) InitWithTypeData(type_ AVMIDIMetaEventType, data *foundation.NSData) *AVMIDIMetaEvent
Creates an event with a MIDI meta event type and data.
func (*AVMIDIMetaEvent) Type ¶
func (o *AVMIDIMetaEvent) Type() AVMIDIMetaEventType
type AVMIDIMetaEventType ¶
type AVMIDIMetaEventType int64
Constants that represent the types of meta events.
const ( AVMIDIMetaEventTypeSequenceNumber AVMIDIMetaEventType = 0 AVMIDIMetaEventTypeText AVMIDIMetaEventType = 1 AVMIDIMetaEventTypeCopyright AVMIDIMetaEventType = 2 AVMIDIMetaEventTypeTrackName AVMIDIMetaEventType = 3 AVMIDIMetaEventTypeInstrument AVMIDIMetaEventType = 4 AVMIDIMetaEventTypeLyric AVMIDIMetaEventType = 5 AVMIDIMetaEventTypeMarker AVMIDIMetaEventType = 6 AVMIDIMetaEventTypeCuePoint AVMIDIMetaEventType = 7 AVMIDIMetaEventTypeMidiChannel AVMIDIMetaEventType = 32 AVMIDIMetaEventTypeMidiPort AVMIDIMetaEventType = 33 AVMIDIMetaEventTypeEndOfTrack AVMIDIMetaEventType = 47 AVMIDIMetaEventTypeTempo AVMIDIMetaEventType = 81 AVMIDIMetaEventTypeSmpteOffset AVMIDIMetaEventType = 84 AVMIDIMetaEventTypeTimeSignature AVMIDIMetaEventType = 88 AVMIDIMetaEventTypeKeySignature AVMIDIMetaEventType = 89 AVMIDIMetaEventTypeProprietaryEvent AVMIDIMetaEventType = 127 )
func (AVMIDIMetaEventType) String ¶
func (e AVMIDIMetaEventType) String() string
type AVMIDINoteEvent ¶
type AVMIDINoteEvent struct {
AVMusicEvent
}
An object that represents MIDI note on or off messages.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avmidinoteevent
func AVMIDINoteEventFromID ¶
func AVMIDINoteEventFromID(id objc.ID) *AVMIDINoteEvent
func (*AVMIDINoteEvent) Channel ¶
func (o *AVMIDINoteEvent) Channel() uint
@property channel The MIDI channel for the event. Range: 0-15.
func (*AVMIDINoteEvent) Duration ¶
func (o *AVMIDINoteEvent) Duration() float64
@property duration The duration of the event in AVMusicTimeStamp beats. Range: Any non-negative number.
func (*AVMIDINoteEvent) InitWithChannelKeyVelocityDuration ¶
func (o *AVMIDINoteEvent) InitWithChannelKeyVelocityDuration(channel uint, keyNum uint, velocity uint, duration float64) *AVMIDINoteEvent
Creates an event with a MIDI channel, key number, velocity, and duration.
func (*AVMIDINoteEvent) Key ¶
func (o *AVMIDINoteEvent) Key() uint
@property key The MIDI key number for the event. Range: 0-127.
func (*AVMIDINoteEvent) SetChannel ¶
func (o *AVMIDINoteEvent) SetChannel(channel uint)
func (*AVMIDINoteEvent) SetDuration ¶
func (o *AVMIDINoteEvent) SetDuration(duration float64)
func (*AVMIDINoteEvent) SetKey ¶
func (o *AVMIDINoteEvent) SetKey(key uint)
func (*AVMIDINoteEvent) SetVelocity ¶
func (o *AVMIDINoteEvent) SetVelocity(velocity uint)
func (*AVMIDINoteEvent) Velocity ¶
func (o *AVMIDINoteEvent) Velocity() uint
@property velocity The MIDI velocity for the event. Range: 0-127.
type AVMIDIPitchBendEvent ¶
type AVMIDIPitchBendEvent struct {
AVMIDIChannelEvent
}
An object that represents a MIDI pitch bend message.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avmidipitchbendevent
func AVMIDIPitchBendEventFromID ¶
func AVMIDIPitchBendEventFromID(id objc.ID) *AVMIDIPitchBendEvent
func (*AVMIDIPitchBendEvent) InitWithChannelValue ¶
func (o *AVMIDIPitchBendEvent) InitWithChannelValue(channel uint, value uint) *AVMIDIPitchBendEvent
Creates an event with a channel and pitch bend value.
func (*AVMIDIPitchBendEvent) SetValue ¶
func (o *AVMIDIPitchBendEvent) SetValue(value uint)
func (*AVMIDIPitchBendEvent) Value ¶
func (o *AVMIDIPitchBendEvent) Value() uint
type AVMIDIPlayer ¶
type AVMIDIPlayer struct {
foundation.NSObject
}
An object that plays MIDI data through a system sound module.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avmidiplayer
func AVMIDIPlayerFromID ¶
func AVMIDIPlayerFromID(id objc.ID) *AVMIDIPlayer
func (*AVMIDIPlayer) CurrentPosition ¶
func (o *AVMIDIPlayer) CurrentPosition() float64
@property currentPosition @abstract The current playback position in seconds @discussion Setting this positions the player to the specified time. No range checking on the time value is done. This can be set while the player is playing, in which case playback will resume at the new time.
func (*AVMIDIPlayer) Duration ¶
func (o *AVMIDIPlayer) Duration() float64
@property duration @abstract The length of the currently loaded file in seconds.
func (*AVMIDIPlayer) InitWithContentsOfURLSoundBankURLError ¶
func (o *AVMIDIPlayer) InitWithContentsOfURLSoundBankURLError(inURL *foundation.NSURL, bankURL *foundation.NSURL) (*AVMIDIPlayer, error)
Creates a player to play a MIDI file with the specified soundbank.
func (*AVMIDIPlayer) InitWithDataSoundBankURLError ¶
func (o *AVMIDIPlayer) InitWithDataSoundBankURLError(data *foundation.NSData, bankURL *foundation.NSURL) (*AVMIDIPlayer, error)
Creates a player to play MIDI data with the specified soundbank.
func (*AVMIDIPlayer) IsPlaying ¶
func (o *AVMIDIPlayer) IsPlaying() bool
@property playing @abstract Indicates whether or not the player is playing
func (*AVMIDIPlayer) Play ¶
func (o *AVMIDIPlayer) Play(completionHandler func())
Plays the MIDI sequence.
func (*AVMIDIPlayer) PrepareToPlay ¶
func (o *AVMIDIPlayer) PrepareToPlay()
Prepares the player to play the sequence by prerolling all events.
func (*AVMIDIPlayer) Rate ¶
func (o *AVMIDIPlayer) Rate() float32
@property rate @abstract The playback rate of the player @discussion 1.0 is normal playback rate. Rate must be > 0.0.
func (*AVMIDIPlayer) SetCurrentPosition ¶
func (o *AVMIDIPlayer) SetCurrentPosition(currentPosition float64)
func (*AVMIDIPlayer) SetRate ¶
func (o *AVMIDIPlayer) SetRate(rate float32)
type AVMIDIPolyPressureEvent ¶
type AVMIDIPolyPressureEvent struct {
AVMIDIChannelEvent
}
An object that represents a MIDI poly or key pressure event.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avmidipolypressureevent
func AVMIDIPolyPressureEventFromID ¶
func AVMIDIPolyPressureEventFromID(id objc.ID) *AVMIDIPolyPressureEvent
func (*AVMIDIPolyPressureEvent) InitWithChannelKeyPressure ¶
func (o *AVMIDIPolyPressureEvent) InitWithChannelKeyPressure(channel uint, key uint, pressure uint) *AVMIDIPolyPressureEvent
Creates an event with a channel, MIDI key number, and a key pressure value.
func (*AVMIDIPolyPressureEvent) Key ¶
func (o *AVMIDIPolyPressureEvent) Key() uint
@property key The MIDI key number.
func (*AVMIDIPolyPressureEvent) Pressure ¶
func (o *AVMIDIPolyPressureEvent) Pressure() uint
@property pressure The poly pressure value for the requested key.
func (*AVMIDIPolyPressureEvent) SetKey ¶
func (o *AVMIDIPolyPressureEvent) SetKey(key uint)
func (*AVMIDIPolyPressureEvent) SetPressure ¶
func (o *AVMIDIPolyPressureEvent) SetPressure(pressure uint)
type AVMIDIProgramChangeEvent ¶
type AVMIDIProgramChangeEvent struct {
AVMIDIChannelEvent
}
An object that represents a MIDI program or patch change message.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avmidiprogramchangeevent
func AVMIDIProgramChangeEventFromID ¶
func AVMIDIProgramChangeEventFromID(id objc.ID) *AVMIDIProgramChangeEvent
func (*AVMIDIProgramChangeEvent) InitWithChannelProgramNumber ¶
func (o *AVMIDIProgramChangeEvent) InitWithChannelProgramNumber(channel uint, programNumber uint) *AVMIDIProgramChangeEvent
Creates a program change event with a channel and program number.
func (*AVMIDIProgramChangeEvent) ProgramNumber ¶
func (o *AVMIDIProgramChangeEvent) ProgramNumber() uint
func (*AVMIDIProgramChangeEvent) SetProgramNumber ¶
func (o *AVMIDIProgramChangeEvent) SetProgramNumber(programNumber uint)
type AVMIDISysexEvent ¶
type AVMIDISysexEvent struct {
AVMusicEvent
}
An object that represents a MIDI system exclusive message.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avmidisysexevent
func AVMIDISysexEventFromID ¶
func AVMIDISysexEventFromID(id objc.ID) *AVMIDISysexEvent
func (*AVMIDISysexEvent) InitWithData ¶
func (o *AVMIDISysexEvent) InitWithData(data *foundation.NSData) *AVMIDISysexEvent
Creates a system event with the data you specify.
func (*AVMIDISysexEvent) SizeInBytes ¶
func (o *AVMIDISysexEvent) SizeInBytes() uint
type AVMusicEvent ¶
type AVMusicEvent struct {
foundation.NSObject
}
A base class for the events you associate with a music track.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avmusicevent
func AVMusicEventFromID ¶
func AVMusicEventFromID(id objc.ID) *AVMusicEvent
type AVMusicSequenceLoadOptions ¶
type AVMusicSequenceLoadOptions uint64
A structure that defines whether data on different MIDI channels map to multiple tracks, or whether the framework preserves the tracks as they are.
const ( // An option that preserves the tracks as they are. AVMusicSequenceLoadSMF_PreserveTracks AVMusicSequenceLoadOptions = 0 // An option that represents data on different MIDI channels mapped to multiple tracks. AVMusicSequenceLoadSMF_ChannelsToTracks AVMusicSequenceLoadOptions = 1 )
func (AVMusicSequenceLoadOptions) String ¶
func (e AVMusicSequenceLoadOptions) String() string
type AVMusicTrack ¶
type AVMusicTrack struct {
foundation.NSObject
}
A collection of music events that you can offset, set to a muted state, modify independently from other track events, and send to a specified destination.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avmusictrack
func AVMusicTrackFromID ¶
func AVMusicTrackFromID(id objc.ID) *AVMusicTrack
func (*AVMusicTrack) AddEventAtBeat ¶
func (o *AVMusicTrack) AddEventAtBeat(event *AVMusicEvent, beat float64)
Adds a music event to a track at the time you specify.
func (*AVMusicTrack) ClearEventsInRange ¶
func (o *AVMusicTrack) ClearEventsInRange(range_ AVBeatRange)
Removes all events in the given beat range from the music track.
func (*AVMusicTrack) CopyAndMergeEventsInRangeFromTrackMergeAtBeat ¶
func (o *AVMusicTrack) CopyAndMergeEventsInRangeFromTrackMergeAtBeat(range_ AVBeatRange, sourceTrack *AVMusicTrack, mergeStartBeat float64)
Copies the events from the source track and merges them into the current music track.
func (*AVMusicTrack) CopyEventsInRangeFromTrackInsertAtBeat ¶
func (o *AVMusicTrack) CopyEventsInRangeFromTrackInsertAtBeat(range_ AVBeatRange, sourceTrack *AVMusicTrack, insertStartBeat float64)
Copies the events from the source track and splices them into the current music track.
func (*AVMusicTrack) CutEventsInRange ¶
func (o *AVMusicTrack) CutEventsInRange(range_ AVBeatRange)
Splices all events in the beat range from the music track.
func (*AVMusicTrack) DestinationAudioUnit ¶
func (o *AVMusicTrack) DestinationAudioUnit() *AVAudioUnit
@property destinationAudioUnit @abstract The AVAudioUnit which will receive the track's events @discussion This is mutually exclusive with setting a destination MIDIEndpoint. The AU must already be attached to an audio engine, and the track must be part of the AVAudioSequencer associated with that engine. When playing, the track will send its events to that AVAudioUnit. The destination AU cannot be changed while the track's sequence is playing.
func (*AVMusicTrack) DestinationMIDIEndpoint ¶
func (o *AVMusicTrack) DestinationMIDIEndpoint() uint
func (*AVMusicTrack) EnumerateEventsInRangeUsing ¶
func (o *AVMusicTrack) EnumerateEventsInRangeUsing(range_ AVBeatRange, block func(*AVMusicEvent, *float64, *bool))
Iterates through the music events within the track.
func (*AVMusicTrack) IsLoopingEnabled ¶
func (o *AVMusicTrack) IsLoopingEnabled() bool
@property loopingEnabled @abstract Determines whether or not the track is looped. @discussion If loopRange has not been set, the full track will be looped.
func (*AVMusicTrack) IsMuted ¶
func (o *AVMusicTrack) IsMuted() bool
@property muted @abstract Whether the track is muted
func (*AVMusicTrack) IsSoloed ¶
func (o *AVMusicTrack) IsSoloed() bool
@property soloed @abstract Whether the track is soloed
func (*AVMusicTrack) LengthInBeats ¶
func (o *AVMusicTrack) LengthInBeats() float64
@property lengthInBeats @abstract The total duration of the track in beats @discussion This will return the beat of the last event in the track plus any additional time that may be needed for fading out of ending notes or round a loop point to musical bar, etc. If this has not been set by the user, the track length will always be adjusted to the end of the last active event in a track and is adjusted dynamically as events are added or removed. The property will return the maximum of the user-set track length, or the calculated length.
func (*AVMusicTrack) LengthInSeconds ¶
func (o *AVMusicTrack) LengthInSeconds() float64
@property lengthInSeconds @abstract The total duration of the track in seconds @discussion This will return time of the last event in the track plus any additional time that may be needed for fading out of ending notes or round a loop point to musical bar, etc. If this has not been set by the user, the track length will always be adjusted to the end of the last active event in a track and is adjusted dynamically as events are added or removed. The property will return the maximum of the user-set track length, or the calculated length.
func (*AVMusicTrack) LoopRange ¶
func (o *AVMusicTrack) LoopRange() AVBeatRange
@property loopRange @abstract The timestamp range in beats for the loop @discussion The loop is set by specifying its beat range.
func (*AVMusicTrack) MoveEventsInRangeByAmount ¶
func (o *AVMusicTrack) MoveEventsInRangeByAmount(range_ AVBeatRange, beatAmount float64)
Moves the beat location of all events in the given beat range by the amount you specify.
func (*AVMusicTrack) NumberOfLoops ¶
func (o *AVMusicTrack) NumberOfLoops() int
@property numberOfLoops @abstract The number of times that the track's loop will repeat @discussion If set to AVMusicTrackLoopCountForever, the track will loop forever. Otherwise, legal values start with 1.
func (*AVMusicTrack) OffsetTime ¶
func (o *AVMusicTrack) OffsetTime() float64
@property offsetTime @abstract Offset the track's start time to the specified time in beats @discussion By default this value is zero.
func (*AVMusicTrack) SetDestinationAudioUnit ¶
func (o *AVMusicTrack) SetDestinationAudioUnit(destinationAudioUnit *AVAudioUnit)
func (*AVMusicTrack) SetDestinationMIDIEndpoint ¶
func (o *AVMusicTrack) SetDestinationMIDIEndpoint(destinationMIDIEndpoint uint)
func (*AVMusicTrack) SetLengthInBeats ¶
func (o *AVMusicTrack) SetLengthInBeats(lengthInBeats float64)
func (*AVMusicTrack) SetLengthInSeconds ¶
func (o *AVMusicTrack) SetLengthInSeconds(lengthInSeconds float64)
func (*AVMusicTrack) SetLoopRange ¶
func (o *AVMusicTrack) SetLoopRange(loopRange AVBeatRange)
func (*AVMusicTrack) SetLoopingEnabled ¶
func (o *AVMusicTrack) SetLoopingEnabled(loopingEnabled bool)
func (*AVMusicTrack) SetMuted ¶
func (o *AVMusicTrack) SetMuted(muted bool)
func (*AVMusicTrack) SetNumberOfLoops ¶
func (o *AVMusicTrack) SetNumberOfLoops(numberOfLoops int)
func (*AVMusicTrack) SetOffsetTime ¶
func (o *AVMusicTrack) SetOffsetTime(offsetTime float64)
func (*AVMusicTrack) SetSoloed ¶
func (o *AVMusicTrack) SetSoloed(soloed bool)
func (*AVMusicTrack) SetUsesAutomatedParameters ¶
func (o *AVMusicTrack) SetUsesAutomatedParameters(usesAutomatedParameters bool)
func (*AVMusicTrack) TimeResolution ¶
func (o *AVMusicTrack) TimeResolution() uint
@property timeResolution @abstract The time resolution value for the sequence, in ticks (pulses) per quarter note (PPQN) @discussion If a MIDI file was used to construct the containing sequence, the resolution will be what was in the file. If you want to keep a time resolution when writing a new file, you can retrieve this value and then specify it when calling -[AVAudioSequencer writeToFile:flags:withResolution]. It has no direct bearing on the rendering or notion of time of the sequence itself, just its representation in MIDI files. By default this is set to either 480 if the sequence was created manually, or a value based on what was in a MIDI file if the sequence was created from a MIDI file. This can only be retrieved from the tempo track.
func (*AVMusicTrack) UsesAutomatedParameters ¶
func (o *AVMusicTrack) UsesAutomatedParameters() bool
@property usesAutomatedParameters @abstract Indicates whether the track is an automation track. @discussion If set to YES, this can be used to contain, parameter automation events, exclusively. Adding any other event types will generate exceptions. If a track already contains non-parameter events, setting this to YES will generate an exception.
type AVMusicTrackLoopCount ¶
type AVMusicTrackLoopCount int64
Options that define the number of times a track loops.
const ( // A track that loops forever. AVMusicTrackLoopCountForever AVMusicTrackLoopCount = -1 )
func (AVMusicTrackLoopCount) String ¶
func (e AVMusicTrackLoopCount) String() string
type AVMusicUserEvent ¶
type AVMusicUserEvent struct {
AVMusicEvent
}
An object that represents a custom user message.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avmusicuserevent
func AVMusicUserEventFromID ¶
func AVMusicUserEventFromID(id objc.ID) *AVMusicUserEvent
func (*AVMusicUserEvent) InitWithData ¶
func (o *AVMusicUserEvent) InitWithData(data *foundation.NSData) *AVMusicUserEvent
Creates a user event with the data you specify.
func (*AVMusicUserEvent) SizeInBytes ¶
func (o *AVMusicUserEvent) SizeInBytes() uint
type AVParameterEvent ¶
type AVParameterEvent struct {
AVMusicEvent
}
An object that represents a parameter event on a music track’s destination.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avparameterevent
func AVParameterEventFromID ¶
func AVParameterEventFromID(id objc.ID) *AVParameterEvent
func (*AVParameterEvent) Element ¶
func (o *AVParameterEvent) Element() uint
@property element The element index within the scope (see AudioUnitElement).
func (*AVParameterEvent) InitWithParameterIDScopeElementValue ¶
func (o *AVParameterEvent) InitWithParameterIDScopeElementValue(parameterID uint, scope uint, element uint, value float32) *AVParameterEvent
Creates an event with a parameter identifier, scope, element, and value for the parameter to set.
func (*AVParameterEvent) ParameterID ¶
func (o *AVParameterEvent) ParameterID() uint
@property parameterID The ID of the parameter (see AudioUnitParameterID).
func (*AVParameterEvent) Scope ¶
func (o *AVParameterEvent) Scope() uint
@property scope The audio unit scope for the parameter (see AudioUnitScope).
func (*AVParameterEvent) SetElement ¶
func (o *AVParameterEvent) SetElement(element uint)
func (*AVParameterEvent) SetParameterID ¶
func (o *AVParameterEvent) SetParameterID(parameterID uint)
func (*AVParameterEvent) SetScope ¶
func (o *AVParameterEvent) SetScope(scope uint)
func (*AVParameterEvent) SetValue ¶
func (o *AVParameterEvent) SetValue(value float32)
func (*AVParameterEvent) Value ¶
func (o *AVParameterEvent) Value() float32
@property value The value of the parameter to be set. Range: Dependent on parameter.
type AVSpeechBoundary ¶
type AVSpeechBoundary int64
Specifies when to pause or stop speech.
const ( // Indicates to pause or stop speech immediately. AVSpeechBoundaryImmediate AVSpeechBoundary = 0 // Indicates to pause or stop speech after the synthesizer finishes speaking the current word. AVSpeechBoundaryWord AVSpeechBoundary = 1 )
func (AVSpeechBoundary) String ¶
func (e AVSpeechBoundary) String() string
type AVSpeechSynthesisMarker ¶
type AVSpeechSynthesisMarker struct {
foundation.NSObject
}
An object that contains information about the synthesized audio.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avspeechsynthesismarker
func AVSpeechSynthesisMarkerFromID ¶
func AVSpeechSynthesisMarkerFromID(id objc.ID) *AVSpeechSynthesisMarker
func (*AVSpeechSynthesisMarker) BookmarkName ¶
func (o *AVSpeechSynthesisMarker) BookmarkName() *foundation.NSString
func (*AVSpeechSynthesisMarker) ByteSampleOffset ¶
func (o *AVSpeechSynthesisMarker) ByteSampleOffset() uint
Byte offset into the associated audio buffer
func (*AVSpeechSynthesisMarker) InitWithBookmarkNameAtByteSampleOffset ¶
func (o *AVSpeechSynthesisMarker) InitWithBookmarkNameAtByteSampleOffset(mark *foundation.NSString, byteSampleOffset int) *AVSpeechSynthesisMarker
Creates a bookmark marker with a name and offset into the audio buffer.
func (*AVSpeechSynthesisMarker) InitWithMarkerTypeForTextRangeAtByteSampleOffset ¶
func (o *AVSpeechSynthesisMarker) InitWithMarkerTypeForTextRangeAtByteSampleOffset(type_ AVSpeechSynthesisMarkerMark, range_ foundation.NSRange, byteSampleOffset uint) *AVSpeechSynthesisMarker
Creates a marker with a type and location of the request’s text.
func (*AVSpeechSynthesisMarker) InitWithParagraphRangeAtByteSampleOffset ¶
func (o *AVSpeechSynthesisMarker) InitWithParagraphRangeAtByteSampleOffset(range_ foundation.NSRange, byteSampleOffset int) *AVSpeechSynthesisMarker
Creates a paragraph marker with a range of the paragraph and offset into the audio buffer.
func (*AVSpeechSynthesisMarker) InitWithPhonemeStringAtByteSampleOffset ¶
func (o *AVSpeechSynthesisMarker) InitWithPhonemeStringAtByteSampleOffset(phoneme *foundation.NSString, byteSampleOffset int) *AVSpeechSynthesisMarker
Creates a phoneme marker with a range of the phoneme and offset into the audio buffer.
func (*AVSpeechSynthesisMarker) InitWithSentenceRangeAtByteSampleOffset ¶
func (o *AVSpeechSynthesisMarker) InitWithSentenceRangeAtByteSampleOffset(range_ foundation.NSRange, byteSampleOffset int) *AVSpeechSynthesisMarker
Creates a sentence marker with a range of the sentence and offset into the audio buffer.
func (*AVSpeechSynthesisMarker) InitWithWordRangeAtByteSampleOffset ¶
func (o *AVSpeechSynthesisMarker) InitWithWordRangeAtByteSampleOffset(range_ foundation.NSRange, byteSampleOffset int) *AVSpeechSynthesisMarker
Creates a word marker with a range of the word and offset into the audio buffer.
func (*AVSpeechSynthesisMarker) Mark ¶
func (o *AVSpeechSynthesisMarker) Mark() AVSpeechSynthesisMarkerMark
func (*AVSpeechSynthesisMarker) Phoneme ¶
func (o *AVSpeechSynthesisMarker) Phoneme() *foundation.NSString
func (*AVSpeechSynthesisMarker) SetBookmarkName ¶
func (o *AVSpeechSynthesisMarker) SetBookmarkName(bookmarkName *foundation.NSString)
func (*AVSpeechSynthesisMarker) SetByteSampleOffset ¶
func (o *AVSpeechSynthesisMarker) SetByteSampleOffset(byteSampleOffset uint)
func (*AVSpeechSynthesisMarker) SetMark ¶
func (o *AVSpeechSynthesisMarker) SetMark(mark AVSpeechSynthesisMarkerMark)
func (*AVSpeechSynthesisMarker) SetPhoneme ¶
func (o *AVSpeechSynthesisMarker) SetPhoneme(phoneme *foundation.NSString)
func (*AVSpeechSynthesisMarker) SetTextRange ¶
func (o *AVSpeechSynthesisMarker) SetTextRange(textRange foundation.NSRange)
func (*AVSpeechSynthesisMarker) TextRange ¶
func (o *AVSpeechSynthesisMarker) TextRange() foundation.NSRange
The location and length of the pertaining speech request's SSML text. This marker applies to the range of characters represented by the NSString.
type AVSpeechSynthesisMarkerMark ¶
type AVSpeechSynthesisMarkerMark int64
Constants that describe the type of text.
const ( AVSpeechSynthesisMarkerMarkPhoneme AVSpeechSynthesisMarkerMark = 0 AVSpeechSynthesisMarkerMarkWord AVSpeechSynthesisMarkerMark = 1 AVSpeechSynthesisMarkerMarkSentence AVSpeechSynthesisMarkerMark = 2 AVSpeechSynthesisMarkerMarkParagraph AVSpeechSynthesisMarkerMark = 3 AVSpeechSynthesisMarkerMarkBookmark AVSpeechSynthesisMarkerMark = 4 )
func (AVSpeechSynthesisMarkerMark) String ¶
func (e AVSpeechSynthesisMarkerMark) String() string
type AVSpeechSynthesisPersonalVoiceAuthorizationStatus ¶
type AVSpeechSynthesisPersonalVoiceAuthorizationStatus uint64
An enumeration that models the personal voices authorization status.
const ( // The app's authorization status has not yet been determined. When your app's status is not determined, calling the requestAuthorization: method prompts the user to grant or deny authorization. AVSpeechSynthesisPersonalVoiceAuthorizationStatusNotDetermined AVSpeechSynthesisPersonalVoiceAuthorizationStatus = 0 // The user denied your app's request to use personal voices. AVSpeechSynthesisPersonalVoiceAuthorizationStatusDenied AVSpeechSynthesisPersonalVoiceAuthorizationStatus = 1 // Personal voices are unsupported on this device. AVSpeechSynthesisPersonalVoiceAuthorizationStatusUnsupported AVSpeechSynthesisPersonalVoiceAuthorizationStatus = 2 // The user granted your app's request to use personal voices. AVSpeechSynthesisPersonalVoiceAuthorizationStatusAuthorized AVSpeechSynthesisPersonalVoiceAuthorizationStatus = 3 )
func AVSpeechSynthesizerPersonalVoiceAuthorizationStatus ¶
func AVSpeechSynthesizerPersonalVoiceAuthorizationStatus() AVSpeechSynthesisPersonalVoiceAuthorizationStatus
Returns your app's current authorization to use personal voices. @Discussion The user can reject your app's request to use personal voices, but your request can also be denied if personal voices are not supported on the device. The app can also change your app's authorization status at any time from the Settings app. @Returns The app's current authorization status value. For a list of values, see AVSpeechSynthesisPersonalVoiceAuthorizationStatus.
func (AVSpeechSynthesisPersonalVoiceAuthorizationStatus) String ¶
func (e AVSpeechSynthesisPersonalVoiceAuthorizationStatus) String() string
type AVSpeechSynthesisProviderAudioUnit ¶
type AVSpeechSynthesisProviderAudioUnit struct {
// contains filtered or unexported fields
}
An object that generates speech from text.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avspeechsynthesisprovideraudiounit
func AVSpeechSynthesisProviderAudioUnitFromID ¶
func AVSpeechSynthesisProviderAudioUnitFromID(id objc.ID) *AVSpeechSynthesisProviderAudioUnit
func (*AVSpeechSynthesisProviderAudioUnit) CancelSpeechRequest ¶
func (o *AVSpeechSynthesisProviderAudioUnit) CancelSpeechRequest()
Informs the audio unit to discard the speech request.
func (*AVSpeechSynthesisProviderAudioUnit) InitPtr ¶
func (o *AVSpeechSynthesisProviderAudioUnit) InitPtr(id objc.ID)
func (*AVSpeechSynthesisProviderAudioUnit) Ptr ¶
func (o *AVSpeechSynthesisProviderAudioUnit) Ptr() objc.ID
func (*AVSpeechSynthesisProviderAudioUnit) SetSpeechSynthesisOutputMetadataBlock ¶
func (o *AVSpeechSynthesisProviderAudioUnit) SetSpeechSynthesisOutputMetadataBlock(speechSynthesisOutputMetadataBlock func(*foundation.NSArray[*AVSpeechSynthesisMarker], *AVSpeechSynthesisProviderRequest))
func (*AVSpeechSynthesisProviderAudioUnit) SetSpeechVoices ¶
func (o *AVSpeechSynthesisProviderAudioUnit) SetSpeechVoices(speechVoices *foundation.NSArray[*AVSpeechSynthesisProviderVoice])
func (*AVSpeechSynthesisProviderAudioUnit) SpeechSynthesisOutputMetadataBlock ¶
func (o *AVSpeechSynthesisProviderAudioUnit) SpeechSynthesisOutputMetadataBlock() objc.Block
@brief A property set by the host that is called by the audio unit to supply metadata for a speech request. @discussion A synthesizer should call this method when it has produced relevant data to the audio buffers it is sending back to the host. In some cases speech output may be delayed until these markers are delivered. For example, word highlighting depends on marker data from synthesizers in order to properly time which words are highlighted. Many speech synthesizers generate this information on the fly, while synthesizing the audio. The array of markers can reference future audio buffers that have yet to be delivered. There may be cases in which marker data is not fully known until further audio processing is done. In these cases, and other casers where marker data has changed, calling this block with marker data that contains perviously delivered audio buffer ranges will replace that audio buffer range's marker data, as it will be considered stale.
func (*AVSpeechSynthesisProviderAudioUnit) SpeechVoices ¶
func (o *AVSpeechSynthesisProviderAudioUnit) SpeechVoices() *foundation.NSArray[*AVSpeechSynthesisProviderVoice]
@brief Returns the voices this audio unit has available and ready for synthesis. @discussion This method should fetch and return the voices ready to synthesize that a user can select from (usually through Settings). Required for speech synthesizer audio unit extensions. An audio unit with a dynamic list of voices can override this property's getter to perform a more complex fetch.
func (*AVSpeechSynthesisProviderAudioUnit) SynthesizeSpeechRequest ¶
func (o *AVSpeechSynthesisProviderAudioUnit) SynthesizeSpeechRequest(speechRequest *AVSpeechSynthesisProviderRequest)
Sets the text to synthesize and the voice to use.
type AVSpeechSynthesisProviderRequest ¶
type AVSpeechSynthesisProviderRequest struct {
foundation.NSObject
}
An object that represents the text to synthesize and the voice to use.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avspeechsynthesisproviderrequest
func AVSpeechSynthesisProviderRequestFromID ¶
func AVSpeechSynthesisProviderRequestFromID(id objc.ID) *AVSpeechSynthesisProviderRequest
func (*AVSpeechSynthesisProviderRequest) InitWithSSMLRepresentationVoice ¶
func (o *AVSpeechSynthesisProviderRequest) InitWithSSMLRepresentationVoice(text *foundation.NSString, voice *AVSpeechSynthesisProviderVoice) *AVSpeechSynthesisProviderRequest
Creates a request with a voice and a description.
func (*AVSpeechSynthesisProviderRequest) SsmlRepresentation ¶
func (o *AVSpeechSynthesisProviderRequest) SsmlRepresentation() *foundation.NSString
@abstract The SSML representation of the text to be synthesized with the corresponding speech synthesis attributes for customization of pitch, rate, intonation, and more. @see https://www.w3.org/TR/speech-synthesis11/
func (*AVSpeechSynthesisProviderRequest) Voice ¶
func (o *AVSpeechSynthesisProviderRequest) Voice() *AVSpeechSynthesisProviderVoice
@abstract The voice to be used in this speech request
type AVSpeechSynthesisProviderVoice ¶
type AVSpeechSynthesisProviderVoice struct {
foundation.NSObject
}
An object that represents a voice that an audio unit provides to its host.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avspeechsynthesisprovidervoice
func AVSpeechSynthesisProviderVoiceFromID ¶
func AVSpeechSynthesisProviderVoiceFromID(id objc.ID) *AVSpeechSynthesisProviderVoice
func (*AVSpeechSynthesisProviderVoice) Age ¶
func (o *AVSpeechSynthesisProviderVoice) Age() int
@brief The age of the voice in years (optional) @discussion This is an optional property that indicates the age of this voice, to be treated as a personality trait. Defaults to 0.
func (*AVSpeechSynthesisProviderVoice) Gender ¶
func (o *AVSpeechSynthesisProviderVoice) Gender() AVSpeechSynthesisVoiceGender
@brief The gender of the voice (optional)
func (*AVSpeechSynthesisProviderVoice) Identifier ¶
func (o *AVSpeechSynthesisProviderVoice) Identifier() *foundation.NSString
@brief A unique identifier for the voice @discussion The recommended format is reverse domain notation. Behavior is undefined if identifiers are not unique for all voices within a given extension.
func (*AVSpeechSynthesisProviderVoice) InitWithNameIdentifierPrimaryLanguagesSupportedLanguages ¶
func (o *AVSpeechSynthesisProviderVoice) InitWithNameIdentifierPrimaryLanguagesSupportedLanguages(name *foundation.NSString, identifier *foundation.NSString, primaryLanguages *foundation.NSArray[*foundation.NSString], supportedLanguages *foundation.NSArray[*foundation.NSString]) *AVSpeechSynthesisProviderVoice
Creates a voice with a name, an identifier, and language information.
func (*AVSpeechSynthesisProviderVoice) Name ¶
func (o *AVSpeechSynthesisProviderVoice) Name() *foundation.NSString
@brief The localized name of the voice
func (*AVSpeechSynthesisProviderVoice) PrimaryLanguages ¶
func (o *AVSpeechSynthesisProviderVoice) PrimaryLanguages() *foundation.NSArray[*foundation.NSString]
@brief A set of BCP 47 codes identifying the languages this synthesizer is primarily used for. @discussion These languages are what a user would expect a synthesizer to fully support and be primarily used for.
func (*AVSpeechSynthesisProviderVoice) SetAge ¶
func (o *AVSpeechSynthesisProviderVoice) SetAge(age int)
func (*AVSpeechSynthesisProviderVoice) SetGender ¶
func (o *AVSpeechSynthesisProviderVoice) SetGender(gender AVSpeechSynthesisVoiceGender)
func (*AVSpeechSynthesisProviderVoice) SetVoiceSize ¶
func (o *AVSpeechSynthesisProviderVoice) SetVoiceSize(voiceSize int64)
func (*AVSpeechSynthesisProviderVoice) SupportedLanguages ¶
func (o *AVSpeechSynthesisProviderVoice) SupportedLanguages() *foundation.NSArray[*foundation.NSString]
@brief A superset of BCP 47 codes identifying the voice’s supported languages. @discussion These languages are what a user would expect a voice to be able to speak such that if the voice is given a multi-lingual phrase, it would be able to speak the entire phrase without a need to to switch voices. For example, a zh-CN voice could have @c ["zh-CN"] as its @c primaryLanguages, but in @c supportedLanguages have @c ["zh-CN","en-US"] indicating if it received "你好 means Hello", it would be able to speak the entire phrase.
func (*AVSpeechSynthesisProviderVoice) VoiceSize ¶
func (o *AVSpeechSynthesisProviderVoice) VoiceSize() int64
@brief The size of the voice (optional) @discussion This reported size of the voice package on disk, in bytes. Defaults to 0.
type AVSpeechSynthesisVoice ¶
type AVSpeechSynthesisVoice struct {
foundation.NSObject
}
A distinct voice for use in speech synthesis.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avspeechsynthesisvoice
func AVSpeechSynthesisVoiceFromID ¶
func AVSpeechSynthesisVoiceFromID(id objc.ID) *AVSpeechSynthesisVoice
func AVSpeechSynthesisVoiceVoiceWithIdentifier ¶
func AVSpeechSynthesisVoiceVoiceWithIdentifier(identifier *foundation.NSString) *AVSpeechSynthesisVoice
Retrieves a voice for the identifier you specify.
func AVSpeechSynthesisVoiceVoiceWithLanguage ¶
func AVSpeechSynthesisVoiceVoiceWithLanguage(languageCode *foundation.NSString) *AVSpeechSynthesisVoice
Retrieves a voice for the BCP 47 code language code you specify.
func (*AVSpeechSynthesisVoice) AudioFileSettings ¶
func (o *AVSpeechSynthesisVoice) AudioFileSettings() *foundation.NSDictionary[*foundation.NSString, objc.ID]
func (*AVSpeechSynthesisVoice) Gender ¶
func (o *AVSpeechSynthesisVoice) Gender() AVSpeechSynthesisVoiceGender
func (*AVSpeechSynthesisVoice) Identifier ¶
func (o *AVSpeechSynthesisVoice) Identifier() *foundation.NSString
func (*AVSpeechSynthesisVoice) Language ¶
func (o *AVSpeechSynthesisVoice) Language() *foundation.NSString
func (*AVSpeechSynthesisVoice) Name ¶
func (o *AVSpeechSynthesisVoice) Name() *foundation.NSString
func (*AVSpeechSynthesisVoice) Quality ¶
func (o *AVSpeechSynthesisVoice) Quality() AVSpeechSynthesisVoiceQuality
func (*AVSpeechSynthesisVoice) VoiceTraits ¶
func (o *AVSpeechSynthesisVoice) VoiceTraits() AVSpeechSynthesisVoiceTraits
type AVSpeechSynthesisVoiceGender ¶
type AVSpeechSynthesisVoiceGender int64
The gender for a voice.
const ( // The nonspecific gender option. AVSpeechSynthesisVoiceGenderUnspecified AVSpeechSynthesisVoiceGender = 0 // The male voice option. AVSpeechSynthesisVoiceGenderMale AVSpeechSynthesisVoiceGender = 1 // The female voice option. AVSpeechSynthesisVoiceGenderFemale AVSpeechSynthesisVoiceGender = 2 )
func (AVSpeechSynthesisVoiceGender) String ¶
func (e AVSpeechSynthesisVoiceGender) String() string
type AVSpeechSynthesisVoiceQuality ¶
type AVSpeechSynthesisVoiceQuality int64
The speech quality of a voice.
const ( // A basic quality voice that’s available on the device by default. AVSpeechSynthesisVoiceQualityDefault AVSpeechSynthesisVoiceQuality = 1 // An enhanced quality voice that you must download to use. AVSpeechSynthesisVoiceQualityEnhanced AVSpeechSynthesisVoiceQuality = 2 // A premium quality voice that you must download to use. AVSpeechSynthesisVoiceQualityPremium AVSpeechSynthesisVoiceQuality = 3 )
func (AVSpeechSynthesisVoiceQuality) String ¶
func (e AVSpeechSynthesisVoiceQuality) String() string
type AVSpeechSynthesisVoiceTraits ¶
type AVSpeechSynthesisVoiceTraits uint64
Traits that describe a voice.
const ( // The trait that indicates a voice is a regular voice. AVSpeechSynthesisVoiceTraitNone AVSpeechSynthesisVoiceTraits = 0 // The voice is generally for novelty purposes, for example a character's voice in a game. AVSpeechSynthesisVoiceTraitIsNoveltyVoice AVSpeechSynthesisVoiceTraits = 1 // The voice is was generated by, and belongs to the user. Voices with this trait will only be avilable when AVSpeechSynthesizer.personalVoiceAuthorizationStatus is AVSpeechSynthesisPersonalVoiceAuthorizationStatusAuthorized AVSpeechSynthesisVoiceTraitIsPersonalVoice AVSpeechSynthesisVoiceTraits = 2 )
func (AVSpeechSynthesisVoiceTraits) String ¶
func (e AVSpeechSynthesisVoiceTraits) String() string
type AVSpeechSynthesizer ¶
type AVSpeechSynthesizer struct {
foundation.NSObject
}
An object that produces synthesized speech from text utterances and enables monitoring or controlling of ongoing speech.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avspeechsynthesizer
func AVSpeechSynthesizerFromID ¶
func AVSpeechSynthesizerFromID(id objc.ID) *AVSpeechSynthesizer
func (*AVSpeechSynthesizer) ContinueSpeaking ¶
func (o *AVSpeechSynthesizer) ContinueSpeaking() bool
Resumes speech from its paused point.
func (*AVSpeechSynthesizer) Delegate ¶
func (o *AVSpeechSynthesizer) Delegate() AVSpeechSynthesizerDelegate
func (*AVSpeechSynthesizer) IsPaused ¶
func (o *AVSpeechSynthesizer) IsPaused() bool
func (*AVSpeechSynthesizer) IsSpeaking ¶
func (o *AVSpeechSynthesizer) IsSpeaking() bool
func (*AVSpeechSynthesizer) PauseSpeakingAtBoundary ¶
func (o *AVSpeechSynthesizer) PauseSpeakingAtBoundary(boundary AVSpeechBoundary) bool
Pauses speech at the boundary you specify.
func (*AVSpeechSynthesizer) SetDelegate ¶
func (o *AVSpeechSynthesizer) SetDelegate(delegate AVSpeechSynthesizerDelegate)
func (*AVSpeechSynthesizer) SpeakUtterance ¶
func (o *AVSpeechSynthesizer) SpeakUtterance(utterance *AVSpeechUtterance)
Adds the utterance you specify to the speech synthesizer’s queue.
func (*AVSpeechSynthesizer) StopSpeakingAtBoundary ¶
func (o *AVSpeechSynthesizer) StopSpeakingAtBoundary(boundary AVSpeechBoundary) bool
Stops speech at the boundary you specify.
func (*AVSpeechSynthesizer) WriteUtteranceToBufferCallback ¶
func (o *AVSpeechSynthesizer) WriteUtteranceToBufferCallback(utterance *AVSpeechUtterance, bufferCallback func(*AVAudioBuffer))
Generates speech for the utterance and invokes the callback with the audio buffer.
func (*AVSpeechSynthesizer) WriteUtteranceToBufferCallbackToMarkerCallback ¶
func (o *AVSpeechSynthesizer) WriteUtteranceToBufferCallbackToMarkerCallback(utterance *AVSpeechUtterance, bufferCallback func(*AVAudioBuffer), markerCallback func(*foundation.NSArray[*AVSpeechSynthesisMarker]))
Generates audio buffers and associated metadata for storage or further speech synthesis processing.
type AVSpeechSynthesizerDelegate ¶
type AVSpeechSynthesizerDelegate interface {
}
AVSpeechSynthesizerDelegate wraps the ObjC protocol AVSpeechSynthesizerDelegate.
type AVSpeechUtterance ¶
type AVSpeechUtterance struct {
foundation.NSObject
}
An object that encapsulates the text for speech synthesis and parameters that affect the speech.
Apple documentation: https://developer.apple.com/documentation/avfaudio/avspeechutterance
func AVSpeechUtteranceFromID ¶
func AVSpeechUtteranceFromID(id objc.ID) *AVSpeechUtterance
func AVSpeechUtteranceSpeechUtteranceWithAttributedString ¶
func AVSpeechUtteranceSpeechUtteranceWithAttributedString(string_ *foundation.NSAttributedString) *AVSpeechUtterance
Creates an utterance with the attributed text string that you specify for the speech synthesizer to speak.
func AVSpeechUtteranceSpeechUtteranceWithSSMLRepresentation ¶
func AVSpeechUtteranceSpeechUtteranceWithSSMLRepresentation(string_ *foundation.NSString) *AVSpeechUtterance
Returns a new speech utterance with an Speech Synthesis Markup Language (SSML) string.
func AVSpeechUtteranceSpeechUtteranceWithString ¶
func AVSpeechUtteranceSpeechUtteranceWithString(string_ *foundation.NSString) *AVSpeechUtterance
Creates an utterance with the text string that you specify for the speech synthesizer to speak.
func (*AVSpeechUtterance) AttributedSpeechString ¶
func (o *AVSpeechUtterance) AttributedSpeechString() *foundation.NSAttributedString
func (*AVSpeechUtterance) InitWithAttributedString ¶
func (o *AVSpeechUtterance) InitWithAttributedString(string_ *foundation.NSAttributedString) *AVSpeechUtterance
Creates an utterance with the attributed text string that you specify for the speech synthesizer to speak.
func (*AVSpeechUtterance) InitWithSSMLRepresentation ¶
func (o *AVSpeechUtterance) InitWithSSMLRepresentation(string_ *foundation.NSString) *AVSpeechUtterance
Creates a speech utterance with an Speech Synthesis Markup Language (SSML) string.
func (*AVSpeechUtterance) InitWithString ¶
func (o *AVSpeechUtterance) InitWithString(string_ *foundation.NSString) *AVSpeechUtterance
Creates an utterance with the text string that you specify for the speech synthesizer to speak.
func (*AVSpeechUtterance) PitchMultiplier ¶
func (o *AVSpeechUtterance) PitchMultiplier() float32
func (*AVSpeechUtterance) PostUtteranceDelay ¶
func (o *AVSpeechUtterance) PostUtteranceDelay() float64
func (*AVSpeechUtterance) PreUtteranceDelay ¶
func (o *AVSpeechUtterance) PreUtteranceDelay() float64
func (*AVSpeechUtterance) PrefersAssistiveTechnologySettings ¶
func (o *AVSpeechUtterance) PrefersAssistiveTechnologySettings() bool
func (*AVSpeechUtterance) Rate ¶
func (o *AVSpeechUtterance) Rate() float32
func (*AVSpeechUtterance) SetPitchMultiplier ¶
func (o *AVSpeechUtterance) SetPitchMultiplier(pitchMultiplier float32)
func (*AVSpeechUtterance) SetPostUtteranceDelay ¶
func (o *AVSpeechUtterance) SetPostUtteranceDelay(postUtteranceDelay float64)
func (*AVSpeechUtterance) SetPreUtteranceDelay ¶
func (o *AVSpeechUtterance) SetPreUtteranceDelay(preUtteranceDelay float64)
func (*AVSpeechUtterance) SetPrefersAssistiveTechnologySettings ¶
func (o *AVSpeechUtterance) SetPrefersAssistiveTechnologySettings(prefersAssistiveTechnologySettings bool)
func (*AVSpeechUtterance) SetRate ¶
func (o *AVSpeechUtterance) SetRate(rate float32)
func (*AVSpeechUtterance) SetVoice ¶
func (o *AVSpeechUtterance) SetVoice(voice *AVSpeechSynthesisVoice)
func (*AVSpeechUtterance) SetVolume ¶
func (o *AVSpeechUtterance) SetVolume(volume float32)
func (*AVSpeechUtterance) SpeechString ¶
func (o *AVSpeechUtterance) SpeechString() *foundation.NSString
func (*AVSpeechUtterance) Voice ¶
func (o *AVSpeechUtterance) Voice() *AVSpeechSynthesisVoice
func (*AVSpeechUtterance) Volume ¶
func (o *AVSpeechUtterance) Volume() float32
type Acl_entry_id_t ¶
type Acl_entry_id_t int64
const ( ACL_FIRST_ENTRY Acl_entry_id_t = 0 ACL_NEXT_ENTRY Acl_entry_id_t = -1 ACL_LAST_ENTRY Acl_entry_id_t = -2 )
func (Acl_entry_id_t) String ¶
func (e Acl_entry_id_t) String() string
type Acl_flag_t ¶
type Acl_flag_t int64
const ( ACL_FLAG_DEFER_INHERIT Acl_flag_t = 1 ACL_FLAG_NO_INHERIT Acl_flag_t = 131072 ACL_ENTRY_INHERITED Acl_flag_t = 16 ACL_ENTRY_FILE_INHERIT Acl_flag_t = 32 ACL_ENTRY_DIRECTORY_INHERIT Acl_flag_t = 64 ACL_ENTRY_LIMIT_INHERIT Acl_flag_t = 128 ACL_ENTRY_ONLY_INHERIT Acl_flag_t = 256 )
func (Acl_flag_t) String ¶
func (e Acl_flag_t) String() string
type Acl_perm_t ¶
type Acl_perm_t int64
const ( ACL_READ_DATA Acl_perm_t = 2 ACL_LIST_DIRECTORY Acl_perm_t = 2 ACL_WRITE_DATA Acl_perm_t = 4 ACL_ADD_FILE Acl_perm_t = 4 ACL_EXECUTE Acl_perm_t = 8 ACL_SEARCH Acl_perm_t = 8 ACL_DELETE Acl_perm_t = 16 ACL_APPEND_DATA Acl_perm_t = 32 ACL_ADD_SUBDIRECTORY Acl_perm_t = 32 ACL_DELETE_CHILD Acl_perm_t = 64 ACL_READ_ATTRIBUTES Acl_perm_t = 128 ACL_WRITE_ATTRIBUTES Acl_perm_t = 256 ACL_READ_EXTATTRIBUTES Acl_perm_t = 512 ACL_WRITE_EXTATTRIBUTES Acl_perm_t = 1024 ACL_READ_SECURITY Acl_perm_t = 2048 ACL_WRITE_SECURITY Acl_perm_t = 4096 ACL_CHANGE_OWNER Acl_perm_t = 8192 ACL_SYNCHRONIZE Acl_perm_t = 1048576 )
func (Acl_perm_t) String ¶
func (e Acl_perm_t) String() string
type Acl_type_t ¶
type Acl_type_t int64
const ( ACL_TYPE_EXTENDED Acl_type_t = 256 ACL_TYPE_ACCESS Acl_type_t = 0 ACL_TYPE_DEFAULT Acl_type_t = 1 ACL_TYPE_AFS Acl_type_t = 2 ACL_TYPE_CODA Acl_type_t = 3 ACL_TYPE_NTFS Acl_type_t = 4 ACL_TYPE_NWFS Acl_type_t = 5 )
func (Acl_type_t) String ¶
func (e Acl_type_t) String() string
type CGLCPContextPriorityRequest ¶
type CGLCPContextPriorityRequest int64
const ( KCGLCPContextPriorityRequestHigh CGLCPContextPriorityRequest = 0 KCGLCPContextPriorityRequestNormal CGLCPContextPriorityRequest = 1 KCGLCPContextPriorityRequestLow CGLCPContextPriorityRequest = 2 )
func (CGLCPContextPriorityRequest) String ¶
func (e CGLCPContextPriorityRequest) String() string
type Dispatch_autorelease_frequency_t ¶
type Dispatch_autorelease_frequency_t uint64
const ( DISPATCH_AUTORELEASE_FREQUENCY_INHERIT Dispatch_autorelease_frequency_t = 0 DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM Dispatch_autorelease_frequency_t = 1 DISPATCH_AUTORELEASE_FREQUENCY_NEVER Dispatch_autorelease_frequency_t = 2 )
func (Dispatch_autorelease_frequency_t) String ¶
func (e Dispatch_autorelease_frequency_t) String() string
type Dispatch_block_flags_t ¶
type Dispatch_block_flags_t uint64
const ( DISPATCH_BLOCK_BARRIER Dispatch_block_flags_t = 1 DISPATCH_BLOCK_DETACHED Dispatch_block_flags_t = 2 DISPATCH_BLOCK_ASSIGN_CURRENT Dispatch_block_flags_t = 4 DISPATCH_BLOCK_NO_QOS_CLASS Dispatch_block_flags_t = 8 DISPATCH_BLOCK_INHERIT_QOS_CLASS Dispatch_block_flags_t = 16 DISPATCH_BLOCK_ENFORCE_QOS_CLASS Dispatch_block_flags_t = 32 )
func (Dispatch_block_flags_t) String ¶
func (e Dispatch_block_flags_t) String() string
type Filesec_property_t ¶
type Filesec_property_t int64
const ( FILESEC_OWNER Filesec_property_t = 1 FILESEC_GROUP Filesec_property_t = 2 FILESEC_UUID Filesec_property_t = 3 FILESEC_MODE Filesec_property_t = 4 FILESEC_ACL Filesec_property_t = 5 FILESEC_GRPUUID Filesec_property_t = 6 FILESEC_ACL_RAW Filesec_property_t = 100 FILESEC_ACL_ALLOCSIZE Filesec_property_t = 101 )
func (Filesec_property_t) String ¶
func (e Filesec_property_t) String() string
type Ipc_info_object_type_t ¶
type Ipc_info_object_type_t int64
const ( IPC_OTYPE_NONE Ipc_info_object_type_t = 0 IPC_OTYPE_THREAD_CONTROL Ipc_info_object_type_t = 1 IPC_OTYPE_TASK_CONTROL Ipc_info_object_type_t = 2 IPC_OTYPE_HOST Ipc_info_object_type_t = 3 IPC_OTYPE_HOST_PRIV Ipc_info_object_type_t = 4 IPC_OTYPE_PROCESSOR Ipc_info_object_type_t = 5 IPC_OTYPE_PROCESSOR_SET Ipc_info_object_type_t = 6 IPC_OTYPE_PROCESSOR_SET_NAME Ipc_info_object_type_t = 7 IPC_OTYPE_TIMER Ipc_info_object_type_t = 8 IPC_OTYPE_PORT_SUBST_ONCE Ipc_info_object_type_t = 9 IPC_OTYPE_MIG Ipc_info_object_type_t = 10 IPC_OTYPE_MEMORY_OBJECT Ipc_info_object_type_t = 11 IPC_OTYPE_XMM_PAGER Ipc_info_object_type_t = 12 IPC_OTYPE_XMM_KERNEL Ipc_info_object_type_t = 13 IPC_OTYPE_XMM_REPLY Ipc_info_object_type_t = 14 IPC_OTYPE_UND_REPLY Ipc_info_object_type_t = 15 IPC_OTYPE_HOST_NOTIFY Ipc_info_object_type_t = 16 IPC_OTYPE_HOST_SECURITY Ipc_info_object_type_t = 17 IPC_OTYPE_LEDGER Ipc_info_object_type_t = 18 IPC_OTYPE_MAIN_DEVICE Ipc_info_object_type_t = 19 IPC_OTYPE_TASK_NAME Ipc_info_object_type_t = 20 IPC_OTYPE_SUBSYSTEM Ipc_info_object_type_t = 21 IPC_OTYPE_IO_DONE_QUEUE Ipc_info_object_type_t = 22 IPC_OTYPE_SEMAPHORE Ipc_info_object_type_t = 23 IPC_OTYPE_LOCK_SET Ipc_info_object_type_t = 24 IPC_OTYPE_CLOCK Ipc_info_object_type_t = 25 IPC_OTYPE_CLOCK_CTRL Ipc_info_object_type_t = 26 IPC_OTYPE_IOKIT_IDENT Ipc_info_object_type_t = 27 IPC_OTYPE_NAMED_ENTRY Ipc_info_object_type_t = 28 IPC_OTYPE_IOKIT_CONNECT Ipc_info_object_type_t = 29 IPC_OTYPE_IOKIT_OBJECT Ipc_info_object_type_t = 30 IPC_OTYPE_UPL Ipc_info_object_type_t = 31 IPC_OTYPE_MEM_OBJ_CONTROL Ipc_info_object_type_t = 32 IPC_OTYPE_AU_SESSIONPORT Ipc_info_object_type_t = 33 IPC_OTYPE_FILEPORT Ipc_info_object_type_t = 34 IPC_OTYPE_LABELH Ipc_info_object_type_t = 35 IPC_OTYPE_TASK_RESUME Ipc_info_object_type_t = 36 IPC_OTYPE_VOUCHER Ipc_info_object_type_t = 37 IPC_OTYPE_VOUCHER_ATTR_CONTROL Ipc_info_object_type_t = 38 IPC_OTYPE_WORK_INTERVAL Ipc_info_object_type_t = 39 IPC_OTYPE_UX_HANDLER Ipc_info_object_type_t = 40 IPC_OTYPE_UEXT_OBJECT Ipc_info_object_type_t = 41 IPC_OTYPE_ARCADE_REG Ipc_info_object_type_t = 42 IPC_OTYPE_EVENTLINK Ipc_info_object_type_t = 43 IPC_OTYPE_TASK_INSPECT Ipc_info_object_type_t = 44 IPC_OTYPE_TASK_READ Ipc_info_object_type_t = 45 IPC_OTYPE_THREAD_INSPECT Ipc_info_object_type_t = 46 IPC_OTYPE_THREAD_READ Ipc_info_object_type_t = 47 IPC_OTYPE_SUID_CRED Ipc_info_object_type_t = 48 IPC_OTYPE_HYPERVISOR Ipc_info_object_type_t = 49 IPC_OTYPE_TASK_ID_TOKEN Ipc_info_object_type_t = 50 IPC_OTYPE_TASK_FATAL Ipc_info_object_type_t = 51 IPC_OTYPE_KCDATA Ipc_info_object_type_t = 52 IPC_OTYPE_EXCLAVES_RESOURCE Ipc_info_object_type_t = 53 IPC_OTYPE_THREAD_RESUME Ipc_info_object_type_t = 54 IPC_OTYPE_UNKNOWN Ipc_info_object_type_t = 4294967295 )
func (Ipc_info_object_type_t) String ¶
func (e Ipc_info_object_type_t) String() string
type Launch_data_type_t ¶
type Launch_data_type_t int64
const ( LAUNCH_DATA_DICTIONARY Launch_data_type_t = 1 LAUNCH_DATA_ARRAY Launch_data_type_t = 2 LAUNCH_DATA_FD Launch_data_type_t = 3 LAUNCH_DATA_INTEGER Launch_data_type_t = 4 LAUNCH_DATA_REAL Launch_data_type_t = 5 LAUNCH_DATA_BOOL Launch_data_type_t = 6 LAUNCH_DATA_STRING Launch_data_type_t = 7 LAUNCH_DATA_OPAQUE Launch_data_type_t = 8 LAUNCH_DATA_ERRNO Launch_data_type_t = 9 LAUNCH_DATA_MACHPORT Launch_data_type_t = 10 )
func (Launch_data_type_t) String ¶
func (e Launch_data_type_t) String() string
type MDLabelDomain ¶
type MDLabelDomain int64
@typedef MDLabelDomain @abstract These constants are used to specify a domain to MDLabelCreate().
const ( KMDLabelUserDomain MDLabelDomain = 0 KMDLabelLocalDomain MDLabelDomain = 1 )
func (MDLabelDomain) String ¶
func (e MDLabelDomain) String() string
type MDQueryOptionFlags ¶
type MDQueryOptionFlags int64
const ( KMDQuerySynchronous MDQueryOptionFlags = 1 KMDQueryWantsUpdates MDQueryOptionFlags = 4 KMDQueryAllowFSTranslation MDQueryOptionFlags = 8 )
func (MDQueryOptionFlags) String ¶
func (e MDQueryOptionFlags) String() string
type MDQuerySortOptionFlags ¶
type MDQuerySortOptionFlags int64
@enum MDQuerySortOptionFlags @constant kMDQueryReverseSortOrderFlag Sort the attribute in reverse order.
const (
KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)
func (MDQuerySortOptionFlags) String ¶
func (e MDQuerySortOptionFlags) String() string
type Mach_vm_range_flags_t ¶
type Mach_vm_range_flags_t int64
const (
MACH_VM_RANGE_NONE Mach_vm_range_flags_t = 0
)
func (Mach_vm_range_flags_t) String ¶
func (e Mach_vm_range_flags_t) String() string
type Mach_vm_range_flavor_t ¶
type Mach_vm_range_flavor_t int64
const ( MACH_VM_RANGE_FLAVOR_INVALID Mach_vm_range_flavor_t = 0 MACH_VM_RANGE_FLAVOR_V1 Mach_vm_range_flavor_t = 1 )
func (Mach_vm_range_flavor_t) String ¶
func (e Mach_vm_range_flavor_t) String() string
type Mach_vm_range_tag_t ¶
type Mach_vm_range_tag_t int64
const ( MACH_VM_RANGE_DEFAULT Mach_vm_range_tag_t = 0 MACH_VM_RANGE_DATA Mach_vm_range_tag_t = 1 MACH_VM_RANGE_FIXED Mach_vm_range_tag_t = 2 )
func (Mach_vm_range_tag_t) String ¶
func (e Mach_vm_range_tag_t) String() string
type Mpo_flags_t ¶
type Mpo_flags_t int64
const ( MPO_PORT Mpo_flags_t = 0 MPO_SERVICE_PORT Mpo_flags_t = 1024 MPO_CONNECTION_PORT Mpo_flags_t = 2048 MPO_REPLY_PORT Mpo_flags_t = 4096 MPO_WEAK_REPLY_PORT Mpo_flags_t = 16384 MPO_NOTIFICATION_PORT Mpo_flags_t = 17408 MPO_EXCEPTION_PORT Mpo_flags_t = 32768 MPO_CONNECTION_PORT_WITH_PORT_ARRAY Mpo_flags_t = 65536 )
func (Mpo_flags_t) String ¶
func (e Mpo_flags_t) String() string
type NXMouseButton ¶
type NXMouseButton int64
const ( NX_OneButton NXMouseButton = 0 NX_LeftButton NXMouseButton = 1 NX_RightButton NXMouseButton = 2 )
func (NXMouseButton) String ¶
func (e NXMouseButton) String() string
type Os_clockid_t ¶
type Os_clockid_t int64
const (
OS_CLOCK_MACH_ABSOLUTE_TIME Os_clockid_t = 32
)
func (Os_clockid_t) String ¶
func (e Os_clockid_t) String() string
type PMPageToPaperMappingType ¶
type PMPageToPaperMappingType int64
const ( KPMPageToPaperMappingNone PMPageToPaperMappingType = 1 KPMPageToPaperMappingScaleToFit PMPageToPaperMappingType = 2 )
func (PMPageToPaperMappingType) String ¶
func (e PMPageToPaperMappingType) String() string
type Ptrauth_key ¶
type Ptrauth_key int64
const ( Ptrauth_key_none Ptrauth_key = -1 Ptrauth_key_asia Ptrauth_key = 0 Ptrauth_key_asib Ptrauth_key = 1 Ptrauth_key_asda Ptrauth_key = 2 Ptrauth_key_asdb Ptrauth_key = 3 Ptrauth_key_process_independent_code Ptrauth_key = 0 Ptrauth_key_process_dependent_code Ptrauth_key = 1 Ptrauth_key_process_independent_data Ptrauth_key = 2 Ptrauth_key_process_dependent_data Ptrauth_key = 3 Ptrauth_key_return_address Ptrauth_key = 1 Ptrauth_key_frame_pointer Ptrauth_key = 3 Ptrauth_key_function_pointer Ptrauth_key = 0 Ptrauth_key_block_function Ptrauth_key = 0 Ptrauth_key_cxx_vtable_pointer Ptrauth_key = 2 Ptrauth_key_method_list_pointer Ptrauth_key = 2 Ptrauth_key_objc_isa_pointer Ptrauth_key = 2 Ptrauth_key_objc_super_pointer Ptrauth_key = 2 Ptrauth_key_objc_sel_pointer Ptrauth_key = 3 Ptrauth_key_objc_class_ro_pointer Ptrauth_key = 2 Ptrauth_key_block_descriptor_pointer Ptrauth_key = 2 Ptrauth_key_init_fini_pointer Ptrauth_key = 0 )
func (Ptrauth_key) String ¶
func (e Ptrauth_key) String() string
type Qos_class_t ¶
type Qos_class_t uint32
const ( QOS_CLASS_USER_INTERACTIVE Qos_class_t = 33 QOS_CLASS_USER_INITIATED Qos_class_t = 25 QOS_CLASS_DEFAULT Qos_class_t = 21 QOS_CLASS_UTILITY Qos_class_t = 17 QOS_CLASS_BACKGROUND Qos_class_t = 9 QOS_CLASS_UNSPECIFIED Qos_class_t = 0 )
func (Qos_class_t) String ¶
func (e Qos_class_t) String() string
type Virtual_memory_guard_exception_code_t ¶
type Virtual_memory_guard_exception_code_t int64
const ( KGUARD_EXC_DEALLOC_GAP Virtual_memory_guard_exception_code_t = 1 KGUARD_EXC_RECLAIM_COPYIO_FAILURE Virtual_memory_guard_exception_code_t = 2 KGUARD_EXC_RECLAIM_INDEX_FAILURE Virtual_memory_guard_exception_code_t = 4 KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE Virtual_memory_guard_exception_code_t = 8 KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE Virtual_memory_guard_exception_code_t = 9 KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE Virtual_memory_guard_exception_code_t = 10 KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE Virtual_memory_guard_exception_code_t = 11 KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION Virtual_memory_guard_exception_code_t = 12 KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY Virtual_memory_guard_exception_code_t = 13 KGUARD_EXC_SEC_ACCESS_FAULT Virtual_memory_guard_exception_code_t = 98 KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT Virtual_memory_guard_exception_code_t = 99 KGUARD_EXC_SEC_COPY_DENIED Virtual_memory_guard_exception_code_t = 100 KGUARD_EXC_SEC_SHARING_DENIED Virtual_memory_guard_exception_code_t = 101 KGUARD_EXC_MTE_SYNC_FAULT Virtual_memory_guard_exception_code_t = 200 KGUARD_EXC_MTE_ASYNC_USER_FAULT Virtual_memory_guard_exception_code_t = 201 KGUARD_EXC_MTE_ASYNC_KERN_FAULT Virtual_memory_guard_exception_code_t = 202 KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT Virtual_memory_guard_exception_code_t = 203 KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT Virtual_memory_guard_exception_code_t = 204 )
func (Virtual_memory_guard_exception_code_t) String ¶
func (e Virtual_memory_guard_exception_code_t) String() string
type Xpc_listener_create_flags_t ¶
type Xpc_listener_create_flags_t int64
const ( XPC_LISTENER_CREATE_NONE Xpc_listener_create_flags_t = 0 XPC_LISTENER_CREATE_INACTIVE Xpc_listener_create_flags_t = 1 XPC_LISTENER_CREATE_FORCE_MACH Xpc_listener_create_flags_t = 2 XPC_LISTENER_CREATE_FORCE_XPCSERVICE Xpc_listener_create_flags_t = 4 )
func (Xpc_listener_create_flags_t) String ¶
func (e Xpc_listener_create_flags_t) String() string
type Xpc_session_create_flags_t ¶
type Xpc_session_create_flags_t int64
const ( XPC_SESSION_CREATE_NONE Xpc_session_create_flags_t = 0 XPC_SESSION_CREATE_INACTIVE Xpc_session_create_flags_t = 1 XPC_SESSION_CREATE_MACH_PRIVILEGED Xpc_session_create_flags_t = 2 )
func (Xpc_session_create_flags_t) String ¶
func (e Xpc_session_create_flags_t) String() string
Source Files
¶
- AVAUPresetEvent.go
- AVAudioApplication.go
- AVAudioBuffer.go
- AVAudioChannelLayout.go
- AVAudioCompressedBuffer.go
- AVAudioConnectionPoint.go
- AVAudioConverter.go
- AVAudioEngine.go
- AVAudioEnvironmentDistanceAttenuationParameters.go
- AVAudioEnvironmentNode.go
- AVAudioEnvironmentReverbParameters.go
- AVAudioFile.go
- AVAudioFormat.go
- AVAudioIONode.go
- AVAudioInputNode.go
- AVAudioMixerNode.go
- AVAudioMixingDestination.go
- AVAudioNode.go
- AVAudioOutputNode.go
- AVAudioPCMBuffer.go
- AVAudioPlayer.go
- AVAudioPlayerNode.go
- AVAudioRecorder.go
- AVAudioRoutingArbiter.go
- AVAudioSequencer.go
- AVAudioSessionCapability.go
- AVAudioSinkNode.go
- AVAudioSourceNode.go
- AVAudioTime.go
- AVAudioUnit.go
- AVAudioUnitComponent.go
- AVAudioUnitComponentManager.go
- AVAudioUnitDelay.go
- AVAudioUnitDistortion.go
- AVAudioUnitEQ.go
- AVAudioUnitEQFilterParameters.go
- AVAudioUnitEffect.go
- AVAudioUnitGenerator.go
- AVAudioUnitMIDIInstrument.go
- AVAudioUnitReverb.go
- AVAudioUnitSampler.go
- AVAudioUnitTimeEffect.go
- AVAudioUnitTimePitch.go
- AVAudioUnitVarispeed.go
- AVExtendedNoteOnEvent.go
- AVExtendedTempoEvent.go
- AVMIDIChannelEvent.go
- AVMIDIChannelPressureEvent.go
- AVMIDIControlChangeEvent.go
- AVMIDIMetaEvent.go
- AVMIDINoteEvent.go
- AVMIDIPitchBendEvent.go
- AVMIDIPlayer.go
- AVMIDIPolyPressureEvent.go
- AVMIDIProgramChangeEvent.go
- AVMIDISysexEvent.go
- AVMusicEvent.go
- AVMusicTrack.go
- AVMusicUserEvent.go
- AVParameterEvent.go
- AVSpeechSynthesisMarker.go
- AVSpeechSynthesisProviderAudioUnit.go
- AVSpeechSynthesisProviderRequest.go
- AVSpeechSynthesisProviderVoice.go
- AVSpeechSynthesisVoice.go
- AVSpeechSynthesizer.go
- AVSpeechUtterance.go
- avfaudio_enums.go
- avfaudio_externs.go
- avfaudio_functions.go
- avfaudio_protocols.go
- avfaudio_runtime.go
- avfaudio_structs.go
- doc.go