mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 11:10:52 +00:00
Stop currently playing song when starting a new one
This commit is contained in:
parent
3eb803a4f3
commit
32d024e825
@ -88,6 +88,12 @@ void Transport::Start(const utfstring path)
|
||||
if (success)
|
||||
{
|
||||
this->PlaybackStartedOk();
|
||||
|
||||
// Stop currently playing song if any
|
||||
if (this->openStreams.size() > 1)
|
||||
{
|
||||
this->Stop(0);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user