feat(templates/amd64-386): add define to tell if we are using float samples

This commit is contained in:
vsariola 2021-03-05 20:50:43 +02:00
parent b15de7f54a
commit a3bdf565fd

View File

@ -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}}