Thanks a lot Alex, I'll check with it..

On Nov 5, 8:58 am, RockNCode <alexgarci...@gmail.com> wrote:
> Hello.
>
> I suggest you go to frameworks/base/libs/audioflinger/AudioFlinger.cpp
> and add LOGE prints to functions createTrack and createTrack_l. Could
> you check in createTrack_l if you are entering to this condtion ?:
>
>         Mutex::Autolock _l(mLock);
>         track = new Track(this, client, streamType, sampleRate,
> format,
>                 channelCount, frameCount, sharedBuffer);
>         if (track->getCblk() == NULL || track->name() < 0) {
>             lStatus = NO_MEMORY;
>             goto Exit;
>         }
>         mTracks.add(track);
>
> I think -12 is -ENOMEM which is NO_MEMORY, so probably the allocation
> failed. If this is the case probably you have a memory leak somewhere,
> just make sure that for every create() you have a release(). 
> Seehttp://developer.android.com/reference/android/media/MediaPlayer.html
> for more info.
>
> Alex.
>
> - Best regards.
>
> On Nov 4, 12:55 am,tinalincon<tina.theresalin...@wipro.com> wrote:
>
> > Hi all,
> > I am currently trying to create acuckooclock widget in which I am
> > facing problem with updating the pendulum sound each second....My
> > pendulum has to keep on ticking each second with sound effects
> > integrated.
> > I am doing update every second  and I am able to play the sound using
>
> > mPlay = MediaPlayer.create(context, R.raw.chime);
> > mPlay.start();
>
> >  But after about 30 seconds, the sound stops playing giving the log
> > error as follows:
>
> > E/AudioTrack( 2106): AudioFlinger could not create track, status: -12
> > E/AudioSink( 2106): Unable to create audio track
> > E/VorbisPlayer( 2106): mAudioSink open failed
>
> > Then again the same sound starts playing after a pause of  about 20
> > seconds instead of getting played each second.....It continues in
> > this
> > fashion of playing the sound file for some seconds, then to the pause
> > state and then again playing from start....This problem doesnt come
> > into picture when I'm trying to update the sound on hourly basis for
> > my hourly chime because in that case only once every hour this sound
> > is played, same is the case for updation every minute....This problem
> > arises only for updating the sound each second.... Wat is the reason
> > behind this delay??Can anyone please help me regarding this? Please do
> > help if anyone got an idea regarding this.Thanks in advance.
> > Regards,
> >TinaLincon

-- 
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

Reply via email to