aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_api.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-07 22:42:51 +0200
committerMax Kellermann <max@duempel.org>2008-09-07 22:42:51 +0200
commita0103dd05ce4f42f3be2ff951ea44d6e76dadc2f (patch)
tree7039023ffdce180848193cdcb470cefdcb313601 /src/output_api.h
parent3b09c54b6769c7e0c8152dde2850a88f51e2f3d9 (diff)
downloadmpd-a0103dd05ce4f42f3be2ff951ea44d6e76dadc2f.tar.gz
mpd-a0103dd05ce4f42f3be2ff951ea44d6e76dadc2f.tar.xz
mpd-a0103dd05ce4f42f3be2ff951ea44d6e76dadc2f.zip
output: replace audio_output.*Func with audio_output.plugin
Instead of copying all that stuff from the audio output plugin to the audio output structure, store a pointer to the plugin.
Diffstat (limited to '')
-rw-r--r--src/output_api.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/output_api.h b/src/output_api.h
index c73e30a20..9d17d8664 100644
--- a/src/output_api.h
+++ b/src/output_api.h
@@ -67,14 +67,8 @@ struct audio_output_plugin {
struct audio_output {
int open;
const char *name;
- const char *type;
- AudioOutputFinishDriverFunc finishDriverFunc;
- AudioOutputOpenDeviceFunc openDeviceFunc;
- AudioOutputPlayFunc playFunc;
- AudioOutputDropBufferedAudioFunc dropBufferedAudioFunc;
- AudioOutputCloseDeviceFunc closeDeviceFunc;
- AudioOutputSendMetadataFunc sendMetdataFunc;
+ const struct audio_output_plugin *plugin;
int convertAudioFormat;
struct audio_format inAudioFormat;