aboutsummaryrefslogtreecommitdiff
path: root/music.h
diff options
context:
space:
mode:
Diffstat (limited to 'music.h')
-rw-r--r--music.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/music.h b/music.h
deleted file mode 100644
index ef09c41..0000000
--- a/music.h
+++ /dev/null
@@ -1,34 +0,0 @@
-//Chrisoft Bullet Lab Remix HGE -*- C++ -*-
-//In Game Music Implementations
-//Copyright Chrisoft 2014
-HEFFECT Mus;
-HCHANNEL Muc;
-int lpst,lped;
-//static const char* MUSIC_H_FN="music.h";
-
-void Music_Init(const char* file)
-{
- Mus=hge->Effect_Load(file);
-}
-void Music_Play()
-{
- Muc=hge->Effect_PlayEx(Mus,bgmvol/15.0,0,1.0,true);
-}
-void Music_Update()
-{
- if (!lpst||!lped)return;
- int Mucpos=hge->Channel_GetPos_BySample(Muc);
- if (Mucpos>=lped)hge->Channel_SetPos_BySample(Muc,lpst);
-}
-void Music_Stop()
-{
- hge->Channel_Stop(Muc);
-}
-void Music_Pause()
-{
- hge->Channel_Pause(Muc);
-}
-void Music_Resume()
-{
- hge->Channel_Resume(Muc);
-}