diff options
author | Max Kellermann <max@duempel.org> | 2008-09-08 11:43:13 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-08 11:43:13 +0200 |
commit | be046b25a4e2583f63d6b3da680e6451957750e4 (patch) | |
tree | f295ed51a8e2ab4f7eb504ee2d2ea2e471ad7e2c /src/audio.c | |
parent | a0103dd05ce4f42f3be2ff951ea44d6e76dadc2f (diff) | |
download | mpd-be046b25a4e2583f63d6b3da680e6451957750e4.tar.gz mpd-be046b25a4e2583f63d6b3da680e6451957750e4.tar.xz mpd-be046b25a4e2583f63d6b3da680e6451957750e4.zip |
output: static audio_output_plugin list as array
Instead of having to register each output plugin, store them
statically in an array. This eliminates the need for the List library
here, and saves some small allocations during startup.
Diffstat (limited to 'src/audio.c')
-rw-r--r-- | src/audio.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/audio.c b/src/audio.c index b6242b425..44a97e65a 100644 --- a/src/audio.c +++ b/src/audio.c @@ -82,29 +82,12 @@ int cmpAudioFormat(const struct audio_format *f1, const struct audio_format *f2) return 1; } -void loadAudioDrivers(void) -{ - initAudioOutputPlugins(); - loadAudioOutputPlugin(&shoutPlugin); - loadAudioOutputPlugin(&nullPlugin); - loadAudioOutputPlugin(&fifoPlugin); - loadAudioOutputPlugin(&alsaPlugin); - loadAudioOutputPlugin(&aoPlugin); - loadAudioOutputPlugin(&ossPlugin); - loadAudioOutputPlugin(&osxPlugin); - loadAudioOutputPlugin(&pulsePlugin); - loadAudioOutputPlugin(&mvpPlugin); - loadAudioOutputPlugin(&jackPlugin); -} - /* make sure initPlayerData is called before this function!! */ void initAudioDriver(void) { ConfigParam *param = NULL; unsigned int i; - loadAudioDrivers(); - audioOutputArraySize = audio_output_count(); audioDeviceStates = xmalloc(sizeof(enum ad_state) * audioOutputArraySize); |