mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-26 11:22:17 -05:00
Fixed crackling issues
This commit is contained in:
parent
83aee6d7e1
commit
3e1cb17e22
@ -1339,13 +1339,13 @@
|
|||||||
<Sample Name="Koto" SampleRate="28508">
|
<Sample Name="Koto" SampleRate="28508">
|
||||||
<Offset Version="MQDebug" At="0x3926D0"/>
|
<Offset Version="MQDebug" At="0x3926D0"/>
|
||||||
</Sample>
|
</Sample>
|
||||||
<Sample Name="Some Manner of Drum?" SampleRate="32000">
|
<Sample Name="Some Manner of Drum" SampleRate="32000">
|
||||||
<Offset Version="MQDebug" At="0x396F80"/>
|
<Offset Version="MQDebug" At="0x396F80"/>
|
||||||
</Sample>
|
</Sample>
|
||||||
<Sample Name="Another Type of Drum?" SampleRate="32000">
|
<Sample Name="Another Type of Drum" SampleRate="32000">
|
||||||
<Offset Version="MQDebug" At="0x397FA0"/>
|
<Offset Version="MQDebug" At="0x397FA0"/>
|
||||||
</Sample>
|
</Sample>
|
||||||
<Sample Name="Quick Drum?" SampleRate="32000">
|
<Sample Name="Quick Drum" SampleRate="32000">
|
||||||
<Offset Version="MQDebug" At="0x399790"/>
|
<Offset Version="MQDebug" At="0x399790"/>
|
||||||
</Sample>
|
</Sample>
|
||||||
<Sample Name="Gong" SampleRate="32000">
|
<Sample Name="Gong" SampleRate="32000">
|
||||||
@ -1435,13 +1435,13 @@
|
|||||||
<Sample Name="Low Rumbling">
|
<Sample Name="Low Rumbling">
|
||||||
<Offset Version="MQDebug" At="0"/>
|
<Offset Version="MQDebug" At="0"/>
|
||||||
</Sample>
|
</Sample>
|
||||||
<Sample Name="Drum Sidestick?">
|
<Sample Name="Drum Sidestick">
|
||||||
<Offset Version="MQDebug" At="0xA590"/>
|
<Offset Version="MQDebug" At="0xA590"/>
|
||||||
</Sample>
|
</Sample>
|
||||||
<Sample Name="Low Drum?">
|
<Sample Name="Low Drum">
|
||||||
<Offset Version="MQDebug" At="0x8BC0"/>
|
<Offset Version="MQDebug" At="0x8BC0"/>
|
||||||
</Sample>
|
</Sample>
|
||||||
<Sample Name="Sweep Pad?">
|
<Sample Name="Sweep Pad">
|
||||||
<Offset Version="MQDebug" At="0xB3B0"/>
|
<Offset Version="MQDebug" At="0xB3B0"/>
|
||||||
</Sample>
|
</Sample>
|
||||||
<Sample Name="Organic Gurgling">
|
<Sample Name="Organic Gurgling">
|
||||||
@ -1470,7 +1470,7 @@
|
|||||||
<Sample Name="Goron Drum">
|
<Sample Name="Goron Drum">
|
||||||
<Offset Version="MQDebug" At="0"/>
|
<Offset Version="MQDebug" At="0"/>
|
||||||
</Sample>
|
</Sample>
|
||||||
<Sample Name="Bass Slap?">
|
<Sample Name="Bass Slap">
|
||||||
<Offset Version="MQDebug" At="0x2540"/>
|
<Offset Version="MQDebug" At="0x2540"/>
|
||||||
</Sample>
|
</Sample>
|
||||||
<Sample Name="Goron Ooh">
|
<Sample Name="Goron Ooh">
|
||||||
@ -1503,7 +1503,7 @@
|
|||||||
<Sample Name="Gong">
|
<Sample Name="Gong">
|
||||||
<Offset Version="MQDebug" At="0x12EB0"/>
|
<Offset Version="MQDebug" At="0x12EB0"/>
|
||||||
</Sample>
|
</Sample>
|
||||||
<Sample Name="Bass Slap?">
|
<Sample Name="Bass Slap">
|
||||||
<Offset Version="MQDebug" At="0x1D3E0"/>
|
<Offset Version="MQDebug" At="0x1D3E0"/>
|
||||||
</Sample>
|
</Sample>
|
||||||
<Sample Name="Windchimes">
|
<Sample Name="Windchimes">
|
||||||
|
@ -683,6 +683,9 @@ extern "C" SoundFontSample* ResourceMgr_LoadAudioSample(const char* path)
|
|||||||
sampleC->loop->end = sample->loop.end;
|
sampleC->loop->end = sample->loop.end;
|
||||||
sampleC->loop->count = sample->loop.count;
|
sampleC->loop->count = sample->loop.count;
|
||||||
|
|
||||||
|
for (int i = 0; i < 16; i++)
|
||||||
|
sampleC->loop->state[i] = 0;
|
||||||
|
|
||||||
for (int i = 0; i < sample->loop.states.size(); i++)
|
for (int i = 0; i < sample->loop.states.size(); i++)
|
||||||
sampleC->loop->state[i] = sample->loop.states[i];
|
sampleC->loop->state[i] = sample->loop.states[i];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user