Skip to content

Commit

Permalink
VERY - VERY... basic song control in CLI Mode
Browse files Browse the repository at this point in the history
And refactor!
  • Loading branch information
LaineZ committed Apr 28, 2020
1 parent 05e0a91 commit ed16e20
Show file tree
Hide file tree
Showing 6 changed files with 456 additions and 351 deletions.
7 changes: 0 additions & 7 deletions src/bc_core/playback_advanced.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ use bytes::Bytes;
use rodio::buffer::SamplesBuffer;
use rodio::{Decoder, Sink, Source};

use crate::bc_core::http_tools;

pub async fn get_track_from_url(url: &str) -> Result<Bytes> {
let bytes = http_tools::http_request_bytes(url).await?;
Ok(bytes)
}

pub fn create_sink(bytes: Bytes, device: rodio::Device, seek_sec: u32) -> Result<Sink> {
let cursor = Cursor::new(bytes);

Expand Down

0 comments on commit ed16e20

Please sign in to comment.