Changeset 5270:e25346c13638 in roaraudio for libroarpulse
- Timestamp:
- 11/17/11 18:20:12 (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- libroarpulse
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
libroarpulse/Makefile
r4748 r5270 14 14 #DEFINES = -DDEBUG 15 15 INCLUDE = -I../include -I../include/libroarpulse 16 CFLAGS += -g -Wall $( OPTI_O) $(DEFINES) $(INCLUDE) $(INCPATH) $(SHARED_CF) $(fPIC)17 LDFLAGS+= -g $(LDPATH) -L../lib/ -L.16 CFLAGS += -g -Wall $(Wextra) $(OPTI_O) $(DEFINES) $(INCLUDE) $(INCPATH) $(SHARED_CF) $(fPIC) 17 LDFLAGS+= -g -Wall $(Wextra) $(LDPATH) -L../lib/ -L. 18 18 LIBS = $(LIBROAR) 19 19 -
libroarpulse/context.c
r4708 r5270 221 221 /** Return non-zero if some data is pending to be written to the connection */ 222 222 int pa_context_is_pending(pa_context *c) { 223 (void)c; 223 224 return 0; 224 225 } … … 334 335 /** Return the protocol version of the library. \since 0.8 */ 335 336 uint32_t pa_context_get_protocol_version(pa_context *c) { 337 (void)c; 336 338 return 0; 337 339 } … … 339 341 /** Return the protocol version of the connected server. \since 0.8 */ 340 342 uint32_t pa_context_get_server_protocol_version(pa_context *c) { 343 (void)c; 341 344 return 0; 342 345 } -
libroarpulse/mainloop-signal.c
r4708 r5270 77 77 int sig; 78 78 size_t ret; 79 #endif 79 80 81 (void)a, (void)e, (void)f, (void)userdata; 82 83 #ifdef ROAR_HAVE_PIPE 80 84 ret = read(fd, &sig, sizeof(sig)); 81 85 -
libroarpulse/mainloop.c
r4708 r5270 273 273 pa_io_event_flags_t events; 274 274 int count = 0; 275 int i, h; 275 int h; 276 nfds_t i; 276 277 277 278 ROAR_DBG("pa_mainloop_dispatch(m=%p) = ?", m); -
libroarpulse/operation.c
r4708 r5270 89 89 void pa_operation_cancel(pa_operation *o) { 90 90 // we ignore this 91 (void)o; 91 92 } 92 93 -
libroarpulse/simple.c
r5239 r5270 59 59 int roar_dir; 60 60 int err = ROAR_ERROR_NONE; 61 62 if ( dev != NULL || map != NULL || attr != NULL ) 63 return NULL; 61 64 62 65 if ( dir == PA_STREAM_PLAYBACK ) { -
libroarpulse/stream.c
r5243 r5270 177 177 /** Return the device (sink input or source output) index this stream is connected to */ 178 178 uint32_t pa_stream_get_index(pa_stream *s) { 179 (void)s; 179 180 return 0; 180 181 } … … 189 190 void * data; 190 191 size_t len; 191 s ize_t ret;192 ssize_t ret; 192 193 int bufret; 194 195 (void)fd, (void)events; 193 196 194 197 ROAR_DBG("_roar_pa_stream_ioecb(*) = ?"); … … 209 212 210 213 // TODO: handle errors 211 if ( ret == len ) {214 if ( ret == (ssize_t)len ) { 212 215 bufret = roar_buffer_next(&(s->iobuffer)); 213 216 } else { … … 289 292 volume = NULL; 290 293 291 if ( attr != NULL || flags != 0 || volume != NULL || sync_stream != NULL ) {294 if ( dev != NULL || attr != NULL || flags != 0 || volume != NULL || sync_stream != NULL ) { 292 295 pa_stream_set_state(s, PA_STREAM_FAILED); 293 296 return -1; -
libroarpulse/timeval.c
r4708 r5270 69 69 tv->tv_usec += v; 70 70 71 while ( tv->tv_usec > 1000000LL U) {72 tv->tv_usec -= 1000000LL U;71 while ( tv->tv_usec > 1000000LL ) { 72 tv->tv_usec -= 1000000LL; 73 73 tv->tv_sec += 1; 74 74 } -
libroarpulse/volume.c
r4708 r5270 62 62 /** Set the volume of all channels to the specified parameter */ 63 63 pa_cvolume* pa_cvolume_set(pa_cvolume *a, unsigned channels, pa_volume_t v) { 64 int i;64 unsigned int i; 65 65 66 66 if ( a == NULL )
Note: See TracChangeset
for help on using the changeset viewer.