mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
winealsa: Pass a client ptr to the callback instead of a stream.
This is to allow stream handles to be larger than sizeof(void *). Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
56056f39d9
commit
3f545935e0
1 changed files with 3 additions and 3 deletions
|
@ -243,10 +243,10 @@ static HRESULT alsa_stream_release(struct alsa_stream *stream, HANDLE timer_thre
|
|||
|
||||
static DWORD WINAPI alsa_timer_thread(void *user)
|
||||
{
|
||||
struct alsa_stream *stream = user;
|
||||
struct timer_loop_params params;
|
||||
struct ACImpl *This = user;
|
||||
|
||||
params.stream = stream;
|
||||
params.stream = This->stream;
|
||||
|
||||
ALSA_CALL(timer_loop, ¶ms);
|
||||
|
||||
|
@ -954,7 +954,7 @@ static HRESULT WINAPI AudioClient_Start(IAudioClient3 *iface)
|
|||
ALSA_CALL(start, ¶ms);
|
||||
|
||||
if(SUCCEEDED(params.result) && !This->timer_thread){
|
||||
This->timer_thread = CreateThread(NULL, 0, alsa_timer_thread, This->stream, 0, NULL);
|
||||
This->timer_thread = CreateThread(NULL, 0, alsa_timer_thread, This, 0, NULL);
|
||||
SetThreadPriority(This->timer_thread, THREAD_PRIORITY_TIME_CRITICAL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue