summaryrefslogtreecommitdiffstats
path: root/src/audio/oal/aldlist.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-24 00:07:03 +0200
committerSergeanur <s.anureev@yandex.ua>2020-05-24 00:07:03 +0200
commit0c4ce002f1e076f278fde12673ef8f973952b785 (patch)
treea0a0f735277f21cfafc1cc4d9f990e340d473009 /src/audio/oal/aldlist.h
parentCleanup (diff)
parentFix OAL crash (diff)
downloadre3-0c4ce002f1e076f278fde12673ef8f973952b785.tar
re3-0c4ce002f1e076f278fde12673ef8f973952b785.tar.gz
re3-0c4ce002f1e076f278fde12673ef8f973952b785.tar.bz2
re3-0c4ce002f1e076f278fde12673ef8f973952b785.tar.lz
re3-0c4ce002f1e076f278fde12673ef8f973952b785.tar.xz
re3-0c4ce002f1e076f278fde12673ef8f973952b785.tar.zst
re3-0c4ce002f1e076f278fde12673ef8f973952b785.zip
Diffstat (limited to 'src/audio/oal/aldlist.h')
-rw-r--r--src/audio/oal/aldlist.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/audio/oal/aldlist.h b/src/audio/oal/aldlist.h
index 694c9d01..3afa6bfe 100644
--- a/src/audio/oal/aldlist.h
+++ b/src/audio/oal/aldlist.h
@@ -8,15 +8,20 @@
#include <vector>
#include <string>
-typedef struct
-{
+struct ALDEVICEINFO {
std::string strDeviceName;
int iMajorVersion;
int iMinorVersion;
unsigned int uiSourceCount;
std::vector<std::string> *pvstrExtensions;
bool bSelected;
-} ALDEVICEINFO, *LPALDEVICEINFO;
+
+ ALDEVICEINFO() : iMajorVersion(0), iMinorVersion(0), uiSourceCount(0), pvstrExtensions(NULL), bSelected(false)
+ {
+ }
+};
+
+typedef ALDEVICEINFO *LPALDEVICEINFO;
class ALDeviceList
{