Browse Source

Use up to BUFFER_SIZE_MAX frames in midi ports, fix for ticket #117.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3236 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/1.9.1
sletz 17 years ago
parent
commit
90f58d65c5
3 changed files with 12 additions and 1 deletions
  1. +4
    -0
      ChangeLog
  2. +2
    -1
      common/JackMidiPort.cpp
  3. +6
    -0
      common/JackNetInterface.cpp

+ 4
- 0
ChangeLog View File

@@ -23,6 +23,10 @@ Michael Voigt
Jackdmp changes log
---------------------------

2009-01-07 Stephane Letz <letz@grame.fr>

* Use up to BUFFER_SIZE_MAX frames in midi ports, fix for ticket #117.

2009-01-05 Stephane Letz <letz@grame.fr>

* Synchronize jack2 public headers with jack1 ones.


+ 2
- 1
common/JackMidiPort.cpp View File

@@ -71,7 +71,8 @@ static void MidiBufferInit(void* buffer, size_t buffer_size, jack_nframes_t nfra
{
JackMidiBuffer* midi = (JackMidiBuffer*)buffer;
midi->magic = JackMidiBuffer::MAGIC;
midi->buffer_size = buffer_size;
/* Since port buffer has actually always BUFFER_SIZE_MAX frames, we can safely use all the size */
midi->buffer_size = BUFFER_SIZE_MAX * sizeof(float);
midi->Reset(nframes);
}



+ 6
- 0
common/JackNetInterface.cpp View File

@@ -24,6 +24,12 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

using namespace std;

/*
TODO : since midi buffers now uses up to BUFFER_SIZE_MAX frames,
probably also use BUFFER_SIZE_MAX in everything related to MIDI events
handling (see MidiBufferInit in JackMidiPort.cpp)
*/

namespace Jack
{
// JackNetInterface*******************************************


Loading…
Cancel
Save