mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-18 04:54:27 -04:00
feat(templates/amd64-386): add define to tell if we are using float samples
This commit is contained in:
@ -27,9 +27,11 @@
|
|||||||
{{- if .Output16Bit}}
|
{{- if .Output16Bit}}
|
||||||
typedef short SUsample;
|
typedef short SUsample;
|
||||||
#define SU_SAMPLE_RANGE 32767.0
|
#define SU_SAMPLE_RANGE 32767.0
|
||||||
|
#define SU_SAMPLE_PCM16
|
||||||
{{- else}}
|
{{- else}}
|
||||||
typedef float SUsample;
|
typedef float SUsample;
|
||||||
#define SU_SAMPLE_RANGE 1.0
|
#define SU_SAMPLE_RANGE 1.0
|
||||||
|
#define SU_SAMPLE_FLOAT
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user