PDA

View Full Version : Insert .wav to FLS and play it from speaker?



ShadoW2004
08-10-2004, 02:37 PM
Hello All!!!

Somebody can explain how to insert .wav to FLS and play it from speaker? Crux2002 said that it is posible...

bradysarlo
08-10-2004, 03:35 PM
It is possible to make a wav come from the ringer aswell :)
g3gg0 made a flash that did it.
Sorry I can't help you to do it though. :o
You're determine to get a poly sound coming from a DCT3 arn't you hehe. :D

ShadoW2004
08-10-2004, 04:33 PM
I listened that posible from speaker...

Maybe somebody else know how?

GsmCyber
10-10-2004, 04:10 PM
u only can do a flash with wave... it's impossible to do a flash with wave+nokia software or wave+mados :(

ShadoW2004
10-10-2004, 05:32 PM
2 GsmCyber

Can you explain how to do it?

NokDoc
10-10-2004, 05:59 PM
Mr. Shadow,

Please check that demo by Mr. G3gg0.

NokDoc

ShadoW2004
11-10-2004, 05:07 AM
2 NokDoc

I allready checked this demo and some demos from http://www.gsmfreeboard.net

Can you explain how can I insert my own .wav like it do g3gg0...?

NokDoc
11-10-2004, 04:14 PM
Hi,

Some honest reply, I dono.

If I was in Ur situation, I think I should go open those demo files and study them.

NokDoc

krisha
12-10-2004, 02:07 AM
ok i will try to explain.
in the first versions of MADos, it was done with compile.sh

the steps to do are:

1. run sox (i think it's included in MADos environment) to convert your wave to an 8kHz mono .ub file:
sox snd.wav -c 1 -r 8000 snd.ub resample

2. compile conv.c to convert this ub - file to an c header file:
gcc conc.c -o conv.exe
./conv > snd.h

(note, that the file you want to convert have to be named snd.ub!)

3. include that file in MADos and play it with buzzer_play.

i will add the files, if you don't have it ;) if a file is missing, contact me via email/icq.
the executable files should be placed in /cygwin/bin

it should also be possible to add little wave files in fullembed, if you have enough free space (delete something)

ShadoW2004
12-10-2004, 06:55 AM
Thank you krisha I will try...

ShadoW2004
12-10-2004, 12:48 PM
2 krisha

I have error with compilation of conv.c

Can you post here compiled version?

krisha
12-10-2004, 09:16 PM
here's the compiled version of conv.c (could be also found in CVS (.../core/))

ShadoW2004
13-10-2004, 04:07 AM
Ok, I converted snd.ub to snd.h
Where I must include this header? I see than in apps/main.c we have some strings like:

//#include "snd_hardcore.h"
//#include "snd_offspring.h"

for example I placed snd.h in hw/my_snd.h
So, we need add #include <hw/my_snd.h> to apps/main.c ... i think...

But how to play it like in g3d3m0_v2 (on startup) ?

krisha
13-10-2004, 11:18 AM
you have to include the file, where you want to play it.

if you want to play at startup place it in main.c (main()), right after init... maybe you want also to remove the current startup tone then.

put the header file in the include folder. if you use it mainly in main.c put it into include/apps/

ShadoW2004
15-10-2004, 05:16 AM
Thank you Krisha for help...

Here Is my test version of STANDALONE

Just play Snake 3, do "Game over" :-D and listen my .wav

ShadoW2004
18-10-2004, 02:24 PM
Krisha, is it posible to play .wav file with speaker?

krisha
18-10-2004, 05:23 PM
no not yet,

speaker is accessed over DSP, i think.

GsmCyber
16-05-2005, 07:42 PM
"1. run sox (i think it's included in MADos environment) to convert your wave to an 8kHz mono .ub file:
sox snd.wav -c 1 -r 8000 snd.ub resample"

what's the directory for snd.wav ?!

When i do this step i have this error message :(

"c:\cygwin\bin\sox.exe: Can't open input file 'snd.wav': no such file or directory"

Regards

joci2000
17-05-2005, 08:33 AM
"1. run sox (i think it's included in MADos environment) to convert your wave to an 8kHz mono .ub file:
sox snd.wav -c 1 -r 8000 snd.ub resample"

what's the directory for snd.wav ?!

When i do this step i have this error message :(

"c:\cygwin\bin\sox.exe: Can't open input file 'snd.wav': no such file or directory"

Regards

Hi,
You have to put to the same directory where you try to run the command.

for example: if you run this command from mados directory you have to put the wav file to mados directory :wink:

GsmCyber
17-05-2005, 12:46 PM
i run the command on this directory:

c:\cygwin\bin\sox.exe

and i have the file on this directory:

c:\cygwin\bin\snd.wav

what's the problem?! :(

joci2000
17-05-2005, 03:48 PM
i run the command on this directory:

c:\cygwin\bin\sox.exe

and i have the file on this directory:

c:\cygwin\bin\snd.wav

what's the problem?! :(

try this:

copy your snd.wav to c:\cygwin\1
go to c:\cygwin\1 and run the command -> sox ...

I suggest not to use mc, simply command mode, you can change directory with "cd", but i'm sure you know this :D

GsmCyber
18-05-2005, 04:53 PM
i'm stupid or i don't have any luck...

when i do conv > snd.h nothing happens :( ... it's created a txt file with the name snd.h but with 0bytes...

Regards

joci2000
18-05-2005, 07:06 PM
i'm stupid or i don't have any luck...

when i do conv > snd.h nothing happens :( ... it's created a txt file with the name snd.h but with 0bytes...

Regards

hmm try with this conv.exe write over the old one in bin directory. the original conv.exe don't work for me either.

with this Have to work I hope, for me with this works.

does the sox command work? and do you make a snd.ub file from *.wav? the file name of this is very important.

Good luck.. ;)

GsmCyber
23-05-2005, 09:55 PM
it's working :D

Thankx a lot joci2000 ;)

Regards

deadspot
24-05-2005, 04:41 AM
welcome back ...gsmcyber!!!

wow great news attn mr.dvirus n mr.kraze1984 may be they can insert it to their flash file.....

joci2000
24-05-2005, 02:19 PM
it's working :D

Thankx a lot joci2000 ;)

Regards


you are welcome ;)


@deadspot
we can insert the snd code but we cannot play it YET with original nokia firmware. May be somebody whenever could solve this problem I hope :-D