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
9ade9398
Commit
9ade9398
authored
Mar 08, 2021
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/wasapi: rename method WaitDataPoped() to Wait()
parent
6931ce95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
WasapiOutputPlugin.cxx
src/output/plugins/wasapi/WasapiOutputPlugin.cxx
+10
-2
No files found.
src/output/plugins/wasapi/WasapiOutputPlugin.cxx
View file @
9ade9398
...
...
@@ -198,7 +198,15 @@ public:
void
Play
()
noexcept
{
return
SetStatus
(
Status
::
PLAY
);
}
void
Pause
()
noexcept
{
return
SetStatus
(
Status
::
PAUSE
);
}
void
WaitDataPoped
()
noexcept
{
data_poped
.
Wait
();
}
/**
* Wait for the thread to finish some work (e.g. until some
* buffer space becomes available).
*/
void
Wait
()
noexcept
{
data_poped
.
Wait
();
}
void
CheckException
()
{
if
(
error
.
occur
.
load
())
{
std
::
rethrow_exception
(
error
.
ptr
);
...
...
@@ -600,7 +608,7 @@ WasapiOutput::Play(const void *chunk, size_t size)
static_cast
<
const
BYTE
*>
(
input
.
data
),
input
.
size
);
if
(
consumed_size
==
0
)
{
assert
(
is_started
);
thread
->
Wait
DataPoped
();
thread
->
Wait
();
if
(
!
not_interrupted
.
test_and_set
())
{
throw
AudioOutputInterrupted
{};
}
...
...
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