The small3d library
Classes | Namespaces | Macros
Sound.hpp File Reference

A sound class. More...

#include <unordered_map>
#include <portaudio.h>
#include <vector>
#include <string>

Go to the source code of this file.

Classes

class  small3d::Sound
 Class that loads and plays a sound from an ogg file, or a native sound file. In the latter case, the file loaded has to have been produced by converting an .ogg file to a small3d native binary file using the format converter program, s3dfc, produced by this project's build scripts, for example by running s3dfc engine.ogg engine.bin (this would convert an engine sound .ogg file to a native binary sound file) ATTENTION: Unfortunately the native binary files have issues across architectures. So for example binaries created on Windows do not work on Linux. They need to be created and tested separately for each. More...
 

Namespaces

 small3d
 

Macros

#define WORD_SIZE   2
 
#define SAMPLE_DATATYPE   short
 

Detailed Description

A sound class.

Created on: 2017-07-17 Author: Dimitri Kourkoulis License: BSD 3-Clause License (see LICENSE file)