APIdia Launch Partner
Top Constructors Methods
com.badlogic.gdx.backends.lwjgl3.audio

public Class OpenALUtils

extends Object
Class Inheritance
Imports
com.badlogic.gdx.utils.GdxRuntimeException

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv static int
determineFormat(int
The number of channels for the sound. Most commonly 1 (for mono) or 2 (for stereo).
channels
,
int
The number of bits in each sample. Normally 16. Can also be 8, 32, 64.
bitDepth
)

Returns: An OpenAL enum for use with OpenALSound and OpenALMusic

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

OpenALUtilsback to summary
public OpenALUtils()

Method Detail

determineFormatback to summary
pack-priv static int determineFormat(int channels, int bitDepth)
Parameters
channels:int

The number of channels for the sound. Most commonly 1 (for mono) or 2 (for stereo).

bitDepth:int

The number of bits in each sample. Normally 16. Can also be 8, 32, 64.

Returns:int

An OpenAL enum for use with OpenALSound and OpenALMusic