Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
96kbps fix
Browse files Browse the repository at this point in the history
fivebanger committed Dec 31, 2024
1 parent 7003e98 commit 0a987f0
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions playback/src/player.rs
Original file line number Diff line number Diff line change
@@ -922,6 +922,10 @@ impl PlayerTrackLoader {
AudioFileFormat::XHE_AAC_16 => 2.,
AudioFileFormat::XHE_AAC_24 => 3.,
AudioFileFormat::FLAC_FLAC_24BIT => 3.,
AudioFileFormat::UNKNOWN_FORMAT => {
error!("Unknown stream data rate");
return None;
}
};
let data_rate: f32 = kbps * 1024.;
Some(data_rate.ceil() as usize)
3 changes: 2 additions & 1 deletion protocol/proto/metadata.proto
Original file line number Diff line number Diff line change
@@ -311,10 +311,11 @@ message AudioFile {
XHE_AAC_16 = 19;
XHE_AAC_12 = 20;
FLAC_FLAC_24BIT = 22;
UNKNOWN_FORMAT = 255;
}

optional bytes file_id = 1;
optional Format format = 2;
optional Format format = 2 [default = UNKNOWN_FORMAT];
}

message Video {

0 comments on commit 0a987f0

Please sign in to comment.