PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
PixelBullet::AudioBackend Class Referenceabstract

The abstract interface for an audio backend. More...

#include <AudioBackend.hpp>

Inheritance diagram for PixelBullet::AudioBackend:
PixelBullet::MiniaudioBackend

Public Member Functions

virtual bool Init ()=0
 Initializes the backend. Returns true on success.
 
virtual void Shutdown ()=0
 Shuts down the backend.
 
virtual void PlaySound (const std::string &filePath, bool loop=false)=0
 

Detailed Description

The abstract interface for an audio backend.

Member Function Documentation

◆ Init()

virtual bool PixelBullet::AudioBackend::Init ( )
pure virtual

Initializes the backend. Returns true on success.

Implemented in PixelBullet::MiniaudioBackend.

◆ PlaySound()

virtual void PixelBullet::AudioBackend::PlaySound ( const std::string & filePath,
bool loop = false )
pure virtual

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

Implemented in PixelBullet::MiniaudioBackend.

◆ Shutdown()

virtual void PixelBullet::AudioBackend::Shutdown ( )
pure virtual

Shuts down the backend.

Implemented in PixelBullet::MiniaudioBackend.


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