Re: Trying to get all samples from an audio file on disk into memory
Re: Trying to get all samples from an audio file on disk into memory
- Subject: Re: Trying to get all samples from an audio file on disk into memory
- From: Yuriy Romanchenko <email@hidden>
- Date: Sun, 01 Mar 2015 21:35:32 +0200
I’m not expert in AudioUnits, but here some things that needs to be checked:
1. Check that error when you set stream format for audio unit:
err = AudioUnitSetProperty(player.outputUnit,
kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Input,
0,
&asbd,
sizeof(asbd));
2. Check how much buffers you have in render callback: ioData->mNumberBuffers (it should be 1)
Regards, Yuri.
On Mar 1, 2015, at 21:18, Patrick J. Collins < email@hidden> wrote: Seems like the problem is in your streamer. If you will share your streamer code maybe we could identify the problem.
Sure... Here is that code: https://gist.github.com/patrick99e99/6bf97192433c7ea817bf
Like I said, I have supplied it with other arrays of 16-bit signed integers and those play just fine... It's just this particular buffer generated by ExtAudioFileRead that's not working.
Patrick J. Collins http://collinatorstudios.com
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden