Re: Bug in PlayFile.cpp
Re: Bug in PlayFile.cpp
- Subject: Re: Bug in PlayFile.cpp
- From: William Reading <email@hidden>
- Date: Mon, 12 Jun 2006 08:16:03 -0500
Howdy,
I don't know if this is the right place for these things, but I thought I'd mention it here and hope it gets routed where it should go.
The copy of PlayFile.cpp included in the v1.4.3 SDK has a little rounding bug that I noticed when I tried to playback a file shorter than a second in length:
Line 99 should be something like: usleep (lroundl(fileDuration * 1000 * 1000));
If it's just truncated by casting to (int), then the value becomes zero for files shorter than a second and has the potential to truncate playback in other ways.
Regards, William Reading |
_______________________________________________
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