SDLGameEngine

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

Data Structures | Functions

# include/sgesound.h File Reference

Sound and music. More...

`#include <sge.h>`

Go to the source code of this file.

## Data Structures
struct | SGESOUND
## Functions
void | sgeSetDefaultSampleRate (int rate)
| set the sample rate of the audio device
int | sgeGetDefaultSampleRate (void)
| get the sample rate of the audio device
void | sgeSetVolume (int volume)
| set the global playing volume
int | sgeGetVolume (void)
SGESOUND * | sgeSoundNew (SGEFILE *f, const char *name)
| create a sound from a sge data archive
void | sgeSoundDestroy (SGESOUND *m)
| destroy a sound struct and free memory
void | sgeSoundPlay (SGESOUND *m, int loop, int fadeinms)
| play a sound
void | sgeSoundStop (SGESOUND *m, int fadeoutms)
| stop a sound
int | sgeSoundIsPlaying (SGESOUND *m)
| check if a sound is playing

## Detailed Description

Sound and music.

Definition in file sgesound.h.

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines