pcm/Dsd2Pcm: use std::fill_n()
This commit is contained in:
parent
bc5b647053
commit
a65f7b1006
@ -151,8 +151,9 @@ static constexpr auto ctables = GenerateArray<CTABLES>(GenerateCtable);
|
|||||||
void
|
void
|
||||||
Dsd2Pcm::Reset() noexcept
|
Dsd2Pcm::Reset() noexcept
|
||||||
{
|
{
|
||||||
for (int i = 0; i < FIFOSIZE; ++i)
|
/* my favorite silence pattern */
|
||||||
fifo[i] = 0x69; /* my favorite silence pattern */
|
std::fill_n(fifo, std::size(fifo), 0x69);
|
||||||
|
|
||||||
fifopos = 0;
|
fifopos = 0;
|
||||||
/* 0x69 = 01101001
|
/* 0x69 = 01101001
|
||||||
* This pattern "on repeat" makes a low energy 352.8 kHz tone
|
* This pattern "on repeat" makes a low energy 352.8 kHz tone
|
||||||
|
Loading…
Reference in New Issue
Block a user