mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Add constant for readability
This commit is contained in:
parent
fc6c414e71
commit
127f8b7bab
1 changed files with 2 additions and 1 deletions
|
@ -54,7 +54,8 @@ struct NormalisationData {
|
||||||
|
|
||||||
impl NormalisationData {
|
impl NormalisationData {
|
||||||
fn new<T: Read + Seek>(file: &mut AudioDecrypt<T>) -> NormalisationData {
|
fn new<T: Read + Seek>(file: &mut AudioDecrypt<T>) -> NormalisationData {
|
||||||
file.seek(SeekFrom::Start(144)).unwrap();
|
static SPOTIFY_HEADER_START_OFFSET: u64 = 144;
|
||||||
|
file.seek(SeekFrom::Start(SPOTIFY_HEADER_START_OFFSET)).unwrap();
|
||||||
|
|
||||||
let track_gain_db: f32 = file.read_f32::<LittleEndian>().unwrap();
|
let track_gain_db: f32 = file.read_f32::<LittleEndian>().unwrap();
|
||||||
let track_peak: f32 = file.read_f32::<LittleEndian>().unwrap();
|
let track_peak: f32 = file.read_f32::<LittleEndian>().unwrap();
|
||||||
|
|
Loading…
Reference in a new issue