| 1 |
/* SPDX-License-Identifier: BSD-3-Clause */ |
| 2 |
/* SPDX-FileCopyrightText: OpenMPT Project Developers and Contributors */ |
| 3 |
|
| 4 |
|
| 5 |
#pragma once |
| 6 |
|
| 7 |
#include "openmpt/all/BuildSettings.hpp" |
| 8 |
|
| 9 |
#include "mpt/base/macros.hpp" |
| 10 |
#include "openmpt/base/Types.hpp" |
| 11 |
#include "openmpt/soundbase/MixSample.hpp" |
| 12 |
|
| 13 |
|
| 14 |
OPENMPT_NAMESPACE_BEGIN |
| 15 |
|
| 16 |
|
| 17 |
struct Dither_None |
| 18 |
{ |
| 19 |
public: |
| 20 |
using prng_type = struct |
| 21 |
{ |
| 22 |
}; |
| 23 |
template <typename Trd> |
| 24 |
static prng_type prng_init(Trd &) |
| 25 |
{ |
| 26 |
return prng_type{}; |
| 27 |
} |
| 28 |
|
| 29 |
public: |
| 30 |
template <uint32 targetbits, typename Trng> |
| 31 |
MPT_FORCEINLINE MixSampleInt process(MixSampleInt sample, Trng &) |
| 32 |
{ |
| 33 |
return sample; |
| 34 |
} |
| 35 |
template <uint32 targetbits, typename Trng> |
| 36 |
MPT_FORCEINLINE MixSampleFloat process(MixSampleFloat sample, Trng &) |
| 37 |
{ |
| 38 |
return sample; |
| 39 |
} |
| 40 |
}; |
| 41 |
|
| 42 |
|
| 43 |
OPENMPT_NAMESPACE_END |