mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 00:09:18 +02:00
tmj merge
This commit is contained in:
8
audio.h
8
audio.h
@@ -20,11 +20,17 @@ ALuint const null_resource{ ~( ALuint { 0 } ) };
|
||||
struct openal_buffer {
|
||||
// members
|
||||
ALuint id { null_resource }; // associated AL resource
|
||||
unsigned int rate { 0 }; // sample rate of the data
|
||||
unsigned int rate {}; // sample rate of the data
|
||||
std::string name;
|
||||
std::string caption;
|
||||
// constructors
|
||||
openal_buffer() = default;
|
||||
explicit openal_buffer( std::string const &Filename );
|
||||
// methods
|
||||
// retrieves sound caption in currently set language
|
||||
void
|
||||
fetch_caption();
|
||||
|
||||
};
|
||||
|
||||
using buffer_handle = std::size_t;
|
||||
|
||||
Reference in New Issue
Block a user