mirror of
https://github.com/KrisKennaway/ii-sound.git
synced 2024-06-29 03:29:31 +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])
|
||||
|
||||
# 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
|
||||
# both look the same over a too-short horizon, but have different results.
|
||||
# then this will reduce quality, e.g. two opcodes may truncate to the
|
||||
# same prefix, but have different results when we apply them fully.
|
||||
lookahead_steps = int(argv[3])
|
||||
out = argv[4]
|
||||
|
||||
# TODO: PAL Apple ][ clock rate is slightly different
|
||||
sample_rate = int(1024. * 1000)
|
||||
# Effective clock rate, including every-65 cycle "long cycle" that takes
|
||||
# 16/14 as long.
|
||||
#
|
||||
# NTSC: 1020484
|
||||
# PAL //c: 1015625
|
||||
sample_rate = 1015657 # PAL
|
||||
|
||||
with open(out, "wb+") as f:
|
||||
for opcode in audio_bytestream(
|
||||
|
|
Loading…
Reference in New Issue
Block a user