mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-19 14:40:57 -04:00
Workaround for the issue that A2DP stream would sometimes not restart when music player changes song to the next one.
28 lines
1.0 KiB
C++
28 lines
1.0 KiB
C++
// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include <presenters/SongsPresenter.hpp>
|
|
|
|
class AudioStopNotification;
|
|
class AudioPausedNotification;
|
|
class AudioResumedNotification;
|
|
|
|
namespace app::music_player
|
|
{
|
|
class AudioNotificationsHandler
|
|
{
|
|
public:
|
|
explicit AudioNotificationsHandler(std::shared_ptr<app::music_player::SongsContract::Presenter> presenter);
|
|
|
|
sys::MessagePointer handleAudioStopNotification(const AudioStopNotification *notification);
|
|
sys::MessagePointer handleAudioEofNotification(const AudioStopNotification *notification);
|
|
sys::MessagePointer handleAudioPausedNotification(const AudioPausedNotification *notification);
|
|
sys::MessagePointer handleAudioResumedNotification(const AudioResumedNotification *notification);
|
|
|
|
private:
|
|
std::shared_ptr<app::music_player::SongsContract::Presenter> presenter;
|
|
};
|
|
} // namespace app::music_player
|