Bottle 2D - Lua API 1.0.0
All you need to create games using bottle2D.
|
A short sound that can be loaded from a file. More...
#include <header.hpp>
Public Member Functions | |
Sound () | |
Constructor. | |
nil | LoadFromFile (string Filename) |
Load a sound from a file. |
A short sound that can be loaded from a file.
Note: a sound should not be used to load musics ( > 1 min) since the whole file is loaded into memory.
Sound::Sound | ( | ) |
Constructor.
nil Sound::LoadFromFile | ( | string | Filename | ) |
Load a sound from a file.
Note: the working directory is the mode's root directory.