aboutsummaryrefslogtreecommitdiff
path: root/src/audio_check.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-04-23 15:30:50 +0200
committerAnton Khirnov <anton@khirnov.net>2015-02-20 09:18:29 +0100
commit0bbe5ac82ef2845efafbf190044f16712db113b2 (patch)
treeac8745fba01c8a3e902e886f46f90ad56576559f /src/audio_check.h
parentc69c8ffa9ec55c94dee7ce69af26b4edbd61647e (diff)
Switch to Libav sample formats everywhere.
Drop 24bit format for now. It should be restored later by properly distinguishing between internal and packed formats.
Diffstat (limited to 'src/audio_check.h')
-rw-r--r--src/audio_check.h24
1 files changed, 10 insertions, 14 deletions
diff --git a/src/audio_check.h b/src/audio_check.h
index 9f71cf9c..17b8eb5b 100644
--- a/src/audio_check.h
+++ b/src/audio_check.h
@@ -25,31 +25,27 @@
#include <glib.h>
#include <stdbool.h>
+#include <libavutil/samplefmt.h>
+
/**
* The GLib quark used for errors reported by this library.
*/
-G_GNUC_CONST
-static inline GQuark
-audio_format_quark(void)
+static inline GQuark audio_format_quark(void)
{
- return g_quark_from_static_string("audio_format");
+ return g_quark_from_static_string("audio_format");
}
-bool
-audio_check_sample_rate(unsigned long sample_rate, GError **error_r);
+bool audio_check_sample_rate(unsigned long sample_rate, GError **error_r);
-bool
-audio_check_sample_format(enum sample_format, GError **error_r);
+bool audio_check_sample_format(enum AVSampleFormat, GError **error_r);
-bool
-audio_check_channel_count(unsigned sample_format, GError **error_r);
+bool audio_check_channel_count(unsigned sample_format, GError **error_r);
/**
* Wrapper for audio_format_init(), which checks all attributes.
*/
-bool
-audio_format_init_checked(struct audio_format *af, unsigned long sample_rate,
- enum sample_format sample_format, unsigned channels,
- GError **error_r);
+bool audio_format_init_checked(struct audio_format *af, unsigned long sample_rate,
+ enum AVSampleFormat sample_format, unsigned channels,
+ GError **error_r);
#endif