Changeset 125:8c29ccfbfa5d in roaraudio
- Timestamp:
- 07/13/08 17:26:52 (16 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/include/streams.h
r87 r125 24 24 struct roar_mixer_settings mixer; 25 25 struct roar_meta meta[ROAR_META_MAX_PER_STREAM]; 26 int is_new; 26 27 } * g_streams[ROAR_STREAMS_MAX]; 27 28 -
roard/streams.c
r90 r125 50 50 ((struct roar_stream_server*)n)->need_extra = 0; 51 51 ((struct roar_stream_server*)n)->output = NULL; 52 ((struct roar_stream_server*)n)->is_new = 1; 52 53 ((struct roar_stream_server*)n)->mixer.scale = 65535; 53 54 for (j = 0; j < ROAR_MAX_CHANNELS; j++) … … 360 361 if ( todo > 0 ) { // zeroize the rest of teh buffer 361 362 memset(rest, 0, todo); 362 ROAR_ERR("streams_fill_mixbuffer(*): Underrun in stream: %i bytes missing, filling with zeros", todo); 363 364 if ( todo != ROAR_OUTPUT_CALC_OUTBUFSIZE(info) ) { 365 if ( !g_streams[id]->is_new ) 366 ROAR_ERR("streams_fill_mixbuffer(*): Underrun in stream: %i bytes missing, filling with zeros", todo); 367 368 g_streams[id]->is_new = 0; 369 } 370 } else { 371 g_streams[id]->is_new = 0; 363 372 } 364 373
Note: See TracChangeset
for help on using the changeset viewer.