Photon 0.0.2 Simple Open Source 2D Game API |
AudioCorePhoton’s core for audio manipulation/control. Defines the interface through which all audio related functions are performed. Summary
AudioCore
Initialize underlying APIs and setup Task internals. AudioCore(); throwOpenALError
Checks for OpenAL internal errors, throwing an APIError if the OpenAL error state is set and doing nothing if not. Optionally makes the thrown exception more descriptive by adding in a function string that describes then the OpenAL error was flagged. Parameters
ThrowsAPIError if an OpenAL error state has been set. |
Initialize underlying APIs and setup Task internals.
AudioCore( const std:: string & deviceName )
Shutdown underlying APIs.
~AudioCore()
Get name of active audio device.
std::string getAudioDeviceName() const
Checks for OpenAL internal errors, returning a descriptive string if the OpenAL error state is currently set.
static std::string checkOpenALError()
Checks for OpenAL internal errors, throwing an APIError if the OpenAL error state is set and doing nothing if not.
static void throwOpenALError( const std:: string & func )