You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
doesn't produce an error, but it does set audioDataByteCount to 0xffffffff (i.e. a 32-bit -1 converted unsigned to 64-bit.) This makes the progress bar invalid since it thinks the duration is incredibly large.
You can change audioDataByteCount to a UInt32 and you still get back the same value as a UInt32.
Although it's a bit of a hack, this fixes the problem:
Will probably need to add a progress that's in seconds rather than percentage of the duration since that'll be impossible to get for these type of streams.
johnboiles
added a commit
to johnboiles/StreamingKit
that referenced
this issue
Jan 21, 2014
If you try to play a file format for which the length cannot be calculated from the header, e.g. Sun AU, this call:
doesn't produce an error, but it does set audioDataByteCount to 0xffffffff (i.e. a 32-bit -1 converted unsigned to 64-bit.) This makes the progress bar invalid since it thinks the duration is incredibly large.
You can change audioDataByteCount to a UInt32 and you still get back the same value as a UInt32.
Although it's a bit of a hack, this fixes the problem:
The text was updated successfully, but these errors were encountered: