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

Raylib SoundBuffer class - owns the loaded samples (raylib's own LoadSound() result). RaySound instances are LoadSoundAlias()'d from this and don't own the samples themselves. More...

#include <RaySoundBuffer.hpp>

Inheritance diagram for RaySoundBuffer:
Collaboration diagram for RaySoundBuffer:

Public Member Functions

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

Detailed Description

Raylib SoundBuffer class - owns the loaded samples (raylib's own LoadSound() result). RaySound instances are LoadSoundAlias()'d from this and don't own the samples themselves.

Constructor & Destructor Documentation

◆ RaySoundBuffer()

RaySoundBuffer::RaySoundBuffer ( std::string path)
inline

◆ ~RaySoundBuffer()

RaySoundBuffer::~RaySoundBuffer ( )
inline

Member Function Documentation

◆ getLength()

float RaySoundBuffer::getLength ( ) const
inlineoverridevirtual

Get the Length of the buffered sound, in seconds.

Returns
float

Implements audio::ISoundBuffer.

◆ handle()

raylib::Sound RaySoundBuffer::handle ( ) const
inline

◆ isReady()

bool RaySoundBuffer::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: