search for: aurendercallbackstruct

Displaying 2 results from an estimated 2 matches for "aurendercallbackstruct".

2004 Feb 07
0
OS X
...6]; OSStatus Render(...) { bytes_read = ov_read(&vf, buffer, sizeof(buffer), 0, 2, 1, &current_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 = kLinearPCMFormatFlagIsSignedInteger; sFormat.mBytesPerPacket = 4; sFormat...
2012 Sep 30
0
Speex (in ios) really poor quality (and robotic) sound
...ope_Input, kOutputBus, &audioFormat, sizeof(audioFormat)); XThrowIfError(status, ""); // Set input callback AURenderCallbackStruct callbackStruct; callbackStruct.inputProc = recordingCallback; callbackStruct.inputProcRefCon = self; status = AudioUnitSetProperty(rioUnit, kAudioOutputUnitProperty_SetInputCallback,...