• 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
Problems with alSourceQueueBuffers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems with alSourceQueueBuffers


  • Subject: Problems with alSourceQueueBuffers
  • From: Juan Miguel Martín Muñoz <email@hidden>
  • Date: Thu, 14 Jul 2011 14:33:35 +0200

Hi!

I've this code to fill buffers with decode audio data

// Is the buffer empty?
alGetSourcei(uiSource, AL_BUFFERS_QUEUED, &iQueuedBuffers);
if (iQueuedBuffers == 0)
{
// Fill all the Buffers with decoded audio data from the OggVorbis file
for (iLoop = 0; iLoop < PS_NUM_BUFFERS; iLoop++)
{
ulBytesWritten = DecodeOggVorbis(&sOggVorbisFile, pDecodeBuffer, ulBufferSize, ulChannels);
if (ulBytesWritten)
{
alBufferData(uiBuffers[iLoop], ulFormat, pDecodeBuffer, ulBytesWritten, ulFrequency);
}
}
alGetError();
alSourceQueueBuffers(uiSource, PS_NUM_BUFFERS, uiBuffers);
ALenum err = alGetError();
}

// Start playing source
alSourcePlay(uiSource);

I'm using XCode 4 (10.6 SDK) I get an error code "-50" after alSourceQueueBuffers.

Thanks in advance!
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Different behavior between simulator and device
  • Next by Date: Core Audio Clock Timestamps and plugging in Headphones
  • Previous by thread: Re: audio unit deinstantiation thread
  • Next by thread: Core Audio Clock Timestamps and plugging in Headphones
  • Index(es):
    • Date
    • Thread