(self, queues, values, memory, syntax)
Initialise sound queue.
Initialise sound queue.
Initialise sound queue .
def __init__(self, queues, values, memory, syntax):
        """Initialise sound queue."""
        # for wait() and queues
        self._queues = queues
        self._values = values
        self._memory = memory
        # Tandy/PCjr noise generator
        # frequency for noise sources
        self._noise_freq = list(NOISE_FREQ)
        # advnced sound capabilities
        self._multivoice = syntax if syntax in ('pcjr', 'tandy') else b''
        # Tandy/PCjr SOUND ON and BEEP ON
        # tandy has SOUND ON by default, pcjr has it OFF
        self._sound_on = (self._multivoice == 'tandy')
        # pc-speaker on/off; (not implemented; not sure whether should be on)
        self._beep_on = True
        # timed queues for each voice (including gaps, for background counting & rebuilding)
        self._voice_queue = [TimedQueue(), TimedQueue(), TimedQueue(), TimedQueue()]
        self._foreground = True
        self._synch = False
        # initialise PLAY state
        self.reset_play()
def __init__ ( self , queues , values , memory , syntax ) : # for wait() and queues self . _queues = queues self . _values = values self . _memory = memory # Tandy/PCjr noise generator # frequency for noise sources self . _noise_freq = list ( NOISE_FREQ ) # advnced sound capabilities self . _multivoice = syntax if syntax in ( 'pcjr' , 'tandy' ) else b'' # Tandy/PCjr SOUND ON and BEEP ON # tandy has SOUND ON by default, pcjr has it OFF self . _sound_on = ( self . _multivoice == 'tandy' ) # pc-speaker on/off; (not implemented; not sure whether should be on) self . _beep_on = True # timed queues for each voice (including gaps, for background counting & rebuilding) self . _voice_queue = [ TimedQueue ( ) , TimedQueue ( ) , TimedQueue ( ) , TimedQueue ( ) ] self . _foreground = True self . _synch = False # initialise PLAY state self . reset_play ( )