• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Ogg File
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ogg File


  • Subject: Re: Ogg File
  • From: John Stiles <email@hidden>
  • Date: Sat, 7 Feb 2004 13:39:38 -0800

You need to explain your "trouble."
I have used Ogg Vorbis and Tremor in OS X and both are fine.
Do NOT call them from your format converter callback; they do too much work (i.e. allocations) that ruin the latency equation and can make CoreAudio skip.
Decode your Ogg from the main thread or from a separate feeder thread.


On Feb 7, 2004, at 7:36 AM, Beth Meyer wrote:

Hello everyone,

I already send this mail to the email@hidden
-> So far, I do not get any replies... .
Perhaps one of you does have a clue.

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;
...
}


You need more info's, please ask....


Thank you in advance,
Beth.

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

References: 
 >Ogg File (From: "Beth Meyer" <email@hidden>)

  • Prev by Date: Re: AUCarbonViewControl bug?
  • Next by Date: On Memory Management & MusicSequence
  • Previous by thread: Ogg File
  • Next by thread: On Memory Management & MusicSequence
  • Index(es):
    • Date
    • Thread