summaryrefslogtreecommitdiff
path: root/src/codec
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2024-10-29 16:06:12 -0400
committerAndrew Opalach <andrew@akon.city> 2024-10-29 16:15:23 -0400
commit355480f408e88b69717b934bace4e5e69856ad23 (patch)
treeabd46100759e23a83e9675ed2c3be01b538f1421 /src/codec
parent846e17728f2ed2af3672987ef61853f0bc96c224 (diff)
downloadcamu-355480f408e88b69717b934bace4e5e69856ad23.tar.gz
camu-355480f408e88b69717b934bace4e5e69856ad23.tar.bz2
camu-355480f408e88b69717b934bace4e5e69856ad23.zip
Cleanup, improve volume calculations
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/codec')
-rw-r--r--src/codec/codec.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/codec/codec.h b/src/codec/codec.h
index 68f45f6..6fd42e9 100644
--- a/src/codec/codec.h
+++ b/src/codec/codec.h
@@ -1,6 +1,5 @@
#pragma once
-#include <al/types.h>
#include <al/array.h>
#include <aki/common.h>
#ifdef CAMU_HAVE_FFMPEG
@@ -243,7 +242,7 @@ static const char *camu_audio_format_name(s32 format)
static inline s32 camu_audio_format_bytes_per_sample(struct camu_audio_format *fmt)
{
-#if CAMU_HAVE_FFMPEG
+#ifdef CAMU_HAVE_FFMPEG
return av_get_bytes_per_sample(fmt->format);
#else
switch (fmt->format) {