Package com.prineside.luaj.mapping.parts
Class LJ_GDX.Audio_H.LIP
java.lang.Object
com.prineside.luaj.mapping.InterfaceProxy
com.prineside.luaj.mapping.parts.LJ_GDX.Audio_H.LIP
- All Implemented Interfaces:
com.badlogic.gdx.Audio
,com.esotericsoftware.kryo.KryoSerializable
- Enclosing class:
- LJ_GDX.Audio_H
-
Field Summary
Fields inherited from class com.prineside.luaj.mapping.InterfaceProxy
luaObj
-
Method Summary
Modifier and TypeMethodDescriptionString[]
This function returns a list of fully qualified Output device names.com.badlogic.gdx.audio.AudioDevice
newAudioDevice
(int p1, boolean p2) Creates a newAudioDevice
either in mono or stereo mode.com.badlogic.gdx.audio.AudioRecorder
newAudioRecorder
(int p1, boolean p2) Creates a newAudioRecorder
.com.badlogic.gdx.audio.Music
newMusic
(com.badlogic.gdx.files.FileHandle p1) Creates a newMusic
instance which is used to play back a music stream from a file.com.badlogic.gdx.audio.Sound
newSound
(com.badlogic.gdx.files.FileHandle p1) Creates a newSound
which is used to play back audio effects such as gun shots or explosions.boolean
Sets a new OutputDevice.Methods inherited from class com.prineside.luaj.mapping.InterfaceProxy
getLuaObj, read, write
-
Method Details
-
getAvailableOutputDevices
Description copied from interface:com.badlogic.gdx.Audio
This function returns a list of fully qualified Output device names. This function is only implemented on desktop. On all other platforms it will return a empty array. It will also return a empty array on error. The names returned need os dependent preprocessing before exposing to a user.- Specified by:
getAvailableOutputDevices
in interfacecom.badlogic.gdx.Audio
- Returns:
- A array of available output devices
-
newAudioDevice
public com.badlogic.gdx.audio.AudioDevice newAudioDevice(int p1, boolean p2) Description copied from interface:com.badlogic.gdx.Audio
Creates a newAudioDevice
either in mono or stereo mode. The AudioDevice has to be disposed via itsAudioDevice.dispose()
method when it is no longer used.- Specified by:
newAudioDevice
in interfacecom.badlogic.gdx.Audio
- Parameters:
p1
- the sampling rate.p2
- whether the AudioDevice should be in mono or stereo mode- Returns:
- the AudioDevice
-
newAudioRecorder
public com.badlogic.gdx.audio.AudioRecorder newAudioRecorder(int p1, boolean p2) Description copied from interface:com.badlogic.gdx.Audio
Creates a newAudioRecorder
. The AudioRecorder has to be disposed after it is no longer used.- Specified by:
newAudioRecorder
in interfacecom.badlogic.gdx.Audio
- Parameters:
p1
- the sampling rate in Hertzp2
- whether the recorder records in mono or stereo- Returns:
- the AudioRecorder
-
newMusic
public com.badlogic.gdx.audio.Music newMusic(com.badlogic.gdx.files.FileHandle p1) Description copied from interface:com.badlogic.gdx.Audio
Creates a newMusic
instance which is used to play back a music stream from a file. Currently supported formats are WAV, MP3 and OGG. The Music instance has to be disposed if it is no longer used via theMusic.dispose()
method. Music instances are automatically paused whenApplicationListener.pause()
is called and resumed whenApplicationListener.resume()
is called.- Specified by:
newMusic
in interfacecom.badlogic.gdx.Audio
- Parameters:
p1
- the FileHandle- Returns:
- the new Music or null if the Music could not be loaded
-
newSound
public com.badlogic.gdx.audio.Sound newSound(com.badlogic.gdx.files.FileHandle p1) Description copied from interface:com.badlogic.gdx.Audio
Creates a new
Sound
which is used to play back audio effects such as gun shots or explosions. The Sound's audio data is retrieved from the file specified via theFileHandle
. Note that the complete audio data is loaded into RAM. You should therefore not load big audio files with this methods. The current upper limit for decoded audio is 1 MB.Currently supported formats are WAV, MP3 and OGG.
The Sound has to be disposed if it is no longer used via the
Sound.dispose()
method.- Specified by:
newSound
in interfacecom.badlogic.gdx.Audio
- Returns:
- the new Sound
-
switchOutputDevice
Description copied from interface:com.badlogic.gdx.Audio
Sets a new OutputDevice. The identifier can be retrieved fromAudio.getAvailableOutputDevices()
. If null is passed, it will switch to auto.- Specified by:
switchOutputDevice
in interfacecom.badlogic.gdx.Audio
- Parameters:
p1
- device identifier to switch to, or null for auto
-