sdl2_impl 0.1.0
Vendor SDL2 2.32 : IGraphic2Module / IAudioModule
Loading...
Searching...
No Matches
SdlSound Class Reference

Une lecture d'un tampon, sur son propre canal. More...

#include <SdlSound.hpp>

Inheritance diagram for SdlSound:
Collaboration diagram for SdlSound:

Public Member Functions

 SdlSound (SdlSoundBuffer &buffer)
 
 ~SdlSound () override
 
bool isReady () const override
 
void play () override
 
void pause () override
 
void stop () override
 
void setVolume (float volume) override
 dans [0, 1] comme le contrat, MIX_MAX_VOLUME est un detail de SDL
 
float getVolume () const override
 
void setPosition (Vector3f position) override
 
Vector3f getPosition () const override
 
void setVelocity (Vector3f velocity) override
 
Vector3f getVelocity () const override
 

Detailed Description

Une lecture d'un tampon, sur son propre canal.

Le canal est reserve au premier play() et garde jusqu'a la destruction : sans ca, pause() et stop() ne sauraient pas quoi arreter.

Constructor & Destructor Documentation

◆ SdlSound()

SdlSound::SdlSound ( SdlSoundBuffer buffer)
inline

◆ ~SdlSound()

SdlSound::~SdlSound ( )
inlineoverride

Member Function Documentation

◆ getPosition()

Vector3f SdlSound::getPosition ( ) const
inlineoverride

◆ getVelocity()

Vector3f SdlSound::getVelocity ( ) const
inlineoverride

◆ getVolume()

float SdlSound::getVolume ( ) const
inlineoverride

◆ isReady()

bool SdlSound::isReady ( ) const
inlineoverride

◆ pause()

void SdlSound::pause ( )
inlineoverride

◆ play()

void SdlSound::play ( )
inlineoverride

◆ setPosition()

void SdlSound::setPosition ( Vector3f  position)
inlineoverride

◆ setVelocity()

void SdlSound::setVelocity ( Vector3f  velocity)
inlineoverride

◆ setVolume()

void SdlSound::setVolume ( float  volume)
inlineoverride

dans [0, 1] comme le contrat, MIX_MAX_VOLUME est un detail de SDL

◆ stop()

void SdlSound::stop ( )
inlineoverride

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