4#include <mgdl/mgdl-openal.h>
24typedef enum SoundStatus SoundStatus;
42 ALuint buffer, source;
115void Sound_SetLooping(
Sound* sound,
bool looping) ;
116bool Sound_GetLooping(
Sound* sound );
125void Sound_SetElapsedSeconds(
Sound* sound,
float elapsed) ;
void Sound_PlayEx(Sound *sound, float pitchOffset, float volumePercent)
Plays a sound with extended paramters.
Definition pc-sound.cpp:82
void Sound_SetPaused(Sound *sound, bool pause)
Pauses the playback of the sound.
Definition pc-sound.cpp:91
Sound * Sound_Load(const char *filename)
Loads a sound file.
Definition pc-sound.cpp:7
void Sound_DeleteData(Sound *sound)
Deletes the sound data stored in the object.
Definition pc-sound.cpp:71
void Sound_Stop(Sound *sound)
Stops the playback of the sound.
Definition pc-sound.cpp:87
SoundStatus Sound_GetStatus(Sound *sound)
Get if the voice is playing or not.
Definition pc-sound.cpp:125
float Sound_GetElapsedSeconds(Sound *sound)
Get elapsed playback time in seconds.
Definition pc-sound.cpp:119
Sound * Sound_Create(void)
Allocates a new Sound with empty variables.
Definition pc-sound.cpp:60
void Sound_Play(Sound *sound)
Plays a sound.
Definition pc-sound.cpp:77
Library types, macros, defines and enums header.
Sound handling struct.
Definition mgdl-sound.h:31