Changeset 416 for branches/streaming-rework/src/metrichalo/mh_avdevice.cpp
- Timestamp:
- 02/25/07 02:46:00 (17 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/streaming-rework/src/metrichalo/mh_avdevice.cpp
r415 r416 34 34 #include <assert.h> 35 35 #include <netinet/in.h> 36 #include <iostream> 37 #include <sstream> 36 38 37 39 #include <libraw1394/csr.h> … … 56 58 , m_nodeId( nodeId ) 57 59 , m_verboseLevel( verboseLevel ) 58 , m_id(0)59 , m_iso_recv_channel ( -1 )60 , m_iso_send_channel ( -1 )61 60 62 61 { … … 65 64 debugOutput( DEBUG_LEVEL_VERBOSE, "Created MetricHalo::MHAvDevice (NodeID %d)\n", 66 65 nodeId ); 66 addOption(FreebobUtil::OptionContainer::Option("id",std::string("dev?"))); 67 67 68 68 } … … 140 140 141 141 bool MHAvDevice::setId( unsigned int id) { 142 debugOutput( DEBUG_LEVEL_VERBOSE, "Set id to %d...\n", id); 143 m_id=id; 144 return true; 142 // FIXME: decent ID system nescessary 143 std::ostringstream idstr; 144 145 idstr << "dev" << id; 146 147 debugOutput( DEBUG_LEVEL_VERBOSE, "Set id to %s...\n", idstr.str().c_str()); 148 149 return setOption("id",idstr.str()); 145 150 } 146 151 … … 174 179 int 175 180 MHAvDevice::getStreamCount() { 176 return 0; // one receive, one transmit181 return 0; 177 182 } 178 183 … … 180 185 MHAvDevice::getStreamProcessorByIndex(int i) { 181 186 182 // switch (i) {183 // case 0:184 // return m_receiveProcessor;185 // case 1:186 // return m_transmitProcessor;187 // default:188 // return NULL;189 // }190 // return 0;191 187 return NULL; 192 188 } … … 194 190 bool 195 191 MHAvDevice::startStreamByIndex(int i) { 196 197 192 return false; 198 193 } … … 203 198 } 204 199 205 signed int MHAvDevice::getIsoRecvChannel(void) { 206 return m_iso_recv_channel; 207 } 208 209 signed int MHAvDevice::getIsoSendChannel(void) { 210 return m_iso_send_channel; 211 } 212 213 } 200 }