Package javazoom.jlgui.basicplayer

Examples of javazoom.jlgui.basicplayer.BasicPlayerException


            m_status = OPENED;
            notifyEvent(BasicPlayerEvent.OPENED, getEncodedStreamPosition(), -1, null);
        }
        catch (LineUnavailableException e)
        {
            throw new BasicPlayerException(e);
        }
        catch (UnsupportedAudioFileException e)
        {
            throw new BasicPlayerException(e);
        }
        catch (IOException e)
        {
            throw new BasicPlayerException(e);
        }
    }
View Full Code Here


                            }
                        }
                    }
                    catch (InterruptedException e)
                    {
                        throw new BasicPlayerException(BasicPlayerException.WAITERROR, e);
                    }
                }
            }
            // Open SourceDataLine.
            try
            {
                initLine();
            }
            catch (LineUnavailableException e)
            {
                throw new BasicPlayerException(BasicPlayerException.CANNOTINITLINE, e);
            }
            log.info("Creating new thread");
            m_thread = new Thread(this, "BasicPlayer");
            m_thread.start();
            if (m_line != null)
View Full Code Here

                        {
                            skipped = m_audioInputStream.skip(bytes - totalSkipped);
                            if (skipped == 0) break;
                            totalSkipped = totalSkipped + skipped;
                            log.info("Skipped : " + totalSkipped + "/" + bytes);
                            if (totalSkipped == -1) throw new BasicPlayerException(BasicPlayerException.SKIPNOTSUPPORTED);
                        }
                    }
                }
                notifyEvent(BasicPlayerEvent.SEEKED, getEncodedStreamPosition(), -1, null);
                m_status = OPENED;
                if (previousStatus == PLAYING) startPlayback();
                else if (previousStatus == PAUSED)
                {
                    startPlayback();
                    pausePlayback();
                }
            }
            catch (IOException e)
            {
                throw new BasicPlayerException(e);
            }
        }
        return totalSkipped;
    }
View Full Code Here

        {
            log.debug("Pan : " + fPan);
            m_panControl.setValue((float) fPan);
            notifyEvent(BasicPlayerEvent.PAN, getEncodedStreamPosition(), fPan, null);
        }
        else throw new BasicPlayerException(BasicPlayerException.PANCONTROLNOTSUPPORTED);
    }
View Full Code Here

            double valueDB = minGainDB + (1 / cste) * Math.log(1 + (Math.exp(cste * ampGainDB) - 1) * fGain);
            log.debug("Gain : " + valueDB);
            m_gainControl.setValue((float) valueDB);
            notifyEvent(BasicPlayerEvent.GAIN, getEncodedStreamPosition(), fGain, null);
        }
        else throw new BasicPlayerException(BasicPlayerException.GAINCONTROLNOTSUPPORTED);
    }
View Full Code Here

TOP

Related Classes of javazoom.jlgui.basicplayer.BasicPlayerException

Copyright © 2018 www.massapicom. 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.