diff options
author | Glenn Kasten <gkasten@google.com> | 2012-11-14 12:54:39 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-11-15 16:43:40 -0800 |
commit | e33054eb968cbf8ccaee1b0ff0301403902deed6 (patch) | |
tree | b91f7abd2927e25a4cb7c50a8ef197c643ca9db6 /include/media/IAudioFlinger.h | |
parent | 7d9c126be8dfe3016683eeb2b7a2d88ba5b24c0b (diff) | |
download | frameworks_av-e33054eb968cbf8ccaee1b0ff0301403902deed6.zip frameworks_av-e33054eb968cbf8ccaee1b0ff0301403902deed6.tar.gz frameworks_av-e33054eb968cbf8ccaee1b0ff0301403902deed6.tar.bz2 |
Use size_t for frame counts
Also fix typo: bufferCount should be frameCount.
Change-Id: Ibed539504db75ef99dc21c8ff1bf2987122063a5
Diffstat (limited to 'include/media/IAudioFlinger.h')
-rw-r--r-- | include/media/IAudioFlinger.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/media/IAudioFlinger.h b/include/media/IAudioFlinger.h index 5fd5044..9727143 100644 --- a/include/media/IAudioFlinger.h +++ b/include/media/IAudioFlinger.h @@ -61,7 +61,7 @@ public: uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, - int frameCount, + size_t frameCount, track_flags_t *flags, const sp<IMemory>& sharedBuffer, audio_io_handle_t output, @@ -75,7 +75,7 @@ public: uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, - int frameCount, + size_t frameCount, track_flags_t flags, pid_t tid, // -1 means unused, otherwise must be valid non-0 int *sessionId, @@ -157,10 +157,10 @@ public: virtual status_t setVoiceVolume(float volume) = 0; - virtual status_t getRenderPosition(uint32_t *halFrames, uint32_t *dspFrames, + virtual status_t getRenderPosition(size_t *halFrames, size_t *dspFrames, audio_io_handle_t output) const = 0; - virtual unsigned int getInputFramesLost(audio_io_handle_t ioHandle) const = 0; + virtual size_t getInputFramesLost(audio_io_handle_t ioHandle) const = 0; virtual int newAudioSessionId() = 0; @@ -193,7 +193,7 @@ public: // FIXME move these APIs to AudioPolicy to permit a more accurate implementation // that looks on primary device for a stream with fast flag, primary flag, or first one. virtual uint32_t getPrimaryOutputSamplingRate() = 0; - virtual int32_t getPrimaryOutputFrameCount() = 0; + virtual size_t getPrimaryOutputFrameCount() = 0; }; |