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

#include <Audio.hpp>

Public Member Functions

 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: