mirror of
https://github.com/oSumAtrIX/free-librespot.git
synced 2025-12-20 02:14:22 +00:00
* Remove deprecated use of std::u16::MAX * Use `FromStr` for fallible `&str` conversions * DRY up strings into constants * Change `as_ref().map()` into `as_deref()` * Use `Duration` for time constants and functions * Optimize `Vec` with response times * Move comments for `rustdoc` to parse
18 lines
386 B
Rust
18 lines
386 B
Rust
#[macro_use]
|
|
extern crate log;
|
|
|
|
use librespot_audio as audio;
|
|
use librespot_core as core;
|
|
use librespot_metadata as metadata;
|
|
|
|
pub mod audio_backend;
|
|
pub mod config;
|
|
mod convert;
|
|
mod decoder;
|
|
pub mod dither;
|
|
pub mod mixer;
|
|
pub mod player;
|
|
|
|
pub const SAMPLE_RATE: u32 = 44100;
|
|
pub const NUM_CHANNELS: u8 = 2;
|
|
pub const SAMPLES_PER_SECOND: u32 = SAMPLE_RATE as u32 * NUM_CHANNELS as u32;
|