84
addSound
Adds the turning on of the buzzer to the command buffer. Sets the buzzer.
Syntax
public void addSound(int pattern, int repeat)
throws EposException
Parameter
pattern : Specifies the buzzer pattern.
repeat : Specifies the number of repeats.
Exceptions
When processing fails, EposException is thrown with one of the following error values.
• Not available in page mode.
• The buzzer function and the drawer cannot be used together.
• This API function cannot be used if the printer is not provided with the buzzer.
Set value Description
Builder.PATTERN_A Pattern A
Builder.PATTERN_B Pattern B
Builder.PATTERN_C Pattern C
Builder.PATTERN_D Pattern D
Builder.PATTERN_E Pattern E
Builder.PATTERN_ERROR Error sound pattern
Builder.PATTERN_PAPER_END Pattern when there is no paper
Builder.PARAM_DEFAULT Pattern A
Set value Description
1 to 255 Number of repeats
Builder.PARAM_DEFAULT One time
Error status Description
ERR_PARAM Invalid parameter was passed.
ERR_MEMORY Could not allocate memory.
ERR_FAILURE An unspecified error occurred.