19#include "aeongames/StringId.hpp"
21#include "PortAudioSoundSystem.h"
27 bool PortAudioStartUp()
29 if ( PaError error_code = Pa_Initialize() != paNoError )
31 std::cerr <<
"Error initializing PortAudio: " << Pa_GetErrorText ( error_code ) << std::endl;
37 return std::make_unique<AeonGames::PortAudioSoundSystem>();
41 void PortAudioShutdown()
44 if ( PaError error_code = Pa_Terminate() != paNoError )
46 std::cerr <<
"Error finalizing PortAudio: " << Pa_GetErrorText ( error_code ) << std::endl;
52 "PortAudio Sound System",
53 "Implements a Sound System using the PortAudio Library",
Defines the plugin module interface for dynamically loaded plugins.
DLL bool RegisterSoundSystemConstructor(const StringId &aIdentifier, const std::function< std::unique_ptr< SoundSystem >() > &aConstructor)
Registers a SoundSystem loader for a specific identifier.
DLL bool UnregisterSoundSystemConstructor(const StringId &aIdentifier)
Unregisters a SoundSystem loader for a specific identifier.
Interface that every loadable plugin module must expose.