#!/bin/bash

M1=M
M2=("Write Mixed Mode CD Track-At-Once")

function write_mixed_mode_tao_cd {

    msgbox "Specify Data Directory
First, put all audio files and a raw image in this directory
Data file must be named cdimage.raw
Audio files must be numbered (01.wav, 02.wav, etc)"

    select_inputdir

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

	eject_cdrw
	cd $INDIR

	exec_command "cdrecord -v \
			       speed=$SPEED \
			       dev=$GENERIC \
			       fs=${BUFFERS}m \
			       $FORCE2 \
			       $DUMMY \
			       -eject \
			       -data ./cdimage.raw \
			       -audio ./*.wav"

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

    done
}
