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;
13mod local_file;
14pub mod mixer;
15pub mod player;
16mod symphonia_util;
17
18pub const SAMPLE_RATE: u32 = 44100;
19pub const NUM_CHANNELS: u8 = 2;
20pub const SAMPLES_PER_SECOND: u32 = SAMPLE_RATE * NUM_CHANNELS as u32;
21pub const PAGES_PER_MS: f64 = SAMPLE_RATE as f64 / 1000.0;
22pub const MS_PER_PAGE: f64 = 1000.0 / SAMPLE_RATE as f64;