OSDN Git Service

Remove default channel mask for AudioTrack
authorGlenn Kasten <gkasten@google.com>
Wed, 30 Oct 2013 18:29:27 +0000 (11:29 -0700)
committerGlenn Kasten <gkasten@google.com>
Fri, 8 Nov 2013 19:26:57 +0000 (11:26 -0800)
commit8ba90326d683b035d99e24db669093e4602a7149
treef7ee24ee1580a7e90cd9b38fdbf28c4dd6898811
parentd21952fe5bc94f7bb6ee729f806c0e641fdb1a0d
Remove default channel mask for AudioTrack

It doesn't make sense to have a default channel mask, since the caller
needs to know what format it will use when supplying data, and there
is currently no API to return the channel mask of an AudioTrack.
audio_is_output_channel() does not allow 0, so it will catch any
stragglers (I'm not aware of any).

Also move channel mask validation earlier.

Change-Id: Ia018ded8711455581a2a935f37432b049422d492
media/libmedia/AudioTrack.cpp