stop reset to cursor when finish fade out
This commit is contained in:
parent
f6eb15f13c
commit
f4bf71dbcf
1 changed files with 4 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
#include <QTimer>
|
||||
#include "miniaudioengine.h"
|
||||
#include "dmxPersonality.h"
|
||||
|
||||
|
@ -499,6 +500,9 @@ ma_result MiniAudioEngine::playbackChanged(int layer, Status status)
|
|||
break;
|
||||
case Status::Stopped:
|
||||
ma_sound_stop_with_fade_in_milliseconds(&m_mae.sounds[layer], m_mae.currentStatus[layer].fadeOut);
|
||||
QTimer::singleShot(m_mae.currentStatus[layer].fadeOut, [this, layer] {
|
||||
this->seekToCursor(layer, m_mae.currentStatus[layer].cursor);
|
||||
});
|
||||
break;
|
||||
case Status::PlayingLoop:
|
||||
loop = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue