#!/bin/bash

E1=E
E2=("Copy Audio CD - Two drives")

function copy_audio_cd {

    if [ "$HELP" = "on" ]; then

	msgbox \
"Use this option if you want to copy an audio\n
CD \"on the fly\" from your CDROM drive to\n
your CDRW drive. This means that no temporary\n
file is created and all data is copied\n
directly between the two drives.\n
You need a fast computer for this"

    fi

    eject_cdrom

    YNRETVAL=0

    until [ "$YNRETVAL" != "0" ]; do

	#init_scsi
	eject_cdrw

	exec_command "cdrdao copy \
			     --on-the-fly \
			     --source-device $CDROM \
			     --device $GENERIC \
			     --speed  $SPEED \
			     --driver $CDRW_DRIVER:$CDRW_DRIVER_OPTIONS \
			     --buffers $BUFFERS \
			     --eject \
			     $SIMULATE \
			     $FORCE1"

	yesnobox "Repeat this session ? (Take out the CD-R(W) disk)"

    done

}
