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
f6ac7696
Commit
f6ac7696
authored
Oct 17, 2009
by
Jörg Höhle
Committed by
Alexandre Julliard
Oct 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecoreaudio: Move ERR&WARN out of OSSpinLock sections.
parent
534f20bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
audio.c
dlls/winecoreaudio.drv/audio.c
+4
-4
No files found.
dlls/winecoreaudio.drv/audio.c
View file @
f6ac7696
...
...
@@ -984,8 +984,8 @@ static DWORD wodClose(WORD wDevID, WINE_WAVEOUT_INSTANCE* wwo)
OSSpinLockLock
(
&
wwo
->
lock
);
if
(
wwo
->
lpQueuePtr
)
{
WARN
(
"buffers still playing !
\n
"
);
OSSpinLockUnlock
(
&
wwo
->
lock
);
WARN
(
"buffers still playing !
\n
"
);
ret
=
WAVERR_STILLPLAYING
;
}
else
{
...
...
@@ -1953,8 +1953,8 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
wwi
->
format
.
wf
.
nChannels
,
wwi
->
format
.
wf
.
nSamplesPerSec
,
wwi
->
format
.
wBitsPerSample
,
&
frameCount
))
{
ERR
(
"AudioUnit_CreateInputUnit failed
\n
"
);
OSSpinLockUnlock
(
&
wwi
->
lock
);
ERR
(
"AudioUnit_CreateInputUnit failed
\n
"
);
return
MMSYSERR_ERROR
;
}
...
...
@@ -1963,10 +1963,10 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
wwi
->
format
.
wBitsPerSample
,
frameCount
,
TRUE
);
if
(
wwi
->
bufferList
==
NULL
)
{
ERR
(
"Failed to allocate buffer list
\n
"
);
AudioUnitUninitialize
(
wwi
->
audioUnit
);
AudioUnit_CloseAudioUnit
(
wwi
->
audioUnit
);
OSSpinLockUnlock
(
&
wwi
->
lock
);
ERR
(
"Failed to allocate buffer list
\n
"
);
return
MMSYSERR_NOMEM
;
}
...
...
@@ -1975,11 +1975,11 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
wwi
->
bufferListCopy
=
HeapAlloc
(
GetProcessHeap
(),
0
,
AUDIOBUFFERLISTSIZE
(
wwi
->
bufferList
->
mNumberBuffers
));
if
(
wwi
->
bufferListCopy
==
NULL
)
{
ERR
(
"Failed to allocate buffer list copy
\n
"
);
widHelper_DestroyAudioBufferList
(
wwi
->
bufferList
);
AudioUnitUninitialize
(
wwi
->
audioUnit
);
AudioUnit_CloseAudioUnit
(
wwi
->
audioUnit
);
OSSpinLockUnlock
(
&
wwi
->
lock
);
ERR
(
"Failed to allocate buffer list copy
\n
"
);
return
MMSYSERR_NOMEM
;
}
memcpy
(
wwi
->
bufferListCopy
,
wwi
->
bufferList
,
AUDIOBUFFERLISTSIZE
(
wwi
->
bufferList
->
mNumberBuffers
));
...
...
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