Commit 1e6b4d4d authored by Adrien Béraud's avatar Adrien Béraud Committed by Guillaume Roguez

audioformat: add NONE

Refs #66200

Change-Id: I0212bed48be35252f04ef87f7b6bf3bccb3f6edf
parent b0e18e2a
......@@ -78,10 +78,10 @@ struct AudioFormat {
return (getBytesPerFrame() * sample_rate * delay_ms) / 1000;
}
static const unsigned DEFAULT_SAMPLE_RATE = 48000;
static const constexpr unsigned DEFAULT_SAMPLE_RATE = 48000;
static const AudioFormat NONE() { return AudioFormat{0, 0}; }
static const AudioFormat MONO() { return AudioFormat{DEFAULT_SAMPLE_RATE, 1}; }
static const AudioFormat STEREO() { return AudioFormat{DEFAULT_SAMPLE_RATE, 2}; }
};
std::ostream& operator <<(std::ostream& stream, const AudioFormat& f);
......
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