Osstatus Error 50 Audiounitrender
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions
Audiounitrender Example
you might have Meta Discuss the workings and policies of this audiounitrender error site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error -50 from AudioUnitRender up vote 4 down vote favorite I'm getting error -50 (invalid parameters) from AudioUnitRender in the following context. I'm using this Pitch Detector sample app as my starting point, and it works fine. The only major difference in my project is that I'm also using the Remote I/O unit for audio output. The audio output works fine. Here is my input callback and my initialization code (with error checking removed for brevity). I know it's a lot but error -50 really gives me very little information as to where the problem might be. Input callback: OSStatus inputCallback( void* inRefCon, AudioUnitRenderActionFlags *ioActionFlags, const AudioTimeStamp *inTimeStamp, UInt32 inBusNumber, UInt32 inNumberFrames, AudioBufferList *ioData) { WBAudio* audioObject= (WBAudio*)inRefCon; AudioUnit rioUnit = audioObject->m_audioUnit; OSStatus renderErr; UInt32 bus1 = 1; renderErr = AudioUnitRender(rioUnit, ioActionFlags, inTimeStamp, bus1, inNumberFrames, audioObject->m_inBufferList ); if (renderErr < 0) { return renderErr; // breaks here } return noErr; } // end inputCallback() Initialization: - (id) init { self= [super init]; if( !self ) return nil; OSStatus result; //! Initialize a buffer list for rendering input size_t bytesPerSample; bytesPerSample = sizeof(SInt16); m_inBufferList = (AudioBufferList *)malloc(sizeof(AudioBuffer)); m_inBufferList->mNumberBuffers = 1; m_inBufferList->mBuffers[0].mNumberChannels = 1; m_inBufferList->mBuffers[0].mDataByt
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is http://stackoverflow.com/questions/10288541/error-50-from-audiounitrender a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Recording with remote I/O, AudioUnitRender -50 return code up vote 4 down vote favorite 3 I've been working on a frequency detection application for iOS and I'm having an issue filling a http://stackoverflow.com/questions/4374289/recording-with-remote-i-o-audiounitrender-50-return-code user-defined AudioBufferList with audio samples from the microphone. I'm getting a return code of -50 when I call AudioUnitRender in my InputCallback method. I believe this means one of my parameters is invalid. I'm guessing it's the AudioBufferList, but I haven't been able to figure out what is wrong with it. I think I've set it up so it matches the data format I've specified in my ASBD. Below is the remote I/O setup and function calls that I believe could be incorrect: ASBD: size_t bytesPerSample = sizeof(AudioUnitSampleType); AudioStreamBasicDescription localStreamFormat = {0}; localStreamFormat.mFormatID = kAudioFormatLinearPCM; localStreamFormat.mFormatFlags = kAudioFormatFlagsAudioUnitCanonical; localStreamFormat.mBytesPerPacket = bytesPerSample; localStreamFormat.mBytesPerFrame = bytesPerSample; localStreamFormat.mFramesPerPacket = 1; localStreamFormat.mBitsPerChannel = 8 * bytesPerSample; localStreamFormat.mChannelsPerFrame = 2; localStreamFormat.mSampleRate = sampleRate; InputCallback Declaration: err = AudioUnitSetProperty(ioUnit, kAudioOutputUnitProperty_SetInputCallback, kAudioUnitScope_Input, kOutputBus, &callbackStruct, sizeof(callbackStruct)); AudioBufferList Declaration: // Allocate AudioBuffers bufferList = (AudioBufferList *)malloc(sizeof(AudioBuffer)); bufferList->mNumberBuffers = 1; bufferList->mBuffers[0].mNumberChannels = 2; bufferList->mBuffers[0].mDataByteSize = 1024; bufferList->mBuffers[0].mData = calloc(256, sizeof(uint32_t)); InputCallback Function: AudioUnit rioUnit = THIS->ioUni
Sign in Pricing Blog Support Search GitHub This repository Watch 110 Star 1,962 Fork 275 alexbw/novocaine Code Issues 36 Pull requests 3 Projects 0 Pulse Graphs https://github.com/alexbw/novocaine/issues/27 New issue Getting couldn't render output unit -50 for cases using audio in #27 Closed tkirke opened this Issue Aug 11, 2012 · 45 comments Projects None yet Labels http://forum.theamazingaudioengine.com/discussion/555/nsosstatuserrordomain-code-1718449215-osstatus-error-1718449215-while-doing-recording bug Milestone No milestone Assignees No one assigned 10 participants tkirke commented Aug 11, 2012 Device is fine but simulator always gives this error. Tried on Xcode 4.3 and osstatus error 4.4 and on different MacBooks. Anyone else see this? Owner alexbw commented Aug 11, 2012 I had this too, and it started spontaneously. I have NO idea why it's there, and it's particular to novocaine (older core audio projects of mine work fine). I am stumped. As the maintainer of this project, I wish I had more time to dig into all osstatus error 50 these issues. If you figure this out, I'd love nothing more than a pull request with a fix. … On Saturday, August 11, 2012 at 1:33 AM, Tony Kirke wrote: Device is fine but simulator always gives this error. Tried on Xcode 4.3 and 4.4 and on different MacBooks. Anyone else see this? — Reply to this email directly or view it on GitHub (#27). tkirke commented Aug 11, 2012 I spent a while trying to debug this last night but got nowhere. First couple of calls to interrupt/callback routine were ok but then it went bad. Yes, I thought this was fine before but I didn't know if I changed anything that may have caused this - so i checked out the latest novocaine and also saw it. In the process of debugging this i upgraded Xcode to 4.4 but it was bad before upgrading. I thought that before the audio data type was float in simulator compared to SInt16 on ios, but I can't rely on memory totally. I vaguely remember because I thought it was odd it wasn't the sa
The Amazing Audio Engine in one of my app. I had added the SDK perfect but unfortunately when I am making an audio recording it showing an OSStatus error. I had googled it but didn't find any solution. Ref Link : http://stackoverflow.com/questions/4259078/osstatus-error-1718449215?rq=1 http://stackoverflow.com/questions/12254202/osstatus-error-50-paramerr-on-audiounitrender-call-on-device?rq=1 Comments sumitsharma1900 January 2014 @Michael Can you please take some time to figure out this problem. I am unable to use AAE in my new Application. I am simply doing audio recording in my project using AAE and after that I have to add filters, effects and mixing in that. Thank You in Advance. Sign In or Register to comment. Howdy, Stranger! It looks like you're new here. If you want to get involved, click one of these buttons! Sign In Register Recent Discussions Activity Also by the TAAE Team AudiobusLive app-to-app audio routing. Join the Audiobus community! Copyright © 2016 The Amazing Forum Built with and Bootstrap. Powered by Vanilla Forums