def open_audio(frequency=44100, format=AudioFormat.default, channels=2, chunksize=1024):
    """Open the mixer with a certain audio format.
    
    Args:
        frequency (int): Output sampling frequency in samples per second (Hz).
        format (AudioFormat): Output sample format.
        channels (int): Number of sound channels in output. Set to 2 for stereo, 1 for mono.
        chunksize (int): Bytes used per output sample.
        
    Raises:
        SDLError: If the audio device cannot be opened.
    """
    check_int_err(lib.Mix_OpenAudio(frequency, format, channels, chunksize))