diff options
author | Glenn Kasten <gkasten@google.com> | 2012-01-13 14:53:35 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-01-13 14:53:35 -0800 |
commit | a26cbac8a0f71ba59a89e250caaa1155f0179751 (patch) | |
tree | d01d45f705ea27ad8e211cb213441a20ccd28caf /include/hardware/audio.h | |
parent | 60d056bf2926357260592409dee31374fa8e301b (diff) | |
download | hardware_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.h | 4 |
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: |