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
ecadabe2
Commit
ecadabe2
authored
Feb 09, 2016
by
Andrew Eikum
Committed by
Alexandre Julliard
Feb 10, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xaudio2: Handle openal source allocation failure.
Signed-off-by:
Andrew Eikum
<
aeikum@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0706019a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
xaudio_dll.c
dlls/xaudio2_7/xaudio_dll.c
+11
-0
No files found.
dlls/xaudio2_7/xaudio_dll.c
View file @
ecadabe2
...
...
@@ -32,6 +32,7 @@
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
xaudio2
);
WINE_DECLARE_DEBUG_CHANNEL
(
winediag
);
static
ALCdevice
*
(
ALC_APIENTRY
*
palcLoopbackOpenDeviceSOFT
)(
const
ALCchar
*
);
static
void
(
ALC_APIENTRY
*
palcRenderSamplesSOFT
)(
ALCdevice
*
,
ALCvoid
*
,
ALCsizei
);
...
...
@@ -1415,11 +1416,21 @@ static HRESULT WINAPI IXAudio2Impl_CreateSourceVoice(IXAudio2 *iface,
hr
=
XA2SRC_SetOutputVoices
(
&
src
->
IXAudio2SourceVoice_iface
,
pSendList
);
if
(
FAILED
(
hr
)){
HeapFree
(
GetProcessHeap
(),
0
,
src
->
fmt
);
src
->
in_use
=
FALSE
;
return
hr
;
}
alGenSources
(
1
,
&
src
->
al_src
);
if
(
!
src
->
al_src
){
static
int
once
=
0
;
if
(
!
once
++
)
ERR_
(
winediag
)(
"OpenAL ran out of sources, consider increasing its source limit.
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
src
->
fmt
);
src
->
in_use
=
FALSE
;
return
E_OUTOFMEMORY
;
}
alGenBuffers
(
XAUDIO2_MAX_QUEUED_BUFFERS
,
src
->
al_bufs
);
alSourcePlay
(
src
->
al_src
);
...
...
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