I'm creating a Sink and an OutputStreamHandle in rodio like this, just like the example in the docs does it.
let (_stream, stream_handle) = rodio::OutputStream::try_default().unwrap();
let sink = rodio::Sink::try_new(&stream_handle).unwrap();
When I go to actually play anything I run this
let source = rodio::Decoder::new(std::fs::File::open(audio.path).unwrap()).unwrap();
println!("{:?}", self.stream_handle.play_raw(source.convert_samples()));
it prints Err(NoDevice) to the console, even though I have set my default device to my headphones in the windows settings. I even tried it on my Linux laptop and it still can't find a default output device.
Using a Sink also doesn't work.
let source = rodio::Decoder::new(std::fs::File::open(audio.path).unwrap()).unwrap();
self.sink.append(source);