1
0
forked from 0ad/0ad

Minor changes to make the sound code compile without any errors

This was SVN commit r802.
This commit is contained in:
Ykkrosh 2004-07-22 13:24:03 +00:00
parent b39a059e10
commit 2bd2dfd6ab
3 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,5 @@
#include "precompiled.h"
#include "CMusicPlayer.h"
size_t VorbisRead(void *ptr, size_t byteSize, size_t sizeToRead, void *datasource)
@ -297,15 +299,15 @@ void CMusicPlayer::empty()
bool CMusicPlayer::stream(ALuint buffer)
{
char data[BUFFER_SIZE];
char data[AUDIO_BUFFER_SIZE];
int size = 0;
int section, ret;
while(size < BUFFER_SIZE)
while(size < AUDIO_BUFFER_SIZE)
{
ret = ov_read(&oggStream, data + size, BUFFER_SIZE - size,0,2,1,&section);
ret = ov_read(&oggStream, data + size, AUDIO_BUFFER_SIZE - size,0,2,1,&section);
if(ret > 0)
{

View File

@ -11,7 +11,7 @@
#include <vorbis/codec.h>
#include <vorbis/vorbisfile.h>
#define BUFFER_SIZE (64*1024)
#define AUDIO_BUFFER_SIZE (64*1024)
struct SOggFile
{

View File

@ -1,3 +1,5 @@
#include "precompiled.h"
#include "CPlayList.h"
#include <iostream>