summaryrefslogtreecommitdiffstats
path: root/examples/multimedia/audiooutput/audiooutput.h
diff options
context:
space:
mode:
authord3fault <d3fault@d3fault.net>2015-03-13 18:38:37 -0700
committerYoann Lopes <yoann.lopes@theqtcompany.com>2015-04-10 22:21:57 +0000
commite88da21a2024c404c19cf412a5afc0938a517bc9 (patch)
tree80fddbab5c228ef5cf5b77896c139027af02839e /examples/multimedia/audiooutput/audiooutput.h
parent614dee2f8ff80866135557d080bdcaa9de1d9c1c (diff)
Made audio output example easier to understand. No real code changes
Maybe it's just me, but every time I try to read the "toggleMode" method in the audio output example, I get confused on whether I'm switching to/ from push/pull mode, and even what pushing and pulling entails. The name of the push timer also seemed backwards (which added to the confusion). Change-Id: I5ff7d18f72490c22b91a948ad7513b402a01c5e4 Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
Diffstat (limited to 'examples/multimedia/audiooutput/audiooutput.h')
-rw-r--r--examples/multimedia/audiooutput/audiooutput.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/multimedia/audiooutput/audiooutput.h b/examples/multimedia/audiooutput/audiooutput.h
index e830058fb..7c2454209 100644
--- a/examples/multimedia/audiooutput/audiooutput.h
+++ b/examples/multimedia/audiooutput/audiooutput.h
@@ -91,7 +91,7 @@ private:
void createAudioOutput();
private:
- QTimer *m_pullTimer;
+ QTimer *m_pushTimer;
// Owned by layout
QPushButton *m_modeButton;
@@ -110,7 +110,7 @@ private:
QByteArray m_buffer;
private slots:
- void pullTimerExpired();
+ void pushTimerExpired();
void toggleMode();
void toggleSuspendResume();
void deviceChanged(int index);