PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
AudioBackend.hpp
1#pragma once
2
3#include <string>
4
5namespace PixelBullet
6{
9 {
10 public:
11 virtual ~AudioBackend()
12 {
13 }
15 virtual bool Init() = 0;
17 virtual void Shutdown() = 0;
20 virtual void PlaySound(const std::string& filePath, bool loop = false) = 0;
21 };
22} // namespace PixelBullet
The abstract interface for an audio backend.
Definition AudioBackend.hpp:9
virtual bool Init()=0
Initializes the backend. Returns true on success.
virtual void PlaySound(const std::string &filePath, bool loop=false)=0
virtual void Shutdown()=0
Shuts down the backend.