mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-21 19:51:27 +00:00
- sorted sound backend code into subdirectories.
This commit is contained in:
parent
46ec16032e
commit
f50e402e92
26 changed files with 25 additions and 29 deletions
|
@ -675,7 +675,10 @@ file( GLOB HEADER_FILES
|
||||||
intermission/*.h
|
intermission/*.h
|
||||||
maploader/*.h
|
maploader/*.h
|
||||||
menu/*.h
|
menu/*.h
|
||||||
|
sound/*.h
|
||||||
sound/adlmidi/*.h*
|
sound/adlmidi/*.h*
|
||||||
|
sound/backend/*.h*
|
||||||
|
sound/music/*.h*
|
||||||
sound/opnmidi/*.h*
|
sound/opnmidi/*.h*
|
||||||
sound/oplsynth/*.h
|
sound/oplsynth/*.h
|
||||||
sound/oplsynth/dosbox/*.h
|
sound/oplsynth/dosbox/*.h
|
||||||
|
@ -689,7 +692,6 @@ file( GLOB HEADER_FILES
|
||||||
utility/sfmt/*.h
|
utility/sfmt/*.h
|
||||||
utility/math./*h
|
utility/math./*h
|
||||||
utility/*.h
|
utility/*.h
|
||||||
sound/*.h
|
|
||||||
scripting/*.h
|
scripting/*.h
|
||||||
scripting/backend/*.h
|
scripting/backend/*.h
|
||||||
scripting/decorate/*.h
|
scripting/decorate/*.h
|
||||||
|
@ -847,10 +849,10 @@ set( FASTMATH_SOURCES
|
||||||
rendering/swrenderer/r_swscene.cpp
|
rendering/swrenderer/r_swscene.cpp
|
||||||
rendering/polyrenderer/poly_all.cpp
|
rendering/polyrenderer/poly_all.cpp
|
||||||
sound/oplsynth/opl_mus_player.cpp
|
sound/oplsynth/opl_mus_player.cpp
|
||||||
sound/mpg123_decoder.cpp
|
sound/backend/mpg123_decoder.cpp
|
||||||
sound/music_midi_base.cpp
|
sound/music/music_midi_base.cpp
|
||||||
sound/oalsound.cpp
|
sound/backend/oalsound.cpp
|
||||||
sound/sndfile_decoder.cpp
|
sound/backend/sndfile_decoder.cpp
|
||||||
sound/timiditypp/fft4g.cpp
|
sound/timiditypp/fft4g.cpp
|
||||||
sound/timiditypp/reverb.cpp
|
sound/timiditypp/reverb.cpp
|
||||||
gamedata/textures/hires/hqnx/init.cpp
|
gamedata/textures/hires/hqnx/init.cpp
|
||||||
|
@ -1219,9 +1221,9 @@ set (PCH_SOURCES
|
||||||
scripting/zscript/zcc_compile.cpp
|
scripting/zscript/zcc_compile.cpp
|
||||||
scripting/zscript/zcc_parser.cpp
|
scripting/zscript/zcc_parser.cpp
|
||||||
utility/sfmt/SFMT.cpp
|
utility/sfmt/SFMT.cpp
|
||||||
sound/i_music.cpp
|
sound/music/i_music.cpp
|
||||||
sound/i_sound.cpp
|
sound/music/i_soundfont.cpp
|
||||||
sound/i_soundfont.cpp
|
sound/backend/i_sound.cpp
|
||||||
sound/mididevices/music_adlmidi_mididevice.cpp
|
sound/mididevices/music_adlmidi_mididevice.cpp
|
||||||
sound/mididevices/music_opldumper_mididevice.cpp
|
sound/mididevices/music_opldumper_mididevice.cpp
|
||||||
sound/mididevices/music_opl_mididevice.cpp
|
sound/mididevices/music_opl_mididevice.cpp
|
||||||
|
@ -1388,6 +1390,8 @@ include_directories( .
|
||||||
rendering
|
rendering
|
||||||
rendering/2d
|
rendering/2d
|
||||||
sound
|
sound
|
||||||
|
sound/music
|
||||||
|
sound/backend
|
||||||
sound/oplsynth
|
sound/oplsynth
|
||||||
sound/timidity
|
sound/timidity
|
||||||
sound/wildmidi
|
sound/wildmidi
|
||||||
|
@ -1492,6 +1496,7 @@ install(TARGETS zdoom
|
||||||
COMPONENT "Game executable")
|
COMPONENT "Game executable")
|
||||||
|
|
||||||
source_group("Audio Files" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/sound/.+")
|
source_group("Audio Files" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/sound/.+")
|
||||||
|
source_group("Audio Files\\Backend" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/sound/backend/.+")
|
||||||
source_group("Audio Files\\ADL MIDI" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/sound/adlmidi/.+")
|
source_group("Audio Files\\ADL MIDI" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/sound/adlmidi/.+")
|
||||||
source_group("Audio Files\\OPN MIDI" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/sound/opnmidi/.+")
|
source_group("Audio Files\\OPN MIDI" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/sound/opnmidi/.+")
|
||||||
source_group("Audio Files\\OPL Synth" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/sound/oplsynth/.+")
|
source_group("Audio Files\\OPL Synth" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/sound/oplsynth/.+")
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
#include "a_keys.h"
|
#include "a_keys.h"
|
||||||
#include "p_enemy.h"
|
#include "p_enemy.h"
|
||||||
#include "gstrings.h"
|
#include "gstrings.h"
|
||||||
#include "sound/i_music.h"
|
#include "i_music.h"
|
||||||
#include "p_setup.h"
|
#include "p_setup.h"
|
||||||
#include "d_net.h"
|
#include "d_net.h"
|
||||||
#include "d_event.h"
|
#include "d_event.h"
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
#ifdef _WIN32
|
|
||||||
#define WIN32_LEAN_AND_MEAN
|
|
||||||
#if defined(_WIN32_WINNT) && _WIN32_WINNT < 0x0400
|
|
||||||
#undef _WIN32_WINNT
|
|
||||||
#endif
|
|
||||||
#ifndef _WIN32_WINNT
|
|
||||||
#define _WIN32_WINNT 0x0400
|
|
||||||
#endif
|
|
||||||
#include <windows.h>
|
|
||||||
#include <mmsystem.h>
|
|
||||||
#else
|
|
||||||
#define FALSE 0
|
|
||||||
#define TRUE 1
|
|
||||||
#endif
|
|
|
@ -34,7 +34,9 @@
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
||||||
#include "i_midi_win32.h"
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
#include <windows.h>
|
||||||
|
#include <mmsystem.h>
|
||||||
|
|
||||||
// HEADER FILES ------------------------------------------------------------
|
// HEADER FILES ------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "doomtype.h"
|
#include <stdint.h>
|
||||||
|
|
||||||
#define MIDI_SYSEX ((uint8_t)0xF0) // SysEx begin
|
#define MIDI_SYSEX ((uint8_t)0xF0) // SysEx begin
|
||||||
#define MIDI_SYSEXEND ((uint8_t)0xF7) // SysEx end
|
#define MIDI_SYSEXEND ((uint8_t)0xF7) // SysEx end
|
|
@ -31,9 +31,6 @@
|
||||||
**
|
**
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "i_midi_win32.h"
|
|
||||||
|
|
||||||
|
|
||||||
#include "i_musicinterns.h"
|
#include "i_musicinterns.h"
|
||||||
#include "c_dispatch.h"
|
#include "c_dispatch.h"
|
||||||
|
|
||||||
|
@ -105,6 +102,11 @@ void MIDIDeviceChanged(int newdev, bool force)
|
||||||
#define DEF_MIDIDEV -5
|
#define DEF_MIDIDEV -5
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
#include <windows.h>
|
||||||
|
#include <mmsystem.h>
|
||||||
|
|
||||||
unsigned mididevice;
|
unsigned mididevice;
|
||||||
|
|
||||||
CUSTOM_CVAR (Int, snd_mididevice, DEF_MIDIDEV, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
CUSTOM_CVAR (Int, snd_mididevice, DEF_MIDIDEV, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
|
@ -33,7 +33,7 @@
|
||||||
**
|
**
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _WIN32_WINNT 0x0601
|
#define _WIN32_WINNT 0x0600
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <lmcons.h>
|
#include <lmcons.h>
|
||||||
#include <shlobj.h>
|
#include <shlobj.h>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
cmake_minimum_required( VERSION 2.8.7 )
|
cmake_minimum_required( VERSION 2.8.7 )
|
||||||
|
|
||||||
|
add_subdirectory( re2c )
|
||||||
add_subdirectory( lemon )
|
add_subdirectory( lemon )
|
||||||
add_subdirectory( updaterevision )
|
add_subdirectory( updaterevision )
|
||||||
add_subdirectory( zipdir )
|
add_subdirectory( zipdir )
|
||||||
|
|
Loading…
Reference in a new issue