Sound_Track_Playback.h 1.9 KB
Newer Older
hu's avatar
hu committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
/**************************************************************************//**
  * \file     Sound_Track_Playback.h
  * \brief    Sound track play driver header file
  * \details
  * \author   Zhang Xuan
  * \version  V1.0.0
  * \date     11-Oct-2018
  * \par      History:
  *           V1.0.0 Initial release
  * \par      Copyright:
  *           (c) Heilongjiang TYW Electronics co., LTD
******************************************************************************/
#ifndef _SOUND_TRACK_PLAYBACK_H_
#define _SOUND_TRACK_PLAYBACK_H_

/* Includes ------------------------------------------------------------------*/
//#include "include.h"
        //  #include "Sound_System.h"
          
     #include "TYW_stdint.h"   
                 
     
 #ifndef   SND_SYS_PCM_CHANNEL_ENABLE
#define   SND_SYS_PCM_CHANNEL_ENABLE        1
#endif



/////////////////////////
#if SND_SYS_PCM_CHANNEL_ENABLE
#include "PCM_Sound_Tracks.h"
#endif




/* C binding of definitions if building with C++ compiler */
/*#ifdef __cplusplus
extern  {
#endif
*/
/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */

extern void Sound_Track_Playback_Init ( void );

extern void Snd_PCM_Track_Play ( uint8_t TrackID, uint8_t Channel );
extern void Snd_PCM_Track_Repeat_Play ( uint8_t TrackID, uint8_t Channel );
extern void Snd_PCM_Track_Stop_Play ( uint8_t Channel );

extern void Snd_Gen_Track_Play ( uint8_t TrackID, uint8_t Channel );
extern void Snd_Gen_Track_Repeat_Play ( uint8_t TrackID, uint8_t Channel );
extern void Snd_Gen_Track_Stop_Play ( uint8_t Channel );

extern void Sound_Track_Playback_Service ( void );
/*
#ifdef __cplusplus
}
#endif
*/
#endif /* _SOUND_TRACK_PLAYBACK_H_ */