- cleanup of the TimidityMIDIDevice(GUS) backend code to eliminate the storage in global variables and to remove the dependencies on core ZDoom code.
The organization here is now the same as for the Timidity++ device, i.e. it is the device owning the instruments to give better control over their lifecycle.
This commit is contained in:
parent
c107657ea8
commit
d557f609cf
24 changed files with 1547 additions and 916 deletions
|
|
@ -26,6 +26,10 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
#include "timidity.h"
|
||||
#include "common.h"
|
||||
#include "instrum.h"
|
||||
#include "playmidi.h"
|
||||
|
||||
|
||||
namespace Timidity
|
||||
{
|
||||
|
|
@ -561,10 +565,6 @@ void pre_resample(Renderer *song, Sample *sp)
|
|||
if (sp->scale_factor != 0)
|
||||
return;
|
||||
|
||||
cmsg(CMSG_INFO, VERB_NOISY, " * pre-resampling for note %d (%s%d)\n",
|
||||
sp->scale_note,
|
||||
note_name[sp->scale_note % 12], (sp->scale_note & 0x7F) / 12);
|
||||
|
||||
a = (sp->sample_rate * note_to_freq(sp->scale_note)) / (sp->root_freq * song->rate);
|
||||
if (a <= 0)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue