Changeset 544
- Timestamp:
- 08/21/07 08:18:46 (16 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/echoaudio/src/libstreaming/AmdtpStreamProcessor.cpp
r445 r544 82 82 83 83 struct iec61883_packet *packet = (struct iec61883_packet *) data; 84 if (cycle<0) return RAW1394_ISO_OK; 85 86 m_last_cycle=cycle; 87 84 85 if (cycle<0) { 86 debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Xmit handler for cycle %d, (running=%d, enabled=%d,%d)\n", 87 cycle, m_running, m_disabled, m_is_disabled); 88 89 *tag = 0; 90 *sy = 0; 91 *length=0; 92 return RAW1394_ISO_OK; 93 94 } 95 88 96 debugOutput(DEBUG_LEVEL_VERY_VERBOSE,"Xmit handler for cycle %d, (running=%d, enabled=%d,%d)\n", 89 97 cycle, m_running, m_disabled, m_is_disabled); 98 99 m_last_cycle=cycle; 90 100 91 101 #ifdef DEBUG … … 740 750 { 741 751 bool ok=true; 742 charbyte;752 quadlet_t byte; 743 753 744 754 quadlet_t *target_event=NULL; … … 772 782 773 783 for(j = (dbc & 0x07)+mp->getLocation(); j < nevents; j += 8) { 774 784 785 quadlet_t tmpval; 786 775 787 target_event=(quadlet_t *)(data + ((j * m_dimension) + mp->getPosition())); 776 788 777 789 if(mp->canRead()) { // we can send a byte 778 790 mp->readEvent(&byte); 779 *target_event=htonl( 791 byte &= 0xFF; 792 tmpval=htonl( 780 793 IEC61883_AM824_SET_LABEL((byte)<<16, 781 794 IEC61883_AM824_LABEL_MIDI_1X)); 795 796 debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "MIDI port %s, pos=%d, loc=%d, dbc=%d, nevents=%d, dim=%d\n", 797 mp->getName().c_str(), mp->getPosition(), mp->getLocation(), dbc, nevents, m_dimension); 798 debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "base=%p, target=%p, value=%08X\n", 799 data, target_event, tmpval); 800 782 801 } else { 783 802 // can't send a byte, either because there is no byte, 784 803 // or because this would exceed the maximum rate 785 *target_event=htonl(804 tmpval=htonl( 786 805 IEC61883_AM824_SET_LABEL(0,IEC61883_AM824_LABEL_MIDI_NO_DATA)); 787 806 } 807 808 *target_event=tmpval; 788 809 } 789 810