[android-developers] Re: problem with playing sounds using media player

2009-02-06 Thread Dave Sparks

There is a lot of new audio support in the Cupcake SDK release. This
includes working SoundPool for low-latency sounds and streaming audio
API's.

On Feb 6, 2:13 am, suhas gavas  wrote:
> Hi,
> I have used media player in my formal game which was 2d game ...
> At that time I used view  . But now its 3d game and so i have
> extended surfcae view . So much rendering is done at run time
> . So i thing this must be issue as cpu is overloaded and i have
> checked this in ddms (CPU Usage). I m yet not satisfied
> with media player api of android .. Also prb with sound pool is that
> some times sample sound is not ready to play as might be some problem in
> that ... Truley i think sound api should be well furnished as i have
> checked on iphone and the game works fine as sounds are also played 
> I mean that same game is working fine on iphone with huge sound files in
> term of size also
>
> On Fri, Feb 6, 2009 at 12:04 PM, Dave Sparks wrote:
>
>
>
> > Suggest you try running top to find out what's hogging the CPU.
>
> > On Feb 5, 9:22 pm, suhas gavas  wrote:
> > > Hi,
> > > No ... i m not playing 6 to 7 mp3 files at same time ..
> > > later that day i have tried with just playing one single file and same
> > issue
> > > . But then i tried SoundPool api and it worked fine
> > > . Then also i wonder what was the prb with mediaplayer
>
> > > On Fri, Feb 6, 2009 at 9:07 AM, Dave Sparks 
> > wrote:
>
> > > > If you are playing 6 or 7 MP3 files at the same time, you are probably
> > > > saturating the CPU just decoding the audio.
>
> > > > On Feb 5, 1:10 am, suhas gavas  wrote:
> > > > > hi,
>
> > > > > My program is a 3d game . And i m creating 6 to 7
> > media
> > > > > player in my game .. so is this y the warning is flashed ?
>
> > > > > On Thu, Feb 5, 2009 at 1:04 PM, Dave Sparks 
> > > > wrote:
>
> > > > > > The message could be a clue, it's trying to tell you that the CPU
> > is
> > > > > > overloaded, i.e. you're trying to do too much. Have you tried
> > running
> > > > > > "top" to check the CPU load?
>
> > > > > > On Feb 4, 10:32 pm, suhas  wrote:
> > > > > > > Hi all,
> > > > > > > I m using mp3 sound in my game (used wav format also) 
> >  while
> > > > > > > playing sound i get problem as  "obtainBuffer timeout (is the CPU
> > > > > > > pegged)" and then sound gets played after some time i.e it is not
> > > > > > > syncronized with the game play ... plz help me with this
> > issue
>
> > > > > > > Thnxs
> > > > > > > Suhas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: problem with playing sounds using media player

2009-02-06 Thread Syed Malgimani
Can any one help me in getting the tool for code coverage for Android
Application,

How to intergarte with Eclipse.

I had tried with EclEmma Code Coverage tool, it gives code coverage for the
normal Java Applications,

Can u please suggest any Code Coverage tool for Android Application

 

With regards

Syed

 

 

  _  

From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of suhas gavas
Sent: Friday, February 06, 2009 3:44 PM
To: android-developers@googlegroups.com
Subject: [android-developers] Re: problem with playing sounds using media
player

 


Hi,
I have used media player in my formal game which was 2d game ...
At that time I used view  . But now its 3d game and so i have
extended surfcae view . So much rendering is done at run time
. So i thing this must be issue as cpu is overloaded and i have
checked this in ddms (CPU Usage). I m yet not satisfied
with media player api of android .. Also prb with sound pool is that
some times sample sound is not ready to play as might be some problem in
that ... Truley i think sound api should be well furnished as i have
checked on iphone and the game works fine as sounds are also played 
I mean that same game is working fine on iphone with huge sound files in
term of size also



On Fri, Feb 6, 2009 at 12:04 PM, Dave Sparks 
wrote:


Suggest you try running top to find out what's hogging the CPU.


On Feb 5, 9:22 pm, suhas gavas  wrote:
> Hi,
> No ... i m not playing 6 to 7 mp3 files at same time ..
> later that day i have tried with just playing one single file and same
issue
> . But then i tried SoundPool api and it worked fine
> . Then also i wonder what was the prb with mediaplayer
>

> On Fri, Feb 6, 2009 at 9:07 AM, Dave Sparks 
wrote:
>
> > If you are playing 6 or 7 MP3 files at the same time, you are probably
> > saturating the CPU just decoding the audio.
>
> > On Feb 5, 1:10 am, suhas gavas  wrote:
> > > hi,
>
> > > My program is a 3d game . And i m creating 6 to 7
media
> > > player in my game .. so is this y the warning is flashed ?
>
> > > On Thu, Feb 5, 2009 at 1:04 PM, Dave Sparks 
> > wrote:
>
> > > > The message could be a clue, it's trying to tell you that the CPU is
> > > > overloaded, i.e. you're trying to do too much. Have you tried
running
> > > > "top" to check the CPU load?
>
> > > > On Feb 4, 10:32 pm, suhas  wrote:
> > > > > Hi all,
> > > > > I m using mp3 sound in my game (used wav format also) 
while
> > > > > playing sound i get problem as  "obtainBuffer timeout (is the CPU
> > > > > pegged)" and then sound gets played after some time i.e it is not
> > > > > syncronized with the game play ... plz help me with this issue
>
> > > > > Thnxs
> > > > > Suhas





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: problem with playing sounds using media player

2009-02-06 Thread dengjiuhong

I found SoundPool is very useful!

On Feb 6, 1:22 pm, suhas gavas  wrote:
> Hi,
> No ... i m not playing 6 to 7 mp3 files at same time ..
> later that day i have tried with just playing one single file and same issue
> . But then i tried SoundPool api and it worked fine
> . Then also i wonder what was the prb with mediaplayer
>
> On Fri, Feb 6, 2009 at 9:07 AM, Dave Sparks  wrote:
>
> > If you are playing 6 or 7 MP3 files at the same time, you are probably
> > saturating the CPU just decoding the audio.
>
> > On Feb 5, 1:10 am, suhas gavas  wrote:
> > > hi,
>
> > > My program is a 3d game . And i m creating 6 to 7 media
> > > player in my game .. so is this y the warning is flashed ?
>
> > > On Thu, Feb 5, 2009 at 1:04 PM, Dave Sparks 
> > wrote:
>
> > > > The message could be a clue, it's trying to tell you that the CPU is
> > > > overloaded, i.e. you're trying to do too much. Have you tried running
> > > > "top" to check the CPU load?
>
> > > > On Feb 4, 10:32 pm, suhas  wrote:
> > > > > Hi all,
> > > > > I m using mp3 sound in my game (used wav format also)   while
> > > > > playing sound i get problem as  "obtainBuffer timeout (is the CPU
> > > > > pegged)" and then sound gets played after some time i.e it is not
> > > > > syncronized with the game play ... plz help me with this issue
>
> > > > > Thnxs
> > > > > Suhas

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: problem with playing sounds using media player

2009-02-06 Thread suhas gavas
Hi,
I have used media player in my formal game which was 2d game ...
At that time I used view  . But now its 3d game and so i have
extended surfcae view . So much rendering is done at run time
. So i thing this must be issue as cpu is overloaded and i have
checked this in ddms (CPU Usage). I m yet not satisfied
with media player api of android .. Also prb with sound pool is that
some times sample sound is not ready to play as might be some problem in
that ... Truley i think sound api should be well furnished as i have
checked on iphone and the game works fine as sounds are also played 
I mean that same game is working fine on iphone with huge sound files in
term of size also


On Fri, Feb 6, 2009 at 12:04 PM, Dave Sparks wrote:

>
> Suggest you try running top to find out what's hogging the CPU.
>
> On Feb 5, 9:22 pm, suhas gavas  wrote:
> > Hi,
> > No ... i m not playing 6 to 7 mp3 files at same time ..
> > later that day i have tried with just playing one single file and same
> issue
> > . But then i tried SoundPool api and it worked fine
> > . Then also i wonder what was the prb with mediaplayer
> >
> > On Fri, Feb 6, 2009 at 9:07 AM, Dave Sparks 
> wrote:
> >
> > > If you are playing 6 or 7 MP3 files at the same time, you are probably
> > > saturating the CPU just decoding the audio.
> >
> > > On Feb 5, 1:10 am, suhas gavas  wrote:
> > > > hi,
> >
> > > > My program is a 3d game . And i m creating 6 to 7
> media
> > > > player in my game .. so is this y the warning is flashed ?
> >
> > > > On Thu, Feb 5, 2009 at 1:04 PM, Dave Sparks  >
> > > wrote:
> >
> > > > > The message could be a clue, it's trying to tell you that the CPU
> is
> > > > > overloaded, i.e. you're trying to do too much. Have you tried
> running
> > > > > "top" to check the CPU load?
> >
> > > > > On Feb 4, 10:32 pm, suhas  wrote:
> > > > > > Hi all,
> > > > > > I m using mp3 sound in my game (used wav format also) 
>  while
> > > > > > playing sound i get problem as  "obtainBuffer timeout (is the CPU
> > > > > > pegged)" and then sound gets played after some time i.e it is not
> > > > > > syncronized with the game play ... plz help me with this
> issue
> >
> > > > > > Thnxs
> > > > > > Suhas
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: problem with playing sounds using media player

2009-02-05 Thread Dave Sparks

Suggest you try running top to find out what's hogging the CPU.

On Feb 5, 9:22 pm, suhas gavas  wrote:
> Hi,
> No ... i m not playing 6 to 7 mp3 files at same time ..
> later that day i have tried with just playing one single file and same issue
> . But then i tried SoundPool api and it worked fine
> . Then also i wonder what was the prb with mediaplayer
>
> On Fri, Feb 6, 2009 at 9:07 AM, Dave Sparks  wrote:
>
> > If you are playing 6 or 7 MP3 files at the same time, you are probably
> > saturating the CPU just decoding the audio.
>
> > On Feb 5, 1:10 am, suhas gavas  wrote:
> > > hi,
>
> > > My program is a 3d game . And i m creating 6 to 7 media
> > > player in my game .. so is this y the warning is flashed ?
>
> > > On Thu, Feb 5, 2009 at 1:04 PM, Dave Sparks 
> > wrote:
>
> > > > The message could be a clue, it's trying to tell you that the CPU is
> > > > overloaded, i.e. you're trying to do too much. Have you tried running
> > > > "top" to check the CPU load?
>
> > > > On Feb 4, 10:32 pm, suhas  wrote:
> > > > > Hi all,
> > > > > I m using mp3 sound in my game (used wav format also)   while
> > > > > playing sound i get problem as  "obtainBuffer timeout (is the CPU
> > > > > pegged)" and then sound gets played after some time i.e it is not
> > > > > syncronized with the game play ... plz help me with this issue
>
> > > > > Thnxs
> > > > > Suhas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: problem with playing sounds using media player

2009-02-05 Thread suhas gavas
Hi,
No ... i m not playing 6 to 7 mp3 files at same time ..
later that day i have tried with just playing one single file and same issue
. But then i tried SoundPool api and it worked fine
. Then also i wonder what was the prb with mediaplayer

On Fri, Feb 6, 2009 at 9:07 AM, Dave Sparks  wrote:

>
> If you are playing 6 or 7 MP3 files at the same time, you are probably
> saturating the CPU just decoding the audio.
>
> On Feb 5, 1:10 am, suhas gavas  wrote:
> > hi,
> >
> > My program is a 3d game . And i m creating 6 to 7 media
> > player in my game .. so is this y the warning is flashed ?
> >
> > On Thu, Feb 5, 2009 at 1:04 PM, Dave Sparks 
> wrote:
> >
> > > The message could be a clue, it's trying to tell you that the CPU is
> > > overloaded, i.e. you're trying to do too much. Have you tried running
> > > "top" to check the CPU load?
> >
> > > On Feb 4, 10:32 pm, suhas  wrote:
> > > > Hi all,
> > > > I m using mp3 sound in my game (used wav format also)   while
> > > > playing sound i get problem as  "obtainBuffer timeout (is the CPU
> > > > pegged)" and then sound gets played after some time i.e it is not
> > > > syncronized with the game play ... plz help me with this issue
> >
> > > > Thnxs
> > > > Suhas
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: problem with playing sounds using media player

2009-02-05 Thread Dave Sparks

If you are playing 6 or 7 MP3 files at the same time, you are probably
saturating the CPU just decoding the audio.

On Feb 5, 1:10 am, suhas gavas  wrote:
> hi,
>
> My program is a 3d game . And i m creating 6 to 7 media
> player in my game .. so is this y the warning is flashed ?
>
> On Thu, Feb 5, 2009 at 1:04 PM, Dave Sparks  wrote:
>
> > The message could be a clue, it's trying to tell you that the CPU is
> > overloaded, i.e. you're trying to do too much. Have you tried running
> > "top" to check the CPU load?
>
> > On Feb 4, 10:32 pm, suhas  wrote:
> > > Hi all,
> > > I m using mp3 sound in my game (used wav format also)   while
> > > playing sound i get problem as  "obtainBuffer timeout (is the CPU
> > > pegged)" and then sound gets played after some time i.e it is not
> > > syncronized with the game play ... plz help me with this issue
>
> > > Thnxs
> > > Suhas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: problem with playing sounds using media player

2009-02-05 Thread suhas gavas
hi,

My program is a 3d game . And i m creating 6 to 7 media
player in my game .. so is this y the warning is flashed ?

On Thu, Feb 5, 2009 at 1:04 PM, Dave Sparks  wrote:

>
> The message could be a clue, it's trying to tell you that the CPU is
> overloaded, i.e. you're trying to do too much. Have you tried running
> "top" to check the CPU load?
>
> On Feb 4, 10:32 pm, suhas  wrote:
> > Hi all,
> > I m using mp3 sound in my game (used wav format also)   while
> > playing sound i get problem as  "obtainBuffer timeout (is the CPU
> > pegged)" and then sound gets played after some time i.e it is not
> > syncronized with the game play ... plz help me with this issue
> >
> > Thnxs
> > Suhas
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: problem with playing sounds using media player

2009-02-04 Thread Dave Sparks

The message could be a clue, it's trying to tell you that the CPU is
overloaded, i.e. you're trying to do too much. Have you tried running
"top" to check the CPU load?

On Feb 4, 10:32 pm, suhas  wrote:
> Hi all,
> I m using mp3 sound in my game (used wav format also)   while
> playing sound i get problem as  "obtainBuffer timeout (is the CPU
> pegged)" and then sound gets played after some time i.e it is not
> syncronized with the game play ... plz help me with this issue
>
> Thnxs
> Suhas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---