;s65v58
;pcm wav all

;Skip check sample rate, bit count...
118CDB4: 03005EE1BA32D401B8C0D201 0E005EE1BA32D401B8C0D201
118CDC0: 0C005301BC31D401B020D20102005301 03005301BC31D401B020D20103005301
;Skip check sample rate 2 
11AACB4: 7D0D50E3 000050E1

;DAC sample rate set hook
1259ACC: 482F1FE5 18209FE5
1259AD0: 08402DE9002092E5010052E10500000A 08402DE90010D2E5000051E30100A011
1259AE0: 030000EF6C2DA0E30100A0E3541F1FE5 0010A0130010C215020000EAC0F779A8

;StereoControl - enable phantom_buf_out
1259DB8: 0040A0E1 0140A0E3

;Change pcm_set_hook pointer
11AAE24: 58AC1AA1 0062D2A0

;Patch body
;Get frame size in bytes (Frame size fix_hook)
0D261E0: FFFFFFFFFFFFFFFFFFFFFFFF B432D4E1031041E01EFF2FE1

;New pcm settings function (main.c)
0D26200: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 30129FE530002DE9182090E5403091E5
0D26210: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 000052E30200A01164008115640091E5
0D26220: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 282093E5A0C0A0E3020052E3A52FA003
0D26230: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF B221C0010720A0E3B420C0E1F633D3E1
0D26240: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 284091E59C0303E07D0D54E343C1A0E1
0D26250: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AC3E83E0C331A0E1243081E5BD30A0E3
0D26260: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 7C3D83E359C0A0E360CE8CE31D00000A
0D26270: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 1150A0E3AC5D85E3050054E11F00000A
0D26280: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF E050A0E3B85D85E3050054E12300000A
0D26290: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FA0D54E32700000A2250A0E3565C85E3
0D262A0: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 050054E12800000AC050A0E35D5C85E3
0D262B0: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 050054E12900000A7D0C54E32D00000A
0D262C0: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 4450A0E3AC5C85E3050054E12E00000A
0D262D0: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 8050A0E3BB5C85E3050054E13000000A
0D262E0: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 030000EF0B0000EA2020A0E3402D82E3
0D262F0: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF BC20C0E1BEC0C0E10000A0E3040000EA
0D26300: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DC20A0E3402D82E3BC20C0E1BE30C0E1
0D26310: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 0100A0E30000C1E53000BDE81EFF2FE1
0D26320: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 3020A0E3402D82E3BC20C0E1BEC0C0E1
0D26330: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 0200A0E3F6FFFFEA412DA0E3BC20C0E1
0D26340: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF BEC0C0E10300A0E3F1FFFFEAB62E8CE2
0D26350: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF BC20C0E1BE30C0E10400A0E3ECFFFFEA
0D26360: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 6020A0E3402D82E3BC20C0E1BEC0C0E1
0D26370: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 0500A0E3E6FFFFEA422DA0E3BC20C0E1
0D26380: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF BEC0C0E10600A0E3E1FFFFEA7240A0E3
0D26390: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 4C4D84E3BC40C0E1BE30C0E10020C1E5
0D263A0: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DCFFFFEA432DA0E3BC20C0E1BEC0C0E1
0D263B0: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 0800A0E3D6FFFFEA78109FE50020A0E3
0D263C0: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 403091E5F633D3E1083053E20700000A
0D263D0: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 083053E20E00000A120000EA0330D2E7
0D263E0: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 803023E20334A0E1023180E7012082E2
0D263F0: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 143091E5A00052E3F7FFFFBAA00083E2
0D26400: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 070000EA823083E0F030D3E1023180E7
0D26410: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 012082E2143091E5A00052E3F8FFFFBA
0D26420: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 500F83E2140081E51C0091E5A00080E2
0D26430: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 1C0081E51EFF2FE1C0F779A870000000
0D26440: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF C0F779A8C0F779A8A00080E21C0081E5
0D26450: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 1EFF2FE1C0F779A870000000C0F779A8
0D26460: FFFFFFFF C0F779A8

;pcm_copy_frame_h hook
11AA6DC: 10402DE9 35EFEDEA

;clear_ram_frame_fix
11AA778: 243094E5 053DA0E3
;clear_dsp_frame_fix
11AA7AC: 243094E5 053DA0E3

;Frame size fix_hook (constant replace)
11AA880: A01041E2 56EEEDEB


;locale=Russian_Russia.1251