hrydgard/ppsspp — pull request #1854 by unknownbrackets (2013-05-19 19:58:36+00:00)
Title: Improve audio blocking and some sceAudio functions

This makes a few changes, mainly:
* NULL sample pointers now correctly block until queue drains.
* Blocking is done based on current buffer size, not the enqueued buffer.
* Multiple threads can wait on a channel at the same time. It's not heavily tested, but one would hope games aren't doing something that silly anyway...
* Negative volume for multichannel audio means "don't change."
* Releasing a channel now unblocks waiting threads (not carefully tested but seems right.)

On my mobile, audio was just as awful with and without these changes. I'm hoping it may improve some games that depend especially on the NULL blocking or volume, which probably aren't many.

-[Unknown]