Changeset 4417:a5ab68cb66fa in roaraudio


Ignore:
Timestamp:
10/05/10 23:41:08 (8 years ago)
Author:
phi
Branch:
default
Message:

emit ROAR_OE_STREAM_XRUN and ROAR_OE_STREAM_CHANGE_VOLUME events

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/streams.c

    r4386 r4417  
    10021002 } 
    10031003 
     1004 roar_notify_core_emit_snoargs(ROAR_OE_STREAM_CHANGE_VOLUME, -1, id, ROAR_OT_STREAM); 
     1005 
    10041006 if ( !streams_get_flag(id, ROAR_FLAG_HWMIXER) ) 
    10051007  return 0; 
     
    13631365  if ( ss->is_new ) { 
    13641366   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); 
    13651368  } else { 
    13661369   ROAR_WARN("streams_fill_mixbuffer2(id=%i, info=...): underrun in stream", id); 
    13671370   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); 
    13681372  } 
    13691373  memset(outdata, 0, outlen); 
     
    20442048  if ( ret > 0 && errno == 0 ) { 
    20452049   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); 
    20462051   s->pos = ROAR_MATH_OVERFLOW_ADD(s->pos, ROAR_OUTPUT_CALC_OUTBUFSAMP(&(s->info), ret)*s->info.channels); 
    20472052   if ( ss->state != ROAR_STREAMSTATE_OLD ) { 
Note: See TracChangeset for help on using the changeset viewer.