net.sourceforge.atunes.kernel.modules.cdripper.cdda2wav
Class Cdda2wav

java.lang.Object
  extended by net.sourceforge.atunes.kernel.modules.cdripper.cdda2wav.CdToWavConverter
      extended by net.sourceforge.atunes.kernel.modules.cdripper.cdda2wav.Cdda2wav

public class Cdda2wav
extends CdToWavConverter

Detects CD drives, gathers CD information and rip CD's all using cdda2wav (icedax).


Field Summary
 
Fields inherited from class net.sourceforge.atunes.kernel.modules.cdripper.cdda2wav.CdToWavConverter
cd, listener, noCdListener, process
 
Method Summary
 boolean cdda2wav(int track, java.io.File fileName)
          Ripps the selected tracks using cdda2wav or icedax.
 CDInfo getCDInfo()
           Gathers the various information from the audio CD and tries to get more info from either CDDB or CD Text if present.
 void notifyNoCd()
          Sets no CD found so a dialog gets displayed.
 void setListener(ProgressListener listener)
          Sets the listener.
 void setNoCdListener(NoCdListener noCdListener)
          Sets the no cd listener.
 void stop()
          Destroys the ripping process.
 
Methods inherited from class net.sourceforge.atunes.kernel.modules.cdripper.cdda2wav.CdToWavConverter
createNewConverterForOS, testTool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

cdda2wav

public boolean cdda2wav(int track,
                        java.io.File fileName)
Ripps the selected tracks using cdda2wav or icedax. The audio CD must have been detected previously and should not have moved (so still should be in the same drive as when it was detected.

Specified by:
cdda2wav in class CdToWavConverter
Parameters:
track - The track number of the song to be ripped.
fileName - The filename of the wav file that will be created.
Returns:
Returns true if the ripping process was successfull, false otherwise.

getCDInfo

public CDInfo getCDInfo()

Gathers the various information from the audio CD and tries to get more info from either CDDB or CD Text if present. Also checks if no or a data CD is inserted and gives a "No CD" message in this case. All found devices get probed until an audio CD is found or there are no more devices to get probed. Currently icedax does not support special characters and returns "_" instead. Cdda2wav is read using charset, what happens when other characters get into play is unknown.

Data tracks do get substracted from the total track number and are not considered! So data track must be the last one.

Specified by:
getCDInfo in class CdToWavConverter
Returns:
Returns either information about the inserted CD or false if no audio CD was found This includes: -Artist and album name -Total duration -CD id number -Number of tracks -Track names and duration

notifyNoCd

public void notifyNoCd()
Sets no CD found so a dialog gets displayed.

Overrides:
notifyNoCd in class CdToWavConverter

setListener

public void setListener(ProgressListener listener)
Sets the listener.

Overrides:
setListener in class CdToWavConverter
Parameters:
listener - the new listener

setNoCdListener

public void setNoCdListener(NoCdListener noCdListener)
Sets the no cd listener.

Overrides:
setNoCdListener in class CdToWavConverter
Parameters:
noCdListener - the new no cd listener

stop

public void stop()
Destroys the ripping process.

Overrides:
stop in class CdToWavConverter


Copyright © 2006-2008 The aTunes Team. All Rights Reserved.