OSDN Git Service

Use size_t for frame size
authorGlenn Kasten <gkasten@google.com>
Fri, 13 Jan 2012 22:53:35 +0000 (14:53 -0800)
committerGlenn Kasten <gkasten@google.com>
Fri, 13 Jan 2012 22:53:35 +0000 (14:53 -0800)
Change-Id: Ib96808544ee6fd76d0c8ff42e27b9c05518e8415

include/hardware/audio.h

index ed97728..f32a520 100644 (file)
@@ -215,9 +215,9 @@ typedef struct audio_stream_in audio_stream_in_t;
 /**
  * return the frame size (number of bytes per sample).
  */
-static inline uint32_t audio_stream_frame_size(struct audio_stream *s)
+static inline size_t audio_stream_frame_size(struct audio_stream *s)
 {
-    int chan_samp_sz;
+    size_t chan_samp_sz;
 
     switch (s->get_format(s)) {
     case AUDIO_FORMAT_PCM_16_BIT: