remoteio

AudioUnitRender error -50 with odd length buffers

ⅰ亾dé卋堺 提交于 2020-01-05 03:29:08
问题 I have a RemoteIO unit configured with AVAudioSessionCategoryPlayAndRecord. I find some strange behavior in it. I open the app, and immediately close it before audioUnit initializes fully (it actually initializes in background as I quit the app too soon). Next I bring the app to foreground and immediately on relaunch, I see AudioUnitRender failing with error -50 continuously. I find inNumberFrames to be 1115 and it fails whenever this number is odd. func recordingCallback(inRefCon

error in audio Unit code -remoteIO for iphone

核能气质少年 提交于 2019-12-18 09:48:01
问题 i have this code, in order to read buffer samples , but i get a strange mach-o linker error , Framework of audio unit couldnt loaded so i put the audioTollBox and coreAudio as i read. my code is : #define kOutputBus 0 #define kInputBus 1 AudioComponentInstance audioUnit; @implementation remoteIO //callback function : static OSStatus recordingCallback(void *inRefCon, AudioUnitRenderActionFlags *ioActionFlags, const AudioTimeStamp *inTimeStamp, UInt32 inBusNumber, UInt32 inNumberFrames,

error in audio Unit code -remoteIO for iphone

那年仲夏 提交于 2019-12-18 09:47:24
问题 i have this code, in order to read buffer samples , but i get a strange mach-o linker error , Framework of audio unit couldnt loaded so i put the audioTollBox and coreAudio as i read. my code is : #define kOutputBus 0 #define kInputBus 1 AudioComponentInstance audioUnit; @implementation remoteIO //callback function : static OSStatus recordingCallback(void *inRefCon, AudioUnitRenderActionFlags *ioActionFlags, const AudioTimeStamp *inTimeStamp, UInt32 inBusNumber, UInt32 inNumberFrames,

How to control hardware mic input gain/level on iPhone?

只愿长相守 提交于 2019-12-17 18:33:42
问题 My audio-analysis function responds better on the iPad (2) than the iPhone (4). It seems sensitive to softer sounds on the iPad, whereas the iPhone requires much louder input to respond properly. Whether this is because of mic placement, different components, different software configurations or some other factor, I'd like to be able to control for it in my app. Obviously I could just multiply all of my audio samples to programmatically apply gain. Of course that has a software cost too, so:

Recording audio with Audio Unit with files segmented in X number of seconds each

旧城冷巷雨未停 提交于 2019-12-12 01:55:19
问题 I've been at this for a few days now. I'm not very familiar with the Audio Unit layer of the framework. Could someone point me to some full example on how I can let user record and than write the file on the fly with x number of interval. For example, user press record, every 10 seconds, I want to write to a file, on the 11th second, it'll write to the next file and in the 21th second, it's the same thing. So when I record 25 seconds word of audio, it'll produce 3 different files. I've tried

Using remote io for recording and AVPlayer for playing ipod library audio at the same time continuously

谁说胖子不能爱 提交于 2019-12-11 13:32:50
问题 Can I use remote io for recording and AVPlayer for playing iPod library audio at the same time continuously? I tried but the error returned was: AURemoteIO::ChangeHardwareFormats: error -10875. 回答1: As far as I know, officially it is not possible. When you start the recording sessions, except for recording does not occupy it. Once you playback and recording sessions in the session must be solved. recording and playback session, the session can not be occupied simultaneously. refer a apple

Error from registration server when publishing audio unit

徘徊边缘 提交于 2019-12-10 09:31:58
问题 I'm trying to publish an AudioUnit generator on iOS. When I call - (void)publishOutputAudioUnit { AudioComponentDescription desc = { kAudioUnitType_RemoteGenerator, 'anap', 'cwcw', 0, 0 }; OSStatus status = AudioOutputUnitPublish(&desc, CFSTR("My app"), 1, m_au); if (status) { DLog(@"Couldn't publish audio unit"); } } I get the console message: ERROR: [0x39d1518c] 225: error -66748 from registration server with -66748 as the status. Google isn't helping me and neither are the docs. I'm

Eliminating current playing track sound in recording track

倖福魔咒の 提交于 2019-12-07 15:22:20
问题 I am looking to use RemoteI/O for audio recording and playing.I am very poor to understand core audio, because of that I followed Amazing Audio open source.So far I can able to Record and play with the same code, now I am trying to record through microphone and play though iphone speaker to avoid mixing of two audios while using simultaneous audio playing and recording. I have seen many posts in Stack Overflow that my question is duplicate, but I couldn't find exact answer for my problem. But

Eliminating current playing track sound in recording track

三世轮回 提交于 2019-12-05 22:50:39
I am looking to use RemoteI/O for audio recording and playing.I am very poor to understand core audio, because of that I followed Amazing Audio open source .So far I can able to Record and play with the same code, now I am trying to record through microphone and play though iphone speaker to avoid mixing of two audios while using simultaneous audio playing and recording. I have seen many posts in Stack Overflow that my question is duplicate, but I couldn't find exact answer for my problem. But I have hope to implement by seeing Apple document . Questions: How to implement simultaneous

error in audio Unit code -remoteIO for iphone

不羁岁月 提交于 2019-11-29 18:10:29
i have this code, in order to read buffer samples , but i get a strange mach-o linker error , Framework of audio unit couldnt loaded so i put the audioTollBox and coreAudio as i read. my code is : #define kOutputBus 0 #define kInputBus 1 AudioComponentInstance audioUnit; @implementation remoteIO //callback function : static OSStatus recordingCallback(void *inRefCon, AudioUnitRenderActionFlags *ioActionFlags, const AudioTimeStamp *inTimeStamp, UInt32 inBusNumber, UInt32 inNumberFrames, AudioBufferList *ioData) { AudioBuffer buffer; buffer.mNumberChannels = 1; buffer.mDataByteSize =