//---------------------------------------------------------
// test07.txt
//---------------------------------------------------------
// 
// A Mini-BAE TestSuite script
//
// Usage:  testsuite.exe < test07.txt (at the MS-DOS prompt)
//
//---------------------------------------------------------
//
// Tests in this script:
//
// 1. MIDI File:
//    a. Start, Stop
//    b. Start, Pause, Resume, SetVolume, Stop
//    
// 2. RMF File:
//    a. Start, Stop
//    b. Start, Pause, Resume, SetVolume, Stop
//    
//
//---------------------------------------------------------
// Jan. 19, 2000 by Chris Grigg (chrisg@beatnik.com)
// Based on Mark Deggeler's go.txt
// (c) 2000 by Beatnik, Inc.  All rights reserved.
//---------------------------------------------------------



// create mixer
1
1
1 // open mixer 8hz,16bit

// load default patch file
1
1
4


//---------------------------------------------------------
// 1. MIDI File
//---------------------------------------------------------

// create new BAESong object -----------
3
2
1
0             // slot 0

// load MIDI file ------------------------
3
2
34
0             // slot 0
testMidi1.mid // name of file
y             // ignore bad instruments

// start! -------------------------------
3
2
38
0            // slot 0
0            // priority 0


// wait --------------------------------
4
5           // Wait 5 seconds to let file play

// stop! -------------------------------
3
2
39
0            // slot 0
n            // don't fade

// wait --------------------------------
4
2           // Wait 2 seconds silence

// start again --------------------------
3
2
38
0            // slot 0
0            // priority 0

// wait --------------------------------
4
7           // Wait 7 seconds to let file play


// pause() ------------------------------
3
2
40
0           // slot 0

// wait --------------------------------
4
2           // Wait 2 seconds silence


// resume() -----------------------------
3
2
41
0           // slot 0

// wait --------------------------------
4
7           // Wait 7 seconds to let file play


// setVolume() ------------------------------
3
2
3
0           // slot 0
0.2          // volume

// wait --------------------------------
4
7           // Wait 7 seconds to let file play


// stop! -------------------------------
3
2
39
0            // slot 0
n            // don't fade



// PAUSE --------------------------------
4
3           // Wait 3 seconds in between tests




//---------------------------------------------------------
// 2. RMF File
//---------------------------------------------------------

// create new BAESong object -----------
3
2
1
1             // slot 1

// load RMF file ------------------------
3
2
36
1             // slot 1
House.rmf     // name of file
0             // song 0
y 	      // ignore bad instruments

// start! -------------------------------
3
2
38
1            // slot 1
0            // priority 0


// wait --------------------------------
4
5           // Wait 5 seconds to let file play

// stop! -------------------------------
3
2
39
1            // slot 1
n            // don't fade

// wait --------------------------------
4
2           // Wait 2 seconds silence

// start again --------------------------
3
2
38
1            // slot 1
0            // priority 0

// wait --------------------------------
4
7           // Wait 7 seconds to let file play


// pause() ------------------------------
3
2
40
1           // slot 1

// wait --------------------------------
4
2           // Wait 2 seconds silence


// resume() -----------------------------
3
2
41
1           // slot 1

// wait --------------------------------
4
7           // Wait 7 seconds to let file play


// setVolume() ------------------------------
3
2
3
1           // slot 1
0.3         // volume

// wait --------------------------------
4
7           // Wait 7 seconds to let file play


// stop! -------------------------------
3
2
39
1            // slot 1
n            // don't fade




// quit
0	// VERY IMPORTANT TO QUIT AT END!!!!!

