ugBASIC 1.18
An isomorphic BASIC language compiler for retrocomputers
Loading...
Searching...
No Matches
sound.c File Reference
#include "../../ugbc.h"

Go to the source code of this file.

Functions

void sound (Environment *_environment, int _freq, int _delay, int _channels)
 Emit ASM code for SOUND ....
void sound_vars (Environment *_environment, char *_freq, char *_delay, char *_channels)
 Emit ASM code for SOUND ....

Function Documentation

◆ sound()

void sound ( Environment * _environment,
int _freq,
int _delay,
int _channels )

Emit ASM code for SOUND ....

This function emits a code capable of play a frequency for a certain amount of time on specific channels

Parameters
_environmentCurrent calling environment
_freqfrequency to play
_delaydelay of frequency
_channelschannels to play on

Definition at line 56 of file sound.c.

◆ sound_vars()

void sound_vars ( Environment * _environment,
char * _freq,
char * _delay,
char * _channels )

Emit ASM code for SOUND ....

This function emits a code capable of play a frequency for a certain amount of time on specific channels

Parameters
_environmentCurrent calling environment
_freqfrequency to play
_delaydelay of frequency
_channelschannels to play on

Definition at line 78 of file sound.c.