mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-14 16:40:56 +00:00
635b496165
- In order to use ZDoom's own MIDI sequencer event handling must be completely separate from mixing, but WildMidi had them intertwined because it wasn't designed for external sequencers. - Also remove all 'long's defining the output buffers to avoid having something that's 32 bits wide on Windows and 64 bits wide on Linux.
57 lines
1.8 KiB
C
57 lines
1.8 KiB
C
/*
|
|
reverb.h
|
|
|
|
Midi Wavetable Processing library
|
|
|
|
Copyright (C) Chris Ison 2001-2011
|
|
Copyright (C) Bret Curtis 2013-2014
|
|
|
|
This file is part of WildMIDI.
|
|
|
|
WildMIDI is free software: you can redistribute and/or modify the player
|
|
under the terms of the GNU General Public License and you can redistribute
|
|
and/or modify the library under the terms of the GNU Lesser General Public
|
|
License as published by the Free Software Foundation, either version 3 of
|
|
the licenses, or(at your option) any later version.
|
|
|
|
WildMIDI is distributed in the hope that it will be useful, but WITHOUT
|
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License and
|
|
the GNU Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License and the
|
|
GNU Lesser General Public License along with WildMIDI. If not, see
|
|
<http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef __REVERB_H
|
|
#define __REVERB_H
|
|
|
|
struct _rvb {
|
|
/* filter data */
|
|
signed int l_buf_flt_in[8][6][2];
|
|
signed int l_buf_flt_out[8][6][2];
|
|
signed int r_buf_flt_in[8][6][2];
|
|
signed int r_buf_flt_out[8][6][2];
|
|
signed int coeff[8][6][5];
|
|
/* buffer data */
|
|
signed int *l_buf;
|
|
signed int *r_buf;
|
|
int l_buf_size;
|
|
int r_buf_size;
|
|
int l_out;
|
|
int r_out;
|
|
int l_sp_in[8];
|
|
int r_sp_in[8];
|
|
int l_in[4];
|
|
int r_in[4];
|
|
int gain;
|
|
unsigned long int max_reverb_time;
|
|
};
|
|
|
|
extern void _WM_reset_reverb (struct _rvb *rvb);
|
|
extern struct _rvb *_WM_init_reverb(int rate, float room_x, float room_y, float listen_x, float listen_y);
|
|
extern void _WM_free_reverb (struct _rvb *rvb);
|
|
extern void _WM_do_reverb (struct _rvb *rvb, signed int *buffer, int size);
|
|
|
|
#endif /* __REVERB_H */
|