2013-12-22 11:38:57 +00:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2014-03-11 07:13:31 +00:00
|
|
|
* @file drivers/gaudio/Win32/gaudio_play_config.h
|
|
|
|
* @brief GAUDIO Play Driver config file.
|
2013-12-22 11:38:57 +00:00
|
|
|
*
|
2014-03-11 07:13:31 +00:00
|
|
|
* @addtogroup GAUDIO
|
2013-12-22 11:38:57 +00:00
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
2014-03-11 07:13:31 +00:00
|
|
|
#ifndef GAUDIO_PLAY_CONFIG_H
|
|
|
|
#define GAUDIO_PLAY_CONFIG_H
|
2013-12-22 11:38:57 +00:00
|
|
|
|
2014-03-11 07:13:31 +00:00
|
|
|
#if GFX_USE_GAUDIO && GAUDIO_NEED_PLAY
|
2013-12-22 11:38:57 +00:00
|
|
|
|
|
|
|
/*===========================================================================*/
|
|
|
|
/* Driver hardware support. */
|
|
|
|
/*===========================================================================*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief The maximum sample frequency supported by this audio device
|
|
|
|
*/
|
2014-03-11 07:13:31 +00:00
|
|
|
#define GAUDIO_PLAY_MAX_SAMPLE_FREQUENCY 44100
|
2013-12-22 11:38:57 +00:00
|
|
|
|
|
|
|
/**
|
2014-03-05 03:45:37 +00:00
|
|
|
* @brief The number of audio formats supported by this driver
|
2013-12-22 11:38:57 +00:00
|
|
|
*/
|
2014-03-11 07:13:31 +00:00
|
|
|
#define GAUDIO_PLAY_NUM_FORMATS 2
|
2013-12-22 11:38:57 +00:00
|
|
|
|
|
|
|
/**
|
2014-03-05 03:45:37 +00:00
|
|
|
* @brief The available audio sample formats in order of preference
|
2013-12-22 11:38:57 +00:00
|
|
|
*/
|
2014-03-11 07:13:31 +00:00
|
|
|
#define GAUDIO_PLAY_FORMAT1 ARRAY_DATA_16BITSIGNED
|
|
|
|
#define GAUDIO_PLAY_FORMAT2 ARRAY_DATA_8BITUNSIGNED
|
2013-12-22 11:38:57 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief The number of audio channels supported by this driver
|
|
|
|
*/
|
2014-03-11 07:13:31 +00:00
|
|
|
#define GAUDIO_PLAY_NUM_CHANNELS 2
|
2013-12-22 11:38:57 +00:00
|
|
|
|
|
|
|
/**
|
2014-03-06 10:02:16 +00:00
|
|
|
* @brief Whether each channel is mono or stereo
|
|
|
|
*/
|
2014-03-11 07:13:31 +00:00
|
|
|
#define GAUDIO_PLAY_CHANNEL0_IS_STEREO FALSE
|
|
|
|
#define GAUDIO_PLAY_CHANNEL1_IS_STEREO TRUE
|
2014-03-06 10:02:16 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief The list of audio channel names and their uses
|
2013-12-22 11:38:57 +00:00
|
|
|
* @{
|
|
|
|
*/
|
2014-03-11 07:13:31 +00:00
|
|
|
#define GAUDIO_PLAY_MONO 0
|
|
|
|
#define GAUDIO_PLAY_STEREO 1
|
2013-12-22 11:38:57 +00:00
|
|
|
/** @} */
|
|
|
|
|
2014-03-11 07:13:31 +00:00
|
|
|
#endif /* GFX_USE_GAUDIO && GAUDIO_NEED_PLAY */
|
2013-12-22 11:38:57 +00:00
|
|
|
|
2014-03-11 07:13:31 +00:00
|
|
|
#endif /* GAUDIO_PLAY_CONFIG_H */
|
2013-12-22 11:38:57 +00:00
|
|
|
/** @} */
|