actinium226_librespot_playback/
lib.rs

1#[macro_use]
2extern crate log;
3
4use librespot_audio as audio;
5use librespot_core as core;
6use librespot_metadata as metadata;
7
8pub mod audio_backend;
9pub mod config;
10pub mod convert;
11pub mod decoder;
12pub mod dither;
13pub mod mixer;
14pub mod player;
15
16pub const SAMPLE_RATE: u32 = 44100;
17pub const NUM_CHANNELS: u8 = 2;
18pub const SAMPLES_PER_SECOND: u32 = SAMPLE_RATE as u32 * NUM_CHANNELS as u32;
19pub const PAGES_PER_MS: f64 = SAMPLE_RATE as f64 / 1000.0;
20pub const MS_PER_PAGE: f64 = 1000.0 / SAMPLE_RATE as f64;