diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2007-11-04 16:33:12 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2007-11-04 16:33:12 +0000 |
| commit | 43bfdf725f0c3af2abd092326598c122902738b3 (patch) | |
| tree | a2e5ff9403b739a84300d15b5f3e5f442c864c69 /lib | |
| parent | 9af5abf5dce3006739c45cfb4a1c81b30b379460 (diff) | |
| download | qmmp-43bfdf725f0c3af2abd092326598c122902738b3.tar.gz qmmp-43bfdf725f0c3af2abd092326598c122902738b3.tar.bz2 qmmp-43bfdf725f0c3af2abd092326598c122902738b3.zip | |
faster seek speed when use alsa plugin as output
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@177 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/qmmp/Output/alsa/outputalsa.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/qmmp/Output/alsa/outputalsa.cpp b/lib/qmmp/Output/alsa/outputalsa.cpp index 5ee44c314..883076a83 100644 --- a/lib/qmmp/Output/alsa/outputalsa.cpp +++ b/lib/qmmp/Output/alsa/outputalsa.cpp @@ -261,6 +261,7 @@ void OutputALSA::run() done = m_userStop; + //qDebug("x1"); while (! done && (recycler()->empty() || m_pause)) { mutex()->unlock(); @@ -269,8 +270,8 @@ void OutputALSA::run() mutex()->lock (); done = m_userStop; status(); - } + //qDebug("x2"); if (! b) { @@ -301,8 +302,9 @@ void OutputALSA::run() } else if (m == -EAGAIN) { - //usleep(500); + mutex()->unlock(); snd_pcm_wait(pcm_handle, 500); + mutex()->lock(); } else if (m == -EPIPE) { @@ -463,7 +465,7 @@ void OutputALSA::parseMixerName(char *str, char **name, int *index) snd_mixer_elem_t* OutputALSA::getMixerElem(snd_mixer_t *mixer, char *name, int index) { - snd_mixer_selem_id_t *selem_id; + snd_mixer_selem_id_t* selem_id; snd_mixer_elem_t* elem; snd_mixer_selem_id_alloca(&selem_id); |
