mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 11:10:52 +00:00
Fixed DirectSoundOut pause functionality.
This commit is contained in:
parent
aa92aaf475
commit
1c448e0f8e
@ -184,13 +184,13 @@ void DirectSoundOut::Stop() {
|
||||
int DirectSoundOut::Play(IBuffer *buffer, IBufferProvider *provider) {
|
||||
Lock lock(this->stateMutex);
|
||||
|
||||
if (this->state == StateStopped) {
|
||||
return OutputFormatError;
|
||||
if (this->state != StatePlaying) {
|
||||
return OutputInvalidState;
|
||||
}
|
||||
|
||||
if (!this->Configure(buffer)) {
|
||||
this->Reset();
|
||||
return OutputInvalidState;
|
||||
return OutputFormatError;
|
||||
}
|
||||
|
||||
unsigned char *dst1 = nullptr, *dst2 = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user