waveinput/output: allowed external access to data length value

This commit is contained in:
itsmattkc
2020-02-19 11:40:54 +11:00
parent f63106b2d6
commit 5e75e9b3b0
4 changed files with 14 additions and 0 deletions
+5
View File
@@ -181,6 +181,11 @@ void WaveInput::close()
}
}
const quint32 &WaveInput::data_length() const
{
return data_size_;
}
int WaveInput::sample_count() const
{
return params_.bytes_to_samples(static_cast<int>(data_size_));