-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
54 lines (45 loc) · 1.21 KB
/
Copy pathmain.cpp
File metadata and controls
54 lines (45 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#include "com_initializer.h"
#include "sound_manager.h"
int main()
{
COMInitializer comInitializer;
//using std::string_literals;
// 1.
const char* zsFilename1 = "assets/sfx/ARNOLD_i'll_be_back.wav";
const char* zsFilename2 = "assets/sfx/AmbientCity_TypeB02.wav";
const char* zsFilename3 = "assets/sfx/CARTOON_BOING_3.wav";
const char* zsFilename4 = "assets/sfx/arkanoid_brick.wav";
const char* zsFilename5 = "assets/sfx/arkanoid_pad.wav";
Sound arnie{zsFilename1, "Arnie", "sfx"};
arnie.play();
// 2.
Sound ambience{zsFilename2, "City Ambience", "sfx"};
ambience.play( .5f );
// 3.
Sound anthraxImTheLaw{zsFilename3, "CARTOON_BOING_3", "music"};
//anthraxImTheLaw.play();
Sleep( 2000 );
ambience.stop();
Sleep( 5000 );
ambience.play(.25f);
// 4, 5
// bring it to its knees!
Sound arnieAgain{zsFilename1, "ArnieAgainWtf?", "sfx2"};
arnieAgain.play( 2.0f );
Sound arnieThrice{zsFilename1, "ArnieThrice?"};
arnieThrice.play( .4f );
Sleep( 3000 );
// 6, 7
Sound brick{zsFilename4, "Brick"};
brick.play();
Sleep( 500 );
brick.stop();
brick.play();
Sleep( 1000 );
Sound pad{zsFilename5, "Pad"};
pad.play();
#if defined _DEBUG && !defined NDEBUG
while ( !getchar() );
#endif
return EXIT_SUCCESS;
}