Skip to content
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 8000hz/16000hz get or put as short* array for audio ? #133

Open
eix128 opened this issue Sep 11, 2018 · 0 comments
Open

How to 8000hz/16000hz get or put as short* array for audio ? #133

eix128 opened this issue Sep 11, 2018 · 0 comments

Comments

@eix128
Copy link

eix128 commented Sep 11, 2018

Hi , is there any way to set audio sample rate to 8000hz or 16000hz and i want to get all array as short array.

[audioManager setInputBlock:^(float *newAudio, UInt32 numSamples, UInt32 numChannels)

And whats the float range ? is it returning between [-1,1] ?
I need in short like this:
[audioManager setInputBlock:^(short *newAudio, UInt32 numSamples, UInt32 numChannels)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant