#include
<oalplus/alut.hpp>
ALUtilityToolkit
is a wrapper for the ALUT
library.
class ALUtilityToolkit { public: ALUtilityToolkit(ALUtilityToolkit&&); ALUtilityToolkit(bool with_context, int argc, char** argv);ALUtilityToolkit(bool with_context);
~ALUtilityToolkit(void);
Buffer CreateBufferHelloWorld(void) const;
Buffer CreateBufferFromFile(const StrCRef& file_path) const;
std::vector<ALfloat> LoadMemoryHelloWorldNormalized( DataFormat* data_format, ALfloat* frequency ) const;
std::vector<ALfloat> LoadMemoryFromFileNormalized( const StrCRef& file_path, DataFormat* data_format, ALfloat* frequency ) const;
std::vector<ALubyte> LoadMemoryFromFile( const StrCRef& file_path, DataFormat* data_format, ALfloat* frequency ) const;
void LoadMemoryFromFile( std::vector<ALubyte>& raw, std::vector<ALfloat>& norm, const StrCRef& file_path, DataFormat* data_format, ALfloat* frequency ) const;
};
Initializes the ALUT library, optionally with a context. See |
|
Initializes the ALUT library, optionally with a context. See |
|
Cleans up the ALUT library. See |
|
Create a buffer containing the samples of a 'Hello World'
sound. See |
|
Create a buffer containing the samples from a specified sound file.
See |
|
Loads samples of a 'Hello World' sound into a
buffer and normalizes the sound samples. See |
|
Loads samples from a sound file into a buffer and normalizes the sound
samples. See |
|
Loads samples from a sound file into a buffer. See |
|
Loads samples from a sound file into a buffer. This version loads both
the raw data and the normalized samples into two buffers and also returns
the format and the sampling frequency. See |