audiobufferlist

AudioUnit inputCallback with AudioUnitRender -> mismatch between audioBufferList.mBuffers[0].mDataByteSize != inNumberFrames

一个人想着一个人 提交于 2020-03-05 04:11:25
问题 We are using the AudioUnits input callback to process the incoming buffer. The audio unit setup is taken mostly from https://github.com/robovm/apple-ios-samples/blob/master/aurioTouch/Classes/AudioController.mm I have added some sanity check in the audio callback. It looks like this /// The audio input callback static OSStatus audioInputCallback(void __unused *inRefCon, AudioUnitRenderActionFlags *ioActionFlags, const AudioTimeStamp *inTimeStamp, UInt32 __unused inBusNumber, UInt32

How to convert that UnsafeMutablePointer<UnsafeMutablePointer<Float>> variable into AudioBufferList?

ぃ、小莉子 提交于 2019-12-24 05:54:45
问题 I have this EZAudio method in my Swift project, to capture audio from the microphone: func microphone(microphone: EZMicrophone!, hasAudioReceived bufferList: UnsafeMutablePointer<UnsafeMutablePointer<Float>>, withBufferSize bufferSize: UInt32, withNumberOfChannels numberOfChannels: UInt32) { } But what I really need is to have that "bufferList" parameter coming in as an AudioBufferList type, in order to send those audio packets through a socket, just like I did in Objective C: //Objective C

error converting AudioBufferList to CMBlockBufferRef

て烟熏妆下的殇ゞ 提交于 2019-12-08 15:48:55
问题 I am trying to take a video file read it in using AVAssetReader and pass the audio off to CoreAudio for processing (adding effects and stuff) before saving it back out to disk using AVAssetWriter. I would like to point out that if i set the componentSubType on AudioComponentDescription of my output node as RemoteIO, things play correctly though the speakers. This makes me confident that my AUGraph is properly setup as I can hear things working. I am setting the subType to GenericOutput though