PrevUpHomeNext

AL Utility Toolkit

#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); 1

	ALUtilityToolkit(bool with_context); 2

	~ALUtilityToolkit(void); 3

	Buffer CreateBufferHelloWorld(void) const; 4

	Buffer CreateBufferFromFile(const StrCRef& file_path) const; 5

	std::vector<ALfloat> LoadMemoryHelloWorldNormalized(
		DataFormat* data_format,
		ALfloat* frequency
	) const; 6

	std::vector<ALfloat> LoadMemoryFromFileNormalized(
		const StrCRef& file_path,
		DataFormat* data_format,
		ALfloat* frequency
	) const; 7

	std::vector<ALubyte> LoadMemoryFromFile(
		const StrCRef& file_path,
		DataFormat* data_format,
		ALfloat* frequency
	) const; 8

	void LoadMemoryFromFile(
		std::vector<ALubyte>& raw,
		std::vector<ALfloat>& norm,
		const StrCRef& file_path,
		DataFormat* data_format,
		ALfloat* frequency
	) const; 9
};

1

Initializes the ALUT library, optionally with a context. See alutInit, alutInitWithoutContext.

2

Initializes the ALUT library, optionally with a context. See alutInit, alutInitWithoutContext.

3

Cleans up the ALUT library. See alutExit.

4

Create a buffer containing the samples of a 'Hello World' sound. See alutCreateBufferHelloWorld.

5

Create a buffer containing the samples from a specified sound file. See alutCreateBufferFromFile.

6

Loads samples of a 'Hello World' sound into a buffer and normalizes the sound samples. See alutLoadMemoryHelloWorld.

7

Loads samples from a sound file into a buffer and normalizes the sound samples. See alutLoadMemoryFromFile.

8

Loads samples from a sound file into a buffer. See alutLoadMemoryFromFile.

9

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 alutLoadMemoryFromFile.


PrevUpHomeNext