• Francois Gouget's avatar
    Added bytes_to_mmtime() to convert the stream position from bytes to · eed1b520
    Francois Gouget authored
    the requested MMTIME format. This function should be identical in all
    drivers.
    Remove the corresponding code from wodGetPosition() and
    widGetPosition() and use bytes_to_mmtime() instead.
    bytes_to_mmtime() uses no floating-point arithmetic to compute
    TIME_SMPTE and no longer uses round(). It should have no integer
    overflows either.
    eed1b520
audio.c 71.6 KB