@@ -45,44 +45,24 @@ namespace OnixSourcePlugin
4545 public:
4646 OutputClock (std::string name, std::string hubName, const oni_dev_idx_t , std::shared_ptr<Onix1> oni_ctx);
4747
48- /* * Device is always enabled */
4948 int configureDevice () override ;
50-
51- /* * Update the settings of the device */
5249 bool updateSettings () override ;
50+ void startAcquisition () override ;
51+ void addSourceBuffers (OwnedArray<DataBuffer>& sourceBuffers) override ;
52+ void addFrame (oni_frame_t * frame) override ;
53+ void processFrames () override ;
5354
54- /* * Starts probe data streaming */
55- void startAcquisition () override {};
56-
57- /* * Stops probe data streaming*/
58- void stopAcquisition () override {};
59-
60- /* * Given the sourceBuffers from OnixSource, add all streams for the current device to the array */
61- void addSourceBuffers (OwnedArray<DataBuffer>& sourceBuffers) override {};
62-
63- void addFrame (oni_frame_t * frame) override { oni_destroy_frame (frame); }
64-
65- void processFrames () override {};
66-
67- double getFrequencyHz () const { return frequencyHz; }
68-
69- void setFrequencyHz (double frequency) { frequencyHz = frequency; }
70-
71- int32_t getDutyCycle () const { return dutyCycle; }
72-
73- void setDutyCycle (int32_t dutyCycle_) { dutyCycle = dutyCycle_; }
74-
75- int32_t getDelay () const { return delay; }
55+ double getFrequencyHz () const ;
56+ void setFrequencyHz (double frequency);
7657
77- void setDelay (int32_t delay_) { delay = delay_; }
58+ int32_t getDutyCycle () const ;
59+ void setDutyCycle (int32_t dutyCycle_);
7860
79- bool getGateRun () const { return gateRun; }
61+ int32_t getDelay () const ;
62+ void setDelay (int32_t delay_);
8063
81- void setGateRun (bool gate, bool writeToRegister = false )
82- {
83- gateRun = gate;
84- if (writeToRegister) writeGateRunRegister ();
85- }
64+ bool getGateRun () const ;
65+ void setGateRun (bool gate, bool writeToRegister = false );
8666
8767 static OnixDeviceType getDeviceType ();
8868
@@ -94,7 +74,7 @@ namespace OnixSourcePlugin
9474
9575 bool gateRun = true ;
9676
97- void writeGateRunRegister () { deviceContext-> writeRegister (deviceIdx, ( oni_reg_addr_t )OutputClockRegisters::GATE_RUN, gateRun ? 1 : 0 ); }
77+ void writeGateRunRegister ();
9878
9979 JUCE_LEAK_DETECTOR (OutputClock);
10080 };
0 commit comments