From 27ecb555eab378f9c7aacabd5d1a302a042becca Mon Sep 17 00:00:00 2001 From: Mariano Dominguez Date: Tue, 10 Jan 2023 11:16:36 -0800 Subject: [PATCH] Rename sound to _sound. remove extra comments. --- include/atari.h | 2 +- libsrc/atari/sound.s | 4 ++-- targettest/atari/sound.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/atari.h b/include/atari.h index e31463991..08b671ff4 100644 --- a/include/atari.h +++ b/include/atari.h @@ -239,7 +239,7 @@ extern void __fastcall__ _scroll (signed char numlines); /* 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 */ diff --git a/libsrc/atari/sound.s b/libsrc/atari/sound.s index 95431bbb4..a8b712770 100644 --- a/libsrc/atari/sound.s +++ b/libsrc/atari/sound.s @@ -5,10 +5,10 @@ ; atari lib ; .include "atari.inc" - .export _sound + .export __sound .import popa ; play sound, arguments: voice, pitch, distortion, volume. same as BASIC -.proc _sound +.proc __sound sta STORE2 ;save volume jsr popa ;get distortion sta STORE1 ;save distortion diff --git a/targettest/atari/sound.c b/targettest/atari/sound.c index 66d0ee3e3..d1c50e1b4 100644 --- a/targettest/atari/sound.c +++ b/targettest/atari/sound.c @@ -1,5 +1,5 @@ /* -** testprogram printing the default device +** Test program for _sound for atari ** ** January 6 2023 Mariano Domínguez */ @@ -13,8 +13,8 @@ int main(void) { int i=0; printf("playing sound \n"); - sound(1,121,10,15); + _sound(1,121,10,15); //voice, pitch, distortion, volume for(i=0;i<9000;i++); - sound(1,0,0,0); + _sound(1,0,0,0); //silencing, same as Atari Basic return 0; }