mirror of
https://github.com/AndroidAudioMods/ViPERFX_RE.git
synced 2025-06-12 03:59:08 +08:00
145 lines
4.7 KiB
C++
145 lines
4.7 KiB
C++
/*
|
|
* This file is auto-generated. DO NOT MODIFY.
|
|
* Using: /home/iscle/Android/Sdk/build-tools/35.0.1/aidl --lang=ndk -o generated -h generated/include --structured --stability=vintf --min_sdk_version=31 -I hardware_interfaces/common/aidl/aidl_api/android.hardware.common/current/ -I hardware_interfaces/common/fmq/aidl/aidl_api/android.hardware.common.fmq/current/ -I hardware_interfaces/audio/aidl/aidl_api/android.hardware.audio.common/current/ -I hardware_interfaces/audio/aidl/aidl_api/android.hardware.audio.effect/current/ -I system_hardware_interfaces/media/aidl_api/android.media.audio.common.types/current/ -I system_hardware_interfaces/media/aidl_api/android.media.audio.eraser.types/current/ system_hardware_interfaces/media/aidl_api/android.media.audio.common.types/current/android/media/audio/common/Spatialization.aidl
|
|
*/
|
|
#pragma once
|
|
|
|
#include <array>
|
|
#include <cstdint>
|
|
#include <memory>
|
|
#include <optional>
|
|
#include <string>
|
|
#include <vector>
|
|
#include <android/binder_enums.h>
|
|
#include <android/binder_interface_utils.h>
|
|
#include <android/binder_parcelable_utils.h>
|
|
#include <android/binder_to_string.h>
|
|
#ifdef BINDER_STABILITY_SUPPORT
|
|
#include <android/binder_stability.h>
|
|
#endif // BINDER_STABILITY_SUPPORT
|
|
|
|
namespace aidl {
|
|
namespace android {
|
|
namespace media {
|
|
namespace audio {
|
|
namespace common {
|
|
class Spatialization {
|
|
public:
|
|
typedef std::false_type fixed_size;
|
|
static const char* descriptor;
|
|
|
|
enum class Level : int8_t {
|
|
NONE = 0,
|
|
MULTICHANNEL = 1,
|
|
BED_PLUS_OBJECTS = 2,
|
|
};
|
|
|
|
enum class Mode : int8_t {
|
|
BINAURAL = 0,
|
|
TRANSAURAL = 1,
|
|
};
|
|
|
|
|
|
binder_status_t readFromParcel(const AParcel* parcel);
|
|
binder_status_t writeToParcel(AParcel* parcel) const;
|
|
|
|
inline bool operator==(const Spatialization&) const {
|
|
return std::tie() == std::tie();
|
|
}
|
|
inline bool operator<(const Spatialization&) const {
|
|
return std::tie() < std::tie();
|
|
}
|
|
inline bool operator!=(const Spatialization& _rhs) const {
|
|
return !(*this == _rhs);
|
|
}
|
|
inline bool operator>(const Spatialization& _rhs) const {
|
|
return _rhs < *this;
|
|
}
|
|
inline bool operator>=(const Spatialization& _rhs) const {
|
|
return !(*this < _rhs);
|
|
}
|
|
inline bool operator<=(const Spatialization& _rhs) const {
|
|
return !(_rhs < *this);
|
|
}
|
|
|
|
static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF;
|
|
inline std::string toString() const {
|
|
std::ostringstream _aidl_os;
|
|
_aidl_os << "Spatialization{";
|
|
_aidl_os << "}";
|
|
return _aidl_os.str();
|
|
}
|
|
};
|
|
} // namespace common
|
|
} // namespace audio
|
|
} // namespace media
|
|
} // namespace android
|
|
} // namespace aidl
|
|
namespace aidl {
|
|
namespace android {
|
|
namespace media {
|
|
namespace audio {
|
|
namespace common {
|
|
[[nodiscard]] static inline std::string toString(Spatialization::Level val) {
|
|
switch(val) {
|
|
case Spatialization::Level::NONE:
|
|
return "NONE";
|
|
case Spatialization::Level::MULTICHANNEL:
|
|
return "MULTICHANNEL";
|
|
case Spatialization::Level::BED_PLUS_OBJECTS:
|
|
return "BED_PLUS_OBJECTS";
|
|
default:
|
|
return std::to_string(static_cast<int8_t>(val));
|
|
}
|
|
}
|
|
} // namespace common
|
|
} // namespace audio
|
|
} // namespace media
|
|
} // namespace android
|
|
} // namespace aidl
|
|
namespace ndk {
|
|
namespace internal {
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Wc++17-extensions"
|
|
template <>
|
|
constexpr inline std::array<aidl::android::media::audio::common::Spatialization::Level, 3> enum_values<aidl::android::media::audio::common::Spatialization::Level> = {
|
|
aidl::android::media::audio::common::Spatialization::Level::NONE,
|
|
aidl::android::media::audio::common::Spatialization::Level::MULTICHANNEL,
|
|
aidl::android::media::audio::common::Spatialization::Level::BED_PLUS_OBJECTS,
|
|
};
|
|
#pragma clang diagnostic pop
|
|
} // namespace internal
|
|
} // namespace ndk
|
|
namespace aidl {
|
|
namespace android {
|
|
namespace media {
|
|
namespace audio {
|
|
namespace common {
|
|
[[nodiscard]] static inline std::string toString(Spatialization::Mode val) {
|
|
switch(val) {
|
|
case Spatialization::Mode::BINAURAL:
|
|
return "BINAURAL";
|
|
case Spatialization::Mode::TRANSAURAL:
|
|
return "TRANSAURAL";
|
|
default:
|
|
return std::to_string(static_cast<int8_t>(val));
|
|
}
|
|
}
|
|
} // namespace common
|
|
} // namespace audio
|
|
} // namespace media
|
|
} // namespace android
|
|
} // namespace aidl
|
|
namespace ndk {
|
|
namespace internal {
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Wc++17-extensions"
|
|
template <>
|
|
constexpr inline std::array<aidl::android::media::audio::common::Spatialization::Mode, 2> enum_values<aidl::android::media::audio::common::Spatialization::Mode> = {
|
|
aidl::android::media::audio::common::Spatialization::Mode::BINAURAL,
|
|
aidl::android::media::audio::common::Spatialization::Mode::TRANSAURAL,
|
|
};
|
|
#pragma clang diagnostic pop
|
|
} // namespace internal
|
|
} // namespace ndk
|