P-E-R-R-Y
Utilitaires, contrats et vendors du moteur, en une seule doc
Loading...
Searching...
No Matches
SfmlSoundBuffer Class Reference

Sfml SoundBuffer class - owns the loaded samples. SfmlSound only references it (sf::Sound itself already takes a const sf::SoundBuffer& natively, this contract matches sfml's own model). More...

#include <SfmlSoundBuffer.hpp>

Inheritance diagram for SfmlSoundBuffer:
Collaboration diagram for SfmlSoundBuffer:

Public Member Functions

 SfmlSoundBuffer (std::string path)
 ~SfmlSoundBuffer ()=default
bool isReady () const override
 notice if the buffer is ready
float getLength () const override
 Get the Length of the buffered sound, in seconds.
const sf::SoundBuffer & handle () const
Public Member Functions inherited from audio::ISoundBuffer
virtual ~ISoundBuffer ()=default

Detailed Description

Sfml SoundBuffer class - owns the loaded samples. SfmlSound only references it (sf::Sound itself already takes a const sf::SoundBuffer& natively, this contract matches sfml's own model).

Constructor & Destructor Documentation

◆ SfmlSoundBuffer()

SfmlSoundBuffer::SfmlSoundBuffer ( std::string path)
inline

◆ ~SfmlSoundBuffer()

SfmlSoundBuffer::~SfmlSoundBuffer ( )
default

Member Function Documentation

◆ getLength()

float SfmlSoundBuffer::getLength ( ) const
inlineoverridevirtual

Get the Length of the buffered sound, in seconds.

Returns
float

Implements audio::ISoundBuffer.

◆ handle()

const sf::SoundBuffer & SfmlSoundBuffer::handle ( ) const
inline

◆ isReady()

bool SfmlSoundBuffer::isReady ( ) const
inlineoverridevirtual

notice if the buffer is ready

Returns
bool

Implements audio::ISoundBuffer.


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