How do you access native AudioFlinger functions from Eclipse using java? - General Questions and Answers

How do you access native AudioFlinger functions from Eclipse using java?
Hi I"m trying to manipulate the audio stream that the HTC FM Radio produces on my EVO 4g. I see in the logcat that AudioFlinger is used to set the volume of the stream, so I know it's being handled by AudioFlinger. How can I access AudioFlinger from Eclipse (using JNI?) to get a hold of this audio stream?
Any small examples???
Thanks,
Jerry

Related

[Request] Record Audio stream- namely Spotify

Is it possible to record the audio output from the default music player or more specifically an application like Spotify.
I have Replay Music on my laptop which enables me to record the sound going through the audio chipset/soundcard. I would like to be able to either record the streams or record the offline playlists which output as per the music player when not connected to the net.
Can someone suggest an app or maybe a route to mod this in?
If it's a no-go then I'd appreciate someone kicking me up the arse and telling me to go and have a word with myself

[Q] encode to mp3 on an android device?

Im completely new at android and app writing. But I would like to write an app to make my life easer. I would like to recorde audio then encode it to mp3, is it possible? How would I go about starting?
Thanks
Steve
Sent from my DROIDX using XDA App
What you request is actually fairly advanced for a first program. I know nothing of your coding skills, so please don't take this a slight on you. The default media encoder on Android does not support direct encoding to mp3. So, you would need to either find a pure java mp3 encoder and port that to android, figure out the painful ndk C libraries through JNI to java and compile a C library like LAME, or *shiver* code your own mp3 encoder. All doable, none are trivial.
-frank

Tune Announcer

I have been looking for a way to have a media player say the track/artist at the beginning of a song since it is a pain to look at the screen all the time. Its now possible. Here is the link
http://rikara.blogspot.com/2010/09/android-tune-announcer.html
Description
This is a simple Android application that announces the name and artist of the song currently being played. It uses the native Text-to-Speech capabilities of the device to speak.
Example: The application will speak "Now playing 'Firestarter' by 'The Prodigy'"
The application speaks the text using the system volume and mutes the music whilst speaking. You may need to adjust the system volume to a comfortable level to hear the speech.
Non-standard Media Players and Scrobbler Support
If you are using a non-standard media player i.e. not the Android or HTC players, then adding support is difficult. However, there is a simple workaround if *your* media player supports last.fm scrobbling as these must broadcast Intents to the main scrobblers. Currently, v0.4 supports the Android Simple Last.fm Scrobbler. If you enable this in your media player, then the Tune Announcer will work The next version will support the ScrobbleDroid scrobbler.
latest version works with most players that will scrobble--astroplayer, mixzing etc
that looks really neat, except appbrain doesn't have version 0.5 yet.
EDIT thankfully market does.
testing now.

[Q] Voice Control of Music

Hi
Have recently got a Sensation XE, replacing an iPhone 3GS. Have been really impressed with the HTC however the one thing I miss from the 3GS is the ability to start playing music using voice commands. I stream music to my Bluetooth car stereo all the time and it is therefore useful to be able to choose the music I wish to listern to using voice commands whilst driving.
The included Google Voice Search doesn't support music commands and so I have tried Jeannie with a view to purchsing Voice Actions Plus. However the HTC music player doesn't appear in the list of applications that are controllable by Jeannie so although Jeannie can recognise the command it only offers a choice of YouTube or TuneIn radio to complete the command.
I installed Winamp which Jeannie does work with, however when playing music with Winamp, I get conflicts between Winamp and HTC media player when using the controls on my stereo to start/stop and skip tracks using bluetooth, so for example instead of stopping the currently playing song in Winamp, it also starts playing music through the HTC app!
Does anyone know of a way to control the HTC media player with voice commands or could suggest alternative combinations of voice control and media player apps?
Many thanks
Mark.
hi i use voco voice controller available on the market free and i have no problems on my sensation flashed with sensation xe with beats audio. hope this helps

[Discussion - Possibility] Android Accessory 2 API and Audio Streaming

Hello,
I have got a JVC Stereo in my Car and it support audio streaming via there media player to the stereo using USB, i'm wondering if it is at all possible even if i need to root my phone to send audio from all apps to the stereo. I am a programmer but don't know Android Programming. My thought on this was that if they can build a Media Player app to stream to the stereo via USB it should be able to do the same for any audio using some form of Audio Capture then convert it into the stream to send to the stereo would this be possible,
i have tried to decompile the JVC Media Player however i have not been completely successful the code i got was broken and unable to be compiled. `Source.zip` if it is possible would some one be able to help me build a mobile app to do this i know that it will more than likely need root as i have looked into MediaRecorder using
Code:
MediaRecorder.AudioSource.REMOTE_SUBMIX
however the first thing im trying to do is just to get audio from my device playing on the stereo, after that i will deal with trying to capture all the audio to send.

Categories

Resources