- Timestamp:
- Apr 16, 2006, 7:51:18 PM (19 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/particles/particle_system.cc
r7300 r7301 14 14 */ 15 15 16 #define DEBUG_SPECIAL_MODULE 5 //DEBUG_MODULE_GRAPHICS16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GRAPHICS 17 17 18 18 #include "particle_system.h" -
trunk/src/lib/sound/ogg_player.cc
r7299 r7301 69 69 if (this->buffers[0] != 0 && this->buffers[1] != 0) 70 70 state |= BuffersAllocated; 71 else { 71 else 72 { 72 73 PRINTF(2)("Unable to allocate al-Buffers\n"); 73 74 this->release(); … … 252 253 if (unlikely(!(this->state & Playing))) 253 254 return false; 254 char pcm[ BUFFER_SIZE];255 char pcm[OGG_PLAYER_BUFFER_SIZE]; 255 256 int size = 0; 256 257 int section; 257 258 int result; 258 259 259 while(size < BUFFER_SIZE)260 { 261 result = ov_read(& oggStream, pcm + size,BUFFER_SIZE - size, 0, 2, 1, §ion);260 while(size < OGG_PLAYER_BUFFER_SIZE) 261 { 262 result = ov_read(&this->oggStream, pcm + size, OGG_PLAYER_BUFFER_SIZE - size, 0, 2, 1, §ion); 262 263 263 264 if(result > 0) 264 265 size += result; 265 else 266 if(result < 0) 267 throw errorString(result); 268 else 269 break; 266 else if(result < 0) 267 throw errorString(result); 268 else /* eof */ 269 ov_time_seek(&this->oggStream, 0.0); 270 270 } 271 271 … … 327 327 PRINTF(0)("OggPlayer is in the following States: "); 328 328 if (this->state & FileOpened) 329 329 PRINT(0)("FileOpened "); 330 330 if (this->state & SourceAllocated) 331 331 PRINT(0)("SourceAllocated "); -
trunk/src/lib/sound/ogg_player.h
r7299 r7301 19 19 20 20 21 #define BUFFER_SIZE (8096 * 2)21 #define OGG_PLAYER_BUFFER_SIZE (8096 * 2) 22 22 23 23
Note: See TracChangeset
for help on using the changeset viewer.