pCD 1.5 - CD-audio player

Audio editors, music players, video players, burning software, etc.
Post Reply
Message
Author
Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#136 Post by Sylvander »

Finally got around to installing version 0.9 in BoxPup 4.1.3, and it seems to be working perfectly.
It auto-plays.
The 1st track plays, then onto the 2nd track etc. :D

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#137 Post by 01micko »

Hello Sigmund :)

Ok, this may surprise many of you, but I can run pCD on a 80486dx 50MHz with 32MB of ram. Almost perfectly in Barry's 218 (full install, with 128MB swap) revamp of the Puppy 2 series.

When I say "almost", there is some stutter, but it is minimal... if it were playing in front of a bunch of partygoers, no one would notice. 8)

I tested 2 cds so far... that 'Misdirection' one (I'll mail that one to you if you want Sigmund... it's not quite heavy metal but is definitely hard rock, Australian flavoured, :twisted: ) which has text on the cd and it works fine... tested 'skip' and highlighting a track... slow... but! 486? :lol: . Now, here is another interesting part, I quit the "Misdirection, Cast No Shadows" cd and pressed 'eject'... fine..ok... loaded "Nirvana, Nevermind" and clicked 'read cd', without closing.... (thought... 'doomed to fail'...) and it worked perfectly! Up came the track list. Played automagically. With even less stutter!

Originally, I thought I'd be amazed to even see a track list. But now I am just happy! My 486 is not a useless pile of proverbial!

This pales in comparison to my tests on the 'Dino'... :lol:

Thanks!
Puppy Linux Blog - contact me for access

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#138 Post by 01micko »

For what it's worth I loaded a third CD, 'Judas Priest, RockaRola' ...(Gull remaster version)... on the old piece of junk and pCD continued on and played the disc, but the gui stopped after the third track. When it did stop (the gui) the CD played to the end with no stutter at all. However the gui did seem hung at track 3.

I dunno if this is any help, but it can't be too much harm :)
Puppy Linux Blog - contact me for access

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#139 Post by zigbert »

Mick
I think it's great that it (partly) worked on your dino. If the gui hangs on your main system too, I would continue the bug-search.....


Thanks for reporting
Sigmund

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#140 Post by 01micko »

Sigmund

I've done some hacking of pCD to use for my pre-dino... the 486.

I cut the gui right down to just the buttons, no splash screens, and just a refresh button for when a new cd is inserted, does the same thing as "read cd".

There are no tracks listed or anything, it just plays the cd, this is just something I did for myself for really low spec gear... erm, puppy shouldn't even run on a 486 with 32meg of ram! It does seem to work better on the "ol' hunk of junk"... perhaps a lower gtk overhead. 8)

All your code in the 'func' file is largely unchanged... I'm just experimenting with what I can take out safely. :)

With your permission I would like to post it as a .pet, some people may find it useful.

I call it "pcdlite"

Mick
Attachments
pcdlite.jpg
(13.33 KiB) Downloaded 1094 times
Puppy Linux Blog - contact me for access

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#141 Post by zigbert »

Mick
Of course you should share it. That is the way open source survives.


Sigmund

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#142 Post by 01micko »

http://www.murga-linux.com/puppy/viewto ... 758#324758

That's it! It has been running fine for a few hours on the ol' bitch!

Cheers

Mick
Puppy Linux Blog - contact me for access

Kenny-M

#143 Post by Kenny-M »

What happens to:

while [ $NR != $TOTAL_NR ]; do

If the variables NR or TOTAL_NR do not exist? Wouldn't
the while fail?

Maybe the following would help:

while [ "${NR}" != "${TOTAL_NR}" ]; do

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#144 Post by zigbert »

Kenny-M
You're right about that while-loop will fail if NR or TOTAL_NR doesn't exist.

Have you experienced any errors? I can't see the reason why these variables shouldn't contain any value.


Sigmund

Kenny-M

#145 Post by Kenny-M »

Zigbert,

I thought I was replying to a question. However that question no longer appears to be in this thread? Hum?

Anyway it's an old school thing. A rule I learned many years ago under Unix. If the variable isn't defined the script gets confused and the field basically becomes a blank.

Another old trick was to force something to be there like:

if [ "X${var}" = "Xtestword" ] then

If var is blank or not defined X would still be there at the beginning. However the match string would also require X as in Xtestword.

Thanks.

Kenny-M

#146 Post by Kenny-M »

01miko,

The install of pcdlite works OK.

When trying to run pcdlite the screen fills with messages about file
/root/.pcdlite/tmp/pcd-cddb missing.

After looking in the folder I copied pcdlite-cddb to pcd-cddb
then the program started however as the tracks were clicked
through there was no audio.

Also, why does pcdlite try and connect to the internet?? Is this
necessary?

Thanks

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#147 Post by 01micko »

Hello Kenny-M

Hmmm,

Funny that pcd-cddb thing you mention, I must have missed it, however I have it working on my really old box as mentioned.

I was experimenting with what I could take out of pCD to get it to run on that old thing. The problem seemed to be gtk slowing things down so I only removed what was necessary to get it to run without stutter. The code is entirely based on pCD and I haven't really spent much time on getting it chopped down further. Of course, with no tracks displaying, there is no need for internet stuff. However I may make use of it. The tmp files generated are needed anyway and the code accessing the net is minimal.

Thanks for your interest and if you have any suggestions post in that thread. Much appreciated. I am far from great with bash! :lol:

Cheers :)
Puppy Linux Blog - contact me for access

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#148 Post by zigbert »

Version 1.0
See main post

changelog
- Language support
- Tooltips support
- Bugfix: startup with no valid disc inserted froze X in Puppy 4.3

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#149 Post by 01micko »

Sigmund

A bug. ">>>>>pCD<<<<<<" (a marker?) is not getting echoed to ~/.pcd/tmp/pcd-playing. However the next line echo 100 >> $WORKDIR/pcd-playing is showing up. Consequently there is a problem showing the song which is playing. This seems very strange. I don't know if this is the problem but the progress bar displays incorrectly when you switch tracks, say you get sick of track 1 and play track 5. Is it the call in /usr/local/pcd ?

Everything else seems fine, nice tooltips 8)

Cheers
Puppy Linux Blog - contact me for access

Kenny-M

#150 Post by Kenny-M »

I have removed pcdlite because of the previouly reported bug and as I have received no feedback as to why it is trying to access the internet.

Is this necessary? Is this snoopware?

Thanks.

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#151 Post by 01micko »

Kenny-M wrote: Is this snoopware?

Thanks.
:lol: Er, this isn't really the thread for pcdlite. If you downloaded it you will find it again :D . There is a new version, thanks to your post, take a look.

Ah what the hay, I'll make it easy for you...pcdlite thread

Cheers
Puppy Linux Blog - contact me for access

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#152 Post by zigbert »

01micko wrote:A bug. ">>>>>pCD<<<<<<" (a marker?) is not getting echoed to ~/.pcd/tmp/pcd-playing. However the next line echo 100 >> $WORKDIR/pcd-playing is showing up. Consequently there is a problem showing the song which is playing. This seems very strange. I don't know if this is the problem but the progress bar displays incorrectly when you switch tracks, say you get sick of track 1 and play track 5. Is it the call in /usr/local/pcd ?
Testing now, and Black Sabbaths songs show up in the progressbar here, can you be more specific???????????


Sigmund

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#153 Post by 01micko »

It occurs when you highlight a track and play it. If you leave it alone it is ok.
Puppy Linux Blog - contact me for access

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#154 Post by zigbert »

Mick, what Puppy are you running?

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#155 Post by 01micko »

ppa-422, on fastish box, athlon 2100+
Puppy Linux Blog - contact me for access

Post Reply