-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add optional Symphonia backend (#376)
* add symphonia decoder * add symphonia-flac * better compile errors * remove unsafe send * update ci * sudo * disable duration check because symphonia does not support it * add error handling * cleanup * update symphonia and fix breaking changes * update to published symphonia version * update docs * reduce namespace duplication * remove extra reference to current frame * pr comments * exclude decoders from module if unused * fix flac test * recommend disabling default features with symphonia
- Loading branch information
Showing
11 changed files
with
475 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
use std::io::BufReader; | ||
|
||
fn main() { | ||
let (_stream, handle) = rodio::OutputStream::try_default().unwrap(); | ||
let sink = rodio::Sink::try_new(&handle).unwrap(); | ||
|
||
let file = std::fs::File::open("examples/music.m4a").unwrap(); | ||
sink.append(rodio::Decoder::new(BufReader::new(file)).unwrap()); | ||
|
||
sink.sleep_until_end(); | ||
} |
Oops, something went wrong.