Explorar el Código

Merge pull request #4914 from Servall4/master

[raudio] fix: GetMusicTimePlayed returns incorrect time after restarting a paused track
pull/4916/head
Ray hace 2 meses
cometido por GitHub
padre
commit
1ec281e86f
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: B5690EEEBB952194
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. +4
    -0
      src/raudio.c

+ 4
- 0
src/raudio.c Ver fichero

@ -604,6 +604,7 @@ AudioBuffer *LoadAudioBuffer(ma_format format, ma_uint32 channels, ma_uint32 sam
audioBuffer->usage = usage;
audioBuffer->frameCursorPos = 0;
audioBuffer->framesProcessed = 0;
audioBuffer->sizeInFrames = sizeInFrames;
// Buffers should be marked as processed by default so that a call to
@ -650,6 +651,9 @@ void PlayAudioBuffer(AudioBuffer *buffer)
buffer->playing = true;
buffer->paused = false;
buffer->frameCursorPos = 0;
buffer->framesProcessed = 0;
buffer->isSubBufferProcessed[0] = true;
buffer->isSubBufferProcessed[1] = true;
ma_mutex_unlock(&AUDIO.System.lock);
}
}

Cargando…
Cancelar
Guardar