Mercurial > hg > svapp
comparison audioio/AudioCallbackPlaySource.h @ 35:37e3c693af0c
* Make a single base Thread class for RT and non-RT threads
* Pull ResizeableBitmap out from the MatrixFile's ColumnBitmap
* Reorder SpectrogramLayer::paint somewhat so as to improve cache hit ratio
in the FFT file cache
author | Chris Cannam |
---|---|
date | Mon, 08 May 2006 16:44:47 +0000 |
parents | 4593a7ebad93 |
children | 4ed2448582cc |
comparison
equal
deleted
inserted
replaced
34:f6b15e0b6fde | 35:37e3c693af0c |
---|---|
21 #include "base/Scavenger.h" | 21 #include "base/Scavenger.h" |
22 | 22 |
23 #include <QObject> | 23 #include <QObject> |
24 #include <QMutex> | 24 #include <QMutex> |
25 #include <QWaitCondition> | 25 #include <QWaitCondition> |
26 #include <QThread> | 26 |
27 #include "base/Thread.h" | |
27 | 28 |
28 #include <samplerate.h> | 29 #include <samplerate.h> |
29 | 30 |
30 #include <set> | 31 #include <set> |
31 #include <map> | 32 #include <map> |
279 // which will be count or fewer. Return in the frame argument the | 280 // which will be count or fewer. Return in the frame argument the |
280 // new buffered frame position (which may be earlier than the | 281 // new buffered frame position (which may be earlier than the |
281 // frame argument passed in, in the case of looping). | 282 // frame argument passed in, in the case of looping). |
282 size_t mixModels(size_t &frame, size_t count, float **buffers); | 283 size_t mixModels(size_t &frame, size_t count, float **buffers); |
283 | 284 |
284 class AudioCallbackPlaySourceFillThread : public QThread | 285 class AudioCallbackPlaySourceFillThread : public Thread |
285 { | 286 { |
286 public: | 287 public: |
287 AudioCallbackPlaySourceFillThread(AudioCallbackPlaySource &source) : | 288 AudioCallbackPlaySourceFillThread(AudioCallbackPlaySource &source) : |
289 Thread(Thread::NonRTThread), | |
288 m_source(source) { } | 290 m_source(source) { } |
289 | 291 |
290 virtual void run(); | 292 virtual void run(); |
291 | 293 |
292 protected: | 294 protected: |