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
cfce8ab4
Commit
cfce8ab4
authored
Nov 07, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
Nov 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecoreaudio.drv: Give a name to the midi and mmdevapi critical sections.
parent
9b55cc9e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
midi.c
dlls/winecoreaudio.drv/midi.c
+2
-0
mmdevdrv.c
dlls/winecoreaudio.drv/mmdevdrv.c
+16
-3
No files found.
dlls/winecoreaudio.drv/midi.c
View file @
cfce8ab4
...
...
@@ -126,6 +126,7 @@ LONG CoreAudio_MIDIInit(void)
if
(
MIDIIn_NumDevs
>
0
)
{
InitializeCriticalSection
(
&
midiInLock
);
midiInLock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": midiInLock"
);
MIDIInThreadPortName
=
CFStringCreateWithFormat
(
kCFAllocatorDefault
,
NULL
,
CFSTR
(
"MIDIInThreadPortName.%u"
),
getpid
());
CreateThread
(
NULL
,
0
,
MIDIIn_MessageThread
,
NULL
,
0
,
NULL
);
...
...
@@ -207,6 +208,7 @@ LONG CoreAudio_MIDIRelease(void)
CFMessagePortSendRequest
(
messagePort
,
1
,
NULL
,
0
.
0
,
0
.
0
,
NULL
,
NULL
);
CFRelease
(
messagePort
);
midiInLock
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
midiInLock
);
}
...
...
dlls/winecoreaudio.drv/mmdevdrv.c
View file @
cfce8ab4
...
...
@@ -172,6 +172,13 @@ typedef struct _SessionMgr {
static
HANDLE
g_timer_q
;
static
CRITICAL_SECTION
g_sessions_lock
;
static
CRITICAL_SECTION_DEBUG
g_sessions_lock_debug
=
{
0
,
0
,
&
g_sessions_lock
,
{
&
g_sessions_lock_debug
.
ProcessLocksList
,
&
g_sessions_lock_debug
.
ProcessLocksList
},
0
,
0
,
{
(
DWORD_PTR
)(
__FILE__
": g_sessions_lock"
)
}
};
static
CRITICAL_SECTION
g_sessions_lock
=
{
&
g_sessions_lock_debug
,
-
1
,
0
,
0
,
0
,
0
};
static
struct
list
g_sessions
=
LIST_INIT
(
g_sessions
);
static
HRESULT
AudioClock_GetPosition_nolock
(
ACImpl
*
This
,
UINT64
*
pos
,
...
...
@@ -231,14 +238,19 @@ static inline SessionMgr *impl_from_IAudioSessionManager2(IAudioSessionManager2
BOOL
WINAPI
DllMain
(
HINSTANCE
dll
,
DWORD
reason
,
void
*
reserved
)
{
if
(
reason
==
DLL_PROCESS_ATTACH
){
switch
(
reason
)
{
case
DLL_PROCESS_ATTACH
:
g_timer_q
=
CreateTimerQueue
();
if
(
!
g_timer_q
)
return
FALSE
;
break
;
InitializeCriticalSection
(
&
g_sessions_lock
);
case
DLL_PROCESS_DETACH
:
g_sessions_lock
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
g_sessions_lock
);
break
;
}
return
TRUE
;
}
...
...
@@ -777,6 +789,7 @@ static AudioSession *create_session(const GUID *guid, IMMDevice *device,
list_add_head
(
&
g_sessions
,
&
ret
->
entry
);
InitializeCriticalSection
(
&
ret
->
lock
);
ret
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": AudioSession.lock"
);
session_init_vols
(
ret
,
num_channels
);
...
...
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