mirror of
https://github.com/KrisKennaway/ii-vision.git
synced 2024-10-13 08:23:42 +00:00
Emit the video header and add an assertion to help make sure we don't
break the stream framing.
This commit is contained in:
parent
2a76e3d48f
commit
de8747ff37
@ -44,7 +44,8 @@ class Movie:
|
||||
:return:
|
||||
"""
|
||||
video_frames = self.video.frames()
|
||||
video_seq = None
|
||||
|
||||
yield opcodes.Header(mode=video.Mode.DHGR)
|
||||
|
||||
for au in self.audio.audio_stream():
|
||||
self.cycles += self.audio.cycles_per_tick
|
||||
@ -95,6 +96,7 @@ class Movie:
|
||||
# 2 op_ack address bytes + 2 payload bytes from ACK must
|
||||
# terminate 2K stream frame
|
||||
yield from self._emit_bytes(opcodes.Ack(self.aux_memory_bank))
|
||||
assert self.stream_pos % 2048 == 0, self.stream_pos % 2048
|
||||
# Flip-flop between MAIN and AUX banks
|
||||
self.aux_memory_bank = not self.aux_memory_bank
|
||||
yield from self._emit_bytes(op)
|
||||
|
Loading…
Reference in New Issue
Block a user