commit | 151117ec0bb69b5a4829baecaa23b9324745fdd4 | [log] [tgz] |
---|---|---|
author | Andy Hung <hunga@google.com> | Sun Nov 28 23:30:02 2021 -0800 |
committer | Andy Hung <hunga@google.com> | Thu Dec 09 10:03:26 2021 -0800 |
tree | c9a04140797b1eab04287ea87c98e4fecf982036 | |
parent | 8d221843b767e18c04c82bb972c8bbdfd459742b [diff] |
SoundPool: Update queue only if streamID matches SoundPool API commands are based on an atomic compare-StreamID if match then operate (see compare-exchange). Test: soundpool_stress Test: atest SoundPoolAacTest Test: atest SoundPoolHapticTest Test: atest SoundPoolMidiTest Test: atest SoundPoolOggTest Bug: 201233890 Bug: 201262390 Change-Id: I63cc07d581a0ac1d5440852bfe0c75edc9d73e75