diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2016-05-16 17:32:02 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2016-05-16 17:32:02 +0000 |
| commit | 0157714aa30f22487e3d04652d1442706293ebc7 (patch) | |
| tree | 73d6907a152cf80cd8bde3608dcd180f98ba9d3b /src/plugins/Output/directsound/outputdirectsound.h | |
| parent | 62f7371b8af93302a0d6044717e0d46399cc64e8 (diff) | |
| download | qmmp-0157714aa30f22487e3d04652d1442706293ebc7.tar.gz qmmp-0157714aa30f22487e3d04652d1442706293ebc7.tar.bz2 qmmp-0157714aa30f22487e3d04652d1442706293ebc7.zip | |
dsound: added multichannel support, added 24/32 bits support
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6354 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Output/directsound/outputdirectsound.h')
| -rw-r--r-- | src/plugins/Output/directsound/outputdirectsound.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/plugins/Output/directsound/outputdirectsound.h b/src/plugins/Output/directsound/outputdirectsound.h index 4aa9741ac..c938cd9a0 100644 --- a/src/plugins/Output/directsound/outputdirectsound.h +++ b/src/plugins/Output/directsound/outputdirectsound.h @@ -1,5 +1,5 @@ /***************************************************************************
- * Copyright (C) 2014 by Ilya Kotov *
+ * Copyright (C) 2014-2016 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -23,7 +23,14 @@ #include <stdio.h>
#include <windows.h>
-#include <initguid.h>
+#include <ksmedia.h>
+#include <mmreg.h>
+/*#undef CONST
+#include <winnt.h>
+#include <mmreg.h>
+#include <ksmedia.h>
+#include <windows.h>
+#include <initguid.h>*/
#include <dsound.h>
#include <qmmp/volume.h>
#include <qmmp/output.h>
@@ -65,6 +72,14 @@ private: IDirectSoundBuffer *m_primaryBuffer;
IDirectSoundBuffer8 *m_dsBuffer;
DWORD m_dsBufferAt;
+
+ typedef struct
+ {
+ Qmmp::ChannelPosition pos;
+ DWORD chan_mask;
+ } DSoundChannels;
+
+ static DSoundChannels m_dsound_pos[10];
};
/**
|
