• 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: playing mono files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: playing mono files


  • Subject: Re: playing mono files
  • From: Marc Poirier <email@hidden>
  • Date: Tue, 14 Oct 2003 10:44:03 -0500 (CDT)

> this rather deadly mistake in the checkStatus macro:

Oh yeah, and along those same lines, there's this one just waiting to
crash, too, in PrintStreamDesc():

printf(" Format ID:%s\n", (char*)&inDesc->mFormatID);

should have a field width specifier, for example:

printf(" Format ID:%.*s\n", (int) sizeof(inDesc->mFormatID), (char*)&inDesc->mFormatID);

Also, ACComplexInputProc() has this bug:

if (err)
{
checkStatus(err);
gIsPlaying = FALSE; //end of data reached;
}

Since err is non-zero, that means that checkStatus will cause the function
to return, so gIsPlaying=FALSE won't happen (I guess this is a good
example of one of those reasons why folks say to avoid using macros).
The fix is simple, though:

if (err)
{
gIsPlaying = FALSE; //end of data reached;
checkStatus(err);
}

I guess I should gather and submit these to RADAR...

Marc
_______________________________________________
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.

  • Prev by Date: Re: man coreaudio (?)
  • Next by Date: Re: playing mono files
  • Previous by thread: Re: playing mono files
  • Next by thread: Re: playing mono files
  • Index(es):
    • Date
    • Thread