本文整理汇总了C++中xmms_xform_plugin_methods_set函数的典型用法代码示例。如果您正苦于以下问题:C++ xmms_xform_plugin_methods_set函数的具体用法?C++ xmms_xform_plugin_methods_set怎么用?C++ xmms_xform_plugin_methods_set使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了xmms_xform_plugin_methods_set函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: xmms_mpc_plugin_setup
static gboolean
xmms_mpc_plugin_setup (xmms_xform_plugin_t *xform_plugin)
{
xmms_xform_methods_t methods;
XMMS_XFORM_METHODS_INIT (methods);
methods.init = xmms_mpc_init;
methods.destroy = xmms_mpc_destroy;
methods.read = xmms_mpc_read;
methods.seek = xmms_mpc_seek;
xmms_xform_plugin_methods_set (xform_plugin, &methods);
xmms_xform_plugin_metadata_mapper_init (xform_plugin,
basic_mappings,
G_N_ELEMENTS (basic_mappings),
mappings,
G_N_ELEMENTS (mappings));
xmms_xform_plugin_indata_add (xform_plugin, XMMS_STREAM_TYPE_MIMETYPE,
"audio/x-mpc", NULL);
xmms_magic_add ("mpc header", "audio/x-mpc", "0 string MP+", NULL);
#ifndef HAVE_MPCDEC_OLD
/* The old API doesn't support sv8 bitstream, so we add it only for the
* new version */
xmms_magic_add ("mpc header", "audio/x-mpc", "0 string MPCK", NULL);
#endif
return TRUE;
}
示例2: xmms_speex_plugin_setup
static gboolean
xmms_speex_plugin_setup (xmms_xform_plugin_t *xform_plugin)
{
xmms_xform_methods_t methods;
XMMS_XFORM_METHODS_INIT (methods);
methods.init = xmms_speex_init;
methods.destroy = xmms_speex_destroy;
methods.read = xmms_speex_read;
xmms_xform_plugin_methods_set (xform_plugin, &methods);
xmms_xform_plugin_indata_add (xform_plugin,
XMMS_STREAM_TYPE_MIMETYPE,
"audio/x-speex",
NULL);
xmms_magic_add ("ogg/speex header", "audio/x-speex",
"0 string OggS", ">4 byte 0",
">>28 string Speex ", NULL);
xmms_magic_extension_add ("audio/x-speex", "*.spx");
xmms_xform_plugin_config_property_register (xform_plugin,
"perceptual_enhancer",
"1", NULL, NULL);
return TRUE;
}
示例3: xmms_vorbis_plugin_setup
static gboolean
xmms_vorbis_plugin_setup (xmms_xform_plugin_t *xform_plugin)
{
xmms_xform_methods_t methods;
XMMS_XFORM_METHODS_INIT (methods);
methods.init = xmms_vorbis_init;
methods.destroy = xmms_vorbis_destroy;
methods.read = xmms_vorbis_read;
methods.seek = xmms_vorbis_seek;
xmms_xform_plugin_methods_set (xform_plugin, &methods);
xmms_xform_plugin_metadata_mapper_init (xform_plugin,
basic_mappings,
G_N_ELEMENTS (basic_mappings),
mappings,
G_N_ELEMENTS (mappings));
xmms_xform_plugin_indata_add (xform_plugin,
XMMS_STREAM_TYPE_MIMETYPE,
"application/ogg",
NULL);
xmms_magic_add ("ogg/vorbis header",
"application/ogg",
"0 string OggS", ">4 byte 0",
">>28 string \x01vorbis", NULL);
xmms_magic_extension_add ("application/ogg", "*.ogg");
return TRUE;
}
示例4: xmms_ringbuf_plugin_setup
static gboolean
xmms_ringbuf_plugin_setup (xmms_xform_plugin_t *xform_plugin)
{
xmms_xform_methods_t methods;
XMMS_XFORM_METHODS_INIT (methods);
methods.init = xmms_ringbuf_plugin_init;
methods.destroy = xmms_ringbuf_plugin_destroy;
methods.read = xmms_ringbuf_plugin_read;
methods.seek = xmms_ringbuf_plugin_seek;
xmms_xform_plugin_methods_set (xform_plugin, &methods);
xmms_xform_plugin_config_property_register (xform_plugin,
"buffersize", "1048576",
NULL, NULL);
xmms_xform_plugin_indata_add (xform_plugin,
XMMS_STREAM_TYPE_MIMETYPE, "audio/pcm",
XMMS_STREAM_TYPE_END);
ringbuf_plugin = xform_plugin;
return TRUE;
}
示例5: xmms_ofa_plugin_setup
static gboolean
xmms_ofa_plugin_setup (xmms_xform_plugin_t *xform_plugin)
{
xmms_xform_methods_t methods;
XMMS_XFORM_METHODS_INIT (methods);
methods.init = xmms_ofa_init;
methods.destroy = xmms_ofa_destroy;
methods.read = xmms_ofa_read;
methods.seek = xmms_ofa_seek;
xmms_xform_plugin_methods_set (xform_plugin, &methods);
xmms_xform_plugin_indata_add (xform_plugin,
XMMS_STREAM_TYPE_MIMETYPE,
"audio/pcm",
XMMS_STREAM_TYPE_FMT_FORMAT,
XMMS_SAMPLE_FORMAT_S16,
XMMS_STREAM_TYPE_FMT_CHANNELS,
2,
XMMS_STREAM_TYPE_FMT_SAMPLERATE,
44100,
XMMS_STREAM_TYPE_END);
return TRUE;
}
示例6: xmms_normalize_plugin_setup
static gboolean
xmms_normalize_plugin_setup (xmms_xform_plugin_t *xform_plugin)
{
xmms_xform_methods_t methods;
unsigned i;
XMMS_XFORM_METHODS_INIT (methods);
methods.init = xmms_normalize_init;
methods.destroy = xmms_normalize_destroy;
methods.read = xmms_normalize_read;
methods.seek = xmms_xform_seek; /* we're not using this */
xmms_xform_plugin_methods_set (xform_plugin, &methods);
xmms_xform_plugin_indata_add (xform_plugin,
XMMS_STREAM_TYPE_MIMETYPE,
"audio/pcm",
XMMS_STREAM_TYPE_FMT_FORMAT,
XMMS_SAMPLE_FORMAT_S16,
XMMS_STREAM_TYPE_END);
for (i = 0; i < G_N_ELEMENTS (config_params); i++) {
xmms_xform_plugin_config_property_register (xform_plugin,
config_params[i].key,
config_params[i].value,
NULL, NULL);
}
return TRUE;
}
示例7: xmms_asf_plugin_setup
static gboolean
xmms_asf_plugin_setup (xmms_xform_plugin_t *xform_plugin)
{
xmms_xform_methods_t methods;
XMMS_XFORM_METHODS_INIT (methods);
methods.init = xmms_asf_init;
methods.destroy = xmms_asf_destroy;
methods.read = xmms_asf_read;
methods.seek = xmms_asf_seek;
xmms_xform_plugin_methods_set (xform_plugin, &methods);
xmms_xform_plugin_metadata_mapper_init (xform_plugin,
basic_mappings,
G_N_ELEMENTS (basic_mappings),
mappings,
G_N_ELEMENTS (mappings));
xmms_xform_plugin_indata_add (xform_plugin,
XMMS_STREAM_TYPE_MIMETYPE,
"video/x-ms-asf",
XMMS_STREAM_TYPE_END);
xmms_magic_add ("asf header", "video/x-ms-asf",
"0 belong 0x3026b275", NULL);
return TRUE;
}
示例8: xmms_asx_plugin_setup
static gboolean
xmms_asx_plugin_setup (xmms_xform_plugin_t *xform_plugin)
{
xmms_xform_methods_t methods;
XMMS_XFORM_METHODS_INIT (methods);
methods.browse = xmms_asx_browse;
xmms_xform_plugin_methods_set (xform_plugin, &methods);
xmms_xform_plugin_indata_add (xform_plugin,
XMMS_STREAM_TYPE_MIMETYPE,
"application/x-asx-playlist",
XMMS_STREAM_TYPE_END);
xmms_xform_plugin_set_out_stream_type (xform_plugin,
XMMS_STREAM_TYPE_MIMETYPE,
"application/x-xmms2-playlist-entries",
XMMS_STREAM_TYPE_END);
xmms_magic_extension_add ("application/x-asx-playlist", "*.asx");
xmms_magic_add ("ASX header", "application/x-asx-playlist",
"0 string/c <asx version=\"3.0\">", NULL);
return TRUE;
}
示例9: xmms_xml_plugin_setup
static gboolean
xmms_xml_plugin_setup (xmms_xform_plugin_t *xform_plugin)
{
xmms_xform_methods_t methods;
XMMS_XFORM_METHODS_INIT (methods);
methods.init = xmms_xml_init;
methods.read = xmms_xml_read;
methods.seek = xmms_xml_seek;
xmms_xform_plugin_methods_set (xform_plugin, &methods);
xmms_xform_plugin_indata_add (xform_plugin,
XMMS_STREAM_TYPE_MIMETYPE,
"application/xml",
NULL);
xmms_magic_add ("xml header", "application/xml",
"0 string <?xml", NULL);
xmms_magic_add ("xml header", "application/xml",
"0 string \xef\xbb\xbf<?xml", NULL);
return TRUE;
}
示例10: xmms_samba_plugin_setup
static gboolean
xmms_samba_plugin_setup (xmms_xform_plugin_t *xform_plugin)
{
xmms_xform_methods_t methods;
gint err;
XMMS_XFORM_METHODS_INIT (methods);
methods.init = xmms_samba_init;
methods.destroy = xmms_samba_destroy;
methods.read = xmms_samba_read;
methods.seek = xmms_samba_seek;
methods.browse = xmms_samba_browse;
xmms_xform_plugin_methods_set (xform_plugin, &methods);
xmms_xform_plugin_indata_add (xform_plugin, XMMS_STREAM_TYPE_MIMETYPE,
"application/x-url", XMMS_STREAM_TYPE_URL,
"smb://*", XMMS_STREAM_TYPE_END);
g_static_mutex_lock (&mutex);
err = smbc_init (xmms_samba_auth_fn, 0);
g_static_mutex_unlock (&mutex);
if (err < 0) {
xmms_log_error ("%s", strerror (errno));
return FALSE;
}
return TRUE;
}
示例11: xmms_daap_plugin_setup
static gboolean
xmms_daap_plugin_setup (xmms_xform_plugin_t *xform_plugin)
{
xmms_xform_methods_t methods;
XMMS_XFORM_METHODS_INIT (methods);
methods.init = xmms_daap_init;
methods.destroy = xmms_daap_destroy;
methods.read = xmms_daap_read;
methods.browse = xmms_daap_browse;
xmms_xform_plugin_methods_set (xform_plugin, &methods);
xmms_xform_plugin_indata_add (xform_plugin,
XMMS_STREAM_TYPE_MIMETYPE,
"application/x-url",
XMMS_STREAM_TYPE_URL,
"daap://*",
XMMS_STREAM_TYPE_END);
if (!daap_mdns_setup ()) {
return FALSE;
}
if (!login_sessions) {
login_sessions = g_hash_table_new (g_str_hash, g_str_equal);
}
return TRUE;
}
示例12: xmms_converter_plugin_setup
static gboolean
xmms_converter_plugin_setup (xmms_xform_plugin_t *xform_plugin)
{
xmms_xform_methods_t methods;
XMMS_XFORM_METHODS_INIT (methods);
methods.init = xmms_converter_plugin_init;
methods.destroy = xmms_converter_plugin_destroy;
methods.read = xmms_converter_plugin_read;
methods.seek = xmms_converter_plugin_seek;
xmms_xform_plugin_methods_set (xform_plugin, &methods);
/*
* Handle any pcm data...
* Well, we don't really..
*/
xmms_xform_plugin_indata_add (xform_plugin,
XMMS_STREAM_TYPE_MIMETYPE,
"audio/pcm",
XMMS_STREAM_TYPE_PRIORITY,
100,
XMMS_STREAM_TYPE_NAME,
"generic-pcmdata",
XMMS_STREAM_TYPE_END);
converter_plugin = xform_plugin;
return TRUE;
}
示例13: xmms_faad_plugin_setup
static gboolean
xmms_faad_plugin_setup (xmms_xform_plugin_t *xform_plugin)
{
xmms_xform_methods_t methods;
XMMS_XFORM_METHODS_INIT (methods);
methods.init = xmms_faad_init;
methods.destroy = xmms_faad_destroy;
methods.read = xmms_faad_read;
methods.seek = xmms_faad_seek;
xmms_xform_plugin_methods_set (xform_plugin, &methods);
xmms_xform_plugin_indata_add (xform_plugin,
XMMS_STREAM_TYPE_MIMETYPE,
"audio/aac",
NULL);
xmms_magic_add ("mpeg aac header", "audio/aac",
"0 beshort&0xfff6 0xfff0", NULL);
xmms_magic_add ("adif header", "audio/aac",
"0 string ADIF", NULL);
return TRUE;
}
示例14: xmms_wavpack_plugin_setup
static gboolean
xmms_wavpack_plugin_setup (xmms_xform_plugin_t *xform_plugin)
{
xmms_xform_methods_t methods;
XMMS_XFORM_METHODS_INIT (methods);
methods.init = xmms_wavpack_init;
methods.destroy = xmms_wavpack_destroy;
methods.read = xmms_wavpack_read;
methods.seek = xmms_wavpack_seek;
xmms_xform_plugin_methods_set (xform_plugin, &methods);
xmms_xform_plugin_metadata_mapper_init (xform_plugin,
basic_mappings,
G_N_ELEMENTS (basic_mappings),
mappings,
G_N_ELEMENTS (mappings));
xmms_xform_plugin_indata_add (xform_plugin,
XMMS_STREAM_TYPE_MIMETYPE,
"audio/x-wavpack",
NULL);
xmms_magic_add ("wavpack header v4", "audio/x-wavpack",
"0 string wvpk", NULL);
xmms_magic_extension_add ("audio/x-wavpack", "*.wv");
return TRUE;
}
示例15: xmms_vocoder_plugin_setup
static gboolean
xmms_vocoder_plugin_setup (xmms_xform_plugin_t *xform_plugin)
{
xmms_xform_methods_t methods;
XMMS_XFORM_METHODS_INIT (methods);
methods.init = xmms_vocoder_init;
methods.destroy = xmms_vocoder_destroy;
methods.read = xmms_vocoder_read;
methods.seek = xmms_vocoder_seek;
xmms_xform_plugin_methods_set (xform_plugin, &methods);
xmms_xform_plugin_config_property_register (xform_plugin, "speed", "100",
NULL, NULL);
xmms_xform_plugin_config_property_register (xform_plugin, "pitch", "100",
NULL, NULL);
xmms_xform_plugin_config_property_register (xform_plugin, "attack_detection", "0",
NULL, NULL);
xmms_xform_plugin_indata_add (xform_plugin,
XMMS_STREAM_TYPE_MIMETYPE,
"audio/pcm",
XMMS_STREAM_TYPE_FMT_FORMAT,
XMMS_SAMPLE_FORMAT_S16,
XMMS_STREAM_TYPE_END);
return TRUE;
}