Page 1 of 2

Ogg Noise Problem

PostPosted: Mon Jan 21, 2008 8:17 am
by summer_goth
Hi there,

I've been adding music to the game, all ogg files. Mono with a frequency of 44 100. I set the Games preferences to be the same. However when I play the game the music make a rather loudish white noise every few seconds.

I am using: PlayMusic2("data/sound004.ogg", 1.000000, 0, HIGH_PRIORITY_MUSIC);

The files play fine in other programs.

Makslane, does GE convert the sound files to something else and should I maybe use different settings for the files? If you'd like I can send you a file to test. The music files will be used in the game commercially, so I don't want to post them publicly on the forums.

Thanks for your help,
Summer

Re: Ogg Noise Problem

PostPosted: Mon Jan 21, 2008 8:21 am
by Bee-Ant
Have you tried it in .wav file???

Re: Ogg Noise Problem

PostPosted: Mon Jan 21, 2008 8:35 am
by Kalladdolf
wav sucks way too much memory!!!

Re: Ogg Noise Problem

PostPosted: Mon Jan 21, 2008 8:40 am
by Bee-Ant
I know...I just said that how about in wav file??is that noise still happen???

Re: Ogg Noise Problem

PostPosted: Mon Jan 21, 2008 8:44 am
by summer_goth
Wave files are too large. This is for a project that will be released on Windows Mobile and Pocket PC. An original score was written for the game so in order to keep the best quality but a small enough file size we decided to use ogg files. Plus because Ogg files are fast on a Pocket PC.

That made me think. I tested the program on the Pocket PC now and there the ogg files sound fine. The only white noise I heard on the Pocket PC was when the file started again from the beginning. (It's looping). So that's not so bad. It seems like it's affecting Windows but not Pocket PC.

Can anyone verify that they hear white noises with 44100 mono Ogg files in Windows? And for those who can try it out, if you hear white noises in Windows can you check it out on your Windows Mobile device to see if it works fine there?

I unfortunately have only two Pocket PC's to test on. One with Pocket PC 2003 and one with 2002 or 2000? Not sure. I can unfortunately not test on Windows Mobile 5 and 6 during development. So I'd just like to make sure that the ogg files are playing alright on there as well.

Thanks for the help everyone,
Summer.

(As I wanted to post this I see that there have been a couple of replies. No, I have not tested any wav files. Also if the problem is only on desktop Windows versions and not mobile ones then it will be alright since the game will only be released on mobile devices.)

Re: Ogg Noise Problem

PostPosted: Mon Jan 21, 2008 8:47 am
by Bee-Ant
Btw, why you dont use .mid file?

Re: Ogg Noise Problem

PostPosted: Mon Jan 21, 2008 9:40 am
by summer_goth
Think of it like a music cd that you buy. The tracks are all recordings. The same with our ogg files (the equivalent of mp3). Midi is a completely different format and works differently with the music.

Re: Ogg Noise Problem

PostPosted: Mon Jan 21, 2008 9:57 am
by Bee-Ant
Oh...I see...

Re: Ogg Noise Problem

PostPosted: Mon Jan 21, 2008 10:27 am
by Kalladdolf
with ogg for example you can add effects, midi is just instruments, they sound dry on a normal computer...
it would be good if GE supported wma or mp3.
cuz those are thingies that I can export my music to besides ogg.

summer_goth if you trust me, you could send me your ogg file and I could re-export it.
I won't use it, I make game music myself.
The ogg files made by magix music maker (the program I use) always sound well on GE =D

Re: Ogg Noise Problem

PostPosted: Mon Jan 21, 2008 10:32 am
by Bee-Ant
Himppfff... :roll:

Re: Ogg Noise Problem

PostPosted: Mon Jan 21, 2008 11:59 am
by summer_goth
Thanks Kalladdolf, I'll have to get permission first. I will tell you tomorrow whether I may send the file to you or not. Thanks for your help.

Re: Ogg Noise Problem

PostPosted: Mon Jan 21, 2008 12:02 pm
by Bee-Ant
Btw, summer...do you still need my paint tutorial? :roll:

Re: Ogg Noise Problem

PostPosted: Mon Jan 21, 2008 1:14 pm
by makslane
summer_goth wrote:I've been adding music to the game, all ogg files. Mono with a frequency of 44 100. I set the Games preferences to be the same. However when I play the game the music make a rather loudish white noise every few seconds.


Try change the game setting for 44KHz mono too or change the ogg format to stereo.
The only conversion is done in realtime from the music audio format to the output audio format, if necessary.

Re: Ogg Noise Problem

PostPosted: Mon Jan 21, 2008 1:48 pm
by summer_goth
Thanks Makslane, I'll give it a try. I'll report back tomorrow on my findings.

And yes Bee-Ant, I would love to see your paint tutorial. I love the way that you draw. I am a programmer and know very little about art. I've tried to create pixel art in the past but I sucked at it. :wink: So yes, I would like to see a step-by-step tutorial on how it is done. That'll be great.

Re: Ogg Noise Problem

PostPosted: Mon Jan 21, 2008 1:55 pm
by Bee-Ant
Oh...OK
I'll make it tomorow :D
Thanks anyway...