Wow, multithreaded audio??
This commit is contained in:
7
main.cpp
7
main.cpp
@@ -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);
|
||||
|
Reference in New Issue
Block a user