* Allow compilation on MSVC again

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3285 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2007-12-31 21:55:02 +00:00
parent 3912841537
commit 30d837ec90
1 changed files with 4 additions and 2 deletions

View File

@ -607,10 +607,12 @@ BOOL sound_Play3DSample( TRACK *psTrack, AUDIO_SAMPLE *psSample )
*/
bool sound_PlayStream(PHYSFS_file* fileHandle, float volume, void (*onFinished)(void*), void* user_data)
{
static const unsigned int buffer_count = 2;
#define BUF_COUNT 2 // HACK: circumvents MSVC's freakingly bad C support
static const unsigned int buffer_count = BUF_COUNT;
AUDIO_STREAM* stream;
ALuint buffers[buffer_count];
ALuint buffers[BUF_COUNT];
#undef BUF_COUNT
unsigned int i;