mirror of
https://github.com/clangen/musikcube.git
synced 2024-10-02 13:02:35 +00:00
Ensure we update the playback state if we seek while paused.
This commit is contained in:
parent
9cb6040491
commit
eccc78defc
@ -176,6 +176,9 @@ void CrossfadeTransport::SetPosition(double seconds) {
|
|||||||
Lock lock(this->stateMutex);
|
Lock lock(this->stateMutex);
|
||||||
|
|
||||||
if (this->active.player) {
|
if (this->active.player) {
|
||||||
|
if (this->state != PlaybackPlaying) {
|
||||||
|
this->SetPlaybackState(PlaybackPlaying);
|
||||||
|
}
|
||||||
this->active.player->SetPosition(seconds);
|
this->active.player->SetPosition(seconds);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -237,6 +237,9 @@ void GaplessTransport::SetPosition(double seconds) {
|
|||||||
LockT lock(this->stateMutex);
|
LockT lock(this->stateMutex);
|
||||||
|
|
||||||
if (this->activePlayer) {
|
if (this->activePlayer) {
|
||||||
|
if (this->state != PlaybackPlaying) {
|
||||||
|
this->SetPlaybackState(PlaybackPlaying);
|
||||||
|
}
|
||||||
this->activePlayer->SetPosition(seconds);
|
this->activePlayer->SetPosition(seconds);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -141,7 +141,6 @@ palette, use ones that most closely match our desired colors */
|
|||||||
#define COLOR_256_OFFWHITE 251
|
#define COLOR_256_OFFWHITE 251
|
||||||
|
|
||||||
#define SCALE(x) ((x * 1000) / 255)
|
#define SCALE(x) ((x * 1000) / 255)
|
||||||
|
|
||||||
struct ThemeColor {
|
struct ThemeColor {
|
||||||
ThemeColor() {
|
ThemeColor() {
|
||||||
Set(0, 0, 0, 0, -1);
|
Set(0, 0, 0, 0, -1);
|
||||||
|
Loading…
Reference in New Issue
Block a user