raylib_impl 0.1.0
Vendor raylib 5.5 : IGraphic2Module / IGraphic3Module / IAudioModule
Loading...
Searching...
No Matches
RayAudioModule Class Reference

L'ouverture du peripherique audio de raylib, comptee par reference. More...

#include <RayAudioModule.hpp>

Inheritance diagram for RayAudioModule:
Collaboration diagram for RayAudioModule:

Public Member Functions

 RayAudioModule ()=default
 
 ~RayAudioModule ()
 
const char * type () const override
 
const char * name () const override
 
audio::IMusic * createMusic (std::string path) override
 
void deleteMusic (audio::IMusic *music) override
 
audio::ISoundBuffer * createSoundBuffer (std::string path) override
 
void deleteSoundBuffer (audio::ISoundBuffer *buffer) override
 
audio::ISound * createSound (audio::ISoundBuffer *buffer) override
 
void deleteSound (audio::ISound *sound) override
 

Detailed Description

L'ouverture du peripherique audio de raylib, comptee par reference.

Elle est independante de InitWindow, donc elle vit ici plutot que dans le module graphique.

Rien n'est ouvert dans le constructeur : celui-ci s'execute au dlopen, bien avant qu'on sache si ce vendor sera choisi. Ouvrir le peripherique a ce moment le confisquerait a un vendor concurrent que la borne serait en train de preferer - et le journal de raylib s'afficherait au demarrage pour une bibliotheque que personne n'a demandee.

Le compte evite aussi qu'un vingtieme son reouvre le peripherique, et fait qu'il ne se ferme que lorsque plus rien ne joue.

Constructor & Destructor Documentation

◆ RayAudioModule()

RayAudioModule::RayAudioModule ( )
default

◆ ~RayAudioModule()

RayAudioModule::~RayAudioModule ( )
inline

Member Function Documentation

◆ createMusic()

audio::IMusic * RayAudioModule::createMusic ( std::string  path)
inlineoverride

◆ createSound()

audio::ISound * RayAudioModule::createSound ( audio::ISoundBuffer *  buffer)
inlineoverride

◆ createSoundBuffer()

audio::ISoundBuffer * RayAudioModule::createSoundBuffer ( std::string  path)
inlineoverride

◆ deleteMusic()

void RayAudioModule::deleteMusic ( audio::IMusic *  music)
inlineoverride

◆ deleteSound()

void RayAudioModule::deleteSound ( audio::ISound *  sound)
inlineoverride

◆ deleteSoundBuffer()

void RayAudioModule::deleteSoundBuffer ( audio::ISoundBuffer *  buffer)
inlineoverride

◆ name()

const char * RayAudioModule::name ( ) const
inlineoverride

◆ type()

const char * RayAudioModule::type ( ) const
inlineoverride

The documentation for this class was generated from the following file: