<?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>1002</bug_id>
          
          <creation_ts>2014-03-24 14:03:23 +0100</creation_ts>
          <short_desc>Add support for OpenAL-soft MIDI extensions</short_desc>
          <delta_ts>2014-06-11 01:41:00 +0200</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>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Xerxes Rånby">xerxes</reporter>
          <assigned_to name="Xerxes Rånby">xerxes</assigned_to>
          <cc>gouessej</cc>
    
    <cc>sgothel</cc>
          
          <cf_type>---</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>3864</commentid>
    <comment_count>0</comment_count>
    <who name="Xerxes Rånby">xerxes</who>
    <bug_when>2014-03-24 14:03:23 +0100</bug_when>
    <thetext>Chris Robinson who maintains OpenAL soft has recently added MIDI support extensions to OpenAL.
http://openal.org/pipermail/openal/2014-January/000005.html

JOAL should be updated to support the new extensions exposed by the OpenAL-soft alMidi.h header.
http://repo.or.cz/w/openal-soft.git/blob/HEAD:/OpenAL32/Include/alMidi.h</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3865</commentid>
    <comment_count>1</comment_count>
    <who name="Xerxes Rånby">xerxes</who>
    <bug_when>2014-03-24 15:03:56 +0100</bug_when>
    <thetext>(14:15:48) xranby: hmm whats the best way for gluegen to map functions that take a c function pointer in java?
(14:17:09) eclesia: java 8 has method references. but I don&apos;t think that will do
(14:20:30) xranby: Chris suggested the following function for the OpenAL MIDI extension:  alLoadSoundfontSOFT(sfont /* OpenAL uint */, read_func /* read function pointer */ , file /* void pointer handled by the read function */);
(14:20:43) xranby: sounds like a security nightmare
(14:21:57) xranby: the idea is that the user should implement the read_func
(14:22:06) xranby: size_t read_func(ALvoid *buffer, suze_t len, ALvoid *user) {      return fread(buffer, 1, len, (FILE*)user); }
(14:25:27) sgothel: ^^ in this case we need to manually impl. a java callback, see the JOGL GLDebugMessage thing ..
(14:26:00) sgothel: jogl/src/jogl/native/GLDebugMessageHandler.c
(14:26:46) sgothel: callback wrapper .. maybe the next thing to add to GlueGen, since I used them (manually) for the GL-mmap stuff as well - a lot</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3959</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-06-11 01:40:37 +0200</bug_when>
    <thetext>JOAL has updated openal-soft to tip of openal-soft master branch,
this should make native midi support a bit more easier.

Do we need to add midi.h to be processed by GlueGen ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3960</commentid>
    <comment_count>3</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-06-11 01:41:00 +0200</bug_when>
    <thetext>(In reply to comment #2)
&gt; JOAL has updated openal-soft to tip of openal-soft master branch,
&gt; this should make native midi support a bit more easier.
&gt; 
&gt; Do we need to add midi.h to be processed by GlueGen ?

See Bug 1018</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>