Пример #1
0
void SoundSource::SetPlayPosition(signed char* pos)
{
    if (!audio_ || !sound_)
        return;
    
    MutexLock lock(audio_->GetMutex());
    SetPlayPositionLockless(pos);
}
Пример #2
0
void SoundSource::SetPlayPosition(signed char* pos)
{
    // Setting play position on a stream is not supported
    if (!audio_ || !sound_ || soundStream_)
        return;

    MutexLock lock(audio_->GetMutex());
    SetPlayPositionLockless(pos);
}