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 <MiniaudioBackend.hpp>

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 &filePath, 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: