¡@

Home 

2014/10/16 ¤W¤È 08:10:46

android Programming Glossary: buffers

Android - MediaPlayer Buffer Size in ICS 4.0

http://stackoverflow.com/questions/10060165/android-mediaplayer-buffer-size-in-ics-4-0

is fast for 2.1 2.3 but in Android 4.0 ICS the MediaPlayer buffers too much data before firing the onPrepared listener. An example..

Low-latency audio playback on Android

http://stackoverflow.com/questions/14842803/low-latency-audio-playback-on-android

PROPERTY_OUTPUT_SAMPLE_RATE . Otherwise your buffers take a detour through the system resampler. Never make a syscall..

Why my opengl output differs for various devices?

http://stackoverflow.com/questions/17187032/why-my-opengl-output-differs-for-various-devices

Another difference is the treatment of rendered buffers. Immediate renderers will save the content of your buffer effectively.. an immediate based renderer it defaults to preserving the buffers whereas Mali does not. From the Khronos EGL specification EGL_SWAP_BEHAVIOR..

How to discover memory usage of my application in Android

http://stackoverflow.com/questions/2298208/how-to-discover-memory-usage-of-my-application-in-android

device since some of that RAM is needed for the radio DMA buffers etc . MemFree is the amount of RAM that is not being used at..

how to resume an interrupted download

http://stackoverflow.com/questions/3411480/how-to-resume-an-interrupted-download

cx url.openConnection cx.connect Setup streams and buffers. int lengthFile cx.getContentLength InputStream input new BufferedInputStream..

how to resume an interrupted download - part 2

http://stackoverflow.com/questions/3428102/how-to-resume-an-interrupted-download-part-2

header fields map.toString Setup streams and buffers. input new BufferedInputStream url.openStream 8192 outFile new..

Android AudioRecord class - process live mic audio quickly, set up callback function

http://stackoverflow.com/questions/4525206/android-audiorecord-class-process-live-mic-audio-quickly-set-up-callback-func

AudioRecord recorder null short buffers new short 256 160 int ix 0 try ... initialise int N AudioRecord.getMinBufferSize.. ... loop while stopped short buffer buffers ix buffers.length N recorder.read buffer 0 buffer.length process.. ... loop while stopped short buffer buffers ix buffers.length N recorder.read buffer 0 buffer.length process buffer..

ByteBuffer not releasing memory

http://stackoverflow.com/questions/5060307/bytebuffer-not-releasing-memory

applies to Dalvik though where heavy allocation of direct buffers leads to unrecoverable OutOfMemoryError . You commented about..

MediaPlayer stutters at start of mp3 playback

http://stackoverflow.com/questions/5343730/mediaplayer-stutters-at-start-of-mp3-playback

player playback share improve this question AFAIK the buffers that MediaPlayer creates internally are for storing decompressed..

Android: Need to record mic input

http://stackoverflow.com/questions/6959930/android-need-to-record-mic-input

AudioRecord recorder null AudioTrack track null short buffers new short 256 160 int ix 0 Initialize buffer to hold continuously.. Log.i Map Writing new data to buffer short buffer buffers ix buffers.length N recorder.read buffer 0 buffer.length track.write.. Map Writing new data to buffer short buffer buffers ix buffers.length N recorder.read buffer 0 buffer.length track.write..

Android: sound API (deterministic, low latency)

http://stackoverflow.com/questions/7266298/android-sound-api-deterministic-low-latency

callbacks. This means that the minimum size for AudioTrack buffers has to be larger than the minimum size for OpenSL buffers to.. buffers has to be larger than the minimum size for OpenSL buffers to sustain glitch free playback. On most Android releases this.. p music synthesizer for android uses 384 frame buffers on the Galaxy Nexus for a total output latency of under 30ms...

How to handle Handler messages when activity/fragment is paused

http://stackoverflow.com/questions/8040280/how-to-handle-handler-messages-when-activity-fragment-is-paused

class is a wrapper around android.os.Handler that buffers up messages when an activity is paused and plays them back on..

Android - MediaPlayer Buffer Size in ICS 4.0

http://stackoverflow.com/questions/10060165/android-mediaplayer-buffer-size-in-ics-4-0

npr android news StreamProxy.java My issue is that playback is fast for 2.1 2.3 but in Android 4.0 ICS the MediaPlayer buffers too much data before firing the onPrepared listener. An example amount of data written to the Socket OutputStream before..

Low-latency audio playback on Android

http://stackoverflow.com/questions/14842803/low-latency-audio-playback-on-android

up glitching. Use the sample rate provided by AudioManager.getProperty PROPERTY_OUTPUT_SAMPLE_RATE . Otherwise your buffers take a detour through the system resampler. Never make a syscall or lock a synchronization object inside the buffer callback...

Why my opengl output differs for various devices?

http://stackoverflow.com/questions/17187032/why-my-opengl-output-differs-for-various-devices

such as depth testing blending and anti aliasing efficiently. Another difference is the treatment of rendered buffers. Immediate renderers will save the content of your buffer effectively allowing you to only draw differences in the rendered.. the Geforce ULP based nexus 7 works as intended is that as an immediate based renderer it defaults to preserving the buffers whereas Mali does not. From the Khronos EGL specification EGL_SWAP_BEHAVIOR Specifies the effect on the color buffer of..

How to discover memory usage of my application in Android

http://stackoverflow.com/questions/2298208/how-to-discover-memory-usage-of-my-application-in-android

user space often less than the actual physical RAM of the device since some of that RAM is needed for the radio DMA buffers etc . MemFree is the amount of RAM that is not being used at all. The number you see here is very high typically on an Android..

how to resume an interrupted download

http://stackoverflow.com/questions/3411480/how-to-resume-an-interrupted-download

the code Setup connection. URL url new URL strUrl 0 URLConnection cx url.openConnection cx.connect Setup streams and buffers. int lengthFile cx.getContentLength InputStream input new BufferedInputStream url.openStream OutputStream output new FileOutputStream..

how to resume an interrupted download - part 2

http://stackoverflow.com/questions/3428102/how-to-resume-an-interrupted-download-part-2

List String map connection.getHeaderFields Log.d AsyncDownloadFile header fields map.toString Setup streams and buffers. input new BufferedInputStream url.openStream 8192 outFile new RandomAccessFile strUrl 1 rw if downloaded 0 outFile.seek..

Android AudioRecord class - process live mic audio quickly, set up callback function

http://stackoverflow.com/questions/4525206/android-audiorecord-class-process-live-mic-audio-quickly-set-up-callback-func

android.os.Process.setThreadPriority android.os.Process.THREAD_PRIORITY_URGENT_AUDIO AudioRecord recorder null short buffers new short 256 160 int ix 0 try ... initialise int N AudioRecord.getMinBufferSize 8000 AudioFormat.CHANNEL_IN_MONO AudioFormat.ENCODING_PCM_16BIT.. AudioFormat.ENCODING_PCM_16BIT N 10 recorder.startRecording ... loop while stopped short buffer buffers ix buffers.length N recorder.read buffer 0 buffer.length process buffer catch Throwable x log.warning TAG Error reading.. AudioFormat.ENCODING_PCM_16BIT N 10 recorder.startRecording ... loop while stopped short buffer buffers ix buffers.length N recorder.read buffer 0 buffer.length process buffer catch Throwable x log.warning TAG Error reading voice..

ByteBuffer not releasing memory

http://stackoverflow.com/questions/5060307/bytebuffer-not-releasing-memory

Also keep in mind this bug in the JVM not sure how it applies to Dalvik though where heavy allocation of direct buffers leads to unrecoverable OutOfMemoryError . You commented about doing controlling things from JNI. This is actually possible..

MediaPlayer stutters at start of mp3 playback

http://stackoverflow.com/questions/5343730/mediaplayer-stutters-at-start-of-mp3-playback

up on emulators from 1.6 through 3.0. android audio media player playback share improve this question AFAIK the buffers that MediaPlayer creates internally are for storing decompressed samples not for storing prefetched compressed data. I suspect..

Android: Need to record mic input

http://stackoverflow.com/questions/6959930/android-need-to-record-mic-input

@Override public void run Log.i Audio Running Audio Thread AudioRecord recorder null AudioTrack track null short buffers new short 256 160 int ix 0 Initialize buffer to hold continuously recorded audio data start recording and start playback... and writes it to the audio track for playback. while stopped Log.i Map Writing new data to buffer short buffer buffers ix buffers.length N recorder.read buffer 0 buffer.length track.write buffer 0 buffer.length catch Throwable x Log.w.. it to the audio track for playback. while stopped Log.i Map Writing new data to buffer short buffer buffers ix buffers.length N recorder.read buffer 0 buffer.length track.write buffer 0 buffer.length catch Throwable x Log.w Audio Error..

Android: sound API (deterministic, low latency)

http://stackoverflow.com/questions/7266298/android-sound-api-deterministic-low-latency

there is no way to suspend garbage collection during audio callbacks. This means that the minimum size for AudioTrack buffers has to be larger than the minimum size for OpenSL buffers to sustain glitch free playback. On most Android releases this.. callbacks. This means that the minimum size for AudioTrack buffers has to be larger than the minimum size for OpenSL buffers to sustain glitch free playback. On most Android releases this difference between AudioTrack and OpenSL made no difference.. considerably lower than previously. For instance http code.google.com p music synthesizer for android uses 384 frame buffers on the Galaxy Nexus for a total output latency of under 30ms. This requires the audio thread to service buffers approximately..

How to handle Handler messages when activity/fragment is paused

http://stackoverflow.com/questions/8040280/how-to-handle-handler-messages-when-activity-fragment-is-paused

provide a relatively simple to implement workaround. The following class is a wrapper around android.os.Handler that buffers up messages when an activity is paused and plays them back on resume. Ensure any code that you have which asynchronously..