aboutsummaryrefslogblamecommitdiffstats
path: root/src/pcm_utils.h
blob: 9ce408310fc2c19ed5306df16ef6265389f237ed (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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