Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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
wine
wine-winehq
Commits
b9a66b1b
Commit
b9a66b1b
authored
May 06, 2011
by
Andrew Eikum
Committed by
Alexandre Julliard
May 09, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecoreaudio.drv: Store the PropertyScope in ACImpl.
parent
5f4081e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
22 deletions
+13
-22
mmdevdrv.c
dlls/winecoreaudio.drv/mmdevdrv.c
+13
-22
No files found.
dlls/winecoreaudio.drv/mmdevdrv.c
View file @
b9a66b1b
...
...
@@ -112,6 +112,7 @@ struct ACImpl {
AudioDeviceID
adevid
;
AudioQueueRef
aqueue
;
AudioObjectPropertyScope
scope
;
HANDLE
timer
;
UINT32
period_ms
,
bufsize_frames
,
inbuf_frames
,
written_frames
;
UINT64
last_time
;
...
...
@@ -402,6 +403,15 @@ HRESULT WINAPI AUDDRV_GetAudioEndpoint(AudioDeviceID *adevid, IMMDevice *dev,
This
->
dataflow
=
dataflow
;
if
(
dataflow
==
eRender
)
This
->
scope
=
kAudioDevicePropertyScopeOutput
;
else
if
(
dataflow
==
eCapture
)
This
->
scope
=
kAudioDevicePropertyScopeInput
;
else
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
E_INVALIDARG
;
}
This
->
lock
=
0
;
This
->
parent
=
dev
;
...
...
@@ -872,12 +882,7 @@ static HRESULT ca_get_max_stream_latency(ACImpl *This, UInt32 *max)
OSStatus
sc
;
int
nstreams
,
i
;
if
(
This
->
dataflow
==
eRender
)
addr
.
mScope
=
kAudioDevicePropertyScopeOutput
;
else
if
(
This
->
dataflow
==
eCapture
)
addr
.
mScope
=
kAudioDevicePropertyScopeInput
;
else
return
E_UNEXPECTED
;
addr
.
mScope
=
This
->
scope
;
addr
.
mElement
=
0
;
addr
.
mSelector
=
kAudioDevicePropertyStreams
;
...
...
@@ -944,14 +949,7 @@ static HRESULT WINAPI AudioClient_GetStreamLatency(IAudioClient *iface,
return
AUDCLNT_E_NOT_INITIALIZED
;
}
if
(
This
->
dataflow
==
eRender
)
addr
.
mScope
=
kAudioDevicePropertyScopeOutput
;
else
if
(
This
->
dataflow
==
eCapture
)
addr
.
mScope
=
kAudioDevicePropertyScopeInput
;
else
{
OSSpinLockUnlock
(
&
This
->
lock
);
return
E_UNEXPECTED
;
}
addr
.
mScope
=
This
->
scope
;
addr
.
mSelector
=
kAudioDevicePropertyLatency
;
addr
.
mElement
=
0
;
...
...
@@ -1077,14 +1075,7 @@ static HRESULT WINAPI AudioClient_GetMixFormat(IAudioClient *iface,
fmt
->
Format
.
wFormatTag
=
WAVE_FORMAT_EXTENSIBLE
;
if
(
This
->
dataflow
==
eRender
)
addr
.
mScope
=
kAudioDevicePropertyScopeOutput
;
else
if
(
This
->
dataflow
==
eCapture
)
addr
.
mScope
=
kAudioDevicePropertyScopeInput
;
else
{
OSSpinLockUnlock
(
&
This
->
lock
);
return
E_UNEXPECTED
;
}
addr
.
mScope
=
This
->
scope
;
addr
.
mElement
=
0
;
addr
.
mSelector
=
kAudioDevicePropertyStreamConfiguration
;
...
...
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