commit c438658
zzo38
·
2023-05-09 20:24:28 +0000 UTC
parent 946401a
Make nonstandard detune register, and fix a mistake in varvara.doc
3 files changed,
+7,
-1
+5,
-0
1@@ -245,6 +245,11 @@ b_ ?offset%
2
3 Nonstandard ports of devices are:
4
5+36*/46*/56*/66*
6+ Detune register. This is treated as sixteen fraction bits, and is then
7+ added to 1.0 and multiplied by the frequency which has been specified by
8+ the pitch and length ports.
9+
10 a7/b7
11 In addition to the usual effect (sets the append mode), writing anything
12 to this port (whether or not it is the same value that was previously
M
main.c
+1,
-0
1@@ -749,6 +749,7 @@ static void audio_out(Device*dev,Uint8 id) {
2 s=(dev->d[15]&0x7F)+audio_option['n'-'a'];
3 s=notes[s%12]>>(10-s/12);
4 if(n<256) s=(n*(unsigned long long)s)>>8;
5+ if(use_extension && (dev->d[6] || dev->d[7])) s=(((unsigned long long)s)*(0x10000+GET16(dev->d+6)))>>16;
6 a->freq=s;
7 if(audiospec.channels==1) {
8 a->vol[0]=a->vol[1]=((dev->d[14]&15)+(dev->d[14]>>4))/2;
+1,
-1
1@@ -180,7 +180,7 @@ finished), by 8 for 1bpp sprites or 16 for 2bpp sprites.
2
3 30 = Vector *
4 32 = Position *
5-33 = Output
6+34 = Output
7 38 = Envelope *
8 3A = Length *
9 3C = Address *