<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>684</bug_id>
          
          <creation_ts>2013-02-06 23:35:43 +0100</creation_ts>
          <short_desc>Make JOAL Platform Agnostic for non J2SE VMs (Remove use of javax.sound; Replace WaveLoader code, ..)</short_desc>
          <delta_ts>2014-02-21 15:00:43 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Joal</product>
          <component>core</component>
          <version>1.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Xerxes Rånby">xerxes</assigned_to>
          <cc>gouessej</cc>
    
    <cc>xerxes</cc>
    
    <cc>xerxes</cc>
          
          <cf_type>---</cf_type>
          <cf_scm_refs>6292ed9712b17f849f22221aea9d586c3a363c09
d199e6cdbf1fe1283bad79f68d05a9037a91863b</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2157</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-02-06 23:35:43 +0100</bug_when>
    <thetext>Make JOAL javax.audio Agnostic for non J2SE VMs

- javax.sound.* cannot be used in JOAL
  since it&apos;s missing on Android and other java&apos;ish subsets.

E.g.

import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;

- Hence the *Audio*Exception shall be replaced completely to our namespace,
  i.e. like com.jogamp.openal.UnsupportedAudioFileException

- WavLoader&apos;s wav parsing must be replaced platform agnostic ..</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2158</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-02-06 23:38:38 +0100</bug_when>
    <thetext>.. never mind &apos;compatibility&apos; .. since it must run well on Android and other platforms.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2534</commentid>
    <comment_count>2</comment_count>
    <who name="Xerxes Rånby">xerxes</who>
    <bug_when>2013-04-27 22:58:54 +0200</bug_when>
    <thetext>FFMPEG/libav can easily provide WAV file decoding, and may decode many more audio formats. The tricky part is to build and bundle native FFMPEG/libav libraries for all supported platforms. Thus this bug now depend on 686.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2535</commentid>
    <comment_count>3</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-04-27 23:27:24 +0200</bug_when>
    <thetext>(In reply to comment #2)
&gt; FFMPEG/libav can easily provide WAV file decoding, and may decode many more
&gt; audio formats. The tricky part is to build and bundle native FFMPEG/libav
&gt; libraries for all supported platforms. Thus this bug now depend on 686.

There is nothing too special about wav, i.e. usually it&apos;s simply a header w/ 
followup PCM data. Hence only the header needs to be parsed, no WAV audio 
data needs to be decoded!

Julien already started some parsing support from Java.

Problem: Relying on FFMPEG/libav for JOAL would create a dependency not always fullfilled,
hence this is not a solution. 

Would love to see the Java WAV header parsing work getting matured

Removing dependency - impossible to support.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2537</commentid>
    <comment_count>4</comment_count>
    <who name="Xerxes Rånby">xerxes</who>
    <bug_when>2013-04-27 23:38:55 +0200</bug_when>
    <thetext>Review and merge gouessej&apos;s JOAL fix: Removes all references to javax.sound.* in order to allow JOAL to work in non-J2SE environments:
https://github.com/gouessej/joal/commit/6292ed9712b17f849f22221aea9d586c3a363c09</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2538</commentid>
    <comment_count>5</comment_count>
    <who name="Julien Gouesse">gouessej</who>
    <bug_when>2013-04-28 11:01:43 +0200</bug_when>
    <thetext>Pure Java WAV/OGG parsing should be moved to JOAL-utils in order to keep the API modular as such services are already provided by other libraries based on JOAL (for example Paul Lamb&apos;s Sound Library) or it would be possible to have a JAR containing the core features and another one containing all features including our WAV/OGG parsing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2804</commentid>
    <comment_count>6</comment_count>
    <who name="Xerxes Rånby">xerxes</who>
    <bug_when>2013-07-13 23:38:13 +0200</bug_when>
    <thetext>Merged gouessej&apos;s fix into JOAL:
http://jogamp.org/git/?p=joal.git;a=commit;h=6292ed9712b17f849f22221aea9d586c3a363c09 - Removes all references to javax.sound.* in order to allow JOAL to work in non-J2SE environments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2805</commentid>
    <comment_count>7</comment_count>
    <who name="Xerxes Rånby">xerxes</who>
    <bug_when>2013-07-14 02:39:52 +0200</bug_when>
    <thetext>Proposed junit test: ALutWAVLoaderTest: Test WAV decoder impl. Bug 684 
https://github.com/xranby/joal/commit/f91cb9e643f26dfec259fd9de694c8c8fd2a127e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3764</commentid>
    <comment_count>8</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-02-21 15:00:37 +0100</bug_when>
    <thetext>d199e6cdbf1fe1283bad79f68d05a9037a91863b
   WAVLoader: Use Bitstream and support big-endian RIFX; Fix ALutWAVLoaderTest

29094cdad91594a2f5defd967aab893887f10c81
   ALExtLoopbackDeviceSOFTTest: Remove javax.sound.sampled.UnsupportedAudioFileException dependency</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>