version 1.65, 2008/03/04 18:23:44 |
version 1.65.14.1, 2009/10/16 05:43:38 |
Line 86 typedef struct audio_stream { |
|
Line 86 typedef struct audio_stream { |
|
static __inline int |
static __inline int |
audio_stream_get_space(const audio_stream_t *s) |
audio_stream_get_space(const audio_stream_t *s) |
{ |
{ |
return (s->end - s->start) - s->used; |
if (s) |
|
return (s->end - s->start) - s->used; |
|
return 0; |
} |
} |
|
|
static __inline int |
static __inline int |
audio_stream_get_used(const audio_stream_t *s) |
audio_stream_get_used(const audio_stream_t *s) |
{ |
{ |
return s->used; |
return s ? s->used : 0; |
} |
} |
|
|
static __inline uint8_t * |
static __inline uint8_t * |