Examples of JavaLayerException


Examples of javazoom.jl.decoder.JavaLayerException

    }
    catch (Throwable ex) {
      t = ex;
    }
    if (source == null)
      throw new JavaLayerException("Cannot obtain source audio line", t);
  }
View Full Code Here

Examples of javazoom.jl.decoder.JavaLayerException

  {
    AudioDevice device = null;
    AudioDeviceFactory[] factories = getFactoriesPriority();
   
    if (factories==null)
      throw new JavaLayerException(this+": no factories registered");
   
    JavaLayerException lastEx = null;
    for (int i=0; (device==null) && (i<factories.length); i++)
    {
      try
      {
        device = factories[i].createAudioDevice();
      }
      catch (JavaLayerException ex)
      {
        lastEx = ex;
      }
    }
   
    if (device==null && lastEx!=null)
    {
      throw new JavaLayerException("Cannot create AudioDevice", lastEx)
    }
   
    return device;
  }
View Full Code Here

Examples of javazoom.jl.decoder.JavaLayerException

          }
          catch (LineUnavailableException ex)
          {
              t = ex;
          }
    if (source==null) throw new JavaLayerException("cannot obtain source audio line", t);
    }
View Full Code Here

Examples of javazoom.jl.decoder.JavaLayerException

      flush();
      close();
    }
    catch (RuntimeException ex)
    {
      throw new JavaLayerException("Device test failed: "+ex);
    }

  }
View Full Code Here

Examples of javazoom.jl.decoder.JavaLayerException

      Player player = new Player(in, dev);
      player.play();
    }
    catch (IOException ex)
    {
      throw new JavaLayerException("Problem playing file "+fFilename, ex);
    }
    catch (Exception ex)
    {
      throw new JavaLayerException("Problem playing file "+fFilename, ex);
    }
  }
View Full Code Here

Examples of javazoom.jl.decoder.JavaLayerException

    {     
      return createAudioDeviceImpl();
    }
    catch (Exception ex)
    {
      throw new JavaLayerException("unable to create JavaSound device: "+ex);
    }
    catch (LinkageError ex)
    {
      throw new JavaLayerException("unable to create JavaSound device: "+ex);
    }
  }
View Full Code Here

Examples of javazoom.jl.decoder.JavaLayerException

      JavaSoundAudioDevice dev = (JavaSoundAudioDevice)instantiate(loader, DEVICE_CLASS_NAME);
      return dev;
    }
    catch (Exception ex)
    {
      throw new JavaLayerException("Cannot create JavaSound device", ex);
    }
    catch (LinkageError ex)
    {
      throw new JavaLayerException("Cannot create JavaSound device", ex);
    }
   
  }
View Full Code Here

Examples of javazoom.jl.decoder.JavaLayerException

                                     
      bitstream.closeFrame();
    }   
    catch (RuntimeException ex)
    {
      throw new JavaLayerException("Exception decoding audio frame", ex);
    }
/*
    catch (IOException ex)
    {
      System.out.println("exception decoding audio frame: "+ex);
View Full Code Here

Examples of javazoom.jl.decoder.JavaLayerException

    try {
      InputStream in = openInput(sourceName);
      convert(in, destName, progressListener, decoderParams);
      in.close();
    } catch(IOException ioe) {
      throw new JavaLayerException(ioe.getLocalizedMessage(), ioe);
    }
  }
View Full Code Here

Examples of javazoom.jl.decoder.JavaLayerException

          {
            boolean stop = !progressListener.converterException(ex);

            if (stop)
            {
              throw new JavaLayerException(ex.getLocalizedMessage(), ex);
            }
          }
        }

      }
      finally
      {

        if (output!=null)
          output.close();
      }

      int time = (int)(System.currentTimeMillis()-startTime);
      progressListener.converterUpdate(ProgressListener.UPDATE_CONVERT_COMPLETE,
        time, frame);
    }
    catch (IOException ex)
    {
      throw new JavaLayerException(ex.getLocalizedMessage(), ex);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.