Int 2F Fn 8223 - Modres - Play Sample [s]

AX = 8223h
DX:CX -> SAMPARM structure (see #2649)

Return: AX = status
5722h succesful
2000h parameters out of range
other MODRES not installed

See Also: AX=8221h,AX=8224h,AX=8225h,AX=8226h

Format of SAMPARM Structure:
Offset Size Description (Table 2649)
00h WORD signature 5053h ("SP" = SAMPARM)
02h WORD segment of start of sample to play
04h WORD length of sample (IN WORD)
06h BYTE output device (see #2648 at INT 2F/AX=8221h)
07h WORD pitch to play (see #2650)
09h BYTE volume (from 00h to 40h)
0Ah WORD loop start
0Ch WORD loop length
0Eh BYTE machine speed (see INT 2F/AX=8220h)

See Also: #2646

(Table 2650)
Values for Pitch to play::
C 0 is 06B0h
C#0 is 06B0h / 2(1/12)
D 0 is (06B0h / 2(1/12)) / 2(1/12)
...

Note: C 1 is 06B0h / 2
C 2 is 06B0h / 4
etc.

See Also: #2649