home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1999 February
/
VPR9902A.BIN
/
FFILLY
/
UG
/
mci.tfy
< prev
next >
Wrap
Text File
|
1998-04-29
|
1KB
|
35 lines
// GLOBAL VAL----------------------------------------------------------
int M_Open, M_length;
int W_Open[];
// BGM ----------------------------------------------------------------
int openBGM( str fname ) {
if ( M_Open == 1 ) { MCI( "close BGM" ); }
MCI( StrPrint( "open %s type sequencer alias BGM", fname ) );
M_Open = 1;
MCI( "set BGM time format milliseconds" );
M_length = StrtoInt( StrMCI( "status BGM length" ) );
} // method end
// BGM ----------------------------------------------------------------
int closeBGM() {
MCI( "stop BGM" );
MCI( "close BGM" );
M_Open = 0;
} // method end
// WAVE ---------------------------------------------------------------
int openWAVE( str fname, int id ) {
if ( W_Open[ id ] == 1 ) { MCI( StrPrint( "close WAVE_%s", id ) ); }
MCI( StrPrint( "open %s type sequencer alias WAVE_%s", fname, id ) );
W_Open[ id ] = 1;
} // method end
int closeWAVE( int id ) {
MCI( StrPrint( "stop WAVE_%s", id ) );
MCI( StrPrint( "close WAVE_%s", id ) );
W_Open[ id ] = 0;
} // method end