diff --git a/src/musikcore/audio/GaplessTransport.cpp b/src/musikcore/audio/GaplessTransport.cpp index 8aa5c409a..fa4bfe217 100644 --- a/src/musikcore/audio/GaplessTransport.cpp +++ b/src/musikcore/audio/GaplessTransport.cpp @@ -301,7 +301,7 @@ void GaplessTransport::OnPlayerStarted(Player* player) { this->SetPlaybackState(PlaybackState::Playing); } -void GaplessTransport::OnPlayerAlmostEnded(Player* player) { +void GaplessTransport::OnPlayerStreamEof(Player* player) { this->SetNextCanStart(true); { diff --git a/src/musikcore/audio/GaplessTransport.h b/src/musikcore/audio/GaplessTransport.h index f968a72d1..efe0cbb3f 100644 --- a/src/musikcore/audio/GaplessTransport.h +++ b/src/musikcore/audio/GaplessTransport.h @@ -95,7 +95,7 @@ namespace musik { namespace core { namespace audio { void OnPlayerStarted(Player* player) override; void OnPlayerBuffered(Player* player) override; - void OnPlayerAlmostEnded(Player* player) override; + void OnPlayerStreamEof(Player* player) override; void OnPlayerFinished(Player* player) override; void OnPlayerOpenFailed(Player* player) override; void OnPlayerDestroying(Player* player) override; diff --git a/src/musikcore/audio/Player.cpp b/src/musikcore/audio/Player.cpp index 49d28f5df..da5e5455a 100644 --- a/src/musikcore/audio/Player.cpp +++ b/src/musikcore/audio/Player.cpp @@ -422,7 +422,7 @@ void musik::core::audio::playerThreadLoop(Player* player) { if (!player->Exited()) { for (Listener* l : player->Listeners()) { player->streamState = StreamState::AlmostDone; - l->OnPlayerAlmostEnded(player); + l->OnPlayerStreamEof(player); } } } diff --git a/src/musikcore/audio/Player.h b/src/musikcore/audio/Player.h index 33ffa9802..99656a231 100644 --- a/src/musikcore/audio/Player.h +++ b/src/musikcore/audio/Player.h @@ -70,7 +70,7 @@ namespace musik { namespace core { namespace audio { virtual ~EventListener() { } virtual void OnPlayerBuffered(Player* player) { } virtual void OnPlayerStarted(Player* player) { } - virtual void OnPlayerAlmostEnded(Player* player) { } + virtual void OnPlayerStreamEof(Player* player) { } virtual void OnPlayerFinished(Player* player) { } virtual void OnPlayerOpenFailed(Player* player) { } virtual void OnPlayerDestroying(Player* player) { }