Virtual U.org
Get Personal Training on VU Today
    
Top shadow
 
 register/help
User Name:

Password:

OMUSIC.H Source File
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

OMUSIC.H

Go to the documentation of this file.
00001 // Filename    : OMUSIC.H
00002 // Description : header of music
00003 
00004 #ifndef __OMUSIC_H
00005 #define __OMUSIC_H
00006 
00007 #define MUSIC_PLAY_LOOPED 1
00008 #define MUSIC_PLAY_CD 2
00009 #define MUSIC_CD_THEN_WAV 4
00010 
00012 class Music {
00013 public:
00014     int init_flag;
00015     int song_id;
00016     int music_channel;
00017     int play_type;                                // 0 = non-looped, 1 = looped, bit 1 = play from CD (looped not supported)
00018 
00019 public:
00020     Music();
00021     ~Music();
00022     void  init();
00023     void  deinit();
00024 
00025     int stop();
00026     int play(int songId, int playType=1);
00027     int is_playing(int songId=0);
00028     void  change_volume(int volume);              // 0-100
00029     void  yield();
00030 
00031     static int max_song();
00032     static int random_bgm_track(int excludeId = 0);
00033 };
00034 
00035 extern Music music;
00036 #endif

Generated on Fri Aug 23 01:38:08 2002 for VirtualU by doxygen1.2.17