13
0

Disable excessive debug printing.

git-svn-id: svn://localhost/ardour2/branches/3.0@5834 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2009-10-21 00:00:56 +00:00
parent 214a31bb98
commit af8c16cfe0
3 changed files with 6 additions and 9 deletions

View File

@ -48,19 +48,18 @@ MidiStateTracker::track_note_onoffs (const Evoral::MIDIEvent<MidiBuffer::TimeTyp
}
}
}
void
MidiStateTracker::add (uint8_t note, uint8_t chn)
{
cerr << "Added note " << note << " chan " << chn << endl;
_active_notes[note + 128 * chn]++;
++_active_notes[note + 128 * chn];
}
void
MidiStateTracker::remove (uint8_t note, uint8_t chn)
{
if (_active_notes[note + 128 * chn]) {
cerr << "Removed note " << note << " chan " << chn << endl;
_active_notes[note + 128 * chn]--;
--_active_notes[note + 128 * chn];
}
}

View File

@ -523,17 +523,15 @@ void
MidiTrack::write_out_of_band_data (BufferSet& bufs, sframes_t /*start*/, sframes_t /*end*/, nframes_t nframes)
{
// Append immediate events
MidiBuffer& buf (bufs.get_midi (0));
_immediate_events.read (buf, 0, 0, nframes - 1); // all stamps = 0
/* MIDI thru: send incoming data "through" output */
// MIDI thru: send incoming data "through" output
if (_midi_thru && _input->n_ports().n_midi()) {
buf.merge_in_place (_input->midi(0)->get_midi_buffer(nframes));
}
}
int
MidiTrack::export_stuff (BufferSet& /*bufs*/, nframes_t /*nframes*/, sframes_t /*end_frame*/)
{

View File

@ -239,8 +239,8 @@ SMFSource::write_unlocked (MidiRingBuffer<nframes_t>& source, sframes_t position
ev.set(buf, size, time);
ev.set_event_type(EventTypeMap::instance().midi_event_type(ev.buffer()[0]));
if (!(ev.is_channel_event() || ev.is_smf_meta_event() || ev.is_sysex())) {
cerr << "SMFSource: WARNING: caller tried to write non SMF-Event of type "
<< std::hex << int(ev.buffer()[0]) << endl;
/*cerr << "SMFSource: WARNING: caller tried to write non SMF-Event of type "
<< std::hex << int(ev.buffer()[0]) << endl;*/
continue;
}