Game Develop C++ Platform: AudioTools.h Source File

| Game Develop C++ Platform Platform for developing native games based on OpenGL and SFML with Game Develop

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
AudioTools.h
Go to the documentation of this file.
1
6 #ifndef AUDIOTOOLS_H
7 #define AUDIOTOOLS_H
8 #include <string>
9
10 class RuntimeScene;
11
12 bool GD_API MusicPlaying( RuntimeScene & scene, unsigned int channel );
13 bool GD_API MusicPaused( RuntimeScene & scene, unsigned int channel );
14 bool GD_API MusicStopped( RuntimeScene & scene, unsigned int channel );
15 bool GD_API SoundPlaying( RuntimeScene & scene, unsigned int channel );
16 bool GD_API SoundPaused( RuntimeScene & scene, unsigned int channel );
17 bool GD_API SoundStopped( RuntimeScene & scene, unsigned int channel );
18 void GD_API PlaySound( RuntimeScene & scene, const std::string & file, bool repeat, float volume, float pitch );
19 void GD_API PlaySoundOnChannel( RuntimeScene & scene, const std::string & file, unsigned int channel, bool repeat, float volume, float pitch );
20 void GD_API StopSoundOnChannel( RuntimeScene & scene, unsigned int channel );
21 void GD_API PauseSoundOnChannel( RuntimeScene & scene, unsigned int channel );
22 void GD_API RePlaySoundOnChannel( RuntimeScene & scene, unsigned int channel );
23 void GD_API PlayMusic( RuntimeScene & scene, const std::string & file, bool repeat, float volume, float pitch );
24 void GD_API PlayMusicOnChannel( RuntimeScene & scene, const std::string & file, unsigned int channel, bool repeat, float volume, float pitch );
25 void GD_API StopMusicOnChannel( RuntimeScene & scene, unsigned int channel );
26 void GD_API PauseMusicOnChannel( RuntimeScene & scene, unsigned int channel );
27 void GD_API RePlayMusicOnChannel( RuntimeScene & scene, unsigned int channel );
28 void GD_API SetSoundVolumeOnChannel( RuntimeScene & scene, unsigned int channel, float pitch );
29 void GD_API SetMusicVolumeOnChannel( RuntimeScene & scene, unsigned int channel, float playingOffset );
30 double GD_API GetSoundVolumeOnChannel( RuntimeScene & scene, unsigned int channel);
31 double GD_API GetMusicVolumeOnChannel( RuntimeScene & scene, unsigned int channel);
32 void GD_API SetGlobalVolume( RuntimeScene & scene, float volume );
33 double GD_API GetGlobalVolume( RuntimeScene & scene );
34 void GD_API SetSoundPitchOnChannel( RuntimeScene & scene, unsigned int channel, float pitch );
35 void GD_API SetMusicPitchOnChannel( RuntimeScene & scene, unsigned int channel, float playingOffset );
36 double GD_API GetSoundPitchOnChannel( RuntimeScene & scene, unsigned int channel);
37 double GD_API GetMusicPitchOnChannel( RuntimeScene & scene, unsigned int channel);
38 void GD_API SetSoundPlayingOffsetOnChannel( RuntimeScene & scene, unsigned int channel, float playingOffset );
39 void GD_API SetMusicPlayingOffsetOnChannel( RuntimeScene & scene, unsigned int channel, float playingOffset );
40 double GD_API GetSoundPlayingOffsetOnChannel( RuntimeScene & scene, unsigned int channel);
41 double GD_API GetMusicPlayingOffsetOnChannel( RuntimeScene & scene, unsigned int channel);
42
43 #endif // AUDIOTOOLS_H
44