Saturday, August 24, 2013

[android-developers] Re: No sound card access on Jelly bean?

I have some music visualizer apps. They have internal players, where the music visualization still works. The apps also  use the sound for external players, like Spotify and Winamp. The apps could visualize the sound from these before, but it does not work on Jelly bean. 


I have played music with external players, while debugging the apps. The bytes in the updateVisualizerFFT method of OnDataCaptureListener are always 0 for external players, when a visualizer is created with 0 as an argument:

new Visualizer(0);

Creating a Visualizer with 0 as an argument means that the visualizer will be attached to the MediaPlayer or AudioTrack in the same audio session:

http://developer.android.com/reference/android/media/audiofx/Visualizer.html#Visualizer(int)


The bytes in the updateVisualizerFFT method are 0 and this results in no visualization, since there is no signal to use for visualization. No error message or any other information that I can use is generated from logCat.


On Friday, August 23, 2013 5:55:03 PM UTC+2, MobileVisuals wrote:

My apps can not get access to sounds from other apps on Jelly bean. The sound value that I get is always 0. I have added every possible permission. What can I do to fix this?



--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment