From bfd318402924414fbde4d31c9d23cc423f10b630 Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Fri, 20 Mar 2015 09:01:44 -0700 Subject: set() in AudioRecord and AudioTracks needs no lock Change-Id: I9d61b3d117e9b21fbbfad772d8981a5abb8fafae --- include/media/AudioRecord.h | 1 + include/media/AudioTrack.h | 1 + 2 files changed, 2 insertions(+) (limited to 'include') diff --git a/include/media/AudioRecord.h b/include/media/AudioRecord.h index c503f25..18d8455 100644 --- a/include/media/AudioRecord.h +++ b/include/media/AudioRecord.h @@ -183,6 +183,7 @@ public: /* Initialize an AudioRecord that was created using the AudioRecord() constructor. * Don't call set() more than once, or after an AudioRecord() constructor that takes parameters. + * set() is not multi-thread safe. * Returned status (from utils/Errors.h) can be: * - NO_ERROR: successful intialization * - INVALID_OPERATION: AudioRecord is already initialized or record device is already in use diff --git a/include/media/AudioTrack.h b/include/media/AudioTrack.h index 81b1181..818c8cd 100644 --- a/include/media/AudioTrack.h +++ b/include/media/AudioTrack.h @@ -238,6 +238,7 @@ public: /* Initialize an AudioTrack that was created using the AudioTrack() constructor. * Don't call set() more than once, or after the AudioTrack() constructors that take parameters. + * set() is not multi-thread safe. * Returned status (from utils/Errors.h) can be: * - NO_ERROR: successful initialization * - INVALID_OPERATION: AudioTrack is already initialized -- cgit v1.1