From 6336b86ab82a189d0aacf2071b04604a6b4732d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Tue, 8 Dec 2020 14:39:14 +0100 Subject: [PATCH] GameKit: gcc2 build fix --- src/kits/game/FileGameSound.cpp | 10 +++++++++- src/kits/game/GameSoundBuffer.cpp | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/kits/game/FileGameSound.cpp b/src/kits/game/FileGameSound.cpp index 97d1596455..5efc23f26d 100644 --- a/src/kits/game/FileGameSound.cpp +++ b/src/kits/game/FileGameSound.cpp @@ -32,7 +32,15 @@ struct _gs_media_tracker { // Local utility functions ----------------------------------------------- -template +template +inline bool +FillBuffer(_gs_ramp* ramp, T* dest, const T* src, size_t* bytes) +{ + return ::FillBuffer(ramp, dest, src, bytes); +} + + +template bool FillBuffer(_gs_ramp* ramp, T* dest, const T* src, size_t* bytes) { diff --git a/src/kits/game/GameSoundBuffer.cpp b/src/kits/game/GameSoundBuffer.cpp index aff439b480..578db6930e 100644 --- a/src/kits/game/GameSoundBuffer.cpp +++ b/src/kits/game/GameSoundBuffer.cpp @@ -43,7 +43,15 @@ #include "GSUtility.h" // Sound Buffer Utility functions ---------------------------------------- -template +template +static inline void +ApplyMod(T* data, int64 index, float* pan) +{ + return ApplyMod(data, index, pan); +} + + +template static inline void ApplyMod(T* data, int64 index, float* pan) {