more const pointers in pcm_utils.[ch]
git-svn-id: https://svn.musicpd.org/mpd/trunk@7360 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
df34beb98d
commit
f201f2c922
@ -24,7 +24,7 @@
|
|||||||
#include "conf.h"
|
#include "conf.h"
|
||||||
#include "os_compat.h"
|
#include "os_compat.h"
|
||||||
|
|
||||||
void pcm_volumeChange(char *buffer, int bufferSize, AudioFormat * format,
|
void pcm_volumeChange(char *buffer, int bufferSize, const AudioFormat * format,
|
||||||
int volume)
|
int volume)
|
||||||
{
|
{
|
||||||
mpd_sint32 temp32;
|
mpd_sint32 temp32;
|
||||||
@ -389,8 +389,9 @@ static const char *pcm_convertTo16bit(mpd_sint8 bits, const char *inBuffer,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* outFormat bits must be 16 and channels must be 1 or 2! */
|
/* outFormat bits must be 16 and channels must be 1 or 2! */
|
||||||
size_t pcm_convertAudioFormat(AudioFormat * inFormat, const char *inBuffer,
|
size_t pcm_convertAudioFormat(const AudioFormat * inFormat,
|
||||||
size_t inSize, AudioFormat * outFormat,
|
const char *inBuffer, size_t inSize,
|
||||||
|
const AudioFormat * outFormat,
|
||||||
char *outBuffer, ConvState *convState)
|
char *outBuffer, ConvState *convState)
|
||||||
{
|
{
|
||||||
const char *buf;
|
const char *buf;
|
||||||
|
@ -42,14 +42,15 @@ typedef struct _ConvState {
|
|||||||
int error;
|
int error;
|
||||||
} ConvState;
|
} ConvState;
|
||||||
|
|
||||||
void pcm_volumeChange(char *buffer, int bufferSize, AudioFormat * format,
|
void pcm_volumeChange(char *buffer, int bufferSize, const AudioFormat * format,
|
||||||
int volume);
|
int volume);
|
||||||
|
|
||||||
void pcm_mix(char *buffer1, const char *buffer2, size_t bufferSize1,
|
void pcm_mix(char *buffer1, const char *buffer2, size_t bufferSize1,
|
||||||
size_t bufferSize2, const AudioFormat * format, float portion1);
|
size_t bufferSize2, const AudioFormat * format, float portion1);
|
||||||
|
|
||||||
size_t pcm_convertAudioFormat(AudioFormat * inFormat, const char *inBuffer,
|
size_t pcm_convertAudioFormat(const AudioFormat * inFormat,
|
||||||
size_t inSize, AudioFormat * outFormat,
|
const char *inBuffer, size_t inSize,
|
||||||
|
const AudioFormat * outFormat,
|
||||||
char *outBuffer, ConvState *convState);
|
char *outBuffer, ConvState *convState);
|
||||||
|
|
||||||
size_t pcm_sizeOfConvBuffer(const AudioFormat * inFormat, size_t inSize,
|
size_t pcm_sizeOfConvBuffer(const AudioFormat * inFormat, size_t inSize,
|
||||||
|
Loading…
Reference in New Issue
Block a user