RustAudio/rodio

No working if only sink is kept after constructing

chanmaoganda opened this issue · 2 comments

pub fn new() -> Self {
  let (_stream, stream_handle) = OutputStream::try_default().unwrap();
  let sink = Sink::try_new(&stream_handle).unwrap();
  Self {sink}
}

If i try to use the struct only keeping sink, it is unable to play any music

Perhaps it is better to mention that?

it will be in the next release: #591
and I hope to remove the need for keeping the stream in the future