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
8e485a15
Commit
8e485a15
authored
Aug 02, 2007
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Aug 03, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa: Fix GetPosition in dsoutput.
parent
0bd1fc46
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
dsoutput.c
dlls/winealsa.drv/dsoutput.c
+3
-2
No files found.
dlls/winealsa.drv/dsoutput.c
View file @
8e485a15
...
...
@@ -530,7 +530,7 @@ static HRESULT WINAPI IDsDriverBufferImpl_GetPosition(PIDSDRIVERBUFFER iface,
LPDWORD
lpdwPlay
,
LPDWORD
lpdwWrite
)
{
IDsDriverBufferImpl
*
This
=
(
IDsDriverBufferImpl
*
)
iface
;
snd_pcm_uframes_t
hw_pptr
=
0
,
hw_wptr
=
0
;
snd_pcm_uframes_t
hw_pptr
,
hw_wptr
;
snd_pcm_state_t
state
;
/* **** */
...
...
@@ -562,10 +562,11 @@ static HRESULT WINAPI IDsDriverBufferImpl_GetPosition(PIDSDRIVERBUFFER iface,
else
hw_pptr
=
This
->
mmap_buflen_frames
+
This
->
mmap_pos
-
used
;
hw_pptr
%=
This
->
mmap_buflen_frames
;
hw_wptr
=
This
->
mmap_pos
;
TRACE
(
"At position: %ld (%ld) - Used %ld
\n
"
,
hw_pptr
,
This
->
mmap_pos
,
used
);
}
else
hw_pptr
=
This
->
mmap_pos
;
hw_wptr
=
This
->
mmap_pos
;
LeaveCriticalSection
(
&
This
->
pcm_crst
);
/* **** */
...
...
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