pcm/Volume: drop support for GCC older than 8
This commit is contained in:
parent
0122dc8452
commit
423f2df5e0
@ -32,22 +32,13 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#if GCC_OLDER_THAN(8,0)
|
|
||||||
/* GCC 6.3 emits this bogus warning in PcmVolumeConvert() because it
|
|
||||||
checks an unreachable branch */
|
|
||||||
#pragma GCC diagnostic ignored "-Wshift-count-overflow"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Apply software volume, converting to a different sample type.
|
* Apply software volume, converting to a different sample type.
|
||||||
*/
|
*/
|
||||||
template<SampleFormat SF, SampleFormat DF,
|
template<SampleFormat SF, SampleFormat DF,
|
||||||
class STraits=SampleTraits<SF>,
|
class STraits=SampleTraits<SF>,
|
||||||
class DTraits=SampleTraits<DF>>
|
class DTraits=SampleTraits<DF>>
|
||||||
#if !GCC_OLDER_THAN(8,0)
|
static constexpr typename DTraits::value_type
|
||||||
constexpr
|
|
||||||
#endif
|
|
||||||
static typename DTraits::value_type
|
|
||||||
PcmVolumeConvert(typename STraits::value_type _sample, int volume) noexcept
|
PcmVolumeConvert(typename STraits::value_type _sample, int volume) noexcept
|
||||||
{
|
{
|
||||||
typename STraits::long_type sample(_sample);
|
typename STraits::long_type sample(_sample);
|
||||||
|
Loading…
Reference in New Issue
Block a user