From e69b819ab572ff95ce252364eb294c074d4210a8 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 26 Aug 2013 09:26:25 +0200 Subject: ALHelpers: Shorten returned string representations --- src/java/com/jogamp/openal/util/ALHelpers.java | 24 ++++++++++++------------ 1 file 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); } -- cgit v1.2.3