From: <pst...@us...> - 2008-04-22 21:35:25
|
Revision: 475 http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=475&view=rev Author: pstieber Date: 2008-04-22 14:35:23 -0700 (Tue, 22 Apr 2008) Log Message: ----------- Updated Linux specific code for the recent event code change. Modified Paths: -------------- trunk/jazz/src/AlsaPlayer.cpp trunk/jazz/src/Player.cpp Modified: trunk/jazz/src/AlsaPlayer.cpp =================================================================== --- trunk/jazz/src/AlsaPlayer.cpp 2008-04-22 04:38:39 UTC (rev 474) +++ trunk/jazz/src/AlsaPlayer.cpp 2008-04-22 21:35:23 UTC (rev 475) @@ -407,7 +407,7 @@ // prepend 0xf0 char *buf = new char[s->Length + 1]; buf[0] = 0xF0; - memcpy(buf + 1, s->Data, s->Length); + memcpy(buf + 1, s->mpData, s->Length); set_event_header(&ev, e->GetClock(), s->Length + 1, buf); rc = write(&ev, now); delete [] buf; Modified: trunk/jazz/src/Player.cpp =================================================================== --- trunk/jazz/src/Player.cpp 2008-04-22 04:38:39 UTC (rev 474) +++ trunk/jazz/src/Player.cpp 2008-04-22 21:35:23 UTC (rev 475) @@ -1660,7 +1660,7 @@ sysex->device_no = mididev; sysex->len = s->Length + 1; sysex->data[0] = 0xf0; - memcpy(sysex->data + 1, s->Data, s->Length); + memcpy(sysex->data + 1, s->mpData, s->Length); SEQ_WRPATCH(sysex, sizeof(*sysex) + sysex->len - 1); delete [] (char *)sysex; @@ -1678,7 +1678,7 @@ SEQ_SYSEX(mididev, (unsigned char *)buf, N); i = 0; } - buf[i++] = sx->Data[j]; + buf[i++] = sx->mpData[j]; } if (i > 0) { SEQ_SYSEX(mididev, (unsigned char *)buf, i); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |