Author Topic: The background player script for psx4all  (Read 2321 times)

vimrc (OP)

  • Posts: 66
The background player script for psx4all
« on: November 01, 2009, 07:26:45 pm »
Hi, guys,

Well, I just created the script for you to play the background music (only support m3u format, because I assume you won't change music files frequently in the game.) for psx4all_nosound.  Here we go!

1. Download the psm3u.sh.txt file attached (do rename it to psm3u.sh) and put it to /local/home/ (or somewhere you like). Make sure there is "mplayer.dge" in /local/apps/mplayer/ and "psx4all" in /local/emulators/ps/, or you may need to edit the psm3u.sh and change the path yourself (at the 7th and 8th line of psm3u.sh). I also recommend you to generate m3u file with GMU which is a great music player for Dingux.

2. Add the following entry to dmenu:
Code: [Select]
MenuItem psx4all_music                
{                                
Icon = "res/emulators/psx4all.png"
Name = " psx4all_music"            
Executable = "sh ./psm3u.sh"      
WorkDir = "/usr/local/home"        
}  

3. Run this command in dmenu, you will see sth like the attached figure. Use X button to select m3u file, and start button to confirm. Now you should see the psx4all GUI and hear the music if you select the right file.

Note: You should know you are playing with fire when you use this script. I have to say playing music will slow down the speed especially for those games opened with bios. You will find this point yourself. However, for those 2D games such as "Romance of the Three Kingdoms V", it's perfect.
« Last Edit: November 01, 2009, 08:53:22 pm by vimrc »

batman52

  • Posts: 111
Re: The background player script for psx4all
« Reply #1 on: November 01, 2009, 09:12:58 pm »
Hi, what a nice ui for a shell script!

I have just seen the code and i saw you used mkfifo.
Time ago i tried to "port" on dingoo this project:
http://code.google.com/p/playd/
a shell script that calls mplayer in slave mode, but i failed because i got errors when calling mkfifo...
maybe we can get something useful out of this.

In attachment the script i was working on.
« Last Edit: November 01, 2009, 09:16:02 pm by batman52 »

GideonB

  • Guest
Re: The background player script for psx4all
« Reply #2 on: November 01, 2009, 09:39:39 pm »
Great work! ;D

volcanic

  • Guest
Re: The background player script for psx4all
« Reply #3 on: November 03, 2009, 02:39:44 am »
So does it mean it's possible to run ps games while playing cd tracks with acceptable lags?
In fact ,I dun expect sound in psx that much now .The only thing I care abt is to perfect the frameskip function and a speed enhancement by abt 20%.I think it's very promising to run games at full speed with fs 1 or 2(18~30fps) with only a few optimizing on the base of the current emulating performance without sound(currently with cm=1 it can still runs at abt 15fps ).Can't wait the nxt release of psx. :)