Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
fd812bdc
Commit
fd812bdc
authored
Nov 28, 2007
by
Aric Stewart
Committed by
Alexandre Julliard
Nov 28, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecoreaudio: Implement WIDM_GETPOS.
parent
57d1548b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
audio.c
dlls/winecoreaudio.drv/audio.c
+24
-0
No files found.
dlls/winecoreaudio.drv/audio.c
View file @
fd812bdc
...
...
@@ -2129,6 +2129,29 @@ static DWORD widStop(WORD wDevID)
return
ret
;
}
/**************************************************************************
* widGetPos [internal]
*/
static
DWORD
widGetPos
(
WORD
wDevID
,
LPMMTIME
lpTime
,
UINT
size
)
{
DWORD
val
;
WINE_WAVEIN
*
wwi
;
TRACE
(
"(%u);
\n
"
,
wDevID
);
if
(
wDevID
>=
MAX_WAVEINDRV
)
{
WARN
(
"invalid device ID
\n
"
);
return
MMSYSERR_INVALHANDLE
;
}
wwi
=
&
WInDev
[
wDevID
];
OSSpinLockLock
(
&
WInDev
[
wDevID
].
lock
);
val
=
wwi
->
dwTotalRecorded
;
OSSpinLockUnlock
(
&
WInDev
[
wDevID
].
lock
);
return
bytes_to_mmtime
(
lpTime
,
val
,
&
wwi
->
format
);
}
/**************************************************************************
* widReset [internal]
...
...
@@ -2283,6 +2306,7 @@ DWORD WINAPI CoreAudio_widMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
case
WIDM_RESET
:
return
widReset
(
wDevID
);
case
WIDM_START
:
return
widStart
(
wDevID
);
case
WIDM_STOP
:
return
widStop
(
wDevID
);
case
WIDM_GETPOS
:
return
widGetPos
(
wDevID
,
(
LPMMTIME
)
dwParam1
,
(
UINT
)
dwParam2
);
case
DRV_QUERYDEVICEINTERFACESIZE
:
return
widDevInterfaceSize
(
wDevID
,
(
LPDWORD
)
dwParam1
);
case
DRV_QUERYDEVICEINTERFACE
:
return
widDevInterface
(
wDevID
,
(
PWCHAR
)
dwParam1
,
dwParam2
);
case
DRV_QUERYDSOUNDIFACE
:
return
widDsCreate
(
wDevID
,
(
PIDSCDRIVER
*
)
dwParam1
);
...
...
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