• 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
odd soundfile buffer problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

odd soundfile buffer problem


  • Subject: odd soundfile buffer problem
  • From: Brad Garton <email@hidden>
  • Date: Fri, 21 May 2010 01:00:37 -0400

Hey Coreaudioers --

I'm having a strange iPhoneOS problem, I'll post it here to see if anyone has any clues.  I load a soundfile into a buffer:

status = AudioFileReadPackets (soundFile, false, &numBytes, NULL, 0, &numPackets, sampBuf);
if (status !=0) {
NSLog(@"problem reading file packets into buffer");
return -1;
}

and in the simulator it works fine and dandy to access and play the buffer.  However, when I compile and load into my iPhone device, I hear nothing... no errors reported though.

Now, if I add this line after the above code:

NSLog(@"numPackets read into sampBuf: %d", numPackets);

it then works fine on my device!  Nothing else is changed in the code.  Is this at all familiar to anyone?

brad

 _______________________________________________
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

  • Follow-Ups:
    • Re: odd soundfile buffer problem
      • From: Eric Allamanche <email@hidden>
    • Re: odd soundfile buffer problem
      • From: Brad Garton <email@hidden>
  • Prev by Date: Re: AudioQueue getting delayed by other audio output of the system
  • Next by Date: Re: odd soundfile buffer problem
  • Previous by thread: Re: AudioQueue getting delayed by other audio output of the system
  • Next by thread: Re: odd soundfile buffer problem
  • Index(es):
    • Date
    • Thread