Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
244 chris 1
#ifndef __MUSICINTERFACE_H__
2
#define __MUSICINTERFACE_H__
3
 
4
#include "Common.h"
5
 
6
namespace Sexy
7
{
8
 
9
class MusicInterface
10
{
11
public:        
12
 
13
public:
14
        MusicInterface();
15
        virtual ~MusicInterface();
16
 
17
        virtual bool                    LoadMusic(int theSongId, const std::string& theFileName);
18
        virtual void                    PlayMusic(int theSongId, int theOffset = 0, bool noLoop = false);              
19
        virtual void                    StopMusic(int theSongId);
20
        virtual void                    PauseMusic(int theSongId);
21
        virtual void                    ResumeMusic(int theSongId);
22
        virtual void                    StopAllMusic();        
23
 
24
        virtual void                    UnloadMusic(int theSongId);
25
        virtual void                    UnloadAllMusic();
26
        virtual void                    PauseAllMusic();
27
        virtual void                    ResumeAllMusic();
28
 
29
        virtual void                    FadeIn(int theSongId, int theOffset = -1, double theSpeed = 0.002, bool noLoop = false);
30
        virtual void                    FadeOut(int theSongId, bool stopSong = true, double theSpeed = 0.004);
31
        virtual void                    FadeOutAll(bool stopSong = true, double theSpeed = 0.004);
32
        virtual void                    SetSongVolume(int theSongId, double theVolume);
33
        virtual void                    SetSongMaxVolume(int theSongId, double theMaxVolume);
34
        virtual bool                    IsPlaying(int theSongId);
35
 
36
        virtual void                    SetVolume(double theVolume);
37
        virtual void                    SetMusicAmplify(int theSongId, double theAmp);
38
        virtual void                    Update();
39
};
40
 
41
}
42
 
43
#endif //__MUSICINTERFACE_H__