11 #define PWMSND_GPIO 19   
   12 #define PWMSND_SLICE    ((PWMSND_GPIO>>1)&7)  
   13 #define PWMSND_CHAN (PWMSND_GPIO&1)  
   15 #define SOUNDRATE   22050    
   16 #define PWMSND_TOP  255  
   17 #define PWMSND_CLOCK    (SOUNDRATE*(PWMSND_TOP+1))  
   20 #define SNDINT (1<<SNDFRAC)  
   23 extern const u8* CurSound;  
 
   24 extern volatile int SoundCnt;   
 
   26 extern volatile int SoundAcc;   
 
   27 extern const u8* NextSound; 
 
   28 extern int NextSoundCnt;    
 
   62 void PlaySound(
const u8* snd, 
int len, Bool rep = False, 
float speed = 1.0f);
 
void PWMSndInit()
Initialize PWM sound output.
Definition: pwmsnd.cpp:65
void PlaySound(const u8 *snd, int len, Bool rep=False, float speed=1.0f)
Output PWM sound.
Definition: pwmsnd.cpp:97
void SpeedSound(float speed)
Update sound speed.
Definition: pwmsnd.cpp:132
Bool PlayingSound()
Check if playing sound.
Definition: pwmsnd.cpp:138
void StopSound()
stop playing sound
Definition: pwmsnd.cpp:124
void SetNextSound(const u8 *snd, int len)
Set the next sound to play.
Definition: pwmsnd.cpp:144