Skip to content

Commit

Permalink
A few changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed May 26, 2015
1 parent c3f1ea0 commit bed37aa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
11 changes: 9 additions & 2 deletions wavefunctions.cpp
Expand Up @@ -2,10 +2,17 @@
/* ============= */
/* Include files */
/* ============= */
#ifdef linux
#include "dx_linux.h"

#include "wavefunctions.h"


#else
#include "dxstdafx.h"

#include "WaveFunctions.h"

#endif
/*********************************************************************************
/
/ Function: MakeSoundBuffer
Expand Down Expand Up @@ -210,4 +217,4 @@ BOOL UnpackWAVChunk( void *pRIFFBytes, LPWAVEFORMATEX *lpwfmx, LPBYTE *lpChunkDa
} // while dwChunkBitsPtr
return FALSE;
}

#endif
7 changes: 5 additions & 2 deletions wavefunctions.h
@@ -1,10 +1,13 @@

#ifdef linux
#include "dx_linux.h"
#else
#include <windows.h>
#include <windowsx.h>
#include <dsound.h>

#endif

extern IDirectSoundBuffer8 *MakeSoundBuffer(IDirectSound8 *ds, LPCWSTR lpSampleName);
extern void *GetWAVRes(HMODULE hModule, LPCWSTR lpResName);
extern BOOL WriteWAVData( IDirectSoundBuffer8 *pDSB, BYTE *pbWaveData, DWORD cbWaveSize );
extern BOOL UnpackWAVChunk( void *pRIFFBytes, LPWAVEFORMATEX *lpwfmx, BYTE **ppbWaveData, DWORD *pcbWaveSize );

0 comments on commit bed37aa

Please sign in to comment.