Class AudioUtil


  • public class AudioUtil
    extends java.lang.Object
    Utility class for doing "VSD-special" things with the JMRI Audio classes.
    This file is part of JMRI.

    JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.

    JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

    • Constructor Summary

      Constructors 
      Constructor Description
      AudioUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<java.nio.ByteBuffer> getByteBufferList​(java.io.InputStream stream, int max_time, int min_time)  
      static java.nio.ByteBuffer getWavData​(java.io.InputStream stream)  
      static int[] getWavFormats​(java.io.InputStream stream)  
      static boolean isAudioRunning()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getWavData

        public static java.nio.ByteBuffer getWavData​(java.io.InputStream stream)
      • getWavFormats

        public static int[] getWavFormats​(java.io.InputStream stream)
      • getByteBufferList

        public static java.util.List<java.nio.ByteBuffer> getByteBufferList​(java.io.InputStream stream,
                                                                            int max_time,
                                                                            int min_time)