Commit 90f58d65 authored by sletz's avatar sletz
Browse files

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
parent 60f5da86
......@@ -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.
......
......@@ -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);
}
......
......@@ -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*******************************************
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment