Package games.stendhal.client.sound.system.processors

Examples of games.stendhal.client.sound.system.processors.PCMStreamConverter


      OggVorbisDecoder decoder = (OggVorbisDecoder)mGenerator;
      decoder.close();
    }
    else if(mGenerator instanceof PCMStreamConverter)
    {
      PCMStreamConverter converter = (PCMStreamConverter)mGenerator;
      converter.close();
    }
  }
View Full Code Here


            catch(IOException exception) { }
           
        }
        else if(mGenerator instanceof PCMStreamConverter)
        {
            PCMStreamConverter converter = (PCMStreamConverter)mGenerator;
            converter.close();

            try
            {
                AudioInputStream stream = AudioSystem.getAudioInputStream(mResource.getInputStream());
                converter.open(stream, stream.getFormat(), mOutputNumSamples);
            }
            catch(IOException                   exception) { }
            catch(UnsupportedAudioFileException exception) { }
        }
    else if(mGenerator instanceof Recorder.Player)
View Full Code Here

        case WAV:
            try
            {
                AudioInputStream stream = AudioSystem.getAudioInputStream(new BufferedInputStream(resource.getInputStream()));
                decoder                 = new PCMStreamConverter(stream, stream.getFormat(), outputNumSamplesPerChannel);

                mNumChannels = stream.getFormat().getChannels();
                mSampleRate  = (int)stream.getFormat().getSampleRate();
            }
            catch(Exception exception) { decoder = null; }
View Full Code Here

TOP

Related Classes of games.stendhal.client.sound.system.processors.PCMStreamConverter

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.