org.mmbase.util.media.audio
Class AudioUtils

java.lang.Object
  |
  +--org.mmbase.util.media.MediaUtils
        |
        +--org.mmbase.util.media.audio.AudioUtils

public class AudioUtils
extends MediaUtils

Rawaudio related file.

Version:
$Id: AudioUtils.java,v 1.10 2002/01/28 16:35:01 pierre Exp $
Author:
Daniel Ockeloen, David van Zeventer, Rico Jansen

Constructor Summary
AudioUtils()
           
 
Method Summary
static java.lang.String getAudiopartUrl(MMBase mmbase, int number, scanpage sp, int speed, int channels)
           
static java.lang.String getAudioUrl(MMBase mmbase, scanpage sp, int number, int speed, int channels)
           
static RawAudioDef getBestRawAudio(java.util.Vector rawaudios, int wantedspeed, int wantedchannels)
          Find a best match in rawaudios: - if a g2 file is found which is encoded (status=done), set this as preffered - else find r5 file with best match with respect to wanted speed/channels
static java.util.Vector getRawAudios(MMBase mm, int number)
          Vector with MMObjectNodes (rawaudios), number can be cdtrack or audiopart
static java.util.Vector getRawAudios(MMBase mmbase, int tracknumber, boolean sort)
           
 
Methods inherited from class org.mmbase.util.media.MediaUtils
getBestMirrorUrl, main, makeRealCompatible, plusToProcent20
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioUtils

public AudioUtils()
Method Detail

getRawAudios

public static java.util.Vector getRawAudios(MMBase mm,
                                            int number)
Vector with MMObjectNodes (rawaudios), number can be cdtrack or audiopart

getBestRawAudio

public static RawAudioDef getBestRawAudio(java.util.Vector rawaudios,
                                          int wantedspeed,
                                          int wantedchannels)
Find a best match in rawaudios: - if a g2 file is found which is encoded (status=done), set this as preffered - else find r5 file with best match with respect to wanted speed/channels

getRawAudios

public static java.util.Vector getRawAudios(MMBase mmbase,
                                            int tracknumber,
                                            boolean sort)

getAudioUrl

public static java.lang.String getAudioUrl(MMBase mmbase,
                                           scanpage sp,
                                           int number,
                                           int speed,
                                           int channels)

getAudiopartUrl

public static java.lang.String getAudiopartUrl(MMBase mmbase,
                                               int number,
                                               scanpage sp,
                                               int speed,
                                               int channels)


MMBase 2002