mirror of
https://github.com/allankoechke/raylib-cpp.git
synced 2026-11-30 17:19:27 +00:00
35 lines
444 B
C++
35 lines
444 B
C++
#ifndef RAYLIB_CPP_AUDIODEVICE_HPP_
|
|
#define RAYLIB_CPP_AUDIODEVICE_HPP_
|
|
|
|
#include <string>
|
|
#include "raylib.h"
|
|
|
|
namespace raylib {
|
|
class AudioDevice {
|
|
public:
|
|
AudioDevice(bool lateInit = false) {
|
|
if (!lateInit) {
|
|
Init();
|
|
}
|
|
};
|
|
|
|
~AudioDevice() {
|
|
Close();
|
|
};
|
|
|
|
void Init() {
|
|
InitAudioDevice();
|
|
}
|
|
|
|
void Close() {
|
|
CloseAudioDevice();
|
|
}
|
|
|
|
static bool IsReady() {
|
|
return IsAudioDeviceReady();
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif
|