Changeset 4417:a5ab68cb66fa in roaraudio for roard/streams.c
- Timestamp:
- 10/05/10 23:41:08 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/streams.c
r4386 r4417 1002 1002 } 1003 1003 1004 roar_notify_core_emit_snoargs(ROAR_OE_STREAM_CHANGE_VOLUME, -1, id, ROAR_OT_STREAM); 1005 1004 1006 if ( !streams_get_flag(id, ROAR_FLAG_HWMIXER) ) 1005 1007 return 0; … … 1363 1365 if ( ss->is_new ) { 1364 1366 ss->pre_underruns++; 1367 roar_notify_core_emit_simple(ROAR_OE_STREAM_XRUN, -1, id, ROAR_OT_STREAM, ROAR_XRUN_UNDER_PRE, ss->pre_underruns, NULL, 0); 1365 1368 } else { 1366 1369 ROAR_WARN("streams_fill_mixbuffer2(id=%i, info=...): underrun in stream", id); 1367 1370 ss->post_underruns++; 1371 roar_notify_core_emit_simple(ROAR_OE_STREAM_XRUN, -1, id, ROAR_OT_STREAM, ROAR_XRUN_UNDER_POST, ss->post_underruns, NULL, 0); 1368 1372 } 1369 1373 memset(outdata, 0, outlen); … … 2044 2048 if ( ret > 0 && errno == 0 ) { 2045 2049 ROAR_WARN("streams_send_mon(id=%i): Overrun in stream: wrote %i of %i bytes, %i bytes missing", id, (int)ret, olen, olen-(int)ret); 2050 roar_notify_core_emit_simple(ROAR_OE_STREAM_XRUN, -1, id, ROAR_OT_STREAM, ROAR_XRUN_OVER_POST, -1, NULL, 0); 2046 2051 s->pos = ROAR_MATH_OVERFLOW_ADD(s->pos, ROAR_OUTPUT_CALC_OUTBUFSAMP(&(s->info), ret)*s->info.channels); 2047 2052 if ( ss->state != ROAR_STREAMSTATE_OLD ) {
Note: See TracChangeset
for help on using the changeset viewer.