summaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-12-02 20:58:38 +0100
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-12-02 20:58:38 +0100
commit8e18359de7cfc2521045671007ec6115c150dd55 (patch)
tree3ab01fdde13b0c3b32350af333bdf443c8c46288 /src/engine
parent8e18c532f3bb04177093581f2ec1bc993225079e (diff)
Clean up comments and use doxygen style (///)
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/channels/engineaux.cpp2
-rw-r--r--src/engine/channels/engineaux.h26
2 files changed, 12 insertions, 16 deletions
diff --git a/src/engine/channels/engineaux.cpp b/src/engine/channels/engineaux.cpp
index 27d911a012..08748e71a7 100644
--- a/src/engine/channels/engineaux.cpp
+++ b/src/engine/channels/engineaux.cpp
@@ -1,5 +1,3 @@
-// shameless stolen from enginemicrophone.cpp (from RJ)
-
#include "engine/channels/engineaux.h"
#include <QtDebug>
diff --git a/src/engine/channels/engineaux.h b/src/engine/channels/engineaux.h
index 31b1be1ff2..296055e1f3 100644
--- a/src/engine/channels/engineaux.h
+++ b/src/engine/channels/engineaux.h
@@ -1,5 +1,3 @@
-// unapologetically copied from enginemicrophone.h from RJ
-
#pragma once
#include <QScopedPointer>
@@ -12,8 +10,8 @@
class ControlAudioTaperPot;
-// EngineAux is an EngineChannel that implements a mixing source whose
-// samples are fed directly from the SoundManager
+/// EngineAux is an EngineChannel that implements a mixing source whose
+/// samples are fed directly from the SoundManager
class EngineAux : public EngineChannel, public AudioDestination {
Q_OBJECT
public:
@@ -22,25 +20,25 @@ class EngineAux : public EngineChannel, public AudioDestination {
bool isActive();
- // Called by EngineMaster whenever is requesting a new buffer of audio.
+ /// Called by EngineMaster whenever is requesting a new buffer of audio.
virtual void process(CSAMPLE* pOutput, const int iBufferSize);
virtual void collectFeatures(GroupFeatureState* pGroupFeatures) const;
virtual void postProcess(const int iBufferSize) { Q_UNUSED(iBufferSize) }
- // This is called by SoundManager whenever there are new samples from the
- // configured input to be processed. This is run in the callback thread of
- // the soundcard this AudioDestination was registered for! Beware, in the
- // case of multiple soundcards, this method is not re-entrant but it may be
- // concurrent with EngineMaster processing.
+ /// This is called by SoundManager whenever there are new samples from the
+ /// configured input to be processed. This is run in the callback thread of
+ /// the soundcard this AudioDestination was registered for! Beware, in the
+ /// case of multiple soundcards, this method is not re-entrant but it may be
+ /// concurrent with EngineMaster processing.
virtual void receiveBuffer(AudioInput input, const CSAMPLE* pBuffer,
unsigned int nFrames);
- // Called by SoundManager whenever the aux input is connected to a
- // soundcard input.
+ /// Called by SoundManager whenever the aux input is connected to a
+ /// soundcard input.
virtual void onInputConfigured(AudioInput input);
- // Called by SoundManager whenever the aux input is disconnected from
- // a soundcard input.
+ /// Called by SoundManager whenever the aux input is disconnected from
+ /// a soundcard input.
virtual void onInputUnconfigured(AudioInput input);
private: