A controller for a data recorder controls data recording to prevent buffer
overrun errors. The data recorder emits a laser beam against a recording
medium to record data. The data has a level that determines the power of
the laser beam. When there is a possibility of a buffer overrun, the
controller interrupts data recording. The controller interrupts data
recording when the power of the laser beam is a low level and restarts
data recording with the laser beam generated at the low level.