audio flinger :(

by schwiz » Sat, 05 Sep 2009 12:24:15 GMT


Sponsored Links
 I am constantly getting horrible playback on music on my g1, It will
cut out constantly for a second or two, I finally caught it happen
while I had log cat running, anyone know what this error is from and
how to fix it?  I am running the latest cyanogen mod but this was
happening to me way back when I was running regular tmobile cupcake
(actually the reason I rooted, because I thought It was a memory
issue)  anyways here is the log message.

09-04 23:18:09.953: WARN/AudioFlinger(123): write blocked for 156
msecs
09-04 23:18:10.363: WARN/AudioFlinger(123): write blocked for 412
msecs
09-04 23:18:10.604: WARN/AudioFlinger(123): write blocked for 235 msecs
--~--~---------~--~----~------------~-------~--~----~



audio flinger :(

by ernestw » Sat, 05 Sep 2009 20:19:01 GMT


 I noticed the same thing when playing OGG files through the
MediaPlayer.  In my game FRG, the draw/update thread probably swallows
a large portion of CPU time causing the occasional skip.  Music also
tends to skip when the garbage collector runs.  The problem doesn't
happen for me if I play MP3s through the MediaPlayer.  Unfortunately
MP3s seem to have a fraction of a second delay when starting while
OGGs do not.

I've also noticed the AudioFlinger issues but they don't seem to
correlate with the pauses I experience.  I've never had write blocks
for the amount of times you've listed though.

Anybody else have similar issues?

  Ernest Woo
  Woo Games
   http://www.woogames.com 



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


audio flinger :(

by Jay » Mon, 07 Sep 2009 01:42:32 GMT


 I have a similar problem when piping music through bluetooth to my
motorcycle helmet.  I get a lot of skips and pauses sometimes.  It
also happened to me both before I rooted, and while I was on JF &
Cyanogen's ROMs.  I'm not sure how to run a log, but if you can give
me the steps I'll be happy to do so.




--~--~---------~--~----~------------~-------~--~----~



audio flinger :(

by schwiz » Mon, 07 Sep 2009 08:53:20 GMT


 if you are rooted you can open the terminal and type

su
logcat -help

to show a list of logcat commands, to save the file i think its
logcat -c "filename"  or something

I use eclipse and the sdk to view the logcat, which is much easier and
color codes and you can copy lines out of it, but if you don't have
eclipse set up its a lot to go through to explain how but you can
visit the android sdk site for detailed instructions on how to it all
working.




--~--~---------~--~----~------------~-------~--~----~



audio flinger :(

by schwiz » Mon, 07 Sep 2009 08:57:56 GMT


 also, you can search logcat on the market and there is an app called
logcollector that will email the log to you , doesn't require root




--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. on button click not working for calendar

Hi,

I am not sure why my on button click is not working for the calender
icon I have, does any one knows what I may be doing wrong?

Here is my java code, thanks in advance.


package com.varun.HelloListView;

import java.util.Calendar;

import android.app.Activity;
import android.app.AlertDialog;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;


public class screen3 extends Activity implements OnClickListener{
        private int mYear;
        private int mMonth;
        private int mDay;

        private final int DATE_DIALOG_ID = 0;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.form_screen_3);
        Button button = (Button) findViewById(R.id.Buttonsubmit);
        button.setOnClickListener(this);

    }
    public void onClick(View view) {

         /** check whether the yesno button has been clicked */
        if (view == findViewById(R.id.Buttonsubmit)) {
            // Create the dialog box
            AlertDialog.Builder alertbox = new
AlertDialog.Builder(this);
            // Set the message to display
            alertbox.setMessage("This is a dialog box with two
buttons");
             // Set a positive/yes button and create a listener
            alertbox.setPositiveButton("Yes", new
DialogInterface.OnClickListener() {
                // Click listener
                public void onClick(DialogInterface arg0, int arg1) {
                    Toast.makeText(getApplicationContext(), "'Yes'
button clicked", Toast.LENGTH_SHORT).show();
                }
            });
            // Set a negative/no button and create a listener
            alertbox.setNegativeButton("No", new
DialogInterface.OnClickListener() {
                // Click listener
                public void onClick(DialogInterface arg0, int arg1) {

                    Toast.makeText(getApplicationContext(), "'No'
button clicked", Toast.LENGTH_SHORT).show();

                }

            });

            // display box

            alertbox.show();

        }

                /*...@override
           public void onClick(View v) {
            Toast.makeText(screen3.this, "The report #1234 has been
submitted to Mr XYZ", Toast.LENGTH_SHORT).show();
           }
         }); */

        Button btnCalendar = (Button) findViewById(R.id.btnCalendar);
                btnCalendar.setOnClickListener(new OnClickListener() {
                        @Override
                        public void onClick(View v) {
                                showDialog(DATE_DIALOG_ID);
                        }
                });
                final Calendar c = Calendar.getInstance();
                mYear = c.get(Calendar.YEAR);
                mMonth = c.get(Calendar.MONTH);
                mDay = c.get(Calendar.DAY_OF_MONTH);
    }

        @Override
        protected Dialog onCreateDialog(int id) {
                switch (id) {
                case DATE_DIALOG_ID:
                        return new DatePickerDialog(this, null, mYear, mMonth, 
mDay);
                }
                return null;
    }
}

-- 

2. Googlenav package

Hi,
I can't import com.google.googlenav package in my class (SDK 1.0)
so I looked up (SDK 0.9) an android.jar file I could see this package.
I been told that that googlenav package is no longer supported?

Any one have alternative to solve the problem with driving direction?

-- 

3. Game Need for speed shif

4. method setEmbeddedTitleBar in webview.

5. TYPE_RADIO

6. how to keep focus on a widget even if the widget above it changes its height

7. print commands with full log in init.rc