rodio
rodio copied to clipboard
Entire system sound mutes while debugging
Hello everyone,
my entire system sounds mutes every time I debug a program after a OutputStream
has been created.
Example program:
use std::time::Duration;
use rodio::{OutputStream, Sink};
use rodio::source::{SineWave, Source};
fn main() {
let (_stream, stream_handle) = OutputStream::try_default().unwrap();
let sink = Sink::try_new(&stream_handle).unwrap();
let source = SineWave::new(440.0).take_duration(Duration::from_secs_f32(60.0)).amplify(0.15);
sink.append(source);
sink.sleep_until_end();
}
I have no sound at all, when I debug after the second line of code in main let sink = ...
.
The sound reappears after I halt the program or continue running it.
My expectation is that at least other programs (like Firefox) on my system are able to output Sound.
I'm using Rodeo 0.17.3 in RustRover 2023.3 on Ubuntu 23.10
Please tell me if anybody needs more Information.
Notes: The "Volume Levels" under Settings>Sound>"Volume Levels" still show that Firefox is "Outputing" Sound.