From 50ce51838517c1bf5308fba6d987fae9fa4ecfc5 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Mon, 24 Nov 2025 19:46:18 -0600 Subject: [PATCH] feat(sound): partially implement SESoundInternal::Play --- src/sound/SESoundInternal.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/sound/SESoundInternal.cpp b/src/sound/SESoundInternal.cpp index 85a70aa..f478d96 100644 --- a/src/sound/SESoundInternal.cpp +++ b/src/sound/SESoundInternal.cpp @@ -10,7 +10,17 @@ SESoundInternal::SESoundInternal() { } void SESoundInternal::Play() { + FMOD_RESULT result; + // 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) {