diff options
author | RJ Ryan <rryan@mixxx.org> | 2014-03-15 20:19:12 -0400 |
---|---|---|
committer | RJ Ryan <rryan@mixxx.org> | 2014-03-15 20:19:12 -0400 |
commit | 77c9f556ab8f4e402f8a04f1e2e8a94066139bdc (patch) | |
tree | aa1a4bb6cd76b60319e5745d8e48b5266d008ab1 /src/vinylcontrol | |
parent | 0dbc5f1680e4a9ba0b15f56bb9e14852a663518a (diff) |
Add some documentation to SoundManager methods about concurrency issues.
Diffstat (limited to 'src/vinylcontrol')
-rw-r--r-- | src/vinylcontrol/vinylcontrolprocessor.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/vinylcontrol/vinylcontrolprocessor.h b/src/vinylcontrol/vinylcontrolprocessor.h index ce2beaec5e..83a1b7e3ac 100644 --- a/src/vinylcontrol/vinylcontrolprocessor.h +++ b/src/vinylcontrol/vinylcontrolprocessor.h @@ -43,7 +43,14 @@ class VinylControlProcessor : public QThread, public AudioDestination { virtual void onInputUnconfigured(AudioInput input); // Called by the engine callback. Must not touch any state in - // VinylControlProcessor except for m_samplePipes. + // VinylControlProcessor except for m_samplePipes. NOTE: + + // 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, this + // method is re-entrant since the VinylControlProcessor is registered for + // multiple AudioDestinations, however it is not re-entrant for a given + // AudioInput index. void receiveBuffer(AudioInput input, const CSAMPLE* pBuffer, unsigned int iNumFrames); |