Ed Schouten | 9 Dec 18:48
Picon
Gravatar

Re: [PATCH] Added Musepack support with libmpcdec

Hello Maxime,

* Maxime COSTE <frrrwww <at> gmail.com> wrote:
> Here is a patch that add support for libmpcdec in herrie, allowing it to play
> musepack files.
> 
> Tell me if I need to change anything.

Sorry for letting you wait this long - I've been very busy lately at
work/uni lately.

> +    if (!fd->stream) {
> +        fseek(fd->fp, 0, SEEK_END);
> +        data->size = ftell(fd->fp);
> +        fseek(fd->fp, 0, SEEK_SET);
> +    } else
> +        data->size = 0;

Herrie's streaming implementation is very primitive and has no way to
`taste' a stream to match with an audio module. We should actually have
a list of mime types, but I haven't found any time to do this. Maybe the
best thing would be to just return an error when you hit a stream? I
know, it's not very good, but right now it prevents MP3 streams from
being played.

What's your opinion on this matter?

--

-- 
 Ed Schouten <ed <at> 80386.nl>
 WWW: http://80386.nl/
(Continue reading)

Maxime COSTE | 9 Dec 22:30
Picon

Re: [PATCH] Added Musepack support with libmpcdec

On Tue, Dec 09, 2008 at 06:48:58PM +0100, Ed Schouten wrote:
> Hello Maxime,
> 
> * Maxime COSTE <frrrwww <at> gmail.com> wrote:
> > Here is a patch that add support for libmpcdec in herrie, allowing it to play
> > musepack files.
> > 
> > Tell me if I need to change anything.
> 
> Sorry for letting you wait this long - I've been very busy lately at
> work/uni lately.
> 

No problem.

> > +    if (!fd->stream) {
> > +        fseek(fd->fp, 0, SEEK_END);
> > +        data->size = ftell(fd->fp);
> > +        fseek(fd->fp, 0, SEEK_SET);
> > +    } else
> > +        data->size = 0;
> 
> Herrie's streaming implementation is very primitive and has no way to
> `taste' a stream to match with an audio module. We should actually have
> a list of mime types, but I haven't found any time to do this. Maybe the
> best thing would be to just return an error when you hit a stream? I
> know, it's not very good, but right now it prevents MP3 streams from
> being played.
> 
> What's your opinion on this matter?
(Continue reading)

paulalt (via Nabble | 15 Dec 04:14
Favicon

can't play songs

Every time I want to play a song on herrie there is this message showing up: 'Sample rate or amount of channels not supported.'

My OS is Ubuntu 8.10, and no problem with playing songs on other music players.






This email is a Public Email sent by paulalt
Your replies will appear at http://n2.nabble.com/can%27t-play-songs-tp1656562p1656562.html
To subscribe to this discussion, click here
Public Email is a Nabble idea.

Schneider | 21 Dec 14:22
Picon
Gravatar

About getting what's playing

I wonder if it's possible to get information about what I'm playing, to put on a conkyrc or something. Herrie stores this kind of info, puts on a file or something?

Thanks.

Ed Schouten | 21 Dec 14:48
Picon
Gravatar

Re: About getting what's playing

Hello,

* Schneider <dudektria <at> gmail.com> wrote:
> I wonder if it's possible to get information about what I'm playing, to put
> on a conkyrc or something. Herrie stores this kind of info, puts on a file
> or something?

The latest Herrie snapshot has DBus-support, so if we would add this, we
should do this through DBus. Unfortunately I'm *very* busy lately (work,
school, etc). Any volunteers?

--

-- 
 Ed Schouten <ed <at> 80386.nl>
 WWW: http://80386.nl/
Steve Jothen | 21 Dec 23:40
Picon

Re: About getting what's playing

On Sun, Dec 21, 2008 at 5:48 AM, Ed Schouten <ed <at> 80386.nl> wrote:

Hello,

* Schneider <dudektria <at> gmail.com> wrote:
> I wonder if it's possible to get information about what I'm playing, to put
> on a conkyrc or something. Herrie stores this kind of info, puts on a file
> or something?

The latest Herrie snapshot has DBus-support, so if we would add this, we
should do this through DBus. Unfortunately I'm *very* busy lately (work,
school, etc). Any volunteers?

--
 Ed Schouten <ed <at> 80386.nl>
 WWW: http://80386.nl/

I've attached a patch that adds support for this using DBus. I think just locking the GUI mutex should be enough, but I'm not sure if the song information is updated in other places? Here are some examples of using it:

Nothing playing:

% dbus-send --dest=info.herrie.Herrie --print-reply /info/herrie/Herrie info.herrie.Herrie.getSong
method return sender=:1.38 -> dest=:1.40 reply_serial=2
   string ""

Something playing:

% dbus-send --dest=info.herrie.Herrie --print-reply /info/herrie/Herrie info.herrie.Herrie.getSong
method return sender=:1.38 -> dest=:1.41 reply_serial=2
   string "J. S. Bach - Menuett G-Dur, BWV Anh. 116"

Feel free to change it if you like,

Steve
 

Attachment (herrie-dbus-song.diff): text/x-diff, 1561 bytes
Schneider | 22 Dec 06:03
Picon
Gravatar

Re: About getting what's playing

Hey, that's better than I expected :D
I will build it with the patch, thanks!

Schneider

2008/12/21 Steve Jothen <sjothen <at> gmail.com>
On Sun, Dec 21, 2008 at 5:48 AM, Ed Schouten <ed <at> 80386.nl> wrote:
Hello,

* Schneider <dudektria <at> gmail.com> wrote:
> I wonder if it's possible to get information about what I'm playing, to put
> on a conkyrc or something. Herrie stores this kind of info, puts on a file
> or something?

The latest Herrie snapshot has DBus-support, so if we would add this, we
should do this through DBus. Unfortunately I'm *very* busy lately (work,
school, etc). Any volunteers?

--
 Ed Schouten <ed <at> 80386.nl>
 WWW: http://80386.nl/

I've attached a patch that adds support for this using DBus. I think just locking the GUI mutex should be enough, but I'm not sure if the song information is updated in other places? Here are some examples of using it:

Nothing playing:

% dbus-send --dest=info.herrie.Herrie --print-reply /info/herrie/Herrie info.herrie.Herrie.getSong
method return sender=:1.38 -> dest=:1.40 reply_serial=2
   string ""

Something playing:

% dbus-send --dest=info.herrie.Herrie --print-reply /info/herrie/Herrie info.herrie.Herrie.getSong
method return sender=:1.38 -> dest=:1.41 reply_serial=2
   string "J. S. Bach - Menuett G-Dur, BWV Anh. 116"

Feel free to change it if you like,

Steve
 



Gmane