lib.rs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #[macro_use]
  2. extern crate futures;
  3. #[macro_use]
  4. extern crate log;
  5. extern crate aes_ctr;
  6. extern crate bit_set;
  7. extern crate byteorder;
  8. extern crate bytes;
  9. extern crate num_bigint;
  10. extern crate num_traits;
  11. extern crate tempfile;
  12. extern crate librespot_core;
  13. mod decrypt;
  14. mod fetch;
  15. #[cfg(not(any(feature = "with-tremor", feature = "with-vorbis")))]
  16. mod lewton_decoder;
  17. #[cfg(any(feature = "with-tremor", feature = "with-vorbis"))]
  18. mod libvorbis_decoder;
  19. mod range_set;
  20. pub use decrypt::AudioDecrypt;
  21. pub use fetch::{AudioFile, AudioFileOpen, StreamLoaderController};
  22. pub use fetch::{
  23. READ_AHEAD_BEFORE_PLAYBACK_ROUNDTRIPS, READ_AHEAD_BEFORE_PLAYBACK_SECONDS,
  24. READ_AHEAD_DURING_PLAYBACK_ROUNDTRIPS, READ_AHEAD_DURING_PLAYBACK_SECONDS,
  25. };
  26. #[cfg(not(any(feature = "with-tremor", feature = "with-vorbis")))]
  27. pub use crate::lewton_decoder::{VorbisDecoder, VorbisError, VorbisPacket};
  28. #[cfg(any(feature = "with-tremor", feature = "with-vorbis"))]
  29. pub use libvorbis_decoder::{VorbisDecoder, VorbisError, VorbisPacket};