PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
pixelbullet::MiniaudioBackend Class Reference

Implementation of the AudioBackend interface using the miniaudio engine. More...

#include <miniaudio_backend.h>

Inheritance diagram for pixelbullet::MiniaudioBackend:
pixelbullet::AudioBackend

Public Member Functions

virtual bool Init () override
 Initializes the backend. Returns true on success.
 
virtual void Shutdown () override
 Shuts down the backend.
 
virtual void PlaySound (const std::string &file_path, bool loop=false) override
 
- Public Member Functions inherited from pixelbullet::AudioBackend

Detailed Description

Implementation of the AudioBackend interface using the miniaudio engine.

Member Function Documentation

◆ Init()

bool pixelbullet::MiniaudioBackend::Init ( )
overridevirtual

Initializes the backend. Returns true on success.

Implements pixelbullet::AudioBackend.

◆ PlaySound()

void pixelbullet::MiniaudioBackend::PlaySound ( const std::string & filePath,
bool loop = false )
overridevirtual

Plays the sound file at filePath. If loop is true the sound will restart automatically when it ends.

Implements pixelbullet::AudioBackend.

◆ Shutdown()

void pixelbullet::MiniaudioBackend::Shutdown ( )
overridevirtual

Shuts down the backend.

Implements pixelbullet::AudioBackend.


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