Needed the FAudio Processor in FAudioCreate
This commit is contained in:
parent
af98f532b1
commit
0bfbcfa332
|
@ -40,7 +40,7 @@ int GetFADevices(FAudio* fa, wxArrayString* names, wxArrayString* ids,
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
if (ids) {
|
if (ids) {
|
||||||
ids->push_back((wchar_t*) dd.DeviceID);
|
ids->push_back((wchar_t*) dd.DeviceID); //FAudio is an interesting beast, but not that hard to adapt... once you get used to it, XAudio2 wouldn't need this, but FAudio declares FAudioDeviceDetails as int32_t
|
||||||
names->push_back((wchar_t*) dd.DisplayName);
|
names->push_back((wchar_t*) dd.DisplayName);
|
||||||
} else if (*match == dd.DeviceID)
|
} else if (*match == dd.DeviceID)
|
||||||
return i;
|
return i;
|
||||||
|
@ -59,7 +59,7 @@ bool GetFADevices(wxArrayString& names, wxArrayString& ids)
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
flags = FAUDIO_DEBUG_ENGINE;
|
flags = FAUDIO_DEBUG_ENGINE;
|
||||||
#endif
|
#endif
|
||||||
hr = FAudioCreate(&fa, flags);
|
hr = FAudioCreate(&fa, flags, FAUDIO_DEFAULT_PROCESSOR); //Apparently this needs 3 parameters, the processor.
|
||||||
|
|
||||||
if (hr != S_OK) {
|
if (hr != S_OK) {
|
||||||
wxLogError(_("The FAudio interface failed to initialize!"));
|
wxLogError(_("The FAudio interface failed to initialize!"));
|
||||||
|
|
Loading…
Reference in New Issue