1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-09 04:30:09 +00:00

Minor clean-ups.

This commit is contained in:
Julian Storer 2011-03-17 16:47:17 +00:00
parent 8ea44694dc
commit 7485498ee7
23 changed files with 100 additions and 186 deletions

View file

@ -292,9 +292,7 @@ public:
{
IDirectSoundBuffer* pPrimaryBuffer;
DSBUFFERDESC primaryDesc;
zerostruct (primaryDesc);
DSBUFFERDESC primaryDesc = { 0 };
primaryDesc.dwSize = sizeof (DSBUFFERDESC);
primaryDesc.dwFlags = 1 /* DSBCAPS_PRIMARYBUFFER */;
primaryDesc.dwBufferBytes = 0;
@ -320,9 +318,7 @@ public:
if (hr == S_OK)
{
DSBUFFERDESC secondaryDesc;
zerostruct (secondaryDesc);
DSBUFFERDESC secondaryDesc = { 0 };
secondaryDesc.dwSize = sizeof (DSBUFFERDESC);
secondaryDesc.dwFlags = 0x8000 /* DSBCAPS_GLOBALFOCUS */
| 0x10000 /* DSBCAPS_GETCURRENTPOSITION2 */;
@ -620,9 +616,7 @@ public:
wfFormat.nAvgBytesPerSec = wfFormat.nSamplesPerSec * wfFormat.nBlockAlign;
wfFormat.cbSize = 0;
DSCBUFFERDESC captureDesc;
zerostruct (captureDesc);
DSCBUFFERDESC captureDesc = { 0 };
captureDesc.dwSize = sizeof (DSCBUFFERDESC);
captureDesc.dwFlags = 0;
captureDesc.dwBufferBytes = totalBytesPerBuffer;