mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-03 20:57:19 -04:00
42 lines
745 B
C++
42 lines
745 B
C++
/*
|
|
* @file Common.hpp
|
|
* @author Mateusz Piesta (mateusz.piesta@mudita.com)
|
|
* @date 24.07.19
|
|
* @brief
|
|
* @copyright Copyright (C) 2019 mudita.com
|
|
* @details
|
|
*/
|
|
|
|
#ifndef PUREPHONE_AUDIOCOMMON_HPP
|
|
#define PUREPHONE_AUDIOCOMMON_HPP
|
|
|
|
namespace audio
|
|
{
|
|
|
|
using Position = float;
|
|
using Volume = float;
|
|
using Gain = float;
|
|
|
|
enum class RetCode
|
|
{
|
|
Success = 0,
|
|
InvokedInIncorrectState,
|
|
UnsupportedProfile,
|
|
UnsupportedEvent,
|
|
InvalidFormat,
|
|
OperationCreateFailed,
|
|
FileDoesntExist,
|
|
FailedToAllocateMemory
|
|
|
|
};
|
|
|
|
enum class AudioEvents
|
|
{
|
|
EndOfFile,
|
|
FileSystemNoSpace
|
|
};
|
|
|
|
} // namespace audio
|
|
|
|
#endif // PUREPHONE_AUDIOCOMMON_HPP
|