• 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
Not Setting Format results in multichannel playback success
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Not Setting Format results in multichannel playback success


  • Subject: Not Setting Format results in multichannel playback success
  • From: Mike Hanna <email@hidden>
  • Date: Thu, 6 Jul 2006 23:24:40 -0700

I finally have playback of multichannel audio with code based on PlayFile.cpp.

Using AudioFileGetProperty(), I load a file into a buffer:

XThrowIfError (AudioFileGetProperty(fAudioFile, kAudioFilePropertyDataFormat, &propsize, &fFileFormat), "AudioFileGetProperty");


I could not get sound when playing a multichannel file; I thought it was because I wasn't using SetFormat(), but it apparently it causes an exception, of which kind I don't know:

http://paste.lisp.org/display/22194

/*** using SetFormat seems to cause an exception, any idea why? ***/

I finally decided to comment-out any code that calls SetNumberChannels() or SetSampleRate(). Removing these results in successful playback of multichannel audio, any idea why?

/*** commenting-out these lines results in successful playback of multichannel audio, why? ***/

Any pointers would be helpful.

Mike
 _______________________________________________
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: Not Setting Format results in multichannel playback success
      • From: Doug Wyatt <email@hidden>
  • Prev by Date: Meet the Core Audio Engineers at WWDC!
  • Next by Date: how do I change bitsperchannel value
  • Previous by thread: Meet the Core Audio Engineers at WWDC!
  • Next by thread: Re: Not Setting Format results in multichannel playback success
  • Index(es):
    • Date
    • Thread