Package net.pms.util

Examples of net.pms.util.PCMAudioOutputStream


          int nbAudio = str2ushort(information, 2);
          aud.setNbAudio(nbAudio);
          long fileLength = 100;

          if (params.losslessaudio) {
            aOut = new PCMAudioOutputStream(aOut, nbAudio, 48000, bitsPerSample);
          }

          if (!params.lossyaudio && params.losslessaudio) {
            writePCMHeader(aOut, fileLength, nbAudio, aud.getRate(), aud.getSampleSize(), bitsPerSample);
          }
View Full Code Here


      out = mkout.getOutputStream();

      if (modifier != null && modifier.isH264AnnexB()) {
        in = new H264AnnexBInputStream(in, modifier.getHeader());
      } else if (modifier != null && modifier.isEncodedAudioPassthrough()) {
        out = new IEC61937AudioOutputStream(new PCMAudioOutputStream(out, modifier.getNbChannels(), modifier.getSampleFrequency(), modifier.getBitsPerSample()));
      } else if (modifier != null && modifier.isDtsEmbed()) {
        out = new DTSAudioOutputStream(new PCMAudioOutputStream(out, modifier.getNbChannels(), modifier.getSampleFrequency(), modifier.getBitsPerSample()));
      } else if (modifier != null && modifier.isPcm()) {
        out = new PCMAudioOutputStream(out, modifier.getNbChannels(), modifier.getSampleFrequency(), modifier.getBitsPerSample());
      }

      if (modifier != null && modifier.getHeader() != null && !modifier.isH264AnnexB()) {
        out.write(modifier.getHeader());
      }
View Full Code Here

      out = mkout.getOutputStream();

      if (modifier != null && modifier.isH264AnnexB()) {
        in = new H264AnnexBInputStream(in, modifier.getHeader());
      } else if (modifier != null && modifier.isDtsEmbed()) {
        out = new DTSAudioOutputStream(new PCMAudioOutputStream(out, modifier.getNbChannels(), modifier.getSampleFrequency(), modifier.getBitsPerSample()));
      } else if (modifier != null && modifier.isPcm()) {
        out = new PCMAudioOutputStream(out, modifier.getNbChannels(), modifier.getSampleFrequency(), modifier.getBitsPerSample());
      }

      if (modifier != null && modifier.getHeader() != null && !modifier.isH264AnnexB()) {
        out.write(modifier.getHeader());
      }
View Full Code Here

          int nbAudio = str2ushort(information, 2);
          aud.setNbAudio(nbAudio);
          long fileLength = 100;

          if (params.losslessaudio) {
            aOut = new PCMAudioOutputStream(aOut, nbAudio, 48000, bitsPerSample);
          }

          if (!params.lossyaudio && params.losslessaudio) {
            writePCMHeader(aOut, fileLength, nbAudio, aud.getRate(), aud.getSampleSize(), bitsPerSample);
          }
View Full Code Here

TOP

Related Classes of net.pms.util.PCMAudioOutputStream

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.