Compdigitec Labs

« | Home | »

Android native AudioTrack vs amem performance

By admin | March 11, 2012

VLC for Android pre-alpha benchmarks (March 11, 2012) for two audio outputs. Specs and method are the same as in the audio benchmarks.

Sample
First 30 seconds of testfile.mp3

Results

amem
Mean: 13.24%
Median: 11.30%
Mode: 10.7%
Native AudioTrack
Mean: 11.87%
Median: 10.40%
Mode: 10.7%

amem audio output vs Android AudioTrack

amem

PID  PPID USER     STAT   VSZ %MEM CPU %CPU COMMAND
Pass 1:
D/vlc     ( 3253): using audio output module "amem"
 3253   957 10076    S     163m 88.3   0 22.7 org.videolan.vlc
 3253   957 10076    S     161m 87.2   0 11.5 org.videolan.vlc
 3253   957 10076    S     161m 87.2   0 10.7 org.videolan.vlc
 3253   957 10076    S     161m 87.2   0 11.9 org.videolan.vlc
 3253   957 10076    S     161m 87.2   0 11.3 org.videolan.vlc
 3253   957 10076    S     161m 87.2   0 10.2 org.videolan.vlc
Pass 2:
D/vlc     ( 3366): using audio output module "amem"
 3366   957 10076    R     164m 88.7   0 23.7 org.videolan.vlc
 3366   957 10076    S     161m 87.5   0 11.7 org.videolan.vlc
 3366   957 10076    S     161m 87.5   0 11.7 org.videolan.vlc
 3366   957 10076    S     161m 87.5   0 10.5 org.videolan.vlc
 3366   957 10076    S     161m 87.5   0 11.1 org.videolan.vlc
 3366   957 10076    S     161m 87.5   0 10.9 org.videolan.vlc
Pass 3:
D/vlc     ( 3590): using audio output module "amem"
 3590   957 10076    S     164m 89.1   0 25.6 org.videolan.vlc
 3590   957 10076    S     164m 89.1   0 12.3 org.videolan.vlc
 3590   957 10076    S     164m 89.1   0 11.3 org.videolan.vlc
 3590   957 10076    S     164m 89.1   0 10.5 org.videolan.vlc
 3590   957 10076    S     164m 89.1   0 10.1 org.videolan.vlc
 3590   957 10076    S     164m 89.1   0 10.7 org.videolan.vlc

AudioTrack

PID  PPID USER     STAT   VSZ %MEM CPU %CPU COMMAND
Pass 1:
D/vlc     ( 2835): using audio output module "android_audiotrack"
 2835   957 10076    S     159m 86.0   0 10.1 org.videolan.vlc
 2835   957 10076    S     159m 86.0   0 10.4 org.videolan.vlc
 2835   957 10076    S     159m 86.0   0  9.5 org.videolan.vlc
 2835   957 10076    S     159m 86.0   0  9.4 org.videolan.vlc
 2835   957 10076    S     159m 86.0   0  9.8 org.videolan.vlc
 2835   957 10076    S     159m 86.0   0  9.2 org.videolan.vlc
Pass 2:
D/vlc     ( 2948): using audio output module "android_audiotrack"
 2948   957 10076    S     165m 89.5   0 23.5 org.videolan.vlc
 2948   957 10076    S     164m 88.7   0 11.1 org.videolan.vlc
 2948   957 10076    S     164m 88.7   0 10.4 org.videolan.vlc
 2948   957 10076    S     164m 88.7   0 10.7 org.videolan.vlc
 2948   957 10076    S     164m 88.7   0  9.6 org.videolan.vlc
 2948   957 10076    S     164m 88.7   0 10.7 org.videolan.vlc
Pass 3:
D/vlc     ( 3120): using audio output module "android_audiotrack"
 3120   957 10076    S     163m 88.4   0 25.8 org.videolan.vlc
 3120   957 10076    S     160m 86.8   0 10.7 org.videolan.vlc
 3120   957 10076    S     160m 86.8   0 10.3 org.videolan.vlc
 3120   957 10076    S     160m 86.8   0 10.7 org.videolan.vlc
 3120   957 10076    S     160m 86.8   0 10.2 org.videolan.vlc
 3120   957 10076    S     160m 86.8   0 11.5 org.videolan.vlc

Conclusion
Although there is not much of a significant gain in either audio output, the AudioTrack output feels a bit more stable to the end-user with less glitchiness or stuttering. In addition, AudioTrack supports some formats not supported by amem output (such as mono audio).

If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!

Topics: Mobile | 8 Comments »

8 Responses to “Android native AudioTrack vs amem performance”

  1. Adaptogenic stack Canada Says:
    August 11th, 2025 at 04:18

    … [Trackback]

    […] Read More on on that Topic: compdigitec.com/labs/2012/03/11/android-native-audiotrack-vs-amem-performance/ […]

  2. ระบบส่ง SMS Says:
    September 3rd, 2025 at 23:05

    … [Trackback]

    […] There you will find 93275 additional Info on that Topic: compdigitec.com/labs/2012/03/11/android-native-audiotrack-vs-amem-performance/ […]

  3. clothing manufacturer Says:
    September 15th, 2025 at 23:19

    … [Trackback]

    […] There you will find 90291 additional Info to that Topic: compdigitec.com/labs/2012/03/11/android-native-audiotrack-vs-amem-performance/ […]

  4. แทงมวยพักยก Says:
    September 18th, 2025 at 20:06

    … [Trackback]

    […] Read More to that Topic: compdigitec.com/labs/2012/03/11/android-native-audiotrack-vs-amem-performance/ […]

  5. แทงมวยเว็บไหนดี Says:
    September 20th, 2025 at 18:14

    … [Trackback]

    […] Find More Info here on that Topic: compdigitec.com/labs/2012/03/11/android-native-audiotrack-vs-amem-performance/ […]

  6. Gold Lotto เว็บหวยออนไลน์ Says:
    October 1st, 2025 at 09:41

    … [Trackback]

    […] There you will find 16644 more Info on that Topic: compdigitec.com/labs/2012/03/11/android-native-audiotrack-vs-amem-performance/ […]

  7. Shinkolite Says:
    October 11th, 2025 at 23:30

    … [Trackback]

    […] Find More here on that Topic: compdigitec.com/labs/2012/03/11/android-native-audiotrack-vs-amem-performance/ […]

  8. Thai food nyc Says:
    October 15th, 2025 at 18:16

    … [Trackback]

    […] Read More Info here to that Topic: compdigitec.com/labs/2012/03/11/android-native-audiotrack-vs-amem-performance/ […]

Comments