From faa62e0c60d51a9df88002a59825b427323259c0 Mon Sep 17 00:00:00 2001 From: Tom Kirchner Date: Mon, 6 Jan 2025 20:53:02 -0800 Subject: Add bitrate info --- src/codecs/native.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/codecs/native.cpp') diff --git a/src/codecs/native.cpp b/src/codecs/native.cpp index 124434e8..485694d1 100644 --- a/src/codecs/native.cpp +++ b/src/codecs/native.cpp @@ -30,6 +30,8 @@ auto NativeDecoder::OpenStream(std::shared_ptr input, uint32_t offset) .num_channels = 1, .sample_rate_hz = 48000, .total_samples = {}, + // sample rate * channels * bits per sample / bits per kb + .bitrate_kbps = 48000 * 1 * 16 / 1024, }; } -- cgit v1.2.3