January 2015
Beginner to intermediate
478 pages
9h 46m
English
In addition to the Music and Sound interfaces, LibGDX also provides you with two more low-level audio interfaces, AudioDevice and AudioRecorder, that enable direct access to the audio device. They can be used for recording and playback of raw samples of audio data. These samples are stored as a PCM-encoded audio signal.
These direct access features are currently unavailable in HTML5/GWT applications.
The AudioDevice interface allows you to send PCM-encoded audio samples directly to the audio device. For this to work, a new audio device can be requested using LibGDX's Gdx.audio module and called by its newAudioDevice() method as follows:
AudioDevice audioDevice = Gdx.audio.newAudioDevice(44100, ...
Read now
Unlock full access