New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to change sample rate #39
Comments
already implemented |
I am working on an iOS audio processing app where i would like to use novocaine project. But i need to change the default input and output audio settings. The settings is(may be, but i am not sure.)... inputFormat.mSampleRate = 44100.0; But i need to change the input and output audio settings to the following... inputAudioStream.mSampleRate = 8000.0; outputAudioStream.mSampleRate = 8000.0; Thanks in advance for your help and time. |
@soulfly Would you please answer this question ? I would be very grateful if you do that. |
Please check my fork I use 8000 sample rate |
@soulfly I have checked it and already implemented it successfully. But i couldn't change the settings. Can you please advise me that how can i change the other settings ? |
Which other settings do you need to change? Not sure exactly what you mean |
@soulfly You have described how to change mSampleRate to 8000Hz of AudioStreamBasicDescription for both input and output. But i also need to change mFormatID, mBitsPerChannel, mBytesPerFrame, mChannelsPerFrame, mFramesPerPacket, mReserved of AudioStreamBasicDescription for both input and output. Actually i want to change the current settings to the following for both input and output... mFormatID = kAudioFormatLinearPCM; I badly need this. Please help me with this. And feel free to ask me any question. Thank you very much for your help. |
Hi, could you explain how to change current sample rate?
Lines
inputFormat.mSampleRate = 44100.0;
outputFormat.mSampleRate = 44100.0;
dont affect to this
thanks
The text was updated successfully, but these errors were encountered: