Sound
Function number: 129
Generates a sound with the specified frequency, duration, volume, and sound channel.
Register entry values
AX = EE81
BX = Volume (0-15)
0 is the quietest
15 is the loudest
CX = Sound channel (0-2)
Indicates which one of the three sound channels to use
SI = Frequency (110 - 32767)
DI = Duration (0-65535)
Indicates the number of clock ticks the sound will last
Register exit values
None
Example
MOV AX,0EE81H ;Sound function
MOV BX,10 ;Set the volume
MOV CX,0 ;Set the sound channel
MOV SI,800 ;Set the frequency
MOV DI,5 ;Set the duration
INT 10H ;Call GRAFIX
Comments
See the 'ExtSound' function in chapter 2 for more information.