Madplay Is Frustrating Me :)


triton posted on Dec 23 2005 at 05:59 PM said:
ARGH, i dont get this shit! i have it exactly how you all say it should be, even use that programmers notebook and nada! i get a black screen that i can exit out of with start, nothing else

Here this should help you out. :D

Code:
#!/bin/sh

cd /mnt/sd/bin
/mnt/sd/bin/madplay --adjust-volume=0 -z -r /mnt/sd/music/*.mp3 &
cd /mnt/sd/
/usr/gp2x/EBookViewer
sync
madplay_pid=`pidof madplay`
echo "kill -9 $madplay_pid" >> /mnt/sd/bin/madplay_output.txt
kill -9 $madplay
cd /usr/gp2x/
exec /usr/gp2x/gp2xmenu

See the above code? Use that in a gpe. You dont need to use that coders thing they were talking about, just use word pad to edit it. Notepad tends to jumble it up :)

*It doesnt matter where you put your gpe, as long as the directory it uses is correct.

Oh, and keep in mind.
1.) Make sure your madplay file is in the folder bin (no caps) and your music is in folder music (no caps) otherwise it wont work out rite :)
2.) I thought that 'madplay' in /mnt/sd/bin/madplay --adjust-volume=0 -z -r /mnt/sd/music/*.mp3 meant that it used the folder, thats wrong though its actually just using the bulk file madplay.


Hope this helps you, now that I, my stupid self understands it :)


Oh, and a small update on my fiddling around woot. My drmd runs fairly well at 280mhz with shinning force 2 with sound off and mp3s playing, figured it out heh :rolleyes:

Toobad my savestate got corrupted from my lil brother not saving properly :( I was 1/3 done the game! Blah!
 
Last edited by a moderator:
got it working sorta it plays themp3s, i use madplay then the gpe to start the songs it plays with a black screen and keeps playin no matter what i do lol. no big deal tho, works anyway
 
triton posted on Dec 23 2005 at 11:24 PM said:
got it working sorta it plays themp3s, i use madplay then the gpe to start the songs it plays with a black screen and keeps playin no matter what i do lol. no big deal tho, works anyway

lol a black screen, thats wierd.. haha
 
Last edited by a moderator:
Can someone please help? I cannot even get it working as a standalone even though i'm probably not going to use it for that. I have it in bin/madplay/ and the files madplay and madplay.gpe
 
Never use (WINDOWS) NOTEPAD.EXE to edit a UNIX style text file.

UNIX files ESPECIALLY ones that are scripts have different CR/LF setup. mmmkay?

I don't know how tolerant Linux is of such things so it may/may not work.


Also has madplay got its libraries installed? libmad.so (I think)
(/usr/lib probably)
 
SiIV posted on Dec 26 2005 at 10:54 AM said:
Can someone please help? I cannot even get it working as a standalone even though i'm probably not going to use it for that. I have it in bin/madplay/ and the files madplay and madplay.gpe
Dont put it in Bin/Madplay, just put it in bin folder. Then it should work for you. ^.^
there arent any librairies needed to be installed.
 
Last edited by a moderator:
Ok, I finally got madplay to run standalone. I cannot get it to run with openttd or snes9x however. What I am doing is taking the code from above, and just changing the file/folder names. Is there anything extra I would have to do?
 
SiIV posted on Dec 26 2005 at 08:29 PM said:
Ok, I finally got madplay to run standalone. I cannot get it to run with openttd or snes9x however. What I am doing is taking the code from above, and just changing the file/folder names. Is there anything extra I would have to do?

Code:
#!/bin/sh

cd /mnt/sd/bin
/mnt/sd/bin/madplay --adjust-volume=0 -z -r /mnt/sd/music/*.mp3 &
sync
madplay_pid=`pidof madplay`
echo "kill -9 $madplay_pid" >> /mnt/sd/bin/madplay_output.txt
kill -9 $madplay
cd /usr/gp2x/
exec /usr/gp2x/gp2xmenu
Use the above. It should then bring you to the gp2x menu and your mp3s should be playing while your in the menu. Then you can select snes or something w/e you want.. But be warned, it probably wont run really well at all with snes hehehe.

Oh and you dont have to run then together like the stuff i used a few posts ago for drmd.. Its just the lazy way of doing it i guess.
 
Last edited by a moderator:
ooh baby, im glad i was sitting down for that, I was waiting for something to allow mp3s playing in the background, thanks Drak you would be my hero if i werent my own, what directory should I put the mp3s in, can I define my own directory? It's not that important though, so which is the default directory for the code you pasted?
 
SiIV posted on Dec 26 2005 at 08:44 PM said:
ooh baby, im glad i was sitting down for that, I was waiting for something to allow mp3s playing in the background, thanks Drak you would be my hero if i werent my own, what directory should I put the mp3s in, can I define my own directory? It's not that important though, so which is the default directory for the code you pasted?

sd/music/ is the default directory for mp3s hehe. I used the setup that a mp3 player uses.

so just a make a folder called music on the sd card.. make sure it has no caps though as its caps sensitive. :lol:

if you want your own directory.. then change
this:
/mnt/sd/music/*.mp3 &
into desired folder
 
Last edited by a moderator:
Ok, with that code, all I get is a blank black screen, maybe its my near-dead batteries. Most likely it's some other thing I did wrong though, made the .gpe with programmer's notebok though
 
SiIV posted on Dec 26 2005 at 08:50 PM said:
Ok, with that code, all I get is a blank black screen, maybe its my near-dead batteries. Most likely it's some other thing I did wrong though, made the .gpe with programmer's notebok though

do you got any mp3s in the directory music/ ? :p
 
Last edited by a moderator:
=? don't think so, since the standalone that worked was /mp3s/ and the one i just changed it to is Media/Music/... i'll take this card out of the reader and try that now
Have some music files in the directory, and still blank black screen.
 
SiIV posted on Dec 26 2005 at 08:59 PM said:
=? don't think so, since the standalone that worked was /mp3s/ and the one i just changed it to is Media/Music/... i'll take this card out of the reader and try that now
Have some music files in the directory, and still blank black screen.
ok then just change it to this: and it should work. :p put your mp3s in the mp3 folder heh?
Code:
#!/bin/sh

cd /mnt/sd/bin
/mnt/sd/bin/madplay --adjust-volume=0 -z -r /mnt/sd/mp3/*.mp3 &
cd /usr/gp2x/
exec /usr/gp2x/gp2xmenu

i guess this is a shortened way to do it. Simply.
 
Last edited by a moderator:
if it works or if it never does thanks for your help anyway... and where can I find that melon bread
 
Back
Top