hrydgard/ppsspp — pull request #1797 by raven02 (2013-05-13 13:21:58+00:00)
Title: Fix loop problem in Three Kingdom VIII

This may not be 100% correct but it should at least fix the BGM looping problem in Three Kingdom VIII and may be other as well .

Referencing uofw implemetation , looks like not only remainFrames = 0 or -1 calls sceAtracAddStreamData
but also -2 (PSP_ATRAC_NONLOOP_STREAM_DATA_IS_ON_MEMORY)
and -3 (PSP_ATRAC_LOOP_STREAM_DATA_IS_ON_MEMORY)