You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Qt Simulator, the current audio output code plays only the first instruction
file (the beep), then no audio is played until restart of monav. I found that
it goes into QAudio::IdleState after playing a file. But if you OR IdleState
with StoppedState on maemo5, it stops working after a few instructions. The
patch below works for these two build targets. I don't know about other
targets. Maybe it must be different to work elsewhere.
diff -r 6c760c6d093f -r dffa80ee0e0c client/audio.cpp
--- a/client/audio.cpp Sat Feb 25 12:03:56 2012 +0100
+++ b/client/audio.cpp Thu Apr 05 21:48:33 2012 +0200
@@ -95,7 +95,11 @@
return;
}
+#ifdef Q_WS_MAEMO_5
if ( m_audioOut->state() == QAudio::StoppedState ){
+#else
+ if ( (m_audioOut->state() == QAudio::StoppedState) ||
(m_audioOut->state() == QAudio::IdleState) ){
+#endif
m_audioOut->start( &m_audioFile );
}
else if ( m_audioOut->state() == QAudio::SuspendedState ){
Original issue reported on code.google.com by [email protected] on 10 Apr 2012 at 8:06
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 10 Apr 2012 at 8:06The text was updated successfully, but these errors were encountered: