2023-01-06 17:56:15 +00:00
|
|
|
/*
|
2023-01-10 19:16:36 +00:00
|
|
|
** Test program for _sound for atari
|
2023-01-06 17:56:15 +00:00
|
|
|
**
|
|
|
|
** January 6 2023 Mariano Domínguez
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <conio.h>
|
|
|
|
#include <atari.h>
|
|
|
|
#include <cc65.h>
|
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
int i=0;
|
|
|
|
printf("playing sound \n");
|
2023-01-10 19:16:36 +00:00
|
|
|
_sound(1,121,10,15); //voice, pitch, distortion, volume
|
2023-01-06 19:23:33 +00:00
|
|
|
for(i=0;i<9000;i++);
|
2023-01-10 19:16:36 +00:00
|
|
|
_sound(1,0,0,0); //silencing, same as Atari Basic
|
2023-01-06 17:56:15 +00:00
|
|
|
return 0;
|
|
|
|
}
|