aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gaudio/Win32/gaudio_play_config.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-03-11 17:13:31 +1000
committerinmarket <andrewh@inmarket.com.au>2014-03-11 17:13:31 +1000
commitea5a1b849df6e5085a92957ad387f9e653674415 (patch)
tree72ede5ed78263a6fdba25039398b5c2a55bd1d3a /drivers/gaudio/Win32/gaudio_play_config.h
parent944c33cbff5f2cfb1c80f48193aa2161574864fd (diff)
downloaduGFX-ea5a1b849df6e5085a92957ad387f9e653674415.tar.gz
uGFX-ea5a1b849df6e5085a92957ad387f9e653674415.tar.bz2
uGFX-ea5a1b849df6e5085a92957ad387f9e653674415.zip
Combine GAUDIN and GAUDOUT into a single GAUDIO module.
Simplify GAUDIN (now GAUDIO RECORD) api. Update audio demo's to match. Port Win32 driver to new audio api.
Diffstat (limited to 'drivers/gaudio/Win32/gaudio_play_config.h')
-rw-r--r--drivers/gaudio/Win32/gaudio_play_config.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/drivers/gaudio/Win32/gaudio_play_config.h b/drivers/gaudio/Win32/gaudio_play_config.h
new file mode 100644
index 00000000..4013e91f
--- /dev/null
+++ b/drivers/gaudio/Win32/gaudio_play_config.h
@@ -0,0 +1,63 @@
+/*
+ * This file is subject to the terms of the GFX License. If a copy of
+ * the license was not distributed with this file, you can obtain one at:
+ *
+ * http://ugfx.org/license.html
+ */
+
+/**
+ * @file drivers/gaudio/Win32/gaudio_play_config.h
+ * @brief GAUDIO Play Driver config file.
+ *
+ * @addtogroup GAUDIO
+ * @{
+ */
+
+#ifndef GAUDIO_PLAY_CONFIG_H
+#define GAUDIO_PLAY_CONFIG_H
+
+#if GFX_USE_GAUDIO && GAUDIO_NEED_PLAY
+
+/*===========================================================================*/
+/* Driver hardware support. */
+/*===========================================================================*/
+
+/**
+ * @brief The maximum sample frequency supported by this audio device
+ */
+#define GAUDIO_PLAY_MAX_SAMPLE_FREQUENCY 44100
+
+/**
+ * @brief The number of audio formats supported by this driver
+ */
+#define GAUDIO_PLAY_NUM_FORMATS 2
+
+/**
+ * @brief The available audio sample formats in order of preference
+ */
+#define GAUDIO_PLAY_FORMAT1 ARRAY_DATA_16BITSIGNED
+#define GAUDIO_PLAY_FORMAT2 ARRAY_DATA_8BITUNSIGNED
+
+/**
+ * @brief The number of audio channels supported by this driver
+ */
+#define GAUDIO_PLAY_NUM_CHANNELS 2
+
+/**
+ * @brief Whether each channel is mono or stereo
+ */
+#define GAUDIO_PLAY_CHANNEL0_IS_STEREO FALSE
+#define GAUDIO_PLAY_CHANNEL1_IS_STEREO TRUE
+
+/**
+ * @brief The list of audio channel names and their uses
+ * @{
+ */
+#define GAUDIO_PLAY_MONO 0
+#define GAUDIO_PLAY_STEREO 1
+/** @} */
+
+#endif /* GFX_USE_GAUDIO && GAUDIO_NEED_PLAY */
+
+#endif /* GAUDIO_PLAY_CONFIG_H */
+/** @} */