blob: ef347e7ec463d966a4c516580b87c30f0eb2d4ad (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/* SPDX-License-Identifier: BSL-1.0 OR BSD-3-Clause */
#ifndef MPT_AUDIO_SAMPLE_HPP
#define MPT_AUDIO_SAMPLE_HPP
#include "mpt/base/floatingpoint.hpp"
#include "mpt/base/integer.hpp"
#include "mpt/base/namespace.hpp"
#include <type_traits>
#include <cstddef>
namespace mpt {
inline namespace MPT_INLINE_NS {
using audio_sample_int = int16;
using audio_sample_float = nativefloat;
using audio_sample = std::conditional<mpt::float_traits<audio_sample_float>::is_hard, audio_sample_float, audio_sample_int>::type;
} // namespace MPT_INLINE_NS
} // namespace mpt
#endif // MPT_BINARY_HEX_HPP
|