Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
def120ac
Commit
def120ac
authored
4 years ago
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/pulse: eliminate the `pause` field
It is useless, because we're always checking pa_stream_is_corked().
parent
6d2b09ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
PulseOutputPlugin.cxx
src/output/plugins/PulseOutputPlugin.cxx
+1
-7
No files found.
src/output/plugins/PulseOutputPlugin.cxx
View file @
def120ac
...
...
@@ -56,8 +56,6 @@ class PulseOutput final : AudioOutput {
size_t
writable
;
bool
pause
;
/**
* Was Interrupt() called? This will unblock Play(). It will
* be reset by Cancel() and Pause(), as documented by the
...
...
@@ -688,7 +686,6 @@ PulseOutput::Open(AudioFormat &audio_format)
"pa_stream_connect_playback() has failed"
);
}
pause
=
false
;
interrupted
=
false
;
}
...
...
@@ -780,7 +777,7 @@ PulseOutput::Delay() const noexcept
Pulse
::
LockGuard
lock
(
mainloop
);
auto
result
=
std
::
chrono
::
steady_clock
::
duration
::
zero
();
if
(
pa
use
&&
pa
_stream_is_corked
(
stream
)
&&
if
(
pa_stream_is_corked
(
stream
)
&&
pa_stream_get_state
(
stream
)
==
PA_STREAM_READY
)
/* idle while paused */
result
=
std
::
chrono
::
seconds
(
1
);
...
...
@@ -796,8 +793,6 @@ PulseOutput::Play(const void *chunk, size_t size)
Pulse
::
LockGuard
lock
(
mainloop
);
pause
=
false
;
/* check if the stream is (already) connected */
WaitStream
();
...
...
@@ -876,7 +871,6 @@ PulseOutput::Pause()
Pulse
::
LockGuard
lock
(
mainloop
);
pause
=
true
;
interrupted
=
false
;
/* check if the stream is (already/still) connected */
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment