Changeset 4521:4277b6a0c8a1 in roaraudio for roard/beep.c


Ignore:
Timestamp:
10/16/10 17:09:23 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed a lot compiler warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/beep.c

    r3764 r4521  
    2828// TODO: FIXME: move them out of here into libroar: 
    2929static ssize_t beep_read    (struct roar_vio_calls * vio, void *buf, size_t count) { 
     30 struct roar_buffer * rbuf; 
     31 
    3032 ROAR_DBG("beep_read(vio=%p, buf=%p, count=%llu) = ?", vio, buf, (long long unsigned int)count); 
    3133 
     
    3335  return 0; 
    3436 
    35  if ( roar_buffer_shift_out(&(vio->inst), buf, &count) == -1 ) 
     37 rbuf = vio->inst; 
     38 
     39 if ( roar_buffer_shift_out(&rbuf, buf, &count) == -1 ) 
    3640  return -1; 
     41 
     42 vio->inst = rbuf; 
    3743 
    3844 return count; 
     
    6773 size_t mod     = info->rate / beep->freq; 
    6874 char                        * data; 
     75 void                        * bufdata; 
    6976 char   val; 
    7077 size_t pos; 
     
    7380 ROAR_DBG("beep_fill_buffer(beep=%p, info=%p) = ?", beep, info); 
    7481 
    75  if ( roar_buffer_new_data(&buf, samples, &data) == -1 ) { 
     82 if ( roar_buffer_new_data(&buf, samples, &bufdata) == -1 ) { 
    7683  ROAR_DBG("beep_fill_buffer(beep=%p, info=%p) = NULL", beep, info); 
    7784  return NULL; 
    7885 } 
     86 
     87 data = (char*)bufdata; 
    7988 
    8089 for (pos = 0; pos < frames; pos++) { 
Note: See TracChangeset for help on using the changeset viewer.