madan singh

Greenhorn
+ Follow
since Dec 29, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by madan singh

Hi all,

I need Lg G1600 and Lg B2050 Emulator, If anyone know any site to download emulator please give it to me.

Thanks
15 years ago
Hi all,
I try to append more than 2 command button on the form. So it got append and comes under menu (in emulator).but if i try to load jar on Motorola L6 then it is taking only 2 command.
Can anyone tell me how it can come on L6?

Thanks
15 years ago
Hi all,

I am working for samsungx430 and when i press left key in game it store key values i.e if i press leftkey(left DPAD)5 times and then press right key continuously it move graphics object in left direction 5 times after that it move right but what i want is to move object only 2 times left and then right. Please tell me how to flush stored key values.

Thanks
mad
15 years ago
hi all,

Friends I am porting a game in which everything is working properly but Game pauses/freezes when plugging adaptor in/out while playing game.Any one can help me

Thanks
15 years ago
Hi all,

Please tell me what actually setMediaTime(long l) do .what are the media types that do not support the setting of media time.
What i know about setMediaTime() is that it�s returned value will indicate the actual media time set. Please explain in depth.


Thanks
Madan
15 years ago
Hello group,

How can i get firmware id of my mobile sony ericsson K700i.

Thanks
Madan
15 years ago
Hi all,

Please tell me sound supported by Samsung D415.As i am doing porting so i have to change .wav file to .mid.Is it possible to convert it.please reply ASAP.

Thanks
Madan
15 years ago
Hi Krisp,

desroyApp(true) call from your application, to terminate the application.
Where as notifyDestroyed() call by AMS(Application Managament software(i.e by your system)) which used to inform your appliaction that your application is going to terminate.

Bye
15 years ago
Hi all,

Motorola v600 support .ott format or not.

please tell me ASAP

Thanks
Madan
15 years ago
Thanxs Ramy

Sample code is like

public void playSound(byte idx, boolean loop)
{
try
{
if (soundEnabled)
{
if ( idx == SND_START || idx == SND_SPIN1 || idx == SND_SPIN2 || idx == SND_SPIN3)
{
//play MIDI

if ( player[idx] == null)
initSound(idx);

try
{
if ( (player[idx].getState() != Player.STARTED) && (idx != SND_SPIN1 && idx != SND_SPIN2 && idx != SND_SPIN3))
player[idx].setMediaTime(0);
}
catch (Exception e)
{soundExceps++;}

if ( player[idx].getState() != Player.STARTED && player[idx].getState() != Player.CLOSED )
{
if ( Kernel.inst.canvas.pauseClicked || Kernel.inst.pause)
{
return;
}

player[idx].setLoopCount(loop ? -1 : 1);
player[idx].start();
}
}
else
{
//play WAV
if ( sounds[idx-SND_SPIN3-1] == null || currSoundIdx != idx)
initSound(idx);

if ( Kernel.inst.canvas.pauseClicked || Kernel.inst.pause )
return;

sounds[idx-SND_SPIN3-1].play(loop ? 0 : 1);
}
}
}
catch(Exception e)
{
soundExceps++;
//#ifdef QA
//# System.out.println("Error: playSound " + idx);
//#endif
}
}




and for release

public void releaseSound(byte idx,boolean destroy)
{
if (idx == SND_START || idx == SND_SPIN1 || idx == SND_SPIN2 || idx == SND_SPIN3)
{
//release MIDI
if ( player[idx] != null )
{
if (player[idx].getState() == Player.STARTED )
{
try
{
player[idx].stop();
}
catch (Exception e)
{
soundExceps++;
try{
if (player[idx].getState() != Player.CLOSED)
player[idx].deallocate();
}
catch (Exception e1){
}
player[idx].close();
player[idx] = null;
//#ifdef QA
//# System.out.println("Error: releaseSound");
//#endif
}
if (destroy)
{
try{
if (player[idx].getState() != Player.CLOSED)
player[idx].deallocate();
}
catch (Exception e1){
}
player[idx].close();
player[idx] = null;

}
}
}
}
else
{
if ( sounds[idx-SND_SPIN3-1] != null )
{
if (sounds[idx-SND_SPIN3-1].getState() == Sound.SOUND_PLAYING)
{
sounds[idx-SND_SPIN3-1].stop();
}
sounds[idx-SND_SPIN3-1].release();
sounds[idx-SND_SPIN3-1] = null;
}
}

currSoundIdx = -1;
}




And also what does player.setMediaTime(0)do
16 years ago
hi all,
I am getting problem in motorola V600 sound.As for long sound file(6 Sec) it is working but for small size (1 or 2 sec) it not working .Sound formate is Midi-0.

Please help me to solve this issue.

thanks
madan
16 years ago
hi,

You can start the timer on some specific time but not in case of thread.
Thread can implements Singleton(to make low heapSize).
16 years ago
Plz tell me exactly which metod is called after AMS call showNotify().

Thanks
16 years ago
I am getting some game sound when we press EXIT button during game play and come back to game using resume option in motorola v600.
I used showNotify() and hideNotify() for problem but then also it is not working.And also i do not put any code in pauseApp(),whether i hv to put code here also.

Thanks
16 years ago
Hello Group,

I am getting problem in porting key Code in nokia s_60 to MotorolaV600.How can i do key mapping.

Thanks
madan
16 years ago