summaryrefslogtreecommitdiffstats
path: root/include/hardware/audio.h
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-01-13 14:53:35 -0800
committerGlenn Kasten <gkasten@google.com>2012-01-13 14:53:35 -0800
commita26cbac8a0f71ba59a89e250caaa1155f0179751 (patch)
treed01d45f705ea27ad8e211cb213441a20ccd28caf /include/hardware/audio.h
parent60d056bf2926357260592409dee31374fa8e301b (diff)
downloadhardware_libhardware-a26cbac8a0f71ba59a89e250caaa1155f0179751.zip
hardware_libhardware-a26cbac8a0f71ba59a89e250caaa1155f0179751.tar.gz
hardware_libhardware-a26cbac8a0f71ba59a89e250caaa1155f0179751.tar.bz2
Use size_t for frame size
Change-Id: Ib96808544ee6fd76d0c8ff42e27b9c05518e8415
Diffstat (limited to 'include/hardware/audio.h')
-rw-r--r--include/hardware/audio.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/hardware/audio.h b/include/hardware/audio.h
index ed97728..f32a520 100644
--- a/include/hardware/audio.h
+++ b/include/hardware/audio.h
@@ -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: