mirror of
https://github.com/KrisKennaway/ii-sound.git
synced 2024-09-29 23:55:21 +00:00
Use the correct effective clock rate for a PAL Apple II, taking into account the long cycle.
This commit is contained in:
parent
0bb7871355
commit
93b63db558
@ -226,13 +226,17 @@ def main(argv):
|
|||||||
step = int(argv[2])
|
step = int(argv[2])
|
||||||
|
|
||||||
# TODO: if we're not looking ahead beyond the longest (non-slowpath) opcode
|
# TODO: if we're not looking ahead beyond the longest (non-slowpath) opcode
|
||||||
# then this will reduce quality, e.g. a long NOTICK and TICK will
|
# then this will reduce quality, e.g. two opcodes may truncate to the
|
||||||
# both look the same over a too-short horizon, but have different results.
|
# same prefix, but have different results when we apply them fully.
|
||||||
lookahead_steps = int(argv[3])
|
lookahead_steps = int(argv[3])
|
||||||
out = argv[4]
|
out = argv[4]
|
||||||
|
|
||||||
# TODO: PAL Apple ][ clock rate is slightly different
|
# Effective clock rate, including every-65 cycle "long cycle" that takes
|
||||||
sample_rate = int(1024. * 1000)
|
# 16/14 as long.
|
||||||
|
#
|
||||||
|
# NTSC: 1020484
|
||||||
|
# PAL //c: 1015625
|
||||||
|
sample_rate = 1015657 # PAL
|
||||||
|
|
||||||
with open(out, "wb+") as f:
|
with open(out, "wb+") as f:
|
||||||
for opcode in audio_bytestream(
|
for opcode in audio_bytestream(
|
||||||
|
Loading…
Reference in New Issue
Block a user