Changeset 4418:0234c5231754 in roaraudio
- Timestamp:
- 10/06/10 00:04:33 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/roard.c
r4382 r4418 45 45 int add_output (char * drv, char * dev, char * opts, int prim, int count); 46 46 47 #ifdef DEBUG48 47 void dbg_notify_cb(struct roar_notify_core * core, struct roar_event * event, void * userdata) { 49 48 char buf[1024] = ""; … … 78 77 } else if ( ROAR_NOTIFY_IS_OE(ev) ) { 79 78 switch (ev) { 79 // OE basics: 80 80 case ROAR_OE_BASICS_CHANGE_STATE: 81 81 snprintf(estr, sizeof(estr)-1, "/* ROAR_OE_BASICS_CHANGE_STATE */"); … … 90 90 snprintf(estr, sizeof(estr)-1, "/* ROAR_OE_BASICS_DELETE */"); 91 91 break; 92 // OE Streams: 93 case ROAR_OE_STREAM_CHANGE_VOLUME: 94 snprintf(estr, sizeof(estr)-1, "/* ROAR_OE_STREAM_CHANGE_VOLUME */"); 95 break; 96 case ROAR_OE_STREAM_XRUN: 97 snprintf(estr, sizeof(estr)-1, "/* ROAR_OE_STREAM_XRUN */"); 98 break; 99 // OE Default: 92 100 default: 93 101 snprintf(estr, sizeof(estr)-1, "/* ROAR_NOTIFY_OE2EVENT(%i) */", ROAR_NOTIFY_EVENT2OE(ev)); … … 105 113 } 106 114 107 ROAR_DBG("dbg_notify_cb(core=%p, event=%p{.flags=0x%.8x, event=0x%.8x%s, %s.emitter=%i, .target=%i, .target_type=%i%s, .arg0=%i, .arg1=%i, .arg2=%p}, userdata=%p) = (void)", 115 ROAR_INFO("dbg_notify_cb(core=%p, event=%p{.flags=0x%.8x, event=0x%.8x%s, %s.emitter=%i, .target=%i, .target_type=%i%s, .arg0=%i, .arg1=%i, .arg2=%p}, userdata=%p) = (void)", 116 0 /* always print: minlevel = 0 */, 108 117 core, event, 109 118 (int)event->flags, … … 134 143 roar_notify_core_subscribe(NULL, &event, dbg_notify_cb, NULL); 135 144 } 136 #endif137 145 138 146 #ifdef ROAR_HAVE_MAIN_ARGS … … 1525 1533 1526 1534 #ifdef DEBUG 1535 // enable early in case we have DEBUG set. 1527 1536 dbg_notify_cb_register(); 1528 1537 #endif … … 2217 2226 #endif 2218 2227 2228 #ifndef DEBUG 2229 // notify dbg if requested, if in DEBUG mode 2230 // do not able because it got enabled early. 2231 if ( g_verbose >= 4 ) 2232 dbg_notify_cb_register(); 2233 #endif 2234 2219 2235 #ifndef ROAR_WITHOUT_DCOMP_MIXER 2220 2236 if ( m_drv != NULL ) {
Note: See TracChangeset
for help on using the changeset viewer.