mirror of
https://github.com/clangen/musikcube.git
synced 2025-03-14 04:18:36 +00:00
Ensure the Player's listener is zero'd out as part of Player::Destroy().
Also cleaned up a couple small warnings.
This commit is contained in:
parent
483dfa65cd
commit
5b5399322f
@ -165,7 +165,7 @@ void Crossfader::ProcessMessage(IMessage &message) {
|
||||
percent = (1.0f - percent);
|
||||
}
|
||||
|
||||
float outputVolume = globalVolume * percent;
|
||||
double outputVolume = globalVolume * percent;
|
||||
|
||||
#if 0
|
||||
std::string dir = (fade->direction == FadeIn) ? "in" : "out";
|
||||
|
@ -150,6 +150,7 @@ void Player::Destroy() {
|
||||
return; /* already terminated (or terminating) */
|
||||
}
|
||||
|
||||
this->listener = nullptr;
|
||||
this->state = Player::Quit;
|
||||
this->writeToOutputCondition.notify_all();
|
||||
this->thread->detach();
|
||||
|
@ -387,7 +387,7 @@ void TransportWindow::Update(TimeMode timeMode) {
|
||||
OFF(c, disabled);
|
||||
}
|
||||
else {
|
||||
secondsTotal = transport.GetDuration();
|
||||
secondsTotal = (int) transport.GetDuration();
|
||||
|
||||
std::string title, album, artist;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user