Poll

is there a possible way to hear music while playing games?

yes
9 (64.3%)
no
5 (35.7%)

Total Members Voted: 13

Author Topic: hear music while playing games  (Read 9148 times)

ClaasClever

  • Guest
hear music while playing games
« on: May 09, 2010, 10:21:50 pm »
Hey,

my english is not the best, but i have a question.

is there any way to hear your own mp3's while playing games with an emulator?

thank you for some answers!

darfgarf

  • Guest
Re: hear music while playing games
« Reply #1 on: May 09, 2010, 10:34:40 pm »
not unless the emulator supports it, which none do

SiENcE

  • **
  • Posts: 653
    • Crank Gaming (Dingux Apps)
Re: hear music while playing games
« Reply #2 on: May 09, 2010, 11:57:52 pm »
i'd might be possible in dingux. the rootfs has two commandline mp3 player on board. madplay and mpg123. madplay uses less cpu power than mpg123. You could write a sh script and use nohup and & to pipe this in the background. then start your emulator.

but thats all theory. i haven't tested this yet.
« Last Edit: May 10, 2010, 10:01:28 am by SiENcE »

ddragoonss

  • Guest
Re: hear music while playing games
« Reply #3 on: May 10, 2010, 09:03:05 am »
i'd might be possible in dingux. the rootfs has two commandline mp3 player on board. madplay and mpg123. madplay uses less cpu power than mpg123. You could write a sh script and use nohub and & to pipe this in the background. then start your emulator.

but thats all theory. i haven't tested this yet.

Your theory is correct.

Tested with both, but only madplay worked, and its block all the emulator(in snes9x) sound, so the only thing who plays is the .mp3.

Tested with quakux and Snes9x and the mp3 runs smoothly while playing and while entering and leaving the app, without any problem or slowdown.

@ ClaasClever:

The command batch I used:
Code: [Select]
#!/bin/sh
cd /usr/local/apps
nohup madplay -Q sound_of_my_dream.mp3 &

"#!/bin/sh" is Linux bullshit, so don't change it.
"cd /usr/local/apps" is the place where the music was, so change "local/apps" to the folder where your music is.
nohup madplay -Q sound_of_my_dream.mp3 &" is the music config, change "sound_of_my_dream.mp3" to your music name, it can accept more than one input file, just add a space between each music name, and switch the spaces to underlines in the music names or some error can happen.

http://linuxmanpages.com/man1/madplay.1.php

If using gmenu, after create the link to the batch don't forget to edit the link with sound!
And the batch need be done in Linux text type, so if in windows, use a win2lin converter before to put in the sd card.


PS:This don't play without the -Q option, so I think the mpg123 didn't worked cause some error in the command I used.

mog edit:
To clarify, you need to save the quote text as a bash script (filename.sh), put it in your /local/ folder, and then either add it to gmenu or launch it with telnet.
« Last Edit: May 10, 2010, 10:39:04 am by omgmog »

SiENcE

  • **
  • Posts: 653
    • Crank Gaming (Dingux Apps)
Re: hear music while playing games
« Reply #4 on: May 10, 2010, 10:03:46 am »
:-)

Mpg123 is really bad. Uses 100% of dingoo cpu power. Madplay is much better.

ClaasClever

  • Guest
Re: hear music while playing games
« Reply #5 on: May 10, 2010, 02:46:32 pm »
Ok thank you so far! i will try this, but thats my first time to write my own script, so it can take some time  ;)

SiENcE

  • **
  • Posts: 653
    • Crank Gaming (Dingux Apps)
Re: hear music while playing games
« Reply #6 on: May 10, 2010, 04:47:29 pm »
It's would be better to have this startscript integrated into gmenu2x or dmenu. You can't stop the music, because it's in background.

mrkingoo

Re: hear music while playing games
« Reply #7 on: May 10, 2010, 05:48:25 pm »
Thanks for the script ddragonss. Karma for you.

Though my script in gmenu2x only works some of the times. Can't figure out why.

In snes9x mp3 plays fine but the emulation slows down a lot. Picodrive was much smoother. Doom ran without slowdowns in either game or mp3. Psx4all ran ok, but the mp3 stuttered like mad.

RodrigoCard

  • *
  • Posts: 312
    • Mac Joystick Apps
Re: hear music while playing games
« Reply #8 on: May 10, 2010, 10:55:09 pm »
Hmmm... interesting, does this program run only the same music in loop or it can seek for the next mp3 file in folder?

It's would be better to have this startscript integrated into gmenu2x or dmenu. You can't stop the music, because it's in background.


A "kill all" script can solve the problem =)

SiENcE

  • **
  • Posts: 653
    • Crank Gaming (Dingux Apps)
Re: hear music while playing games
« Reply #9 on: May 10, 2010, 11:00:48 pm »
"kill all"

Lol. Yes KILL them ALL.

Of couse...but a script to only kill madplay is better.

Stephanie

  • Guest
Re: hear music while playing games
« Reply #10 on: May 10, 2010, 11:36:48 pm »
Code: [Select]
#!/bin/sh

killall madplay

There's your killall madplay script. :)

Cheers!


ddragoonss

  • Guest
Re: hear music while playing games
« Reply #11 on: May 11, 2010, 02:30:19 am »
Thanks for the script ddragonss. Karma for you.

Though my script in gmenu2x only works some of the times. Can't figure out why.
Same here, strangely it's works less when I do a "Start+Select+Power" reset, but when I reset in the "reset button" itself, it's works often more, and always works when I use the native OS before goes to the dingux.

Maybe uncleared RAM or other thing, just try to do other thing before start the script.

RodrigoCard

  • *
  • Posts: 312
    • Mac Joystick Apps
Re: hear music while playing games
« Reply #12 on: May 11, 2010, 04:21:14 am »
"kill all"

Lol. Yes KILL them ALL.

Of couse...but a script to only kill madplay is better.


LOL, I meant a "killall madplay" processes, like Stephanie said, not kill every processes :D

Ikonz101

  • Guest
Re: hear music while playing games
« Reply #13 on: July 24, 2010, 01:19:37 am »
I tried getting this to work but get the following error when I view the log:

/boot/local/madplay:sh:line1: #!bin/sh:not found
No_One_I_Call_Friend.mp3:No such file or directory

I converted the Windows text document to a Linux document and also I have my .mp3 in the folder /local/apps. I have the file madplay.sh in my /local folder

I am using the code provided by ddragonss:
Code: [Select]
#!/bin/sh
cd /usr/local/apps
nohup madplay -Q sound_of_my_dream.mp3 &

Thanks
Ikonz101

EDIT: OK got it working!! I just can't get it to play the second song in the list. Is this how you would code for the second song in the playlist:

nohup madplay -Q sound_of_my_dream.mp3 sound_of_my_dream_2.mp3 &

Got it working!!!

« Last Edit: July 24, 2010, 05:44:20 am by Ikonz101 »

markzhu520

Re: hear music while playing games
« Reply #14 on: August 02, 2010, 08:05:17 am »
Hey,

my english is not the best, but i have a question.

is there any way to hear your own mp3's while playing games with an emulator?

thank you for some answers!
how to play game and lisenting music at same time? maybe you should get two dingoos,one is  lisenting music ,and another play game ;)
dingoo a320.a330.a380 hotsale,more details,welcome to contact me: markzhu@dingoo.hk       0086-15815507946

 

Post a new topic