/// ReMixer /// A Public Domain C++ Audio Playback Library /// By william @ RedactedSoftware. Thanks to Dawsh & Maxine. /// (c) 2024 Redacted Software /// This work is explicitly dedicated to the public domain, for the hopeful betterment of the software industry. /// @file StreamManager.h /// @desc This class manages internal creation and storage of active Streams. /// @edit 2024-08-06 #include #include #include #include #include #include #include #include #include #include [[noreturn]] int main() { using namespace ReMixer; using namespace std::chrono_literals; PulseAudioSubsystem test = PulseAudioSubsystem("PulseAudio Test"); PulseStream test_stream = test.CreateStream("Test Stream"); PulseStream test_stream2 = test.CreateStream("Another Test Stream"); Sound test_sound = Sound::FromPCMFile("output.raw"); Sound ogg_test_sound = Sound::FromOGGVorbisFile("song.ogg"); test.Play(test_stream, test_sound); //test.Play(test_stream2, ogg_test_sound); while(true) { //std::this_thread::sleep_for(25ms); } return 0; } //Windows :( #ifdef _WIN32 extern "C" { int wmain(int argc, wchar_t* argv[]) { return main(); } } #endif