Wow, multithreaded audio??

This commit is contained in:
2025-07-14 14:33:20 -05:00
parent 085657c524
commit e96c709856

View File

@@ -35,13 +35,9 @@
<< "default source" << info->default_source_name << std::endl;
};
PulseStream test_stream = server.CreateStream("Test Stream");
PulseStream second_stream = server.CreateStream("Second Stream");
//PulseStream test_stream2 = test.CreateStream("Another Test Stream");
//Sound test_sound = Sound::FromPCMFile("output.raw");
Sound test_sound = Sound::FromOGGVorbisFile("../test-sounds/wind.ogg");
Sound wav_sound = Sound::FromWAVFile("../test-sounds/robodeath.wav");
@@ -56,7 +52,8 @@
server.Play(second_stream, test_sound);
}};
th.join();
th.detach();
server.Play(test_stream, wav_sound);
server.Play(test_stream, sine_sound);