blob: be49295bb3bbb081d178a9d972540446a9ad991b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
This is an attempt at a sound player for Jumpman Junior, using SDL2 and
the pokey sound library by Ron Fries.
Usage: ./playsdl2 [-p] addr
Default is to play at NTSC speed, 60 frames/sec. -p means play at PAL
speed, 50 frames/sec.
addr is a 4-digit hex address from the ROM (../jumpmanjr.rom). Look for
labels beginning with sfx_ in ../jumpmanjr.dasm. Don't use a leading $,
although a leading 0x is allowed (but not needed).
Right now this only plays one sound, so you can't play all the parts to
the 2- and 4-part harmony music yet. Also, parts that repeat will repeat
forever (press ^C in that case). Eventually this will evolve into the
sound engine for the SDL2 source port of Jumpman Junior, meaning it'll
handle up to 4 voices, with priority levels, etc (same as the original).
I tried to use the later 2.3 version of the pokey library, both the
standalone one and the modified from from the atari800 emulator, but
couldn't get either to work (no doubt due to my own ignorance). So
this uses version 1.1 of the library, which should be fine for this
game since we don't need support for things like volume-only sound or
high-pass filters.
|