- Timestamp:
- 11/29/07 13:56:38 (16 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/libstreaming/generic/StreamProcessor.cpp
r742 r747 36 36 37 37 StreamProcessor::StreamProcessor(enum eProcessorType type, int port) 38 : IsoStream((type==ePT_Receive ? IsoStream::eST_Receive : IsoStream::eST_Transmit), port) 39 , m_processor_type ( type ) 38 : m_processor_type ( type ) 39 , m_channel( -1 ) 40 , m_port( port ) 41 , m_handler( NULL ) 40 42 , m_state( ePS_Created ) 41 43 , m_next_state( ePS_Invalid ) … … 82 84 return nominal_packets; 83 85 } 86 87 unsigned int 88 StreamProcessor::getPacketsPerPeriod() 89 { 90 return getNominalPacketsNeeded(m_manager->getPeriodSize()); 91 } 92 84 93 85 94 /*********************************************** … … 820 829 return false; 821 830 } 831 832 debugOutput( DEBUG_LEVEL_VERBOSE, "Prepared for:\n"); 833 debugOutput( DEBUG_LEVEL_VERBOSE, " Samplerate: %d\n", 834 m_manager->getNominalRate()); 835 debugOutput( DEBUG_LEVEL_VERBOSE, " PeriodSize: %d, NbBuffers: %d\n", 836 m_manager->getPeriodSize(), m_manager->getNbBuffers()); 837 debugOutput( DEBUG_LEVEL_VERBOSE, " Port: %d, Channel: %d\n", 838 m_port,m_channel); 822 839 823 840 // initialization can be done without requesting it … … 1513 1530 { 1514 1531 debugOutputShort( DEBUG_LEVEL_NORMAL, " StreamProcessor %p information\n", this); 1515 debugOutputShort( DEBUG_LEVEL_NORMAL, " Iso stream info:\n"); 1516 1517 IsoStream::dumpInfo(); 1532 debugOutputShort( DEBUG_LEVEL_NORMAL, " Port, Channel : %d, %d\n", m_port, m_channel); 1518 1533 debugOutputShort( DEBUG_LEVEL_NORMAL, " StreamProcessor info:\n"); 1519 1534 if (m_handler) { … … 1542 1557 StreamProcessor::setVerboseLevel(int l) { 1543 1558 setDebugLevel(l); 1544 IsoStream::setVerboseLevel(l);1545 1559 PortManager::setVerboseLevel(l); 1546 1560 m_data_buffer->setVerboseLevel(l);