Changeset 3440:7730bc584725 in roaraudio
- Timestamp:
- 02/13/10 14:42:07 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroarpulse/stream.c
r3439 r3440 98 98 pa_stream * s; 99 99 100 ROAR_DBG("pa_stream_new_with_proplist(c=%p, name='%s', ss=%p, map=%p, p=%p) = ?", c, name, ss, map, p); 101 100 102 if ( p != NULL ) 101 103 return NULL; … … 108 110 memcpy(&(s->sspec), ss, sizeof(pa_sample_spec)); 109 111 112 ROAR_DBG("pa_stream_new_with_proplist(c=%p, name='%s', ss=%p, map=%p, p=%p) = ?", c, name, ss, map, p); 113 110 114 if ( roar_pa_sspec2auinfo(&(s->stream.info), ss) == -1 ) { 111 115 roar_mm_free(s); 116 ROAR_DBG("pa_stream_new_with_proplist(c=%p, name='%s', ss=%p, map=%p, p=%p) = NULL // invalid format", c, name, ss, map, p); 112 117 return NULL; 113 118 } … … 119 124 s->c = c; 120 125 pa_context_ref(c); 126 127 ROAR_DBG("pa_stream_new_with_proplist(c=%p, name='%s', ss=%p, map=%p, p=%p) = ?", c, name, ss, map, p); 121 128 122 129 return s; … … 169 176 uint32_t pa_stream_get_index(pa_stream *s) { 170 177 return 0; 178 } 179 180 static void _roar_pa_stream_ioecb(pa_mainloop_api * ea, 181 pa_io_event * e, 182 int fd, 183 pa_io_event_flags_t events, 184 void * userdata) { 185 ROAR_DBG("_roar_pa_stream_ioecb(*) = (void)"); 171 186 } 172 187 … … 226 241 if ( api != NULL && api->io_new != NULL ) { 227 242 if ( roar_vio_ctl(&(s->vio), ctl, &fh) != -1 ) { 228 s->io_event = api->io_new(api, fh, event_flags, NULL, s);243 s->io_event = api->io_new(api, fh, event_flags, _roar_pa_stream_ioecb, s); 229 244 } 230 245 }
Note: See TracChangeset
for help on using the changeset viewer.