feat(sound): partially implement SESoundInternal::Play

This commit is contained in:
fallenoak 2025-11-24 19:46:18 -06:00
parent 74aed41bc5
commit 50ce518385
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -10,7 +10,17 @@ SESoundInternal::SESoundInternal() {
} }
void SESoundInternal::Play() { void SESoundInternal::Play() {
FMOD_RESULT result;
// TODO // TODO
// Unpause channel (triggers playback)
result = this->m_fmodChannel->setPaused(false);
if (result != FMOD_OK && result != FMOD_ERR_CHANNEL_STOLEN && result != FMOD_ERR_INVALID_HANDLE && result != FMOD_ERR_OUTPUT_DRIVERCALL) {
LOG_WRITE(result, "");
}
} }
void SEDiskSound::Abort(FMOD_RESULT result) { void SEDiskSound::Abort(FMOD_RESULT result) {