Page 1 of 1
LXMusic不支援cue格式嗎?
Posted: Mon Aug 27, 2012 9:43 am
by tuxzz
我有許多cue+ape或cue+flac的歌,編碼為UTF-8或GB2312或BIG5或SHIFT-JIS的,但是無論什麽編碼的cue,lxmusic都不支援(拖進播放器後無任何反應)。但xmms已經支援UTF-8的cue了,希望能添加lxmusic對cue的支援。(現在只能忍受qmmp的笨重了……

)
This is English version, and sorry for my bad English...
I have lots of songs of cue+ape or cue+flac.The encoding are UTF-8 or GB2312 or BIG5 or SHIFT-JIS. However, lxmusic doesn't support any cue. And xmms support cue format, so , I hope lxmusic can support cue format。(I'm using qmmp now...

)
Code: Select all
OS:Arch linux
de:LXDE
lxmusic-0.4.5-1 with xmms2-0.8DrO_o-7 libcue-1.4.0-3
Re: LXMusic不支援cue格式嗎?
Posted: Tue Aug 28, 2012 7:57 am
by tuxzz
I found a patch.But it is too old.
Code: Select all
diff -Nur lxmusic-0.3.0/src/lxmusic.c lxmusic-0.3.0_new/src/lxmusic.c
--- lxmusic-0.3.0/src/lxmusic.c 2009-05-27 06:58:03.000000000 +0800
+++ lxmusic-0.3.0_new/src/lxmusic.c 2009-08-08 03:05:12.000000000 +0800
@@ -231,7 +231,7 @@
#ifdef HAVE_LIBNOTIFY
lxmusic_notification_free( lxmusic_notification );
-#endif HAVE_LIBNOTIFY
+#endif
/* FIXME: Is this apporpriate? */
if( ! play_after_exit || playback_status == XMMS_PLAYBACK_STATUS_STOP )
@@ -841,7 +841,9 @@
static gpointer add_file( const char* file )
{
gboolean is_dir = g_file_test( file, G_FILE_TEST_IS_DIR );
- xmmsc_result_t *res;
+ xmmsc_result_t *res, *res2;
+ xmmsv_t *val;
+ xmmsv_coll_t *coll;
char *url;
/* Since xmms2 uses its own url format, this is annoying but inevitable. */
@@ -849,6 +851,31 @@
if( is_dir )
res = xmmsc_playlist_radd( con, cur_playlist, url );
+ else if ( strcasestr( file, ".cue" ) )
+ {
+ res = xmmsc_coll_idlist_from_playlist_file (con, url);
+ xmmsc_result_wait (res);
+
+ val = xmmsc_result_get_value (res);
+ if (xmmsv_is_error (val)) {
+ printf ("%s", xmmsv_get_error_old (val));
+ }
+
+ if (!xmmsv_get_coll (val, &coll)) {
+ printf ("Couldn't get collection from result!\n");
+ }
+
+ res2 = xmmsc_playlist_add_idlist (con, NULL, coll);
+ xmmsc_result_wait (res2);
+ if (xmmsc_result_iserror (res2)) {
+ printf ("%s\n", xmmsc_result_get_error (res2));
+ }
+
+ xmmsc_result_unref (res);
+ xmmsc_result_unref (res2);
+ res = NULL;
+ res2 = NULL;
+ }
else
res = xmmsc_playlist_add_url( con, cur_playlist, url );
g_free( url );
Re: LXMusic不支援cue格式嗎?
Posted: Tue Aug 28, 2012 6:59 pm
by seppalta
Your English is fine. You should see my Chinese!
I do not know much about Lxmusic player, but I know VLC player plays .cue and almost everything else.
Re: LXMusic不支援cue格式嗎?
Posted: Wed Aug 29, 2012 8:28 am
by tuxzz
seppalta wrote:Your English is fine. You should see my Chinese!
I do not know much about Lxmusic player, but I know VLC player plays .cue and almost everything else.
Thanks for your reply seppalta.
But VLC is too heavy, like Qmmp.
I want a light and support .cue perfectly music player. Do you know which player is the best for me?
Re: LXMusic不支援cue格式嗎?
Posted: Sat Dec 01, 2012 4:27 am
by seppalta
Re: LXMusic不支援cue格式嗎?
Posted: Wed Dec 26, 2012 12:22 am
by fohrums
There are a lot of (upcomming) great open source media players out there specifically made for linux nowadays
I'll name a few that support cue files (not in any particular order):
Code: Select all
Clementine | http://www.clementine-player.org/
Audacious | http://www.audacious-media-player.org/
DeadBeeF | http://deadbeef.sourceforge.net/
Amarok | http://amarok.kde.org/
Banshee | http://banshee.fm/
There is a lot more to name but I need specifics. Here are some things to consider for making a decision on what player is right for you:
Code: Select all
A) Specifics:
-Lightweight
-Design/Looks
-Customization (foobar influences?)
-Licencing (free, open source)
B) Media Library
-Library (organizes songs in a fashion manner)
-Auto-Fetching (lyrics, bio, album art, etc)
C) Playback
-Quality
-Codecs
-Playlist support (cue, m3u, etc)
-DSP (EQ, Re-Sampling, etc)
To help you search for media players and alternatives checkout
http://www.alternativeto.net you can filter by Licence/OS (Open Source/Linux).