OSDN Git Service

AudioTrack: relax check on minimum buffer size
authorEric Laurent <elaurent@google.com>
Tue, 6 Mar 2012 01:06:40 +0000 (17:06 -0800)
committerEric Laurent <elaurent@google.com>
Fri, 16 Mar 2012 19:22:07 +0000 (12:22 -0700)
commitde61a78a1c7903efac9d26a2de0fd8db14cd7760
treef284ea35888e521853d8c7a04705ab0e11a2b738
parent083644fee99d23491554484301943e6a7daf262b
AudioTrack: relax check on minimum buffer size

Current AudioTrack implementation enforces that the requested audio
buffer size is at least corresponding the audio latency.
This requirement is too strong and leads to problems with current
stagefright and AudioSink implementations when playing over output
streams with long latency.

Ultimately, the AudioSink design should be changed to specify a minimum
buffer size in time or frames units but not in buffer count units.

Change-Id: I8ba603956f92ac49143a8249572665aa548f2f0f

Conflicts:

media/libmedia/AudioTrack.cpp
include/media/AudioTrack.h
media/libmedia/AudioTrack.cpp