GINO Graphics Suite - GINO v9.0  

gPlaySound

Syntax

[C/C++:]
void gPlaySound(int freq, int time);
[F90:]
subroutine gPlaySound(freq, time)
integer, intent(in) :: freq,time

Arguments

freq
Frequency

time
Time in milliseconds

Description

The system utility gPlaySound() attempts to sound a note using hardware system sound resources if available. If a note of the specified frequency and/or time is not possible (e.g. under UNIX and OpenVMS), a simple 'BEEP' may be sounded by the system.

Under Windows implementations of GINO, negative values of freq can be used to access the different Windows alert sounds. If available, the defined values of these sounds are found in the <windows.h> or <windows.ins> file. Thus:

gPlaySound(-MB_ICONHAND,0)

or

gPlaySound(-16,0)

will play the System Asterisk entry in the [sounds] section of WIN.INI. Other values include:

-MB_ICONQUESTION -32

-MB_ICONEXCLAMATION -48

-MB_ICONASTERISK  -64

See Also

gPlaySound Usage