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
00f80c60
Commit
00f80c60
authored
Jul 27, 2005
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Jul 27, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove all wait_for_poll associated stuff that is no longer needed.
parent
9317115e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
47 deletions
+0
-47
audio.c
dlls/winmm/winealsa/audio.c
+0
-47
No files found.
dlls/winmm/winealsa/audio.c
View file @
00f80c60
...
...
@@ -167,9 +167,6 @@ typedef struct {
DWORD
dwPlayedTotal
;
/* number of bytes actually played since opening */
DWORD
dwWrittenTotal
;
/* number of bytes written to ALSA buffer since opening */
struct
pollfd
*
ufds
;
int
count
;
/* synchronization stuff */
HANDLE
hStartUpEvent
;
HANDLE
hThread
;
...
...
@@ -2563,24 +2560,6 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
ALSA_InitRingMessage
(
&
wwo
->
msgRing
);
wwo
->
count
=
snd_pcm_poll_descriptors_count
(
pcm
);
if
(
wwo
->
count
<=
0
)
{
ERR
(
"Invalid poll descriptors count
\n
"
);
return
MMSYSERR_ERROR
;
}
wwo
->
ufds
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
struct
pollfd
)
*
wwo
->
count
);
if
(
wwo
->
ufds
==
NULL
)
{
ERR
(
"No enough memory
\n
"
);
retcode
=
MMSYSERR_NOMEM
;
goto
errexit
;
}
if
((
err
=
snd_pcm_poll_descriptors
(
pcm
,
wwo
->
ufds
,
wwo
->
count
))
<
0
)
{
ERR
(
"Unable to obtain poll descriptors for playback: %s
\n
"
,
snd_strerror
(
err
));
retcode
=
MMSYSERR_NOMEM
;
goto
errexit
;
}
if
(
!
(
dwFlags
&
WAVE_DIRECTSOUND
))
{
wwo
->
hStartUpEvent
=
CreateEventW
(
NULL
,
FALSE
,
FALSE
,
NULL
);
wwo
->
hThread
=
CreateThread
(
NULL
,
0
,
wodPlayer
,
(
LPVOID
)(
DWORD
)
wDevID
,
0
,
&
(
wwo
->
dwThreadID
));
...
...
@@ -2629,10 +2608,6 @@ errexit:
if
(
hw_params
)
snd_pcm_hw_params_free
(
hw_params
);
if
(
wwo
->
ufds
)
HeapFree
(
GetProcessHeap
(),
0
,
wwo
->
ufds
);
wwo
->
ufds
=
NULL
;
if
(
wwo
->
msgRing
.
ring_buffer_size
>
0
)
ALSA_DestroyRingMessage
(
&
wwo
->
msgRing
);
...
...
@@ -2688,9 +2663,6 @@ static DWORD wodClose(WORD wDevID)
ret
=
wodNotifyClient
(
wwo
,
WOM_CLOSE
,
0L
,
0L
);
}
/* JPW TODO: should we be freeing this in case of WAVERR_STILLPLAYING? */
HeapFree
(
GetProcessHeap
(),
0
,
wwo
->
ufds
);
wwo
->
ufds
=
NULL
;
return
ret
;
}
...
...
@@ -4110,22 +4082,6 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
ALSA_InitRingMessage
(
&
wwi
->
msgRing
);
wwi
->
count
=
snd_pcm_poll_descriptors_count
(
wwi
->
pcm
);
if
(
wwi
->
count
<=
0
)
{
ERR
(
"Invalid poll descriptors count
\n
"
);
return
MMSYSERR_ERROR
;
}
wwi
->
ufds
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
struct
pollfd
)
*
wwi
->
count
);
if
(
wwi
->
ufds
==
NULL
)
{
ERR
(
"No enough memory
\n
"
);
return
MMSYSERR_NOMEM
;
}
if
((
err
=
snd_pcm_poll_descriptors
(
wwi
->
pcm
,
wwi
->
ufds
,
wwi
->
count
))
<
0
)
{
ERR
(
"Unable to obtain poll descriptors for playback: %s
\n
"
,
snd_strerror
(
err
));
return
MMSYSERR_ERROR
;
}
wwi
->
dwPeriodSize
=
period_size
;
/*if (wwi->dwFragmentSize % wwi->format.Format.nBlockAlign)
ERR("Fragment doesn't contain an integral number of data blocks\n");
...
...
@@ -4192,9 +4148,6 @@ static DWORD widClose(WORD wDevID)
ret
=
widNotifyClient
(
wwi
,
WIM_CLOSE
,
0L
,
0L
);
}
/* JPW TODO: Do we really want to always free this, even in case of WAVERR_STILLPLAYING? */
HeapFree
(
GetProcessHeap
(),
0
,
wwi
->
ufds
);
wwi
->
ufds
=
NULL
;
return
ret
;
}
...
...
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