Files
MuditaOS/module-audio/Audio/Operation/IdleOperation.cpp
T
Hubert Chrzaniuk 7ccc52c04c [EGD-4357] Improve error handling in audio (#990)
- error code can be now returned also during
   initialization
 - fixed crash when user requested to playback
   file that does not exist
2020-11-12 16:15:42 +01:00

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