13#ifndef RAYAUDIO_MODULE_HPP
14#define RAYAUDIO_MODULE_HPP
47 const char *
name()
const override {
return "raylib"; }
69 if (!buffer || !start())
81 raylib::InitAudioDevice();
85 if (!raylib::IsAudioDeviceReady())
94 raylib::CloseAudioDevice();
100 void drop(T *
object) {
110 unsigned _opened = 0;
111 bool _started =
false;
A vendor's audio factory : music streamed from disk, sample buffers, and the sounds that reference th...
Definition IAudioModule.hpp:28
static constexpr const char * contract
Ce que type() doit rendre.
Definition IAudioModule.hpp:35
void deleteMusic(audio::IMusic *music) override
Definition RayAudioModule.hpp:56
audio::ISound * createSound(audio::ISoundBuffer *buffer) override
Definition RayAudioModule.hpp:68
~RayAudioModule()
Definition RayAudioModule.hpp:44
audio::IMusic * createMusic(std::string path) override
Definition RayAudioModule.hpp:50
const char * name() const override
Le fournisseur : "raylib", "sfml", "console"...
Definition RayAudioModule.hpp:47
const char * type() const override
Le contrat qu'il remplit : "graphic2", "audio", "game"...
Definition RayAudioModule.hpp:46
void deleteSound(audio::ISound *sound) override
Definition RayAudioModule.hpp:74
void deleteSoundBuffer(audio::ISoundBuffer *buffer) override
Definition RayAudioModule.hpp:65
audio::ISoundBuffer * createSoundBuffer(std::string path) override
Definition RayAudioModule.hpp:59
raylib music stream.
Definition RayMusic.hpp:28
Raylib SoundBuffer class - owns the loaded samples (raylib's own LoadSound() result)....
Definition RaySoundBuffer.hpp:25
Raylib Sound class - a LoadSoundAlias() of a RaySoundBuffer, does not own the buffer....
Definition RaySound.hpp:31
Loaded audio samples, independent of any ISound that plays them - deleting every ISound built from a ...
Definition ISoundBuffer.hpp:24