Debian Codegraph @

common/include/digi_audio.h

raw
1 /*
2 * This file is part of the DXX-Rebirth project <https://www.dxx-rebirth.com/>.
3 * It is copyright by its individual contributors, as recorded in the
4 * project's Git history. See COPYING.txt at the top level for license
5 * terms and a link to the Git history.
6 */
7
8 #pragma once
9
10 #include "maths.h"
11
12 #ifdef DXX_BUILD_DESCENT
13 namespace dcx {
14 enum class sound_pan : int;
15 enum class sound_channel : uint8_t;
16 enum sound_effect : uint8_t;
17 struct sound_object;
18 constexpr std::integral_constant<int, 16> digi_max_channels{};
19 }
20 namespace dsx {
21 int digi_audio_init();
22 void digi_audio_close();
23 void digi_audio_stop_all_channels();
24 sound_channel digi_audio_start_sound(sound_effect, fix, sound_pan, int, int, int, sound_object *);
25 int digi_audio_is_channel_playing(sound_channel);
26 void digi_audio_set_channel_volume(sound_channel, int);
27 void digi_audio_set_channel_pan(sound_channel, sound_pan);
28 void digi_audio_stop_sound(sound_channel);
29 void digi_audio_end_sound(sound_channel);
30 void digi_audio_set_digi_volume(int);
31 }
32 #endif