Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ThreeDeeJay committed Jun 27, 2022
2 parents e20b690 + 00c33c4 commit 42d12d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions dsound8.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,12 +342,14 @@ static HRESULT DSShare_Create(REFIID guid, DeviceShare **out)
}
if(share->sources.maxhw_alloc > 0 && HAS_EXTENSION(share, EXT_EAX))
{
EAXSet(&DSPROPSETID_EAX20_BufferProperties, DSPROPERTY_EAX20BUFFER_COMMITDEFERREDSETTINGS,
share->sources.ids[0], NULL, 0);
EAXGet(&EAXPROPERTYID_EAX40_Source, EAXSOURCE_ALLPARAMETERS, share->sources.ids[0],
&share->default_srcprops, sizeof(share->default_srcprops));
EAXGet(&EAXPROPERTYID_EAX40_Source, EAXSOURCE_ALLSENDPARAMETERS, share->sources.ids[0],
&share->default_srcsend, sizeof(share->default_srcsend));
EAXGet(&EAXPROPERTYID_EAX40_Source, EAXSOURCE_ACTIVEFXSLOTID, share->sources.ids[0],
&share->default_srcslots, sizeof(share->default_srcslots));
share->default_srcslots[0] = GUID_NULL;
share->default_srcslots[1] = EAXPROPERTYID_EAX40_FXSlot0;
}
popALContext();

Expand Down
2 changes: 1 addition & 1 deletion dsound_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ enum {
*/
#define MAX_HWBUFFERS 128

#define MAX_SOURCES 256
#define MAX_SOURCES 512
typedef struct SourceCollection {
DWORD maxhw_alloc, availhw_num;
DWORD maxsw_alloc, availsw_num;
Expand Down

0 comments on commit 42d12d4

Please sign in to comment.