equal
deleted
inserted
replaced
2 |
2 |
3 #include "../stdafx.h" |
3 #include "../stdafx.h" |
4 |
4 |
5 #ifdef WIN32_ENABLE_DIRECTMUSIC_SUPPORT |
5 #ifdef WIN32_ENABLE_DIRECTMUSIC_SUPPORT |
6 |
6 |
7 #include "../openttd.h" |
|
8 #include "../debug.h" |
7 #include "../debug.h" |
9 #include "../win32.h" |
8 #include "../win32.h" |
10 #include "dmusic.h" |
9 #include "dmusic.h" |
11 |
10 |
12 #include <windows.h> |
11 #include <windows.h> |
216 long db = vol * 2000 / 127 - 2000; |
215 long db = vol * 2000 / 127 - 2000; |
217 performance->SetGlobalParam(GUID_PerfMasterVolume, &db, sizeof(db)); |
216 performance->SetGlobalParam(GUID_PerfMasterVolume, &db, sizeof(db)); |
218 } |
217 } |
219 |
218 |
220 |
219 |
221 extern "C" const HalMusicDriver _dmusic_midi_driver = { |
220 const HalMusicDriver _dmusic_midi_driver = { |
222 DMusicMidiStart, |
221 DMusicMidiStart, |
223 DMusicMidiStop, |
222 DMusicMidiStop, |
224 DMusicMidiPlaySong, |
223 DMusicMidiPlaySong, |
225 DMusicMidiStopSong, |
224 DMusicMidiStopSong, |
226 DMusicMidiIsSongPlaying, |
225 DMusicMidiIsSongPlaying, |
227 DMusicMidiSetVolume, |
226 DMusicMidiSetVolume, |
228 }; |
227 }; |
229 |
228 |
230 #endif |
229 #endif /* WIN32_ENABLE_DIRECTMUSIC_SUPPORT */ |