mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-04 13:17:08 -04:00
41 lines
715 B
C++
41 lines
715 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
|
|
};
|
|
|
|
}
|
|
|
|
#endif //PUREPHONE_AUDIOCOMMON_HPP
|