Do unto MIDI as thou hath done unto audio.

git-svn-id: svn://localhost/ardour2/trunk@2582 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2007-10-31 20:08:00 +00:00
parent 0051f92a4c
commit 13fce7e753

View file

@ -18,7 +18,7 @@
#include <cassert>
#include <iostream>
#include <glib.h>
#include <ardour/base_midi_port.h>
#include <ardour/data_type.h>
@ -61,9 +61,5 @@ BaseMidiPort::default_mixdown (const set<Port*>& ports, MidiBuffer* dest, nframe
void
BaseMidiPort::set_mixdown_function (void (*func)(const set<Port*>&, MidiBuffer*, nframes_t, nframes_t, bool))
{
/* caller should (but not must) hold process lock since this is an atomic operation on most platforms
and even if its not, it doesn't really matter.
*/
_mixdown = func;
g_atomic_pointer_set(&_mixdown, func);
}