Displaying 1 result from an estimated 1 matches for "somewheretheplay".
2004 Feb 07
0
OS X
...... .
You need some infos?
char buffer[4096];
OSStatus Render(...) {
bytes_read = ov_read(&vf, buffer, sizeof(buffer), 0, 2, 1,
¤t_section);
memcpy(ioData->mBuffers[0].mData, buffer, bytes_read);
ioData->mBuffers[0].mDataByteSize = bytes_read;
return noErr;
}
SomewhereThePlay Function(...){
...
AURenderCallbackStruct in;
in.inputProc = Render;
in.inputProcRefCon = NULL;
...
AudioStreamBasicDescription sFormat;
sFormat.mSampleRate = 44100;
sFormat.mFormatID = kAudioFormatLinearPCM;
sFormat.mFormatFlags = kLinearPCMFormatFlagIsSignedInt...