- sigc::signal<void,bool> MonitorInputChanged;
- sigc::signal<void,bool> ClockSyncChanged;
-
- bool is_silent() const { return silent; }
-
- void silence (jack_nframes_t nframes, jack_nframes_t offset) {
- /* assumes that the port is an output port */
-
- if (!silent) {
- memset (_buffer + offset, 0, sizeof (Sample) * nframes);
- if (offset == 0) {
- /* XXX this isn't really true, but i am not sure
- how to set this correctly. we really just
- want to set it true when the entire port
- buffer has been overrwritten.
- */
- silent = true;
- }
- }
- }
-
- void mark_silence (bool yn) {
- silent = yn;
- }
+ Port (std::string const &, DataType, Flags);
+
+ jack_port_t* _jack_port; ///< JACK port
+
+ static nframes_t _buffer_size;
+ static bool _connecting_blocked;
+
+ static AudioEngine* _engine; ///< the AudioEngine