Fix for initialization of scalos preferences library. Library is now loaded only...
[AROS-Contrib.git] / Games / Bomber / BomberSounds.c
blobe874989ef0c23117106f1105dbf65bcc8a1e21a7
1 //Sounds
2 char *Vault, *Expl, *Lose, *Bonus;
4 //Load the sounds
5 void LoadSounds ()
7 #if !NO_SOUND
8 FILE *SoundFile;
9 long WaveSize;
11 //Open the file
12 SoundFile = fopen ("BOMBSNDS.SSF", "rb");
13 //Explosion
14 fread (&WaveSize, 4, 1, SoundFile);
15 Expl = (char *)malloc (WaveSize);
16 fread (Expl, 1, WaveSize, SoundFile);
17 //Lose
18 fread (&WaveSize, 4, 1, SoundFile);
19 Lose = (char *)malloc (WaveSize);
20 fread (Lose, 1, WaveSize, SoundFile);
21 //Bonus
22 fread (&WaveSize, 4, 1, SoundFile);
23 Bonus = (char *)malloc (WaveSize);
24 fread (Bonus, 1, WaveSize, SoundFile);
25 //Close the file
26 fclose (SoundFile);
27 #endif