engine/source/gamelib/soundmix.c
// Returns time passed in milliseconds (since last call or start of playback),
// or 0xFFFFFFFF if not available. This function is useful when synchronizing
// stuff to sound.
Returns time passed in milliseconds (since last call or start of playback),
or 0xFFFFFFFF if not available. This function is useful when synchronizing
stuff to sound.
Returns time passed in milliseconds ( since last call or start of playback ) or 0xFFFFFFFF if not available . This function is useful when synchronizing stuff to sound .
u32 sound_getinterval()
{
    u32 msecs;
    if(!mixing_active)
    {
        return 0xFFFFFFFF;
    }
    msecs = 1000 * samplesplayed / playfrequency;
    samplesplayed -= msecs * playfrequency / 1000;
    return msecs;
}
u32 sound_getinterval ( ) { u32 msecs ; if ( ! mixing_active ) { return 0xFFFFFFFF ; } msecs = 1000 * samplesplayed / playfrequency ; samplesplayed -= msecs * playfrequency / 1000 ; return msecs ; }
Returns time passed in milliseconds (since last call or start of playback),
or 0xFFFFFFFF if not available.
Returns time passed in milliseconds ( since last call or start of playback ) or 0xFFFFFFFF if not available .