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
645f1efb
Commit
645f1efb
authored
May 13, 2007
by
Maarten Lankhorst
Committed by
Alexandre Julliard
May 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa: Remove dead code.
parent
7abb204a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
28 deletions
+0
-28
dsoutput.c
dlls/winealsa.drv/dsoutput.c
+0
-5
waveout.c
dlls/winealsa.drv/waveout.c
+0
-23
No files found.
dlls/winealsa.drv/dsoutput.c
View file @
645f1efb
...
@@ -421,11 +421,6 @@ static HRESULT WINAPI IDsDriverBufferImpl_GetPosition(PIDSDRIVERBUFFER iface,
...
@@ -421,11 +421,6 @@ static HRESULT WINAPI IDsDriverBufferImpl_GetPosition(PIDSDRIVERBUFFER iface,
if
(
wwo
->
hw_params
==
NULL
||
wwo
->
pcm
==
NULL
)
return
DSERR_GENERIC
;
if
(
wwo
->
hw_params
==
NULL
||
wwo
->
pcm
==
NULL
)
return
DSERR_GENERIC
;
#if 0 /* Shouldn't be needed */
/* we need to track down buffer underruns */
DSDB_CheckXRUN(This);
#endif
state
=
snd_pcm_state
(
wwo
->
pcm
);
state
=
snd_pcm_state
(
wwo
->
pcm
);
if
(
state
==
SND_PCM_STATE_RUNNING
)
if
(
state
==
SND_PCM_STATE_RUNNING
)
{
{
...
...
dlls/winealsa.drv/waveout.c
View file @
645f1efb
...
@@ -276,21 +276,6 @@ static DWORD wodPlayer_NotifyCompletions(WINE_WAVEDEV* wwo, BOOL force)
...
@@ -276,21 +276,6 @@ static DWORD wodPlayer_NotifyCompletions(WINE_WAVEDEV* wwo, BOOL force)
* - we hit the beginning of a running loop
* - we hit the beginning of a running loop
* - we hit a wavehdr which hasn't finished playing
* - we hit a wavehdr which hasn't finished playing
*/
*/
#if 0
while ((lpWaveHdr = wwo->lpQueuePtr) &&
(force ||
(lpWaveHdr != wwo->lpPlayPtr &&
lpWaveHdr != wwo->lpLoopPtr &&
lpWaveHdr->reserved <= wwo->dwPlayedTotal))) {
wwo->lpQueuePtr = lpWaveHdr->lpNext;
lpWaveHdr->dwFlags &= ~WHDR_INQUEUE;
lpWaveHdr->dwFlags |= WHDR_DONE;
wodNotifyClient(wwo, WOM_DONE, (DWORD)lpWaveHdr, 0);
}
#else
for
(;;)
for
(;;)
{
{
lpWaveHdr
=
wwo
->
lpQueuePtr
;
lpWaveHdr
=
wwo
->
lpQueuePtr
;
...
@@ -308,7 +293,6 @@ static DWORD wodPlayer_NotifyCompletions(WINE_WAVEDEV* wwo, BOOL force)
...
@@ -308,7 +293,6 @@ static DWORD wodPlayer_NotifyCompletions(WINE_WAVEDEV* wwo, BOOL force)
wodNotifyClient
(
wwo
,
WOM_DONE
,
(
DWORD
)
lpWaveHdr
,
0
);
wodNotifyClient
(
wwo
,
WOM_DONE
,
(
DWORD
)
lpWaveHdr
,
0
);
}
}
#endif
return
(
lpWaveHdr
&&
lpWaveHdr
!=
wwo
->
lpPlayPtr
&&
lpWaveHdr
!=
wwo
->
lpLoopPtr
)
?
return
(
lpWaveHdr
&&
lpWaveHdr
!=
wwo
->
lpPlayPtr
&&
lpWaveHdr
!=
wwo
->
lpLoopPtr
)
?
wodPlayer_NotifyWait
(
wwo
,
lpWaveHdr
)
:
INFINITE
;
wodPlayer_NotifyWait
(
wwo
,
lpWaveHdr
)
:
INFINITE
;
}
}
...
@@ -499,13 +483,6 @@ static DWORD wodPlayer_FeedDSP(WINE_WAVEDEV* wwo)
...
@@ -499,13 +483,6 @@ static DWORD wodPlayer_FeedDSP(WINE_WAVEDEV* wwo)
wodUpdatePlayedTotal
(
wwo
,
NULL
);
wodUpdatePlayedTotal
(
wwo
,
NULL
);
availInQ
=
snd_pcm_avail_update
(
wwo
->
pcm
);
availInQ
=
snd_pcm_avail_update
(
wwo
->
pcm
);
#if 0
/* input queue empty and output buffer with less than one fragment to play */
if (!wwo->lpPlayPtr && wwo->dwBufferSize < availInQ + wwo->dwFragmentSize) {
TRACE("Run out of wavehdr:s...\n");
return INFINITE;
}
#endif
/* no more room... no need to try to feed */
/* no more room... no need to try to feed */
if
(
availInQ
>
0
)
{
if
(
availInQ
>
0
)
{
/* Feed from partial wavehdr */
/* Feed from partial wavehdr */
...
...
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