|
11 | 11 | ;
|
12 | 12 | ;
|
13 | 13 |
|
14 |
| -; REPLAY XAUDIO AHI DRIVER - RELEASE 0.3ß |
| 14 | +; REPLAY XAUDIO AHI DRIVER - RELEASE 0.3� |
15 | 15 | ;------------
|
16 | 16 |
|
17 | 17 | ; General register allocation :
|
@@ -956,18 +956,27 @@ _LVORebuildTreesA EQU -360
|
956 | 956 | ; adjust address and size to match page size
|
957 | 957 | movem.l (sp),d0/d1
|
958 | 958 |
|
| 959 | + kprintf "Requested region = %lx,%lx",d1,d0 |
| 960 | + |
| 961 | + subq.l #1,d7 |
959 | 962 | move.l d7,d6
|
960 |
| - subq.l #1,d6 |
961 | 963 | not.l d6
|
962 |
| - move.l d1,d2 |
| 964 | + add.l d1,d0 |
| 965 | + add.l d7,d1 |
963 | 966 | and.l d6,d1
|
964 |
| - sub.l d1,d2 |
965 |
| - add.l d2,d0 |
966 |
| - add.l d7,d0 |
967 | 967 | and.l d6,d0
|
| 968 | + sub.l d1,d0 |
| 969 | + |
| 970 | + kprintf "Aligned region = %lx,%lx",d1,d0 |
968 | 971 |
|
969 |
| - kprintf "Lower / Size = %lx,%lx",d1,d0 |
| 972 | + tst.l d0 |
| 973 | + bne.b .sizeok |
| 974 | + |
| 975 | + kprintf "Size is 0!" |
| 976 | + pea .nommu(pc) |
| 977 | + bra .failed |
970 | 978 |
|
| 979 | +.sizeok |
971 | 980 | movem.l d0/d1,(sp) ; (sp),4(sp) = adjusted size/addr
|
972 | 981 |
|
973 | 982 | ; Lock contexts
|
@@ -1213,10 +1222,10 @@ PrintAudioCtrl:
|
1213 | 1222 |
|
1214 | 1223 | .AHIST_M8S dc.b "AHIST_M8S = Mono, 8 bit signed (BYTE)",0
|
1215 | 1224 | .AHIST_M16S dc.b "AHIST_M16S = Mono, 16 bit signed (WORD)",0
|
1216 |
| -.AHIST_S8S dc.b "AHIST_S8S = Stereo, 8 bit signed (2×BYTE)",0 |
1217 |
| -.AHIST_S16S dc.b "AHIST_S16S = Stereo, 16 bit signed (2×WORD)",0 |
| 1225 | +.AHIST_S8S dc.b "AHIST_S8S = Stereo, 8 bit signed (2�BYTE)",0 |
| 1226 | +.AHIST_S16S dc.b "AHIST_S16S = Stereo, 16 bit signed (2�WORD)",0 |
1218 | 1227 | .AHIST_M32S dc.b "AHIST_M32S = Mono, 32 bit signed (LONG)",0
|
1219 |
| -.AHIST_S32S dc.b "AHIST_S32S = Stereo, 32 bit signed (2×LONG)",0 |
| 1228 | +.AHIST_S32S dc.b "AHIST_S32S = Stereo, 32 bit signed (2�LONG)",0 |
1220 | 1229 | .AHIST_UNK dc.b "Unknown",0
|
1221 | 1230 | even
|
1222 | 1231 | ELSE
|
@@ -1298,19 +1307,19 @@ PrintAudioCtrl:
|
1298 | 1307 | * 1) Use mixing routines with timing:
|
1299 | 1308 | * You will need to be able to play any number of samples from
|
1300 | 1309 | * about 80 up to 65535 with low overhead.
|
1301 |
| -* · Update AudioCtrl->ahiac_MixFreq to nearest value that your |
| 1310 | +* � Update AudioCtrl->ahiac_MixFreq to nearest value that your |
1302 | 1311 | * hardware supports.
|
1303 |
| -* · Return AHISF_MIXING|AHISF_TIMING. |
| 1312 | +* � Return AHISF_MIXING|AHISF_TIMING. |
1304 | 1313 | *
|
1305 | 1314 | * 2) Use mixing routines without timing:
|
1306 | 1315 | * If the hardware can't play samples with any length, use this
|
1307 | 1316 | * alternative and provide timing yourself. The buffer must
|
1308 | 1317 | * take less than about 20 ms to play, preferable less than 10!
|
1309 |
| -* · Update AudioCtrl->ahiac_MixFreq to nearest value that your |
| 1318 | +* � Update AudioCtrl->ahiac_MixFreq to nearest value that your |
1310 | 1319 | * hardware supports.
|
1311 |
| -* · Store the number of samples to mix each pass in |
| 1320 | +* � Store the number of samples to mix each pass in |
1312 | 1321 | * AudioCtrl->ahiac_BuffSamples.
|
1313 |
| -* · Return AHISF_MIXING |
| 1322 | +* � Return AHISF_MIXING |
1314 | 1323 | * Alternatively, you can use the first method and call the
|
1315 | 1324 | * mixing hook several times in a row to fill up a buffer.
|
1316 | 1325 | * In that case, AHIsub_GetAttr(AHIDB_MaxPlaySamples) should
|
@@ -2220,7 +2229,7 @@ AHIsub_Stop:
|
2220 | 2229 | * "Martin 'Leviticus' Blom"
|
2221 | 2230 | *
|
2222 | 2231 | * AHIDB_Copyright - Return pointer to copyright notice, including
|
2223 |
| -* the '©' character: "© 1996 Martin Blom" or "Public Domain" |
| 2232 | +* the '�' character: "� 1996 Martin Blom" or "Public Domain" |
2224 | 2233 | *
|
2225 | 2234 | * AHIDB_Version - Return pointer version string, normal Amiga
|
2226 | 2235 | * format: "paula 1.5 (18.2.96)\r\n"
|
@@ -2432,7 +2441,7 @@ ga_Copyright:
|
2432 | 2441 | lea .copyright(pc),a0
|
2433 | 2442 | move.l a0,d0
|
2434 | 2443 | rts
|
2435 |
| -.copyright dc.b "© 2017 All rights reserved",0 |
| 2444 | +.copyright dc.b "� 2017 All rights reserved",0 |
2436 | 2445 | even
|
2437 | 2446 |
|
2438 | 2447 | ga_Version:
|
|
0 commit comments