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

#include <audio.h>

Classes

struct  State
 

Public Member Functions

 Audio (Filesystem &filesystem)
 
 Audio (const Audio &)=delete
 
Audiooperator= (const Audio &)=delete
 
void PlaySound (const VirtualPath &filePath, bool loop=false)
 Play a sound given its file path. If loop is true the sound will restart endlessly.
 

Detailed Description

A high-level audio system. It initializes an audio backend and runs a dedicated thread to process audio commands (e.g. playing sounds, optionally with looping).

Member Function Documentation

◆ PlaySound()

void pixelbullet::Audio::PlaySound ( const VirtualPath & filePath,
bool loop = false )

Play a sound given its file path. If loop is true the sound will restart endlessly.


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