Class MockAudioRecorder

  • All Implemented Interfaces:
    com.badlogic.gdx.audio.AudioRecorder, com.badlogic.gdx.utils.Disposable

    public class MockAudioRecorder
    extends java.lang.Object
    implements com.badlogic.gdx.audio.AudioRecorder
    The headless backend does its best to mock elements. This is intended to make code-sharing between server and client as simple as possible.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()  
      void read​(short[] samples, int offset, int numSamples)  
      • Methods inherited from class java.lang.Object

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

      • MockAudioRecorder

        public MockAudioRecorder()
    • Method Detail

      • read

        public void read​(short[] samples,
                         int offset,
                         int numSamples)
        Specified by:
        read in interface com.badlogic.gdx.audio.AudioRecorder
      • dispose

        public void dispose()
        Specified by:
        dispose in interface com.badlogic.gdx.audio.AudioRecorder
        Specified by:
        dispose in interface com.badlogic.gdx.utils.Disposable