• Max Kellermann's avatar
    audio_format: added audio_format_clear() and audio_format_defined() · d9254369
    Max Kellermann authored
    audio_format_clear() sets an audio_format struct to an cleared
    (undefined) state, which is both faster and smaller than memset(0).
    audio_format_defined() checks if the audio_format struct actually has
    a defined value (i.e. non-zero).  Both can be used to avoid pointers
    to audio_format, replacing the "NULL" value with an "undefined"
    audio_format.
    d9254369
audio_format.h 1.71 KB