aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/shout_plugin.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-22 17:18:28 +0100
committerMax Kellermann <max@duempel.org>2009-02-22 17:18:28 +0100
commitf6e5c00726cf3322813242b804f3bf2369cfa337 (patch)
tree5beb10943c8a4c40666746edf68e79f7fd65fc08 /src/output/shout_plugin.h
parentf7c685f1abaf8201d8bdc2b520b5529dfaf474dd (diff)
downloadmpd-f6e5c00726cf3322813242b804f3bf2369cfa337.tar.gz
mpd-f6e5c00726cf3322813242b804f3bf2369cfa337.tar.xz
mpd-f6e5c00726cf3322813242b804f3bf2369cfa337.zip
shout: use the new encoder API
Removed shout's encoder plugin API in favor of the new generic encoder plugin API.
Diffstat (limited to '')
-rw-r--r--src/output/shout_plugin.h33
1 files changed, 1 insertions, 32 deletions
diff --git a/src/output/shout_plugin.h b/src/output/shout_plugin.h
index eb40907d3..4bc6dac90 100644
--- a/src/output/shout_plugin.h
+++ b/src/output/shout_plugin.h
@@ -28,28 +28,6 @@
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "shout"
-struct shout_data;
-
-struct shout_encoder_plugin {
- const char *name;
- unsigned int shout_format;
-
- int (*clear_encoder_func)(struct shout_data *sd);
- int (*encode_func)(struct shout_data *sd,
- const void *chunk, size_t len);
- void (*finish_func)(struct shout_data *sd);
- int (*init_func)(struct shout_data *sd);
- int (*init_encoder_func) (struct shout_data *sd);
- /* Called when there is a new MpdTag to encode into the
- stream. If this function returns non-zero, then the
- resulting song will be passed to the shout server as
- metadata. This allows the Ogg encoder to send metadata via
- Vorbis comments in the stream, while an MP3 encoder can use
- the Shout Server's metadata API. */
- int (*send_metadata_func)(struct shout_data *sd,
- char *song, size_t size);
-};
-
struct shout_buffer {
unsigned char data[32768];
size_t len;
@@ -61,23 +39,14 @@ struct shout_data {
shout_t *shout_conn;
shout_metadata_t *shout_meta;
- const struct shout_encoder_plugin *encoder;
- void *encoder_data;
+ struct encoder *encoder;
float quality;
int bitrate;
- const struct tag *tag;
-
int timeout;
- /* the configured audio format */
- struct audio_format audio_format;
-
struct shout_buffer buf;
};
-extern const struct shout_encoder_plugin shout_mp3_encoder;
-extern const struct shout_encoder_plugin shout_ogg_encoder;
-
#endif