]> git.tuebingen.mpg.de Git - paraslash.git/commit
build: Remove AUDIOD_AUDIO_FORMATS_ENUM.
authorAndre Noll <maan@tuebingen.mpg.de>
Wed, 21 Jun 2023 21:06:09 +0000 (23:06 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 17 Mar 2024 11:34:49 +0000 (12:34 +0100)
commita2568a74ee648390703dd8c8001b2ca09d0745b6
tree091a192e1d9e9ee142342f7e59af7c87c9d8ba13
parent646d6a7e6a9dbf3860f613596b19000c1c4ea008
build: Remove AUDIOD_AUDIO_FORMATS_ENUM.

No code actually refers to the AUDIO_FORMAT_$FOO values of this
enumeration. Its only purpose is to define the number of supported
audio formats (as the last constant of the enum). We may as well
employ ARRAY_SIZE() for that, so kill the enum and remove the loop
from configure.ac which generates it.

The related audio_formats array, which contains the names of the
supported audio formats, is only used in audiod.c, so we can remove
the declaration from audiod.h and make it static.
audiod.c
audiod.h
configure.ac