mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(sound): partially implement SESoundInternal::Play
This commit is contained in:
parent
74aed41bc5
commit
50ce518385
@ -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) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user