VOX
A little voxel engine
Loading...
Searching...
No Matches
SoundEngine.hpp File Reference
#include "AudioData.hpp"
#include "SoundList.hpp"
#include "logger.hpp"
#include <portaudio.h>
#include <memory>
#include <vector>
#include <mutex>
Include dependency graph for SoundEngine.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Sound::Instance
 
class  Sound::Engine
 

Namespaces

namespace  Sound
 

Macros

#define PA_THROW_CHECK(expr, msg)
 
#define PA_WARNING_CHECK(expr, msg)
 

Macro Definition Documentation

◆ PA_THROW_CHECK

#define PA_THROW_CHECK (   expr,
  msg 
)
Value:
{ \
PaError err = expr; \
if (err != paNoError) \
{ \
throw std::runtime_error(std::string("Portaudio: ") + msg + " (" + std::string(Pa_GetErrorText(err)) + ")"); \
} \
}

◆ PA_WARNING_CHECK

#define PA_WARNING_CHECK (   expr,
  msg 
)
Value:
{ \
PaError err = expr; \
if (err != paNoError) \
{ \
LOG_WARNING(std::string("Portaudio: ") + msg + " (" + std::string(Pa_GetErrorText(err)) + ")"); \
} \
}