Add sound::engine::frequency and sound::engine::channels

This commit is contained in:
Nikita Lisitsa 2020-09-21 12:10:02 +03:00
parent 8ff441c6ff
commit 313f8bbf80
2 changed files with 3 additions and 2 deletions

View file

@ -12,6 +12,9 @@ namespace psemek::audio
struct engine
{
static const int frequency = 44100;
static const int channels = 2;
engine();
~engine();

View file

@ -15,8 +15,6 @@ namespace psemek::audio
namespace
{
static const int frequency = 44100;
[[noreturn]] void mix_fail(std::string const & message)
{
throw std::runtime_error(message + Mix_GetError());