RhythmGame 1.4.3
Loading...
Searching...
No Matches
Public Member Functions | List of all members
sounds::SoundBuffer Class Referenceabstract

A buffer that can be used to create sounds. Wraps an buffer. More...

#include <SoundBuffer.h>

Inheritance diagram for sounds::SoundBuffer:
Inheritance graph
[legend]

Public Member Functions

virtual ~SoundBuffer ()=default
 
virtual auto getFrames () const -> ma_uint64=0
 
virtual auto getSamples () const -> std::span< const float >=0
 

Detailed Description

A buffer that can be used to create sounds. Wraps an buffer.

This class is used to load, decode and store the sound data. It can be used to create multiple sounds that share the same buffer. Creating new instances of this class can be very expensive, so it is recommended to load every sound only once, at the start of a scene.

Constructor & Destructor Documentation

◆ ~SoundBuffer()

virtual sounds::SoundBuffer::~SoundBuffer ( )
virtualdefault

Member Function Documentation

◆ getFrames()

virtual auto sounds::SoundBuffer::getFrames ( ) const -> ma_uint64
pure virtual

◆ getSamples()

virtual auto sounds::SoundBuffer::getSamples ( ) const -> std::span< const float >
pure virtual

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