Mercurial > audlegacy
comparison src/audlegacy/plugin.h @ 4824:d8228a5f042e
Add OutputPluginInitStatus.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Fri, 27 Feb 2009 17:37:10 -0600 |
parents | a7b80f765d6f |
children | 7b771ae623eb |
comparison
equal
deleted
inserted
replaced
4823:732f392b887b | 4824:d8228a5f042e |
---|---|
1062 */ | 1062 */ |
1063 struct _LowlevelPlugin { | 1063 struct _LowlevelPlugin { |
1064 PLUGIN_COMMON_FIELDS | 1064 PLUGIN_COMMON_FIELDS |
1065 }; | 1065 }; |
1066 | 1066 |
1067 typedef enum { | |
1068 OUTPUT_PLUGIN_INIT_OK, | |
1069 OUTPUT_PLUGIN_INIT_FAIL, | |
1070 OUTPUT_PLUGIN_INIT_NO_DEVICES | |
1071 } OutputPluginInitStatus; | |
1072 | |
1067 struct _OutputPlugin { | 1073 struct _OutputPlugin { |
1068 PLUGIN_COMMON_FIELDS | 1074 gpointer handle; |
1075 gchar *filename; | |
1076 gchar *description; | |
1077 OutputPluginInitStatus (*init) (void); | |
1078 void (*cleanup) (void); | |
1079 void (*about) (void); | |
1080 void (*configure) (void); | |
1081 gboolean enabled; | |
1069 | 1082 |
1070 void (*get_volume) (gint * l, gint * r); | 1083 void (*get_volume) (gint * l, gint * r); |
1071 void (*set_volume) (gint l, gint r); | 1084 void (*set_volume) (gint l, gint r); |
1072 | 1085 |
1073 gint (*open_audio) (AFormat fmt, gint rate, gint nch); | 1086 gint (*open_audio) (AFormat fmt, gint rate, gint nch); |