Commit 09456e28 authored by Stefan Westerfeld's avatar Stefan Westerfeld

Properly store sample rate for stdout wav stream.

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent 23fe4ff8
......@@ -102,8 +102,10 @@ StdoutWavOutputStream::open (int n_channels, int sample_rate, int bit_depth, siz
fwrite (&header_bytes[0], 1, header_bytes.size(), stdout);
m_bit_depth = bit_depth;
m_state = State::OPEN;
m_bit_depth = bit_depth;
m_sample_rate = sample_rate;
m_n_channels = n_channels;
m_state = State::OPEN;
return Error::Code::NONE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment