Replace example by a smaller one
This commit is contained in:
parent
d793b0ad22
commit
2d091726d7
4 changed files with 4 additions and 1 deletions
3
examples/README.md
Normal file
3
examples/README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
## License
|
||||||
|
|
||||||
|
The `music.ogg` file in this directory is under cc-by-sa.
|
||||||
Binary file not shown.
BIN
examples/music.ogg
Normal file
BIN
examples/music.ogg
Normal file
Binary file not shown.
|
|
@ -6,7 +6,7 @@ use std::io::BufReader;
|
||||||
fn main() {
|
fn main() {
|
||||||
let mut channel = cpal::Channel::new();
|
let mut channel = cpal::Channel::new();
|
||||||
|
|
||||||
let mut decoder = vorbis::Decoder::new(BufReader::new(include_bin!("mozart_symfony_40.ogg")))
|
let mut decoder = vorbis::Decoder::new(BufReader::new(include_bin!("music.ogg")))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
'main: for packet in decoder.packets() {
|
'main: for packet in decoder.packets() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue