• 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
Ogg File
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Ogg File


  • Subject: Ogg File
  • From: "Beth Meyer" <email@hidden>
  • Date: Sat, 07 Feb 2004 15:36:36 +0000

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.
  • Follow-Ups:
    • Re: Ogg File
      • From: John Stiles <email@hidden>
  • Prev by Date: AU MIDI Controller range bug?
  • Next by Date: Re: AUCarbonViewControl bug?
  • Previous by thread: Re: AU MIDI Controller range bug?
  • Next by thread: Re: Ogg File
  • Index(es):
    • Date
    • Thread