aboutsummaryrefslogtreecommitdiff
path: root/src/audio_format.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-10 14:40:54 +0200
committerMax Kellermann <max@duempel.org>2008-10-10 14:40:54 +0200
commitde2cb3f37568e7680549057f8d7b6d748c388480 (patch)
tree46f9f43a1f83b49945c8a4fc77f933fad9230e01 /src/audio_format.h
parent6101dc6c768b09dbcdc1840a84b619a5a6a20129 (diff)
audio_format: renamed sampleRate to sample_rate
The last bit of CamelCase in audio_format.h. Additionally, rename a bunch of local variables.
Diffstat (limited to 'src/audio_format.h')
-rw-r--r--src/audio_format.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/audio_format.h b/src/audio_format.h
index dd9b3cae..2475aa77 100644
--- a/src/audio_format.h
+++ b/src/audio_format.h
@@ -23,27 +23,27 @@
#include <stdbool.h>
struct audio_format {
- uint32_t sampleRate;
+ uint32_t sample_rate;
uint8_t bits;
uint8_t channels;
};
static inline void audio_format_clear(struct audio_format *af)
{
- af->sampleRate = 0;
+ af->sample_rate = 0;
af->bits = 0;
af->channels = 0;
}
static inline bool audio_format_defined(const struct audio_format *af)
{
- return af->sampleRate != 0;
+ return af->sample_rate != 0;
}
static inline bool audio_format_equals(const struct audio_format *a,
const struct audio_format *b)
{
- return a->sampleRate == b->sampleRate &&
+ return a->sample_rate == b->sample_rate &&
a->bits == b->bits &&
a->channels == b->channels;
}
@@ -63,7 +63,7 @@ static inline unsigned audio_format_sample_size(const struct audio_format *af)
static inline double audio_format_time_to_size(const struct audio_format *af)
{
- return af->sampleRate * af->channels * audio_format_sample_size(af);
+ return af->sample_rate * af->channels * audio_format_sample_size(af);
}
static inline double audioFormatSizeToTime(const struct audio_format *af)