Rename stream parameter "read_ms" to "chunk_ms"

This commit is contained in:
badaix 2019-12-07 14:58:19 +01:00
parent b5551d9451
commit aa3ce3d5ab
13 changed files with 79 additions and 63 deletions

View file

@ -45,6 +45,12 @@ enum class ReaderState
};
static constexpr auto kUriCodec = "codec";
static constexpr auto kUriName = "name";
static constexpr auto kUriSampleFormat = "sampleformat";
static constexpr auto kUriChunkMs = "chunk_ms";
/// Callback interface for users of PcmStream
/**
* Users of PcmStream should implement this to get the data
@ -105,7 +111,7 @@ protected:
PcmListener* pcmListener_;
StreamUri uri_;
SampleFormat sampleFormat_;
size_t pcmReadMs_;
size_t chunk_ms_;
std::unique_ptr<encoder::Encoder> encoder_;
std::string name_;
ReaderState state_;