mp3 player

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

User avatar
lucaspiller
Tycoon
Tycoon
Posts: 1228
Joined: 18 Apr 2004 20:27

Post by lucaspiller »

If you extract them from whatever file they are stored in.
NoMercy
Engineer
Engineer
Posts: 15
Joined: 19 Jun 2004 21:23
Location: The Netherlands

Post by NoMercy »

What wrong with the excellent ingame music? They're one of the best midi tunes I've ever heard.
User avatar
lucaspiller
Tycoon
Tycoon
Posts: 1228
Joined: 18 Apr 2004 20:27

Post by lucaspiller »

I bet they are on of the only midi tunes you have heard. :wink:

I get your point though, there is no point changing something if there is nothing wrong with it.
Alltaken
Tycoon
Tycoon
Posts: 1285
Joined: 03 Dec 2003 06:24
Location: Christchurch, New Zealand
Contact:

Post by Alltaken »

dunno if this has been said already, i am soooo lazy right now, i just wanna downlaod the latest ottd an get playing.

but winamp 5.03 (infact even old versions)

are built in with "global hotkeys" available.

hence when playing ottd just press

ctrl+alt+home (to pause/play)
ctrl+alt+page down (for next song)

the list of shortcuts goes on, it is very very easy to do, and i often watch movies on my tv without my main monitor or any interfaces every being open.

i am also a member of the winamp forums LOL, so i may be biased ;)

Alltaken
MYOB
OpenTTD Developer
OpenTTD Developer
Posts: 102
Joined: 05 Jun 2003 01:08
Location: Dublin, Ireland
Contact:

Post by MYOB »

Argh, MP3 playback does not take only "a little CPU" - if you've not got MMX or haven't optomised for MMX at compile time, it takes anywhere between 90 to 120Mhz. The same goes for PowerPC machines without Altivec, SPARC machines without whatever-the-hell-their-SIMD-is-called.

When you consider the development machine for the BeOS/PPC port of OTTD is a 180Mhz system with no cache and no Altivec, MP3 would make the game unusable

And Ogg Vorbis is worse, uses far more power. And doesn't like big endian systems IIRC.
ChrisCF
Transport Empire Developer
Transport Empire Developer
Posts: 3608
Joined: 26 Dec 2002 16:39
Location: Over there --->

Post by ChrisCF »

lucaspiller wrote:There isn't really much point in using .wav sounds as they eat up space a bit too much.
What's your point? In-game sounds are typically about 10kB each. Is that too much? Try compressing that with an mp3 encoder, and realise that the extra processing time of decoding them is not worth tiny gains in filesize or stupid loss in quality you get..
User avatar
tmesisbob
Engineer
Engineer
Posts: 79
Joined: 26 Mar 2004 19:17

Post by tmesisbob »

Ermm... I am happily playing mp3's on my P90 as I speak. It's not consuming the whole cpu either.
User avatar
dominik81
OpenTTD Developer
OpenTTD Developer
Posts: 768
Joined: 16 Aug 2003 12:55
Location: Bonn, Germany

Post by dominik81 »

It depends on how they are encoded, too. I've had problems with certain mp3s on my old 700 MHz machine.
"There's a readme that comes with the source. I suggest you read it."
- Korenn
User avatar
lucaspiller
Tycoon
Tycoon
Posts: 1228
Joined: 18 Apr 2004 20:27

Post by lucaspiller »

ChrisCF wrote:What's your point? In-game sounds are typically about 10kB each. Is that too much? Try compressing that with an mp3 encoder, and realise that the extra processing time of decoding them is not worth tiny gains in filesize or stupid loss in quality you get..
I meant if more in-game music was added.
ChrisCF
Transport Empire Developer
Transport Empire Developer
Posts: 3608
Joined: 26 Dec 2002 16:39
Location: Over there --->

Post by ChrisCF »

Then you need to learn the skills of saying what you mean and meaning what you say. :)
User avatar
lucaspiller
Tycoon
Tycoon
Posts: 1228
Joined: 18 Apr 2004 20:27

Post by lucaspiller »

I think I must have been watching the Teletubies too much (are they still on?).
ChrisCF
Transport Empire Developer
Transport Empire Developer
Posts: 3608
Joined: 26 Dec 2002 16:39
Location: Over there --->

Post by ChrisCF »

Of course not. It's 8:30pm - the Teletubbies marathon on CBeebies finished at 7 :P
User avatar
lucaspiller
Tycoon
Tycoon
Posts: 1228
Joined: 18 Apr 2004 20:27

Post by lucaspiller »

Awww? That was today. I missed it. :cry:
Bjarni
Tycoon
Tycoon
Posts: 2088
Joined: 08 Mar 2004 13:10

Post by Bjarni »

MYOB wrote:And Ogg Vorbis is worse, uses far more power. And doesn't like big endian systems IIRC.
???
ogg works fine for me, at least decoding and playing

and to the question
what's wrong with the current ingame music
It can be said in one word: copyright

about file size for sound. If we make a lot of small files, there is no point in compressing them, because blocksize on the HD would kill that saved space
MYOB
OpenTTD Developer
OpenTTD Developer
Posts: 102
Joined: 05 Jun 2003 01:08
Location: Dublin, Ireland
Contact:

Post by MYOB »

Bjarni wrote:
MYOB wrote:And Ogg Vorbis is worse, uses far more power. And doesn't like big endian systems IIRC.
???
ogg works fine for me, at least decoding and playing
hrrrm.. change that to "Doesn't like Big Endian when using a Metrowerks-made C compiler" then...
about file size for sound. If we make a lot of small files, there is no point in compressing them, because blocksize on the HD would kill that saved space
And the addition of the mp3 headers would make the files bigger, and with really short sequences, we'd be getting no further in reducing space than the sample.cat
Alltaken
Tycoon
Tycoon
Posts: 1285
Joined: 03 Dec 2003 06:24
Location: Christchurch, New Zealand
Contact:

Post by Alltaken »

FLAC is the best of them all LOL

Alltaken
NoMercy
Engineer
Engineer
Posts: 15
Joined: 19 Jun 2004 21:23
Location: The Netherlands

Post by NoMercy »

Bjarni wrote:
what's wrong with the current ingame music
It can be said in one word: copyright
If you can copy the graphics you can also copy the music, because you would own TTD. :roll: :oops:
MYOB
OpenTTD Developer
OpenTTD Developer
Posts: 102
Joined: 05 Jun 2003 01:08
Location: Dublin, Ireland
Contact:

Post by MYOB »

NoMercy wrote:
Bjarni wrote:
what's wrong with the current ingame music
It can be said in one word: copyright
If you can copy the graphics you can also copy the music, because you would own TTD. :roll: :oops:
He might be refering to the fact that the current in game sound file format is properitary

So, in theory are the graphics, but the graphics are just PCX internally
NoMercy
Engineer
Engineer
Posts: 15
Joined: 19 Jun 2004 21:23
Location: The Netherlands

Post by NoMercy »

The TTD sound format is just midi. I don't see what's properitary about that.

Anyway, I think using an external mp3 player is best. Why bother to write an internal mp3 player, when external players will be better anyway. It's better to spend the time on other features.
MYOB
OpenTTD Developer
OpenTTD Developer
Posts: 102
Joined: 05 Jun 2003 01:08
Location: Dublin, Ireland
Contact:

Post by MYOB »

NoMercy wrote:The TTD sound format is just midi. I don't see what's properitary about that.

Anyway, I think using an external mp3 player is best. Why bother to write an internal mp3 player, when external players will be better anyway. It's better to spend the time on other features.
The Music format is MIDI, the Sound format is not, did you think we'd managed to put a *full* softsynth *and* a complete set of patches (MIDI patches, used for marking what signals make what noise) in 900KB of code?

This explains the reason why theres sound and music drivers as different things, and why OS's without native MIDI kits (MorphOS, MacOS, Linux) either have no music or a hackjob to get music
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: No registered users and 11 guests