diff options
author | Sven Gothel <[email protected]> | 2013-08-26 09:26:25 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-08-26 09:26:25 +0200 |
commit | e69b819ab572ff95ce252364eb294c074d4210a8 (patch) | |
tree | c367ce9a7d289a540b8a051cebe88277ceb2197a | |
parent | 0baa6041fd23aba07bf9f09352e7a38622731c33 (diff) |
ALHelpers: Shorten returned string representations
-rw-r--r-- | src/java/com/jogamp/openal/util/ALHelpers.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/java/com/jogamp/openal/util/ALHelpers.java b/src/java/com/jogamp/openal/util/ALHelpers.java index 9592b95..54a5505 100644 --- a/src/java/com/jogamp/openal/util/ALHelpers.java +++ b/src/java/com/jogamp/openal/util/ALHelpers.java @@ -246,10 +246,10 @@ public class ALHelpers { case AL_MONO_SOFT: return "Mono"; case AL_STEREO_SOFT: return "Stereo"; case AL_REAR_SOFT: return "Rear"; - case AL_QUAD_SOFT: return "Quadraphonic"; - case AL_5POINT1_SOFT: return "5.1 Surround"; - case AL_6POINT1_SOFT: return "6.1 Surround"; - case AL_7POINT1_SOFT: return "7.1 Surround"; + case AL_QUAD_SOFT: return "Quad"; + case AL_5POINT1_SOFT: return "5.1"; + case AL_6POINT1_SOFT: return "6.1"; + case AL_7POINT1_SOFT: return "7.1"; } return "Unknown AL-Channel-Layout 0x"+Integer.toHexString(alChannelLayout); } @@ -291,14 +291,14 @@ public class ALHelpers { */ public static final String alSampleTypeName(final int alSampleType) { switch(alSampleType) { - case AL_BYTE_SOFT: return "S8"; - case AL_UNSIGNED_BYTE_SOFT: return "U8"; - case AL_SHORT_SOFT: return "S16"; - case AL_UNSIGNED_SHORT_SOFT: return "U16"; - case AL_INT_SOFT: return "S32"; - case AL_UNSIGNED_INT_SOFT: return "U32"; - case AL_FLOAT_SOFT: return "F32"; - case AL_DOUBLE_SOFT: return "F64"; + case AL_BYTE_SOFT: return "s8"; + case AL_UNSIGNED_BYTE_SOFT: return "u8"; + case AL_SHORT_SOFT: return "s16"; + case AL_UNSIGNED_SHORT_SOFT: return "u16"; + case AL_INT_SOFT: return "s32"; + case AL_UNSIGNED_INT_SOFT: return "u32"; + case AL_FLOAT_SOFT: return "f32"; + case AL_DOUBLE_SOFT: return "f64"; } return "Unknown AL-Type 0x"+Integer.toHexString(alSampleType); } |