4 Commits

Author SHA1 Message Date
Chris Robinson
b938ccecae Remove unused HAVE_INITGUID_H check
Both MSVC and MinGW seem to have guiddef.h, so initguid.h would never be
checked or used.
2024-05-07 05:16:10 -07:00
Chris Robinson
5c143f8faa Avoid explicit definitions of some IIDs 2023-06-05 19:42:34 -07:00
Deal(一线灵)
3caadcf616 Improve wasapi backend UWP support (#853)
* Improve wasapi, support uwp build

* Fix compile errors

* [UWP] Support ReadALConfig from app roaming

* [UWP] Post disconnect event when default device changed

* [UWP] Fix appveyor ci

* [WIN32] Default device change notification support

* Fix warnings

* Add event to notify the app when the default device changes

- Event type: AL_EVENT_TYPE_DEFAULT_DEVICE_CHANGED_SOFT=0x19A7
- Event callback parameters:
  void _onALSoftEvent(ALenum eventType,
                    ALuint object, // dataFlow: 0(render), 1(capture)
                    ALuint param, // 0
                    ALsizei length, // 0
                    const ALchar* message, // Default device changed:<deviceId>
                    void* userParam);

* Fix warnings

* Fire default device changed event in mixerProc thread

* Fix compile warning

* [UWP] Improve cmake

* Revert changes

* Notify default device change by system event callback

* Revert insignificant change

* Remove duplicate call
2023-05-31 07:24:11 +00:00
Chris Robinson
519672c8e5 Move some more sources to core 2021-04-24 03:47:23 -07:00