mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-18 22:51:39 +00:00
- fixed compilation on XCode and silenced several warnings in the music code
This commit is contained in:
parent
f6eedb737b
commit
0954942d6a
8 changed files with 5 additions and 13 deletions
|
@ -504,9 +504,9 @@ ADLMIDI_EXPORT void adl_setLoopEnabled(ADL_MIDIPlayer *device, int loopEn)
|
||||||
{
|
{
|
||||||
if(!device)
|
if(!device)
|
||||||
return;
|
return;
|
||||||
MidiPlayer *play = GET_MIDI_PLAYER(device);
|
|
||||||
assert(play);
|
|
||||||
#ifndef ADLMIDI_DISABLE_MIDI_SEQUENCER
|
#ifndef ADLMIDI_DISABLE_MIDI_SEQUENCER
|
||||||
|
MidiPlayer *play = GET_MIDI_PLAYER(device);
|
||||||
|
assert(play);
|
||||||
play->m_sequencer.setLoopEnabled(loopEn != 0);
|
play->m_sequencer.setLoopEnabled(loopEn != 0);
|
||||||
#else
|
#else
|
||||||
ADL_UNUSED(loopEn);
|
ADL_UNUSED(loopEn);
|
||||||
|
|
|
@ -45,6 +45,7 @@
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
||||||
#include "opl.h"
|
#include "opl.h"
|
||||||
|
|
|
@ -155,7 +155,6 @@ typedef struct operator_struct {
|
||||||
class DBOPL : public OPLEmul
|
class DBOPL : public OPLEmul
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
Bitu chip_num;
|
|
||||||
op_type op[MAXOPERATORS];
|
op_type op[MAXOPERATORS];
|
||||||
|
|
||||||
Bits int_samplerate;
|
Bits int_samplerate;
|
||||||
|
|
|
@ -553,8 +553,6 @@ static const int8_t lfo_pm_table[8*8*2] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/* lock level of common table */
|
|
||||||
static int num_lock = 0;
|
|
||||||
|
|
||||||
/* work table */
|
/* work table */
|
||||||
static signed int phase_modulation; /* phase modulation input (SLOT 2) */
|
static signed int phase_modulation; /* phase modulation input (SLOT 2) */
|
||||||
|
|
|
@ -258,7 +258,6 @@ bool OPLmusicBlock::ServiceStream (void *buff, int numbytes)
|
||||||
std::lock_guard<std::mutex> lock(ChipAccess);
|
std::lock_guard<std::mutex> lock(ChipAccess);
|
||||||
while (numsamples > 0)
|
while (numsamples > 0)
|
||||||
{
|
{
|
||||||
double ticky = NextTickIn;
|
|
||||||
int tick_in = int(NextTickIn);
|
int tick_in = int(NextTickIn);
|
||||||
int samplesleft = std::min(numsamples, tick_in);
|
int samplesleft = std::min(numsamples, tick_in);
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
|
@ -361,9 +361,9 @@ OPNMIDI_EXPORT void opn2_setLoopEnabled(OPN2_MIDIPlayer *device, int loopEn)
|
||||||
{
|
{
|
||||||
if(!device)
|
if(!device)
|
||||||
return;
|
return;
|
||||||
MidiPlayer *play = GET_MIDI_PLAYER(device);
|
|
||||||
assert(play);
|
|
||||||
#ifndef OPNMIDI_DISABLE_MIDI_SEQUENCER
|
#ifndef OPNMIDI_DISABLE_MIDI_SEQUENCER
|
||||||
|
MidiPlayer *play = GET_MIDI_PLAYER(device);
|
||||||
|
assert(play);
|
||||||
play->m_sequencer.setLoopEnabled(loopEn != 0);
|
play->m_sequencer.setLoopEnabled(loopEn != 0);
|
||||||
#else
|
#else
|
||||||
ADL_UNUSED(loopEn);
|
ADL_UNUSED(loopEn);
|
||||||
|
|
|
@ -784,8 +784,6 @@ struct _sample * Instruments::load_gus_pat(const char *filename)
|
||||||
};
|
};
|
||||||
unsigned long int tmp_loop;
|
unsigned long int tmp_loop;
|
||||||
|
|
||||||
/*unused*/fix_release;
|
|
||||||
|
|
||||||
SAMPLE_CONVERT_DEBUG(__FUNCTION__); SAMPLE_CONVERT_DEBUG(filename);
|
SAMPLE_CONVERT_DEBUG(__FUNCTION__); SAMPLE_CONVERT_DEBUG(filename);
|
||||||
|
|
||||||
if ((gus_patch = _WM_BufferFile(sfreader, filename, &gus_size)) == NULL) {
|
if ((gus_patch = _WM_BufferFile(sfreader, filename, &gus_size)) == NULL) {
|
||||||
|
|
|
@ -1673,7 +1673,6 @@ static void do_control_data_entry_course(struct _mdi *mdi,
|
||||||
|
|
||||||
void Renderer::do_control_channel_volume(struct _mdi *mdi, struct _event_data *data)
|
void Renderer::do_control_channel_volume(struct _mdi *mdi, struct _event_data *data)
|
||||||
{
|
{
|
||||||
struct _note *note_data = mdi->note;
|
|
||||||
unsigned char ch = data->channel;
|
unsigned char ch = data->channel;
|
||||||
|
|
||||||
mdi->channel[ch].volume = (unsigned char)data->data;
|
mdi->channel[ch].volume = (unsigned char)data->data;
|
||||||
|
@ -1698,7 +1697,6 @@ void Renderer::do_control_channel_pan(struct _mdi *mdi, struct _event_data *data
|
||||||
|
|
||||||
void Renderer::do_control_channel_expression(struct _mdi *mdi, struct _event_data *data)
|
void Renderer::do_control_channel_expression(struct _mdi *mdi, struct _event_data *data)
|
||||||
{
|
{
|
||||||
struct _note *note_data = mdi->note;
|
|
||||||
unsigned char ch = data->channel;
|
unsigned char ch = data->channel;
|
||||||
|
|
||||||
mdi->channel[ch].expression = (unsigned char)data->data;
|
mdi->channel[ch].expression = (unsigned char)data->data;
|
||||||
|
@ -1844,7 +1842,6 @@ static void do_control_channel_sound_off(struct _mdi *mdi,
|
||||||
|
|
||||||
void Renderer::do_control_channel_controllers_off(struct _mdi *mdi, struct _event_data *data)
|
void Renderer::do_control_channel_controllers_off(struct _mdi *mdi, struct _event_data *data)
|
||||||
{
|
{
|
||||||
struct _note *note_data = mdi->note;
|
|
||||||
unsigned char ch = data->channel;
|
unsigned char ch = data->channel;
|
||||||
|
|
||||||
mdi->channel[ch].expression = 127;
|
mdi->channel[ch].expression = 127;
|
||||||
|
|
Loading…
Reference in a new issue