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
3e484637
Commit
3e484637
authored
Mar 10, 2021
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/wasapi: rename OpenDevice() to ChooseDevice()
OpenDevice was a confusing name because it does not actually open a device.
parent
3e93c392
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
WasapiOutputPlugin.cxx
src/output/plugins/wasapi/WasapiOutputPlugin.cxx
+4
-4
No files found.
src/output/plugins/wasapi/WasapiOutputPlugin.cxx
View file @
3e484637
...
...
@@ -253,7 +253,7 @@ public:
com_worker
=
std
::
make_shared
<
COMWorker
>
();
try
{
com_worker
->
Async
([
&
]()
{
Open
Device
();
}).
get
();
com_worker
->
Async
([
&
]()
{
Choose
Device
();
}).
get
();
}
catch
(...)
{
com_worker
.
reset
();
throw
;
...
...
@@ -288,7 +288,7 @@ private:
void
DoDisable
()
noexcept
;
void
DoOpen
(
AudioFormat
&
audio_format
);
void
Open
Device
();
void
Choose
Device
();
bool
TryFormatExclusive
(
const
AudioFormat
&
audio_format
);
void
FindExclusiveFormatSupported
(
AudioFormat
&
audio_format
);
void
FindSharedFormatSupported
(
AudioFormat
&
audio_format
);
...
...
@@ -445,7 +445,7 @@ WasapiOutput::DoOpen(AudioFormat &audio_format)
if
(
GetState
(
*
device
)
!=
DEVICE_STATE_ACTIVE
)
{
device
.
reset
();
Open
Device
();
Choose
Device
();
}
client
=
Activate
<
IAudioClient
>
(
*
device
);
...
...
@@ -693,7 +693,7 @@ WasapiOutput::Cancel() noexcept
/// run inside COMWorkerThread
void
WasapiOutput
::
Open
Device
()
WasapiOutput
::
Choose
Device
()
{
ComPtr
<
IMMDeviceEnumerator
>
enumerator
;
enumerator
.
CoCreateInstance
(
__uuidof
(
MMDeviceEnumerator
),
nullptr
,
...
...
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