Cleaned the project a little
This commit is contained in:
@@ -21,6 +21,9 @@ void InitTimer();
|
||||
|
||||
void InitAudio();
|
||||
|
||||
void ClearTimer0();
|
||||
|
||||
void SetAudio(int value);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -41,5 +41,6 @@ void Resize_Window(Rectangle area);
|
||||
void Refresh_Area(Rectangle area);
|
||||
void DrawPlayer(Player player, Rectangle areaToDraw);
|
||||
void DrawText(Point starting_point,char text[],Size charSize);
|
||||
void Refresh_Player_Area(Rectangle area,Rectangle Hitbox);
|
||||
|
||||
#endif /* SPI_H_ */
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ void TIMER0_IRQHandler(void){
|
||||
//8000HZ smaple rate
|
||||
ClearTimer0();
|
||||
audioValue ++;
|
||||
if(audioValue >= 96000-1)
|
||||
if(audioValue >= 886724-1)
|
||||
audioValue = 0;
|
||||
SetAudio(AllMyFellas_wav[audioValue]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user