summaryrefslogtreecommitdiffstats
path: root/src/audio/DMAudio.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-10-25 08:39:04 +0100
committerSergeanur <s.anureev@yandex.ua>2020-10-25 08:40:11 +0100
commitaac0c3fb679401eab584cf91c07bd4353022c91c (patch)
tree10ae219d4c9ce000917d5ff319f281bc40d20431 /src/audio/DMAudio.cpp
parentFix bindings not loaded on Linux (diff)
downloadre3-aac0c3fb679401eab584cf91c07bd4353022c91c.tar
re3-aac0c3fb679401eab584cf91c07bd4353022c91c.tar.gz
re3-aac0c3fb679401eab584cf91c07bd4353022c91c.tar.bz2
re3-aac0c3fb679401eab584cf91c07bd4353022c91c.tar.lz
re3-aac0c3fb679401eab584cf91c07bd4353022c91c.tar.xz
re3-aac0c3fb679401eab584cf91c07bd4353022c91c.tar.zst
re3-aac0c3fb679401eab584cf91c07bd4353022c91c.zip
Diffstat (limited to '')
-rw-r--r--src/audio/DMAudio.cpp29
1 files changed, 1 insertions, 28 deletions
diff --git a/src/audio/DMAudio.cpp b/src/audio/DMAudio.cpp
index 74968e0d..b0d5745c 100644
--- a/src/audio/DMAudio.cpp
+++ b/src/audio/DMAudio.cpp
@@ -113,33 +113,6 @@ cDMAudio::Get3DProviderName(uint8 id)
return AudioManager.Get3DProviderName(id);
}
-int8 cDMAudio::AutoDetect3DProviders(void)
-{
- for ( int32 i = 0; i < GetNum3DProvidersAvailable(); i++ )
- {
- wchar buff[64];
-
-#ifdef AUDIO_OAL
- if (defaultProvider >= 0 && defaultProvider < GetNum3DProvidersAvailable()) {
- return i;
- }
-#endif
- char *name = Get3DProviderName(i);
- AsciiToUnicode(name, buff);
- char *providername = UnicodeToAscii(buff);
- strupr(providername);
-#if defined(AUDIO_MSS)
- if ( !strcmp(providername, "MILES FAST 2D POSITIONAL AUDIO") )
- return i;
-#elif defined(AUDIO_OAL)
- if ( !strcmp(providername, "OPENAL SOFT") )
- return i;
-#endif
- }
-
- return -1;
-}
-
int8
cDMAudio::GetCurrent3DProviderIndex(void)
{
@@ -350,7 +323,7 @@ cDMAudio::SetRadioInCar(uint32 radio)
}
void
-cDMAudio::SetRadioChannel(int8 radio, int32 pos)
+cDMAudio::SetRadioChannel(uint8 radio, int32 pos)
{
MusicManager.SetRadioChannelByScript(radio, pos);
}