Hi,
Though it is good programming that you to call stop method for getting the
playback stopped(even though it has already stopped)But in my case i have
checked my application without doing so......i.e i didnt call stop() method
to stop one sound and then played other sound calling play() method of
audio presenter and it worked fine
In my case i loaded all my (.mld files) in the start() method and then used
these in my application
AudioPresenter theAP[]=new AudioPresenter[3];
public void start()
{
soundloader("one.mid",0);
soundloader("two.mid",1);
soundloader("three.mid",2);
}
public void soundloader(String s,int i)
{
MediaSound sound =MediaManager.getSound("resource:///"+s);
try
{
sound.use();
}catch (ConnectionException ce) {} catch (UIException uie) {}
theAP[i] = AudioPresenter.getAudioPresenter();
theAP[i].setSound(sound);
}
and then used it by calling appropriate sound like
theAP[0].play();
theAP[1].play();
theAP[2].play();
It also plays on D503i
(though sound differs a lot both in Sony and Mitsubishi)
Regards,
Manik
At 11:35 AM 8/3/01 +0900, you wrote:
> > I wrote a couple of iApplis for the N503i recently which contain sound. I
> > created the sound files with a MLD using a program called sndEd.
> >
> > When I run the programs on a SO503i the phone gives an Operational
> Error when
> > the sound should be played.
> >
> > Has anyone else had a similar problem? Do Sony phones play MLD files?
> >
>
>Yes, Sony phones do play MFi (.mld) files. I've also seen a problem
>with this phone. If I play a sound file and then load/play another
>sound file the phone will crash. I've no idea why. It could be a
>(another) bug in the phone or it could be incompatible MFi data.
>Anyway, I get round it simply by calling stop() on the audio presenter
>(even though playback has already stopped) before I load/play the next
>sound file and everything works fine.
>
>
>--
>Gary James
>Project Leader (Theta Team)
>Layer-8 Technologies, LINC Media Group
>
>
>
>
>[ Need archives? How to unsubscribe? http://www.appelsiini.net/keitai-l/ ]
[ Need archives? How to unsubscribe? http://www.appelsiini.net/keitai-l/ ]
Received on Fri Aug 3 08:04:47 2001