summaryrefslogtreecommitdiff
path: root/src/codecs/native.cpp
diff options
context:
space:
mode:
authorTom Kirchner <git@halffull.org>2025-01-06 20:53:02 -0800
committerTom Kirchner <git@halffull.org>2025-01-08 20:46:34 -0800
commitfaa62e0c60d51a9df88002a59825b427323259c0 (patch)
treecd0631b047e8b09fbd61ea85ad1a67aa55929a25 /src/codecs/native.cpp
parent829d033a448107f1bc610cf735ce9f7222de564b (diff)
downloadtangara-fw-faa62e0c60d51a9df88002a59825b427323259c0.tar.gz
Add bitrate info
Diffstat (limited to 'src/codecs/native.cpp')
-rw-r--r--src/codecs/native.cpp2
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,
};
}