1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-06 03:50:06 +02:00

add audio seeking support

This commit is contained in:
Paul Lietar 2015-06-23 18:34:48 +01:00
parent 7ffe996652
commit 4835d25370
7 changed files with 203 additions and 120 deletions

View file

@ -3,10 +3,12 @@ use rand::{Rng,Rand};
mod int128;
mod spotify_id;
mod arcvec;
mod subfile;
pub use util::int128::u128;
pub use util::spotify_id::{SpotifyId, FileId};
pub use util::arcvec::ArcVec;
pub use util::subfile::Subfile;
#[macro_export]
macro_rules! eprintln(
@ -37,15 +39,6 @@ pub fn rand_vec<G: Rng, R: Rand>(rng: &mut G, size: usize) -> Vec<R> {
return vec
}
pub fn alloc_buffer(size: usize) -> Vec<u8> {
let mut vec = Vec::with_capacity(size);
unsafe {
vec.set_len(size);
}
vec
}
pub mod version {
include!(concat!(env!("OUT_DIR"), "/version.rs"));