Subversion Repositories eduke32

Rev

Rev 8387 | Rev 8755 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8387 Rev 8752
Line 24... Line 24...
24
 */
24
 */
25
25
26
#include "drivers.h"
26
#include "drivers.h"
27
27
28
#include "driver_adlib.h"
28
#include "driver_adlib.h"
-
 
29
#include "driver_sf2.h"
29
#include "_midi.h"
30
#include "_midi.h"
30
31
31
#ifdef RENDERTYPESDL
32
#ifdef RENDERTYPESDL
32
# include "driver_sdl.h"
33
# include "driver_sdl.h"
33
#endif
34
#endif
Line 145... Line 146...
145
        WinMMDrv_MIDI_Service,
146
        WinMMDrv_MIDI_Service,
146
    #else
147
    #else
147
        UNSUPPORTED_COMPLETELY
148
        UNSUPPORTED_COMPLETELY
148
    #endif
149
    #endif
149
    },
150
    },
-
 
151
-
 
152
    // TinySoundFont
-
 
153
    {
-
 
154
        "SoundFont2 synthesizer",
-
 
155
        SF2_GetError,
-
 
156
        SF2_ErrorString,
-
 
157
-
 
158
        UNSUPPORTED_PCM,
-
 
159
-
 
160
        EMIDI_GeneralMIDI,
-
 
161
        SF2_MIDI_Init,
-
 
162
        SF2_MIDI_Shutdown,
-
 
163
        SF2_MIDI_StartPlayback,
-
 
164
        SF2_MIDI_HaltPlayback,
-
 
165
        SF2_MIDI_SetTempo,
-
 
166
        nullptr,
-
 
167
        nullptr,
-
 
168
        SF2_MIDI_Service,
-
 
169
    },
150
};
170
};
151
171
152
172
153
int SoundDriver_IsPCMSupported(int driver)  { return (SoundDrivers[driver].PCM_Init != 0); }
173
int SoundDriver_IsPCMSupported(int driver)  { return (SoundDrivers[driver].PCM_Init != 0); }
154
int SoundDriver_IsMIDISupported(int driver) { return (SoundDrivers[driver].MIDI_Init != 0); }
174
int SoundDriver_IsMIDISupported(int driver) { return (SoundDrivers[driver].MIDI_Init != 0); }