- Timestamp:
- 01/01/08 12:24:37 (16 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/libstreaming/generic/StreamProcessor.cpp
r796 r797 127 127 packets_to_prebuffer); 128 128 129 // only queue a part (70%)of the theoretical max in order not to have too much 'not ready' cycles129 // only queue a part of the theoretical max in order not to have too much 'not ready' cycles 130 130 packets_to_prebuffer = (packets_to_prebuffer * MAX_ISO_XMIT_BUFFER_FILL_PCT * 1000) / 100000; 131 131 debugOutput(DEBUG_LEVEL_VERBOSE, " reduce to %d%%: %u\n", … … 490 490 int cycle_diff = diffCycles(cycle, now_cycles); 491 491 492 #ifdef DEBUG493 492 if(cycle_diff < 0 && (m_state == ePS_Running || m_state == ePS_DryRunning)) { 494 493 debugWarning("Requesting packet for cycle %04d which is in the past (now=%04dcy)\n", … … 498 497 // flushDebugOutput(); 499 498 // assert(0); 500 } 501 } 502 #endif 499 debugWarning("generatePacketData xrun\n"); 500 m_in_xrun = true; 501 debugOutput(DEBUG_LEVEL_VERBOSE, "Should update state to WaitingForStreamDisable due to data xrun\n"); 502 m_next_state = ePS_WaitingForStreamDisable; 503 // execute the requested change 504 if (!updateState()) { // we are allowed to change the state directly 505 debugError("Could not update state!\n"); 506 return RAW1394_ISO_ERROR; 507 } 508 goto send_empty_packet; 509 } 510 } 503 511 504 512 // store the previous timestamp … … 604 612 m_in_xrun = true; 605 613 debugOutput(DEBUG_LEVEL_VERBOSE, "Should update state to WaitingForStreamDisable due to header xrun\n"); 606 m_cycle_to_switch_state = cycle+1; // switch in the next cycle607 614 m_next_state = ePS_WaitingForStreamDisable; 608 615 // execute the requested change