Intermec ck1 Guida Di Riferimento
Chapter 2 — Configuring the CK1 System
32
CK1 SDK Programmer’s Reference Manual
Setting System Volume
Purpose: Set the system volume with the specified value. This value is the default
value after you cold boot the CK1.
Syntax:
int devBuzzerSetSystemVolume(int NewVolume)
On-CK1 Parameters: NewVolume
Value to use as the new system volume (the value range is
between 0 to 100)
between 0 to 100)
On-CK1 Return: -1
Function
failed
0 Function
succeeded
On-Host Parameters: NewVolume No
action
On-Host Return: Always return 0
Restoring System Volume
Purpose: Restore the system volume to the original value before any adjusting by
calling devBuzzerAdjustSystemVolume().
Syntax:
int devBuzzerRestoreSystemVolume(void)
On-CK1 Parameters: None
On-CK1 Return: -1
Function
failed
0 Function
succeeded
On-Host Parameters: None
On-Host Return: Always return 0
Playing Sound
Purpose: Play a specified single frequency sound for a specified period of time with
specified volume.
Syntax:
int devBuzzerPlaySound(int freq, int length, int volume)
On-CK1 Parameters: freq
Specified frequency in Hz (the value range is between 20 to
20000)
20000)
length
Specified time in 100msec
volume
Volume of the sound (the value range is between 0 to 100)
(the actual volume of the sound is volume multiplied by system volume)
On-CK1 Return: -1
Function
failed
0 Function
succeeded
On-Host Parameters: freq
No action
length No
action