Changeset 227 for branches/libfreebob-2.0/src/libstreaming/AmdtpPort.h
- Timestamp:
- 05/27/06 14:43:40 (18 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/libfreebob-2.0/src/libstreaming/AmdtpPort.h
r225 r227 52 52 53 53 AmdtpAudioPort(std::string name, 54 enum E_DataType datatype, 55 enum E_BufferType buffertype, 56 unsigned int buffsize, 57 enum E_Direction direction, 54 enum E_Direction direction, 58 55 int position, 59 56 int location, 60 57 enum E_Formats format, 61 58 int type) 62 : AudioPort(name, datatype, buffertype, buffsize, direction), 63 AmdtpPortInfo(name, position, location, format, type) 64 {}; 65 66 AmdtpAudioPort(std::string name, 67 enum E_DataType datatype, 68 enum E_BufferType buffertype, 69 unsigned int buffsize, 70 void *externalbuffer, 71 enum E_Direction direction, 72 int position, 73 int location, 74 enum E_Formats format, 75 int type) 76 : AudioPort(name, datatype, buffertype, buffsize, externalbuffer, direction), 59 : AudioPort(name, direction), 77 60 AmdtpPortInfo(name, position, location, format, type) 78 61 {}; … … 97 80 98 81 AmdtpMidiPort(std::string name, 99 unsigned int buffsize, 100 enum E_Direction direction, 82 enum E_Direction direction, 101 83 int position, 102 84 int location, 103 85 enum E_Formats format, 104 int type) 105 : MidiPort(name, buffsize, direction), 106 AmdtpPortInfo(name, position, location, format, type) 107 {}; 86 int type); 108 87 109 virtual ~AmdtpMidiPort() {}; 88 virtual ~AmdtpMidiPort(); 89 90 bool canSend(); ///< can we send a byte 91 void trigger(){m_countdown--;}; ///< call this every time a byte could have been sent 110 92 111 93 protected: 112 94 int m_countdown; 95 113 96 }; 114 97