2014-06-01 17:55:23 +00:00
|
|
|
/*
|
2018-09-02 00:57:29 +00:00
|
|
|
* This file is part of the DXX-Rebirth project <https://www.dxx-rebirth.com/>.
|
2014-06-01 17:55:23 +00:00
|
|
|
* It is copyright by its individual contributors, as recorded in the
|
|
|
|
* project's Git history. See COPYING.txt at the top level for license
|
|
|
|
* terms and a link to the Git history.
|
|
|
|
*/
|
2015-12-13 18:00:48 +00:00
|
|
|
|
|
|
|
#pragma once
|
2007-09-18 13:37:39 +00:00
|
|
|
|
2012-07-01 02:54:33 +00:00
|
|
|
#include "maths.h"
|
2007-09-18 13:37:39 +00:00
|
|
|
|
2012-11-11 22:12:51 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
2016-01-09 16:38:15 +00:00
|
|
|
#ifdef dsx
|
2016-07-15 03:43:02 +00:00
|
|
|
namespace dcx {
|
2021-06-28 03:37:51 +00:00
|
|
|
enum class sound_pan : int;
|
2014-12-14 05:22:59 +00:00
|
|
|
struct sound_object;
|
2017-10-14 17:10:30 +00:00
|
|
|
constexpr std::integral_constant<int, 16> digi_max_channels{};
|
2016-07-15 03:43:02 +00:00
|
|
|
}
|
|
|
|
namespace dsx {
|
2007-09-18 13:37:39 +00:00
|
|
|
int digi_audio_init();
|
|
|
|
void digi_audio_close();
|
|
|
|
void digi_audio_stop_all_channels();
|
2021-06-28 03:37:51 +00:00
|
|
|
int digi_audio_start_sound(short, fix, sound_pan, int, int, int, sound_object *);
|
2007-09-18 13:37:39 +00:00
|
|
|
int digi_audio_is_channel_playing(int );
|
2021-06-28 03:37:51 +00:00
|
|
|
void digi_audio_set_channel_volume(int, int);
|
|
|
|
void digi_audio_set_channel_pan(int, sound_pan);
|
2007-09-18 13:37:39 +00:00
|
|
|
void digi_audio_stop_sound(int );
|
|
|
|
void digi_audio_end_sound(int );
|
|
|
|
void digi_audio_set_digi_volume(int);
|
2015-12-13 18:00:48 +00:00
|
|
|
}
|
2012-11-11 22:12:51 +00:00
|
|
|
#endif
|
|
|
|
|
2007-09-18 13:37:39 +00:00
|
|
|
#endif
|