mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-16 10:00:03 -05:00
Fix of the issue that only files with extension in lowercase were detected and listed in the music player's library. Additionally code cleanup.
27 lines
712 B
C++
27 lines
712 B
C++
// Copyright (c) 2017-2022, 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 std::string &filePath) : Operation(nullptr)
|
|
{
|
|
supportedProfiles.emplace_back(Profile::Create(Profile::Type::Idle), 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
|