audio_format: converted typedef AudioFormat to struct audio_format

Get rid of CamelCase, and don't use a typedef, so we can
forward-declare it, and unclutter the include dependencies.
This commit is contained in:
Max Kellermann
2008-09-07 19:19:55 +02:00
parent bd81fd8b0c
commit f1dd9c209c
34 changed files with 98 additions and 83 deletions

View File

@@ -19,6 +19,7 @@
#include "normalize.h"
#include "compress.h"
#include "conf.h"
#include "audio_format.h"
#define DEFAULT_VOLUME_NORMALIZATION 0
@@ -39,7 +40,8 @@ void finishNormalization(void)
if (normalizationEnabled) CompressFree();
}
void normalizeData(char *buffer, int bufferSize, const AudioFormat *format)
void normalizeData(char *buffer, int bufferSize,
const struct audio_format *format)
{
if ((format->bits != 16) || (format->channels != 2)) return;