Iphone Sound Format

Previous topic - Next topic

Leginus

What's the best sound format to use on the iphone?
Is ogg supported though GLbasic on iphone?

I was reading that it is supported on the pc with the correct codec, but as i understand the Iphone doesnt have the ogg codec.
So that leaves me with the dilema of what is the best sound format for iphone.

Oh my aching head.

Any help would as always be greatly appreciated  :nw:



Leginus

Do i take it that everyones Iphone games have no sound  :whistle:

MrTAToad

OGG is supported on the iPhone and is the best format to use.

Leginus

Excellent news. Thanks MrTAToad.  I can now crack on with the sounds then.
Apple have now recieved the extra info from me, so hopefully my developers key will be here soon.

PaLe

Hi,
I'm very happy if GLB support .ogg sound but my iPhone 3G (os4.1) doesn't play any .ogg format.  O_O
I tried to insert in GLB code or play directly and didn't work.

Anyway, my problem is ALSO for WAV format.
I write some examples with various WAV format (maybe are correct in 16bit-PCM-22.050Khz or 32bit-flat-44Khz, created with Audacity on Mac) but I don't hear anything.
The code show me on screen that the sounds are correctly loaded in the buffer (I set 1 loop, volume=1 and mode from -1 to 1 for try left/right) but, I repeat, I hear nothing. :'(

Which is the correct WAV format ? how to hear .ogg format?
Can anyone give me where download one GOOD (and right) sample for test it?

Thanks

Paolo

ampos

I also did try a OGG on my iPhone4 4.1 and it doesnt play. I thought it was bad file location or bad ogg generated...

MrTAToad

Pale - can you make the WAV available ?

Ian Price

.WAV definitely does work on iPod Touch 3G - my current WIP and Bli2X! both play .WAV sounds, without problem.
I came. I saw. I played.

PaLe

Quote from: MrTAToad on 2010-Oct-05
Pale - can you make the WAV available ?

:whistle:  ...avilable??? I'm a little bit "rude"... What mean??


MrTAToad

Can we download it ?

PaLe

OK, i unterstand

this is the game that I try to convert and test it on the iPhone.

http://dl.openhandhelds.org/cgi-bin/gp2x.cgi?0,0,0,0,25,2820

the .wav files are in various sample-rate under Media directory (the only one!); rename the TUcs.app folder if you unzip it on Mac  ;)

thanks for your support.

Paolo

MrTAToad

I notice that you require the ENTER key to be pressed for selecting items.  Unfortunately I have a mini-keyboard, which doesn't have the numeric number pad...

I can certainly hear the TUcS-_ciu.wav sample.

TUcS-uov1.wav (was just a blip, I presum)

TUcS-pepo.wav works too.

Which makes me wonder how you are loading the files.

Are you using forward or backward slashes for directory seperation ?

Ie
Code (glbasic) Select
LOADSOUND "R:/TUcS.app/Media/TUcS-pepo.wav",0,1 works fine

Code (glbasic) Select
LOADSOUND "R:\TUcS.app\Media\TUcS-pepo.wav",0,1 does NOT work.

Leginus

With regards to ogg on os 4.1.  I cant test yet as i dont have my apple developers key yet, however, I play farm frenzy a lot on iphone to chill out now and again, and the sounds worked fine until 4.1, now the music doesnt play together with the sounds, the sounds dont always fire, and now and again it crashes, therefore, I wonder if there is an issue with something in 4.1 and certain sound code.    Just a thought as I cant confirm

PaLe

#13
Quote from: MrTAToad on 2010-Oct-06
I notice that you require the ENTER key to be pressed for selecting items.  Unfortunately I have a mini-keyboard, which doesn't have the numeric number pad...

I can certainly hear the TUcS-_ciu.wav sample.

TUcS-uov1.wav (was just a blip, I presum)

TUcS-pepo.wav works too.

Which makes me wonder how you are loading the files.

Are you using forward or backward slashes for directory seperation ?

Ie
Code (glbasic) Select
LOADSOUND "R:/TUcS.app/Media/TUcS-pepo.wav",0,1 works fine

Code (glbasic) Select
LOADSOUND "R:\TUcS.app\Media\TUcS-pepo.wav",0,1 does NOT work.

The slashes are ok, I used a simple script.txt (see "TUcS-dat2.txt") for load GFX/SFX without change the code and all is done except the sounds...
I also explored and found my demo on User/application/directory and I hear all .wav with iPhone but not via glb Executables...
so I think that there is something in the code.... this evening I share an example.

Now time to go to work.  :(

Have a nice day,

Paolo

PaLe

A new problem!!! (apologize for English)

I hope that it's a (my) simple code error in the variable/declarations error.... :blink:

OK, now I explain.... This is my example link:

http://www.megaupload.com/?d=5LRCV7CG

Sorry for the code; the level of programming like's ZX basic  ;) ... I only copied/pasted the load/play routines from the original code in a new project.

Please, First load the snd.glb project and run it with (F5 key or fn+F5 on Mac)... probably run well and you can hear the tunes (a loop of 3+1 different tracks)

after, try to compile a Windows EXE and run the executable.... the program ends... maybe it's a mouse click problem???  ::)

anyway, when I compiled for iPhone, the example start but whitout sound and, STRANGELY, the screen doesn't change (follow) the sound loop...
I mean it's a variable problem or what??? ( O_O and why??)

sorry if you spent time for any My mistake of programming...  :nw:

Paolo