2014-03-30 09:10:31 +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:
|
|
|
|
*
|
2018-10-01 15:32:39 +00:00
|
|
|
* http://ugfx.io/license.html
|
2014-03-30 09:10:31 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GAUDIO_PLAY_CONFIG_H
|
|
|
|
#define GAUDIO_PLAY_CONFIG_H
|
|
|
|
|
|
|
|
#if GFX_USE_GAUDIO && GAUDIO_NEED_PLAY
|
|
|
|
|
|
|
|
/*===========================================================================*/
|
|
|
|
/* Driver hardware support. */
|
|
|
|
/*===========================================================================*/
|
|
|
|
|
|
|
|
/* These may need to change for your hardware. If so copy this file to your
|
|
|
|
* project directory and then alter it.
|
|
|
|
* The maximum sample frequency should be less than
|
|
|
|
* Max PWM Clock / (2 ^ Bits per sample)
|
|
|
|
* eg. For the AT91SAM7 max PWM clock = 48MHz / 2
|
|
|
|
* For 10 bit PWM accuracy that means GAUDIO_PLAY_MAX_SAMPLE_FREQUENCY = 23,437 Hz
|
|
|
|
*/
|
|
|
|
#define GAUDIO_PLAY_MAX_SAMPLE_FREQUENCY 22000
|
|
|
|
#define GAUDIO_PLAY_NUM_FORMATS 2
|
|
|
|
#define GAUDIO_PLAY_FORMAT1 ARRAY_DATA_10BITUNSIGNED
|
|
|
|
#define GAUDIO_PLAY_FORMAT2 ARRAY_DATA_8BITUNSIGNED
|
|
|
|
#define GAUDIO_PLAY_NUM_CHANNELS 1
|
2018-02-27 07:44:21 +00:00
|
|
|
#define GAUDIO_PLAY_CHANNEL0_IS_STEREO GFXOFF
|
2014-03-30 09:10:31 +00:00
|
|
|
#define GAUDIO_PLAY_MONO 0
|
|
|
|
|
|
|
|
#endif /* GFX_USE_GAUDIO && GAUDIO_NEED_PLAY */
|
|
|
|
|
|
|
|
#endif /* GAUDIO_PLAY_CONFIG_H */
|