diff options
Diffstat (limited to '')
-rw-r--r-- | src/pcm_utils.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/pcm_utils.h b/src/pcm_utils.h new file mode 100644 index 000000000..9ce408310 --- /dev/null +++ b/src/pcm_utils.h @@ -0,0 +1,16 @@ +#ifndef PCM_UTILS_H +#define PMC_UTILS_H + +#include "audio.h" + +#include <stdlib.h> + +void pcm_changeBufferEndianness(char * buffer, int bufferSize, int bits); + +void pcm_volumeChange(char * buffer, int bufferSize, AudioFormat * format, + int volume); + +void pcm_mix(char * buffer1, char * buffer2, size_t bufferSize1, + size_t bufferSize2, AudioFormat * format, float portion1); + +#endif |