mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 23:27:17 +00:00
wineoss: 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
3b8d9ac3d2
commit
153f5de67e
|
@ -252,10 +252,10 @@ static HRESULT stream_release(struct oss_stream *stream, HANDLE timer_thread)
|
||||||
|
|
||||||
static DWORD WINAPI timer_thread(void *user)
|
static DWORD WINAPI timer_thread(void *user)
|
||||||
{
|
{
|
||||||
struct oss_stream *stream = user;
|
|
||||||
struct timer_loop_params params;
|
struct timer_loop_params params;
|
||||||
|
struct ACImpl *This = user;
|
||||||
|
|
||||||
params.stream = stream;
|
params.stream = This->stream;
|
||||||
OSS_CALL(timer_loop, ¶ms);
|
OSS_CALL(timer_loop, ¶ms);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -913,7 +913,7 @@ static HRESULT WINAPI AudioClient_Start(IAudioClient3 *iface)
|
||||||
OSS_CALL(start, ¶ms);
|
OSS_CALL(start, ¶ms);
|
||||||
|
|
||||||
if(SUCCEEDED(params.result) && !This->timer_thread){
|
if(SUCCEEDED(params.result) && !This->timer_thread){
|
||||||
This->timer_thread = CreateThread(NULL, 0, timer_thread, This->stream, 0, NULL);
|
This->timer_thread = CreateThread(NULL, 0, timer_thread, This, 0, NULL);
|
||||||
SetThreadPriority(This->timer_thread, THREAD_PRIORITY_TIME_CRITICAL);
|
SetThreadPriority(This->timer_thread, THREAD_PRIORITY_TIME_CRITICAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue