author | glx |
Mon, 21 Apr 2008 21:15:50 +0000 | |
branch | noai |
changeset 10294 | 7798ae816af8 |
parent 9837 | c9ec4f82e0d0 |
child 10429 | 1b99254f9607 |
permissions | -rw-r--r-- |
4656
acffecd6f484
(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
peter1138
parents:
diff
changeset
|
1 |
/* $Id$ */ |
acffecd6f484
(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
peter1138
parents:
diff
changeset
|
2 |
|
9505 | 3 |
/** @file newgrf_sound.h */ |
4 |
||
4656
acffecd6f484
(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
peter1138
parents:
diff
changeset
|
5 |
#ifndef NEWGRF_SOUND_H |
acffecd6f484
(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
peter1138
parents:
diff
changeset
|
6 |
#define NEWGRF_SOUND_H |
acffecd6f484
(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
peter1138
parents:
diff
changeset
|
7 |
|
9723
eee46cb39750
(svn r11796) [NoAI] -Sync: with trunk r11502:11795.
rubidium
parents:
9505
diff
changeset
|
8 |
#include "sound_type.h" |
9837
c9ec4f82e0d0
(svn r12503) [NoAI] -Sync: with trunk r12461:12501.
rubidium
parents:
9723
diff
changeset
|
9 |
#include "tile_type.h" |
9723
eee46cb39750
(svn r11796) [NoAI] -Sync: with trunk r11502:11795.
rubidium
parents:
9505
diff
changeset
|
10 |
|
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6573
diff
changeset
|
11 |
enum VehicleSoundEvent { |
4656
acffecd6f484
(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
peter1138
parents:
diff
changeset
|
12 |
VSE_START = 1, |
acffecd6f484
(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
peter1138
parents:
diff
changeset
|
13 |
VSE_TUNNEL = 2, |
acffecd6f484
(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
peter1138
parents:
diff
changeset
|
14 |
VSE_BREAKDOWN = 3, |
acffecd6f484
(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
peter1138
parents:
diff
changeset
|
15 |
VSE_RUNNING = 4, |
acffecd6f484
(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
peter1138
parents:
diff
changeset
|
16 |
VSE_TOUCHDOWN = 5, |
acffecd6f484
(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
peter1138
parents:
diff
changeset
|
17 |
VSE_TRAIN_EFFECT = 6, |
acffecd6f484
(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
peter1138
parents:
diff
changeset
|
18 |
VSE_RUNNING_16 = 7, |
acffecd6f484
(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
peter1138
parents:
diff
changeset
|
19 |
VSE_STOPPED_16 = 8, |
acffecd6f484
(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
peter1138
parents:
diff
changeset
|
20 |
VSE_LOAD_UNLOAD = 9, |
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6573
diff
changeset
|
21 |
}; |
4656
acffecd6f484
(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
peter1138
parents:
diff
changeset
|
22 |
|
acffecd6f484
(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
peter1138
parents:
diff
changeset
|
23 |
|
6573 | 24 |
FileEntry *AllocateFileEntry(); |
25 |
void InitializeSoundPool(); |
|
4656
acffecd6f484
(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
peter1138
parents:
diff
changeset
|
26 |
FileEntry *GetSound(uint index); |
6573 | 27 |
uint GetNumSounds(); |
4656
acffecd6f484
(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
peter1138
parents:
diff
changeset
|
28 |
bool PlayVehicleSound(const Vehicle *v, VehicleSoundEvent event); |
10294 | 29 |
bool PlayTileSound(const struct GRFFile *file, uint16 sound_id, TileIndex tile); |
4656
acffecd6f484
(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
peter1138
parents:
diff
changeset
|
30 |
|
acffecd6f484
(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
peter1138
parents:
diff
changeset
|
31 |
#endif /* NEWGRF_SOUND_H */ |