diff options
| author | Tom Kirchner <git@halffull.org> | 2025-01-06 20:53:02 -0800 |
|---|---|---|
| committer | Tom Kirchner <git@halffull.org> | 2025-01-08 20:46:34 -0800 |
| commit | faa62e0c60d51a9df88002a59825b427323259c0 (patch) | |
| tree | cd0631b047e8b09fbd61ea85ad1a67aa55929a25 /src/codecs/native.cpp | |
| parent | 829d033a448107f1bc610cf735ce9f7222de564b (diff) | |
| download | tangara-fw-faa62e0c60d51a9df88002a59825b427323259c0.tar.gz | |
Add bitrate info
Diffstat (limited to 'src/codecs/native.cpp')
| -rw-r--r-- | src/codecs/native.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<IStream> 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, }; } |
