Changeset 816 for branches/api-cleanup/src/libstreaming/generic/Port.h
- Timestamp:
- 01/06/08 03:53:04 (16 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/api-cleanup/src/libstreaming/generic/Port.h
r809 r816 58 58 59 59 public: 60 /*!61 \brief The datatype of the port buffer62 */63 enum E_DataType {64 E_Float,65 E_Int24,66 E_MidiEvent,67 E_ControlEvent,68 };69 70 60 /*! 71 61 \brief The port type … … 85 75 }; 86 76 87 Port(PortManager&, std::string name, enum E_PortType, enum E_Direction , enum E_DataType);77 Port(PortManager&, std::string name, enum E_PortType, enum E_Direction); 88 78 89 79 virtual ~Port(); … … 114 104 unsigned int getEventSize(); 115 105 116 /**117 * \brief sets the event type for the port buffer118 *119 * \note use before calling init()120 */121 virtual bool setDataType(enum E_DataType);122 123 enum E_DataType getDataType() {return m_DataType;};124 125 106 enum E_PortType getPortType() {return m_PortType;}; ///< returns the port type (is fixed) 126 107 enum E_Direction getDirection() {return m_Direction;}; ///< returns the direction (is fixed) … … 160 141 161 142 unsigned int m_buffersize; 162 unsigned int m_eventsize; 163 164 enum E_DataType m_DataType; 143 165 144 enum E_PortType m_PortType; 166 145 enum E_Direction m_Direction; 167 146 168 147 void *m_buffer; 169 148 170 149 PortManager& m_manager; 171 150 … … 195 174 196 175 AudioPort(PortManager& m, std::string name, enum E_Direction direction) 197 : Port(m, name, E_Audio, direction , E_Int24)176 : Port(m, name, E_Audio, direction) 198 177 {}; 199 178 … … 211 190 212 191 MidiPort(PortManager& m, std::string name, enum E_Direction direction) 213 : Port(m, name, E_Midi, direction , E_MidiEvent)192 : Port(m, name, E_Midi, direction) 214 193 {}; 215 194 virtual ~MidiPort() {}; … … 226 205 227 206 ControlPort(PortManager& m, std::string name, enum E_Direction direction) 228 : Port(m, name, E_Control, direction , E_ControlEvent)207 : Port(m, name, E_Control, direction) 229 208 {}; 230 209 virtual ~ControlPort() {};