shithub: ft²

Download patch

ref: da4f449d57ed0de4ac6386a753bbce58491d4b64
parent: fdcc53f651378abc003591a8e2371af7d6b393a1
parent: c923ad1be8e33036ac95e4a405a75551eb693bf4
author: Olav Sørensen <olav.sorensen@live.no>
date: Tue May 9 15:26:37 EDT 2023

Merge pull request #39 from ftrvxmtrx/fixes

Small compiler fixes by @ftrvxmtrx 

--- a/src/ft2_replayer.c
+++ b/src/ft2_replayer.c
@@ -1604,7 +1604,7 @@
 #ifdef HAS_MIDI
 	if (ch->midiVibDepth > 0 || ins->autoVibDepth > 0)
 #else
-	if (ins->vibDepth > 0)
+	if (ins->autoVibDepth > 0)
 #endif
 	{
 		uint16_t autoVibAmp;
--- a/src/mixer/ft2_center_mix.h
+++ b/src/mixer/ft2_center_mix.h
@@ -61,4 +61,4 @@
 void centerMix16bRampBidiLoopLIntrp(voice_t *v, uint32_t bufferPos, uint32_t numSamples);
 void centerMix16bRampNoLoopS16Intrp(voice_t *v, uint32_t bufferPos, uint32_t numSamples);
 void centerMix16bRampLoopS16Intrp(voice_t *v, uint32_t bufferPos, uint32_t numSamples);
-void centerMix16bRampBidiLoopS16Intrp(voice_t *v, uint32_t bufferPos, uint32_t numSamples);
\ No newline at end of file
+void centerMix16bRampBidiLoopS16Intrp(voice_t *v, uint32_t bufferPos, uint32_t numSamples);
--- a/src/smploaders/ft2_load_aiff.c
+++ b/src/smploaders/ft2_load_aiff.c
@@ -8,6 +8,7 @@
 #include <stdio.h>
 #include <stdint.h>
 #include <stdbool.h>
+#include <math.h>
 #include "../ft2_header.h"
 #include "../ft2_audio.h"
 #include "../ft2_sample_ed.h"