EmulatorArchive / jpcsp

Automatically exported from code.google.com/p/jpcsp
1 stars 0 forks source link

Audio loop function #339

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Some games' backgroud music can'loop,I have created a version base on r2957 to 
solve this problem with an experimental way. I have tested some games like 
<Busou Shinki - Battle Master MK.2> <Monster Hunter Nikki:Poka Poka Airu Mura 
G> <Digimon Adventure>,it sounds good.
These are what I change,search for "enableaudioloop" and can find what I change.

Original issue reported on code.google.com by littlesh...@gmail.com on 26 Jan 2013 at 4:25

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Update

Original comment by littlesh...@gmail.com on 29 Jan 2013 at 12:27

Attachments:

GoogleCodeExporter commented 9 years ago
Which values are used in these games for:
- loops (all LoopInfo values)
- currentLoopNum
- loopNum
when reaching setDecodedSamples?

Original comment by gi...@web.de on 24 Feb 2013 at 6:21

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Monster Hunter Nikki:Poka Poka Airu Mura G :
- loops LoopInfo[cuePointID 0, type 0, startSample 0, endSample 1292702, 
fraction 0, playCount 0]
- currentLoopNum = 0
- loopNum = -1

Busou Shinki - Battle Master MK.2:
- loops LoopInfo[cuePointID 0, type 0, startSample 36549, endSample 1150653, 
fraction 0, playCount 0]
- currentLoopNum = 0
-  loopNum = -1

Original comment by littlesh...@gmail.com on 25 Feb 2013 at 2:05

GoogleCodeExporter commented 9 years ago
Does it help to add the following lines at the end of 
sceAtrac3plus.AtracID.analyzeAtracHeader() (line 366):

            if (loops != null) {
                // If a loop end is past the atrac end, assume the atrac end
                for (LoopInfo loop : loops) {
                    if (loop.endSample > atracEndSample) {
                        loop.endSample = atracEndSample;
                    }
                }
            }

Original comment by gi...@web.de on 26 Feb 2013 at 2:17

GoogleCodeExporter commented 9 years ago
tested
help to 
 - Busou Shinki - Battle Master MK.2
don not help to 
 - Monster Hunter Nikki:Poka Poka Airu Mura G 
 - Shin Sangoku Musou - Multi Raid 2
 - Tactics Ogre - Unmei no Wa

Original comment by littlesh...@gmail.com on 26 Feb 2013 at 3:34

GoogleCodeExporter commented 9 years ago
r2989 is now including the above partial fix.

Original comment by gi...@web.de on 26 Feb 2013 at 8:13

GoogleCodeExporter commented 9 years ago
Another improvement with r2995. Does it help?

Original comment by gi...@web.de on 28 Feb 2013 at 5:04

GoogleCodeExporter commented 9 years ago
Yes,help to Shin Sangoku Musou - Multi Raid 2

Original comment by littlesh...@gmail.com on 1 Mar 2013 at 8:34

GoogleCodeExporter commented 9 years ago
Another improvements for audio loops in r3103. Could you test it?

Original comment by gi...@web.de on 15 Apr 2013 at 5:36

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Yes, Corpse Party: Blood Covered - Repeated Fear and Tactics Ogre - Unmei no Wa 
are fixed.

Original comment by littlesh...@gmail.com on 16 Apr 2013 at 4:13

GoogleCodeExporter commented 9 years ago

Original comment by gi...@web.de on 16 Apr 2013 at 5:48