FreeRTOS Tetris
|
A simple interface to play wav files using the SDL2 Mixer library. More...
Go to the source code of this file.
Macros | |
#define | GEN_ENUM(ENUM) ENUM, |
#define | FOR_EACH_SAMPLE(SAMPLE) |
Enumerations | |
enum | tumSound_samples_e { FOR_EACH_SAMPLE =(GEN_ENUM) } |
Enum containing the currently loaded wav samples. More... | |
Functions | |
int | tumSoundInit (char *bin_dir_str) |
Initializes the SDL2 Mixer library and loads the wav samples specified in the tumSound_samples_e. More... | |
void | tumSoundExit (void) |
Deinitializes the SDL2 Mixer library. | |
void | tumSoundPlaySample (unsigned char index) |
Plays a wav sample. More... | |
int | tumSoundLoadUserSample (const char *filepath) |
Loads a .wav sample from disk. More... | |
int | tumSoundPlayUserSample (const char *filename) |
Plays a loaded waveform. More... | |
A simple interface to play wav files using the SDL2 Mixer library.
---------------------------------------------------------------------- Copyright (C) Alexander Hoffman, 2019 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. ----------------------------------------------------------------------