• 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: Bug in PlayFile.cpp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Bug in PlayFile.cpp
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: Sample rate property listener
  • Next by Date: Re: Logic Live mode/PDC
  • Previous by thread: Re: MIDIReceived and virtual sources...
  • Next by thread: Re: Bug in PlayFile.cpp
  • Index(es):
    • Date
    • Thread