From a3bdf565fd5d3e500452d5dd27466230162d3429 Mon Sep 17 00:00:00 2001 From: vsariola <5684185+vsariola@users.noreply.github.com> Date: Fri, 5 Mar 2021 20:50:43 +0200 Subject: [PATCH] feat(templates/amd64-386): add define to tell if we are using float samples --- templates/amd64-386/player.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/amd64-386/player.h b/templates/amd64-386/player.h index 1ff7f19..23e23a5 100644 --- a/templates/amd64-386/player.h +++ b/templates/amd64-386/player.h @@ -27,9 +27,11 @@ {{- if .Output16Bit}} typedef short SUsample; #define SU_SAMPLE_RANGE 32767.0 +#define SU_SAMPLE_PCM16 {{- else}} typedef float SUsample; #define SU_SAMPLE_RANGE 1.0 +#define SU_SAMPLE_FLOAT {{- end}}