APIdia Launch Partner
Top Description Constructors Methods
com.badlogic.gdx.backends.headless.mock.audio

public Class MockAudioRecorder

extends Object
implements AudioRecorder
Class Inheritance
All Implemented Interfaces
com.badlogic.gdx.audio.AudioRecorder, com.badlogic.gdx.utils.Disposable
Imports
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.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
dispose()

Implements com.badlogic.gdx.audio.AudioRecorder.dispose.

Disposes the AudioRecorder

public void
read(short[] samples, int offset, int numSamples)

Implements com.badlogic.gdx.audio.AudioRecorder.read.

Reads in numSamples samples into the array samples starting at offset.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

MockAudioRecorderback to summary
public MockAudioRecorder()

Method Detail

disposeback to summary
public void dispose()

Implements com.badlogic.gdx.audio.AudioRecorder.dispose.

Doc from com.badlogic.gdx.audio.AudioRecorder.dispose.

Disposes the AudioRecorder

Annotations
@Override
readback to summary
public void read(short[] samples, int offset, int numSamples)

Implements com.badlogic.gdx.audio.AudioRecorder.read.

Doc from com.badlogic.gdx.audio.AudioRecorder.read.

Reads in numSamples samples into the array samples starting at offset. If the recorder is in stereo you have to multiply numSamples by 2.

Annotations
@Override