Changeset 5270:e25346c13638 in roaraudio for include


Ignore:
Timestamp:
11/17/11 18:20:12 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed some gcc -Wextra warnings

Location:
include
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/basic.h

    r5240 r5270  
    5858 unsigned int stream; 
    5959 uint32_t pos; 
    60  int datalen; 
     60 size_t datalen; 
    6161 char data[LIBROAR_BUFFER_MSGDATA]; 
    6262 int16_t seq; 
  • include/libroar/config.h

    r5202 r5270  
    7070 
    7171struct roar_libroar_config_codec { 
    72  unsigned int codec; // Codec ID 
     72 uint32_t codec; // Codec ID 
    7373 
    7474 // parameters which are set: 
  • include/libroar/ltm.h

    r4708 r5270  
    140140 * result set was collected in the server. 
    141141 */ 
    142 int roar_ltm_get_numchans(struct roar_ltm_result * res, int streamidx); 
     142int roar_ltm_get_numchans(struct roar_ltm_result * res, size_t streamidx); 
    143143 
    144144/* Extract a single value from the result. 
     
    160160 * (channels are counted from zero to N-1, not from 1 to N) 
    161161 */ 
    162 int64_t roar_ltm_extract(struct roar_ltm_result * res, int mt, int streamidx, int channel); 
     162int64_t roar_ltm_extract(struct roar_ltm_result * res, int mt, size_t streamidx, int channel); 
    163163 
    164164#endif 
  • include/libroar/stream.h

    r5238 r5270  
    9696int roar_stream_m2s     (struct roar_stream * s, struct roar_message * m); 
    9797 
    98 int    roar_str2codec (const char * codec) _LIBROAR_STREAM_STDATTRS _LIBROAR_ATTR_PURE; 
    99 const char * roar_codec2str (const int    codec) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 
     98int32_t      roar_str2codec (const char  * codec) _LIBROAR_STREAM_STDATTRS _LIBROAR_ATTR_PURE; 
     99const char * roar_codec2str (const uint32_t codec) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 
    100100 
    101 int    roar_mime2codec (const char * mime) _LIBROAR_STREAM_STDATTRS _LIBROAR_ATTR_PURE; 
    102 const char * roar_codec2mime (const int    codec) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 
     101int32_t      roar_mime2codec (const char  * mime) _LIBROAR_STREAM_STDATTRS _LIBROAR_ATTR_PURE; 
     102const char * roar_codec2mime (const uint32_t codec) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 
    103103 
    104104int32_t roar_str2rate(const char * rate) _LIBROAR_STREAM_STDATTRS _LIBROAR_ATTR_PURE; 
  • include/libroardsp/amp.h

    r4708 r5270  
    4242int roar_amp_pcm_8bit  (int8_t  * output, int8_t  * input, int samples, int channels, struct roar_mixer_settings * set); 
    4343int roar_amp_pcm_16bit (int16_t * output, int16_t * input, int samples, int channels, struct roar_mixer_settings * set); 
    44 int roar_amp_pcm_24bit (void    * output, void    * input, int samples, int channels, struct roar_mixer_settings * set); 
    4544int roar_amp_pcm_32bit (int32_t * output, int32_t * input, int samples, int channels, struct roar_mixer_settings * set); 
    4645 
  • include/libroardsp/fader.h

    r4708 r5270  
    4343struct roar_fader_state { 
    4444 int     rate; 
    45  size_t pcmoffset; 
     45 ssize_t pcmoffset; 
    4646 ssize_t start; 
    4747 ssize_t stop; 
  • include/libroardsp/mixer.h

    r4708 r5270  
    4242int roar_mix_pcm_8bit  (int8_t  * output, int8_t  ** input, int samples); 
    4343int roar_mix_pcm_16bit (int16_t * output, int16_t ** input, int samples); 
    44 int roar_mix_pcm_24bit (void    * output, void    ** input, int samples); 
    4544int roar_mix_pcm_32bit (int32_t * output, int32_t ** input, int samples); 
    4645 
Note: See TracChangeset for help on using the changeset viewer.