Skip to main content

Background Music in Games - Any Tips

16 replies [Last post]
Anonymous

Hi,

I keep getting asked for background music in my games but have so far
been avoiding it like the plague as it seems like it will be a
nightmare to implement, it's bad enough getting some handsets to play
a simple MIDI sound without predelay, let alone full-on background
themes!

Looks like I might finally have to bite the bullet though. Anyone got
any tips on the best way to go about this, handsets that are/aren't
worth bothering with etc? I'm presuming that most handsets won't
support MIDI playback on more than one channel so I will have to stop
and resume the background theme when in-game sounds are played?

Any help appreciated...

====

James Closs, Director, bitBull Ltd

http://www.bitbull.com

07771 991171

====

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Roger Brinkley

While they discouraged here if you want to sent a quick writeup to the
moible and embedded community editor it could be featured on the front
page of the community.

Roger Brinkley
Mobile & Embedded Community Leader

Fly Home wrote:
> Didn't sign up for adverts man.
>
> ----- Original Message ----
> From: Mark Ripley
> To: KVM-INTEREST@JAVA.SUN.COM
> Sent: Monday, 27 November, 2006 9:37:37 PM
> Subject: Adverts allowed?
>
> Are adverts allowed on KVM?
>
> I've got a new service I want to tout =)
>
> Mark Ripley
> cheeky.gr
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body of the message "signoff KVM-INTEREST". For general help, send email
> to listserv@java.sun.com and include in the body of the message "help".
>
>
> Send instant messages to your online friends
> http://au.messenger.yahoo.com
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body of the message "signoff KVM-INTEREST". For general help, send email
> to listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

James Closs

Just post a question and put the ad in your sig ; )

> Are adverts allowed on KVM?
>
> I've got a new service I want to tout =)
>
> Mark Ripley
> cheeky.gr
>
> ======================================================================
> ===== To unsubscribe, send email to listserv@java.sun.com and
> include in the body of the message "signoff KVM-INTEREST". For
> general help, send email to listserv@java.sun.com and include in
> the body of the message "help".

====

James Closs, Director, bitBull Ltd

http://www.bitbull.com

07771 991171

====

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Mark Ripley

> Just post a question and put the ad in your sig ; )
>

What a fantastic idea =)

Mark Ripley
cheeky.gr
CheekyLive! - Convert your mobile game to PC, Mac and XBox360

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Robin Chaddock

You speak of encapsulation as if it is an innovative concept 0_o
----- Original Message -----
From: James Woodbridge
To: KVM-INTEREST@JAVA.SUN.COM
Sent: Wednesday, November 22, 2006 11:30 AM
Subject: Re: Background Music in Games - Any Tips

The way that i always do it is have a seperate sound classs , that you will have to develop various versions for certain devices.

For instance some devices dont have wav capabilites and just midi. Also you will need to prefeverify some of the sounds for certain devices. One trick for faster playback is to load the sounds to memory at the begining of the game and then playback is a lot faster. Though this will take up a lot of heap and might slow down game speed , hence you will need to load-> play each sound on lo end devices. Also Do be aware that some devices need special api's for sund playback e.g. Gx10 , lo end midp1 nokia devices e.t.c.

The joy of writing a seperate class means once its done for one game its done for all games. I cant give you any examples just at the minute but this is definatly the correct train of thought.

Regards

James Woodbidge

On 11/22/06, Ian Strain wrote:
We looked into this, the only phone we got this working on was the K750,
using a midi as the background and wavs for sfx. I'm sure sony ercisson
phones in the same category as the K750 will be capable of this too. We
tried this on all other devices available (motorola, samsung, sharp, lg,
sagem) but it never worked.

So, either use a background sound and forget about sfx or just have sfx.
I'd go with sfx and anyway most people turn the sound off anyway.

Chris B wrote:
> IMO just play it safe and stick to background midi music.
>
> ===========================================================================
>
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

=========================================================================== To unsubscribe, send email to listserv@java.sun.com and include in the body of the message "signoff KVM-INTEREST". For general help, send email to listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Chris B

IMO just play it safe and stick to background midi music.

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Ian Strain

We looked into this, the only phone we got this working on was the K750,
using a midi as the background and wavs for sfx. I'm sure sony ercisson
phones in the same category as the K750 will be capable of this too. We
tried this on all other devices available (motorola, samsung, sharp, lg,
sagem) but it never worked.

So, either use a background sound and forget about sfx or just have sfx.
I'd go with sfx and anyway most people turn the sound off anyway.

Chris B wrote:
> IMO just play it safe and stick to background midi music.
>
> ===========================================================================
>
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

James Woodbridge

The way that i always do it is have a seperate sound classs , that you will
have to develop various versions for certain devices.

For instance some devices dont have wav capabilites and just midi. Also you
will need to prefeverify some of the sounds for certain devices. One trick
for faster playback is to load the sounds to memory at the begining of the
game and then playback is a lot faster. Though this will take up a lot of
heap and might slow down game speed , hence you will need to load-> play
each sound on lo end devices. Also Do be aware that some devices need
special api's for sund playback e.g. Gx10 , lo end midp1 nokia devices e.t.c.

The joy of writing a seperate class means once its done for one game its
done for all games. I cant give you any examples just at the minute but this
is definatly the correct train of thought.

Regards

James Woodbidge

On 11/22/06, Ian Strain wrote:
>
> We looked into this, the only phone we got this working on was the K750,
> using a midi as the background and wavs for sfx. I'm sure sony ercisson
> phones in the same category as the K750 will be capable of this too. We
> tried this on all other devices available (motorola, samsung, sharp, lg,
> sagem) but it never worked.
>
> So, either use a background sound and forget about sfx or just have sfx.
> I'd go with sfx and anyway most people turn the sound off anyway.
>
> Chris B wrote:
> > IMO just play it safe and stick to background midi music.
> >
> >
> ===========================================================================
> >
> > To unsubscribe, send email to listserv@java.sun.com and include in the
> > body
> > of the message "signoff KVM-INTEREST". For general help, send email to
> > listserv@java.sun.com and include in the body of the message "help".
> >
>
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Ian Strain

Also remember that motorola only prefetch 4 sounds and can only prefetch
1 midi

James Woodbridge wrote:
> The way that i always do it is have a seperate sound classs , that you
> will have to develop various versions for certain devices.
>
> For instance some devices dont have wav capabilites and just midi.
> Also you will need to prefeverify some of the sounds for certain
> devices. One trick for faster playback is to load the sounds to
> memory at the begining of the game and then playback is a lot faster.
> Though this will take up a lot of heap and might slow down game speed
> , hence you will need to load-> play each sound on lo end devices.
> Also Do be aware that some devices need special api's for sund
> playback e.g. Gx10 , lo end midp1 nokia devices e.t.c.
>
> The joy of writing a seperate class means once its done for one game
> its done for all games. I cant give you any examples just at the
> minute but this is definatly the correct train of thought.
>
> Regards
>
> James Woodbidge
>
> On 11/22/06, *Ian Strain* > > wrote:
>
> We looked into this, the only phone we got this working on was the
> K750,
> using a midi as the background and wavs for sfx. I'm sure sony
> ercisson
> phones in the same category as the K750 will be capable of this
> too. We
> tried this on all other devices available (motorola, samsung,
> sharp, lg,
> sagem) but it never worked.
>
> So, either use a background sound and forget about sfx or just
> have sfx.
> I'd go with sfx and anyway most people turn the sound off anyway.
>
> Chris B wrote:
> > IMO just play it safe and stick to background midi music.
> >
> >
> ===========================================================================
> >
> > To unsubscribe, send email to listserv@java.sun.com
> and include in the
> > body
> > of the message "signoff KVM-INTEREST". For general help, send
> email to
> > listserv@java.sun.com and include
> in the body of the message "help".
> >
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com
> and include in the body
> of the message "signoff KVM-INTEREST". For general help, send
> email to
> listserv@java.sun.com and include
> in the body of the message "help".
>
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body of the message "signoff KVM-INTEREST". For general help, send
> email to listserv@java.sun.com and include in the body of the message
> "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Mark Ripley

Are adverts allowed on KVM?

I've got a new service I want to tout =)

Mark Ripley
cheeky.gr

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Fly Home

Didn't sign up for adverts man.

----- Original Message ----
From: Mark Ripley
To: KVM-INTEREST@JAVA.SUN.COM
Sent: Monday, 27 November, 2006 9:37:37 PM
Subject: Adverts allowed?

Are adverts allowed on KVM?

I've got a new service I want to tout =)

Mark Ripley
cheeky.gr

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Send instant messages to your online friends http://au.messenger.yahoo.com

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Mark Ripley

On Nov 28, 2006, at 2:10 AM, Fly Home wrote:

> Didn't sign up for adverts man.
>

No probs dude =)

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

John Bridges

You play SFX ????

tbh never had any issues with playing a background theme - only with
playing SFX - as handsets such as the Moto Vxxx series pause the phone
for 0.5s or so whilst playing the SFX. After realising that this wasn't
very portable, dumped all SFX in favour of only background music.

JB

James Closs wrote:
> Hi,
>
> I keep getting asked for background music in my games but have so far
> been avoiding it like the plague as it seems like it will be a
> nightmare to implement, it's bad enough getting some handsets to play
> a simple MIDI sound without predelay, let alone full-on background
> themes!
>
> Looks like I might finally have to bite the bullet though. Anyone got
> any tips on the best way to go about this, handsets that are/aren't
> worth bothering with etc? I'm presuming that most handsets won't
> support MIDI playback on more than one channel so I will have to stop
> and resume the background theme when in-game sounds are played?
>
> Any help appreciated...
>
> ====
>
> James Closs, Director, bitBull Ltd
>
> http://www.bitbull.com
>
> 07771 991171
>
> ====
>
> ===========================================================================
>
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

James Closs

> You play SFX ????

Yup!

> tbh never had any issues with playing a background theme - only with
> playing SFX - as handsets such as the Moto Vxxx series pause the phone
> for 0.5s or so whilst playing the SFX. After realising that this
> wasn't
> very portable, dumped all SFX in favour of only background music.

OK, so it looks like it's basically one or the other from what people
are saying - cool.

I can usually get SFX OK without predelay, on the Motos I find
there's no predelay if you play the same sound consecutively, only
when you play different sounds. Therefore I organise the SFX so that
this isn't too much of an issue.

====

James Closs, Director, bitBull Ltd

http://www.bitbull.com

07771 991171

====

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Martin Young

Both Motorola and Siemens (laughably given how much touble it is to get them
to do anything reliably) claim that they can play MIDI and samples at the
same time. Both have more information in their respective portals but the
key in both cases seems to be to get the MIDI playing before doing anything
with the SFX.

James Closs writes:
> Hi,
>
> I keep getting asked for background music in my games but have so far
> been avoiding it like the plague as it seems like it will be a
> nightmare to implement, it's bad enough getting some handsets to play
> a simple MIDI sound without predelay, let alone full-on background
> themes!
>
> Looks like I might finally have to bite the bullet though. Anyone got
> any tips on the best way to go about this, handsets that are/aren't
> worth bothering with etc? I'm presuming that most handsets won't
> support MIDI playback on more than one channel so I will have to stop
> and resume the background theme when in-game sounds are played?
>
> Any help appreciated...

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Sam Nova

SonyEricsson also used to be good with multiple sounds, don't remember
(been awhile since I touched phone dev) if it includes MIDI and WAV, but
surely multiple wav's. (From K750i on I think).

Alcatel 735i and 565 (or so) also supported MIDI and ARM at the same
time, but to be honest, I had several issues with just one of them.

When I worked with mobiles we never tried to do both music and sfx, we
kept it very simple ;-) But you know how it is....

-Sam

> -----Original Message-----
> From: A mailing list for KVM discussion
> [mailto:KVM-INTEREST@JAVA.SUN.COM] On Behalf Of Martin Young
> Sent: Wednesday, November 22, 2006 10:32 AM
> To: KVM-INTEREST@JAVA.SUN.COM
> Subject: Re: Background Music in Games - Any Tips
>
>
> Both Motorola and Siemens (laughably given how much touble it
> is to get them to do anything reliably) claim that they can
> play MIDI and samples at the same time. Both have more
> information in their respective portals but the key in both
> cases seems to be to get the MIDI playing before doing
> anything with the SFX.
>
> James Closs writes:
> > Hi,
> >
> > I keep getting asked for background music in my games but
> have so far
> > been avoiding it like the plague as it seems like it will be a
> > nightmare to implement, it's bad enough getting some
> handsets to play
> > a simple MIDI sound without predelay, let alone full-on background
> > themes!
> >
> > Looks like I might finally have to bite the bullet though.
> Anyone got
> > any tips on the best way to go about this, handsets that are/aren't
> > worth bothering with etc? I'm presuming that most handsets won't
> > support MIDI playback on more than one channel so I will
> have to stop
> > and resume the background theme when in-game sounds are played?
> >
> > Any help appreciated...
>
> ==============================================================
> =============
> To unsubscribe, send email to listserv@java.sun.com and
> include in the body of the message "signoff KVM-INTEREST".
> For general help, send email to listserv@java.sun.com and
> include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Mark Ripley

Best advice is *just* play the background music, and don't bother
with sfx. That's what I've done for the last year or so and not had
any complaints because of it.

I think most phones play midi, apart from the Sharps (which you know
about) and the samsungs.

Mark Ripley
cheeky.gr

On Nov 22, 2006, at 11:14 AM, James Closs wrote:

> Hi,
>
> I keep getting asked for background music in my games but have so far
> been avoiding it like the plague as it seems like it will be a
> nightmare to implement, it's bad enough getting some handsets to play
> a simple MIDI sound without predelay, let alone full-on background
> themes!
>
> Looks like I might finally have to bite the bullet though. Anyone got
> any tips on the best way to go about this, handsets that are/aren't
> worth bothering with etc? I'm presuming that most handsets won't
> support MIDI playback on more than one channel so I will have to stop
> and resume the background theme when in-game sounds are played?
>
> Any help appreciated...
>
> ====
>
> James Closs, Director, bitBull Ltd
>
> http://www.bitbull.com
>
> 07771 991171
>
> ====
>
> ======================================================================
> =====
> To unsubscribe, send email to listserv@java.sun.com and include in
> the body
> of the message "signoff KVM-INTEREST". For general help, send
> email to
> listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]