mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-10-26 08:28:29 -04:00
- error code can be now returned also during initialization - fixed crash when user requested to playback file that does not exist
27 lines
689 B
C++
27 lines
689 B
C++
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#include "IdleOperation.hpp"
|
|
|
|
#include "Audio/Profiles/ProfileIdle.hpp"
|
|
|
|
namespace audio
|
|
{
|
|
|
|
IdleOperation::IdleOperation([[maybe_unused]] const char *file)
|
|
{
|
|
supportedProfiles.emplace_back(Profile::Create(Profile::Type::Idle, nullptr), true);
|
|
currentProfile = supportedProfiles[0].profile;
|
|
}
|
|
|
|
audio::RetCode IdleOperation::SetOutputVolume(float vol)
|
|
{
|
|
return RetCode::Success;
|
|
}
|
|
|
|
audio::RetCode IdleOperation::SetInputGain(float gain)
|
|
{
|
|
return RetCode::Success;
|
|
}
|
|
} // namespace audio
|