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
0a97e68a
Commit
0a97e68a
authored
Mar 08, 2021
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/wasapi: start after the buffer has been filled
Postpone the Start() call until there is something to be played.
parent
69783a44
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
WasapiOutputPlugin.cxx
src/output/plugins/wasapi/WasapiOutputPlugin.cxx
+8
-9
No files found.
src/output/plugins/wasapi/WasapiOutputPlugin.cxx
View file @
0a97e68a
...
...
@@ -355,17 +355,11 @@ try {
return
;
}
if
(
!
started
)
{
if
(
current_state
!=
Status
::
PLAY
)
/* don't bother starting the
IAudioClient if we're
paused */
if
(
!
started
&&
current_state
!=
Status
::
PLAY
)
/* don't bother starting the IAudioClient if
we're paused */
continue
;
Start
(
client
);
started
=
true
;
}
UINT32
write_in_frames
=
buffer_size_in_frames
;
if
(
!
is_exclusive
)
{
UINT32
data_in_frames
=
...
...
@@ -387,6 +381,11 @@ try {
AtScopeExit
(
&
)
{
render_client
->
ReleaseBuffer
(
write_in_frames
,
mode
);
if
(
!
started
)
{
Start
(
client
);
started
=
true
;
}
};
if
(
current_state
==
Status
::
PLAY
)
{
...
...
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