Rename sound to _sound.

remove extra comments.
This commit is contained in:
Mariano Dominguez 2023-01-10 11:16:36 -08:00
parent bf9fb6dcdb
commit 27ecb555ea
No known key found for this signature in database
GPG Key ID: 0A44A5E2185FDC5F
3 changed files with 6 additions and 6 deletions

View File

@ -239,7 +239,7 @@ extern void __fastcall__ _scroll (signed char numlines);
/* Sound function */ /* Sound function */
/*****************************************************************************/ /*****************************************************************************/
extern void __fastcall__ sound (unsigned char voice, unsigned char frequency, unsigned char distortion, unsigned char volume); /* plays a sound in the specidied voice, to silence call with in other params*/ extern void __fastcall__ _sound (unsigned char voice, unsigned char frequency, unsigned char distortion, unsigned char volume);
/*****************************************************************************/ /*****************************************************************************/
/* Misc. functions */ /* Misc. functions */

View File

@ -5,10 +5,10 @@
; atari lib ; atari lib
; ;
.include "atari.inc" .include "atari.inc"
.export _sound .export __sound
.import popa .import popa
; play sound, arguments: voice, pitch, distortion, volume. same as BASIC ; play sound, arguments: voice, pitch, distortion, volume. same as BASIC
.proc _sound .proc __sound
sta STORE2 ;save volume sta STORE2 ;save volume
jsr popa ;get distortion jsr popa ;get distortion
sta STORE1 ;save distortion sta STORE1 ;save distortion

View File

@ -1,5 +1,5 @@
/* /*
** testprogram printing the default device ** Test program for _sound for atari
** **
** January 6 2023 Mariano Domínguez ** January 6 2023 Mariano Domínguez
*/ */
@ -13,8 +13,8 @@ int main(void)
{ {
int i=0; int i=0;
printf("playing sound \n"); printf("playing sound \n");
sound(1,121,10,15); _sound(1,121,10,15); //voice, pitch, distortion, volume
for(i=0;i<9000;i++); for(i=0;i<9000;i++);
sound(1,0,0,0); _sound(1,0,0,0); //silencing, same as Atari Basic
return 0; return 0;
} }