Skip to content
This repository was archived by the owner on Nov 22, 2023. It is now read-only.

Commit 27ecb55

Browse files
committed
Rename sound to _sound.
remove extra comments.
1 parent bf9fb6d commit 27ecb55

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

include/atari.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ extern void __fastcall__ _scroll (signed char numlines);
239239
/* Sound function */
240240
/*****************************************************************************/
241241

242-
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*/
242+
extern void __fastcall__ _sound (unsigned char voice, unsigned char frequency, unsigned char distortion, unsigned char volume);
243243

244244
/*****************************************************************************/
245245
/* Misc. functions */

libsrc/atari/sound.s

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
; atari lib
66
;
77
.include "atari.inc"
8-
.export _sound
8+
.export __sound
99
.import popa
1010
; play sound, arguments: voice, pitch, distortion, volume. same as BASIC
11-
.proc _sound
11+
.proc __sound
1212
sta STORE2 ;save volume
1313
jsr popa ;get distortion
1414
sta STORE1 ;save distortion

targettest/atari/sound.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** testprogram printing the default device
2+
** Test program for _sound for atari
33
**
44
** January 6 2023 Mariano Domínguez
55
*/
@@ -13,8 +13,8 @@ int main(void)
1313
{
1414
int i=0;
1515
printf("playing sound \n");
16-
sound(1,121,10,15);
16+
_sound(1,121,10,15); //voice, pitch, distortion, volume
1717
for(i=0;i<9000;i++);
18-
sound(1,0,0,0);
18+
_sound(1,0,0,0); //silencing, same as Atari Basic
1919
return 0;
2020
}

0 commit comments

Comments
 (0)