|
| static AudioFormat | getAudioFormat (final int alChannelLayout, final int alSampleType, final int alFormat, final int sampleRate, final int sampleSize) |
| | Returns a compatible AudioFormat based on given OpenAL channel-layout, sample-type and format, as well as the generic sample-rate and sample-size. More...
|
| |
| static int | getALFormat (final AudioFormat audioFormat, final AL al, final ALExt alExt) |
| | Returns a compatible AL buffer format given the AudioFormat, which determines the AL channel layout and AL sample type. More...
|
| |
| static int | getALFormat (final AudioFormat audioFormat, final AL al, final ALExt alExt, final boolean hasSOFTBufferSamples, final boolean hasEXTMcFormats, final boolean hasEXTFloat32, final boolean hasEXTDouble) |
| | Returns a compatible AL buffer format given the AudioFormat, which determines the AL channel layout and AL sample type. More...
|
| |
| static final int | getALFormat (final int alChannelLayout, final int alSampleType, final AL al, final ALExt alExt) |
| | Returns a compatible AL buffer format given the AL channel layout and AL sample type. More...
|
| |
| static final int | getALFormat (final int alChannelLayout, final int alSampleType, final AL al, final ALExt alExt, final boolean hasSOFTBufferSamples, final boolean hasEXTMcFormats, final boolean hasEXTFloat32, final boolean hasEXTDouble) |
| | Returns a compatible AL buffer format given the AL channel layout and AL sample type. More...
|
| |
| static final int | getDefaultALChannelLayout (final int channelCount) |
| | Returns the default AL channel layout matching the given channel count, or ALConstants#AL_NONE. More...
|
| |
| static final String | alChannelLayoutName (final int alChannelLayout) |
| | Returns the readable name of the given AL channel layout. More...
|
| |
| static final int | getALChannelLayoutChannelCount (final int alChannelLayout) |
| | Returns the channel count of the given AL channel layout. More...
|
| |
| static final int | getALSampleType (final int sampleSize, final boolean signed, final boolean fixedP) |
| | Returns the AL sample type matching the given audio type attributes, or ALConstants#AL_NONE. More...
|
| |
| static final String | alSampleTypeName (final int alSampleType) |
| | Returns the readable name of the given AL sample type. More...
|
| |
| static final boolean | isALSampleTypeSigned (final int alSampleType) |
| | Returns whether the given AL sample type is signed. More...
|
| |
| static final boolean | isALSampleTypeFixed (final int alSampleType) |
| | Returns true if the given AL sample type is a fixed point (byte, short, int, ..) or false if a floating point type (float, double). More...
|
| |
| static final int | sizeOfALSampleType (final int alSampleType) throws IllegalArgumentException |
| | Returns the byte size of the given AL sample type. More...
|
| |
| static final int | samplesToByteCount (int sampleCount, final int alChannelLayout, final int alSampleType) throws IllegalArgumentException |
| |
| static final int | bytesToSampleCount (final int byteCount, final int alChannelLayout, final int alSampleType) |
| |
| static final String | alSourceStateString (final int sourceState) |
| | Returns given ALConstants#AL_SOURCE_STATE AL#alGetSourcei(int, int, int[], int)} value as a string. More...
|
| |
Definition at line 39 of file ALHelpers.java.
| static int com.jogamp.openal.util.ALHelpers.getALFormat |
( |
final AudioFormat |
audioFormat, |
|
|
final AL |
al, |
|
|
final ALExt |
alExt |
|
) |
| |
|
static |
Returns a compatible AL buffer format given the AudioFormat, which determines the AL channel layout and AL sample type.
If hasEXTMcFormats or hasSOFTBufferSamples is true, it will be called to find the closest-matching format from AL_EXT_MCFORMATS or AL_SOFT_buffer_samples.
Returns ALConstants#AL_NONE if no supported format can be found.
Function uses AL#alIsExtensionPresent(String), which might be context dependent, otherwise function is context independent.
- Parameters
-
- Returns
- AL buffer format
Definition at line 114 of file ALHelpers.java.
| static int com.jogamp.openal.util.ALHelpers.getALFormat |
( |
final AudioFormat |
audioFormat, |
|
|
final AL |
al, |
|
|
final ALExt |
alExt, |
|
|
final boolean |
hasSOFTBufferSamples, |
|
|
final boolean |
hasEXTMcFormats, |
|
|
final boolean |
hasEXTFloat32, |
|
|
final boolean |
hasEXTDouble |
|
) |
| |
|
static |
Returns a compatible AL buffer format given the AudioFormat, which determines the AL channel layout and AL sample type.
If hasEXTMcFormats or hasSOFTBufferSamples is true, it will be called to find the closest-matching format from AL_EXT_MCFORMATS or AL_SOFT_buffer_samples.
Returns ALConstants#AL_NONE if no supported format can be found.
Function is context independent.
- Parameters
-
| audioFormat | used to derive AL channel layout getDefaultALChannelLayout(int) and AL sample type getALSampleType(int, boolean, boolean) |
| al | AL instance |
| alExt | ALExt instance |
| hasSOFTBufferSamples | true if having extension AL_SOFT_buffer_samples, otherwise false |
| hasEXTMcFormats | true if having extension AL_EXT_MCFORMATS, otherwise false |
| hasEXTFloat32 | true if having extension AL_EXT_FLOAT32, otherwise false |
| hasEXTDouble | true if having extension AL_EXT_DOUBLE, otherwise false |
- Returns
- AL buffer format
Definition at line 151 of file ALHelpers.java.
| static final int com.jogamp.openal.util.ALHelpers.getALFormat |
( |
final int |
alChannelLayout, |
|
|
final int |
alSampleType, |
|
|
final AL |
al, |
|
|
final ALExt |
alExt |
|
) |
| |
|
static |
Returns a compatible AL buffer format given the AL channel layout and AL sample type.
If hasEXTMcFormats or hasSOFTBufferSamples is true, it will be called to find the closest-matching format from AL_EXT_MCFORMATS or AL_SOFT_buffer_samples.
Returns ALConstants#AL_NONE if no supported format can be found.
Function uses AL#alIsExtensionPresent(String), which might be context dependent, otherwise function is context independent.
- Parameters
-
- Returns
- AL buffer format
Definition at line 190 of file ALHelpers.java.
| static final int com.jogamp.openal.util.ALHelpers.getALFormat |
( |
final int |
alChannelLayout, |
|
|
final int |
alSampleType, |
|
|
final AL |
al, |
|
|
final ALExt |
alExt, |
|
|
final boolean |
hasSOFTBufferSamples, |
|
|
final boolean |
hasEXTMcFormats, |
|
|
final boolean |
hasEXTFloat32, |
|
|
final boolean |
hasEXTDouble |
|
) |
| |
|
static |
Returns a compatible AL buffer format given the AL channel layout and AL sample type.
If hasEXTMcFormats or hasSOFTBufferSamples is true, it will be called to find the closest-matching format from AL_EXT_MCFORMATS or AL_SOFT_buffer_samples.
Returns ALConstants#AL_NONE if no supported format can be found.
Function is context independent.
- Parameters
-
| alChannelLayout | AL channel layout, see getDefaultALChannelLayout(int) |
| alSampleType | AL sample type, see getALSampleType(int, boolean, boolean). |
| al | AL instance |
| alExt | ALExt instance |
| hasSOFTBufferSamples | true if having extension AL_SOFT_buffer_samples, otherwise false |
| hasEXTMcFormats | true if having extension AL_EXT_MCFORMATS, otherwise false |
| hasEXTFloat32 | true if having extension AL_EXT_FLOAT32, otherwise false |
| hasEXTDouble | true if having extension AL_EXT_DOUBLE, otherwise false |
- Returns
- AL buffer format
Definition at line 225 of file ALHelpers.java.