docs: def init(sf2, driver=None, file=None):
      """Initialize the audio.
  
      Return True on success, False on failure.
  
      This function needs to be called before you can have any audio.
  
      The sf2 argument should be the location of a valid soundfont file.
  
      The optional driver argument can be any of 'alsa', 'oss', 'jack',
      'portaudio', 'sndmgr', 'coreaudio' or 'Direct Sound'.
  
      If the file argument is not None, then instead of loading the driver, a
      new wave file will be initialized to store the audio data.
      """
      global midi, initialized
      if not initialized:
          if file is not None:
              midi.start_recording(file)
          else:
              midi.start_audio_output(driver)
          if not midi.load_sound_font(sf2):
              return False
          midi.fs.program_reset()
          initialized = True
      return True