Re: playing mono files
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.