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
3ade58b0
Commit
3ade58b0
authored
Dec 21, 2006
by
Ken Thomases
Committed by
Alexandre Julliard
Dec 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecoreaudio: Change to faster non-recursive mutex.
parent
d5975872
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
audio.c
dlls/winmm/winecoreaudio/audio.c
+1
-7
No files found.
dlls/winmm/winecoreaudio/audio.c
View file @
3ade58b0
...
@@ -438,7 +438,6 @@ LONG CoreAudio_WaveInit(void)
...
@@ -438,7 +438,6 @@ LONG CoreAudio_WaveInit(void)
OSStatus
status
;
OSStatus
status
;
UInt32
propertySize
;
UInt32
propertySize
;
CHAR
szPname
[
MAXPNAMELEN
];
CHAR
szPname
[
MAXPNAMELEN
];
pthread_mutexattr_t
mutexattr
;
int
i
;
int
i
;
HANDLE
hThread
;
HANDLE
hThread
;
CFStringRef
messageThreadPortName
;
CFStringRef
messageThreadPortName
;
...
@@ -472,9 +471,6 @@ LONG CoreAudio_WaveInit(void)
...
@@ -472,9 +471,6 @@ LONG CoreAudio_WaveInit(void)
CoreAudio_DefaultDevice
.
interface_name
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
CoreAudio_DefaultDevice
.
dev_name
)
+
1
);
CoreAudio_DefaultDevice
.
interface_name
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
CoreAudio_DefaultDevice
.
dev_name
)
+
1
);
sprintf
(
CoreAudio_DefaultDevice
.
interface_name
,
"%s"
,
CoreAudio_DefaultDevice
.
dev_name
);
sprintf
(
CoreAudio_DefaultDevice
.
interface_name
,
"%s"
,
CoreAudio_DefaultDevice
.
dev_name
);
pthread_mutexattr_init
(
&
mutexattr
);
pthread_mutexattr_settype
(
&
mutexattr
,
PTHREAD_MUTEX_RECURSIVE
);
for
(
i
=
0
;
i
<
MAX_WAVEOUTDRV
;
++
i
)
for
(
i
=
0
;
i
<
MAX_WAVEOUTDRV
;
++
i
)
{
{
WOutDev
[
i
].
state
=
WINE_WS_CLOSED
;
WOutDev
[
i
].
state
=
WINE_WS_CLOSED
;
...
@@ -509,10 +505,8 @@ LONG CoreAudio_WaveInit(void)
...
@@ -509,10 +505,8 @@ LONG CoreAudio_WaveInit(void)
WOutDev
[
i
].
caps
.
dwFormats
|=
WAVE_FORMAT_1M16
;
WOutDev
[
i
].
caps
.
dwFormats
|=
WAVE_FORMAT_1M16
;
WOutDev
[
i
].
caps
.
dwFormats
|=
WAVE_FORMAT_1S16
;
WOutDev
[
i
].
caps
.
dwFormats
|=
WAVE_FORMAT_1S16
;
pthread_mutex_init
(
&
WOutDev
[
i
].
lock
,
&
mutexattr
);
/* initialize the mutex */
pthread_mutex_init
(
&
WOutDev
[
i
].
lock
,
NULL
);
/* initialize the mutex */
}
}
pthread_mutexattr_destroy
(
&
mutexattr
);
/* create mach messages handler */
/* create mach messages handler */
srandomdev
();
srandomdev
();
...
...
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