[vorbis-dev] OS X

Beth Meyer bethmeyer at hotmail.com
Sat Feb 7 04:36:47 PST 2004



Hello,

has anyone experience with "CoreAudio" and "Vorbis" ?
I try to decode a file with ov_read(...).
It works for some (mili)seconds and then the Output get into trouble... .

You need some infos?

char buffer[4096];
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.mFramesPerPacket = 1;
    sFormat.mBytesPerFrame = 4;
    sFormat.mChannelsPerFrame = 2;
    s.mBitsPerChannel = 16;
    ...
}

<p>You need more info's, please ask....

<p>Thank you in advance,
Beth.

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list