Questions tagged [audiotrack]

AudioTrack class in standard Android API for playing back raw Audio.

AudioTrack class in standard Android API for playing back raw Audio.

http://developer.android.com/reference/android/media/AudioTrack.html

419 questions
4
votes
0 answers

Android How to mix Two audio files to one audio file?

I want to mix two mp3 files into one audio file( I want to impose one audio over another NOT concatenating ) I searched for third libraries but i could not find . Can you help me to find any library ? I used this code but I do not hear any thing ?…
Mina Farid
  • 5,041
  • 4
  • 39
  • 46
4
votes
2 answers

Understanding AudioTrack Assertion in Android

In my Android app, I'm using the AudioTrack API to output audio bytes that I receive from a RFCOMM Bluetooth connection. The audio plays as expected and is very clear. However, the app occasionally crashes due to the following assertion in…
Rahin
  • 943
  • 6
  • 21
4
votes
1 answer

Most efficient way to stop an inevitable echo

I've created a modular system that streams voice over UDP between anything with a mic&speaker and an android phone. if the mic and the speaker are placed not so far from each other, anything recorded on the phone will be played back on the speaker…
M47
  • 400
  • 2
  • 13
4
votes
0 answers

Delphi - Record and stream audio Android

I'm trying to record audio from one android device (Server) and send to another android device (Client) to play it live, I am using indy HTTP server, to send the stream to the client, I am calling the Android API to record the audio, using…
4
votes
1 answer

attachAuxEffect and OpenSL ES

When using AudioTrack in Android you can call attachAuxEffect to attach an audio effect. Is there a similar method or approach when using OpenSL ES for audio playback? I can't seem to find a similar method.
William Seemann
  • 3,440
  • 10
  • 44
  • 78
4
votes
2 answers

Android Tempo/playback speed change

I am creating an Android app which requires the real time change of playback rate/speed. I have searched all over the internet and have seen many solutions including Tutorials for OpenSL ES for Android How to change audio tempo and pitch…
Ray
  • 1,134
  • 10
  • 27
4
votes
2 answers

Analyse AudioTrack on Android (Alternatives to Visualizer)

I want to analyse the recorded microphone-sound of my Android application. Unfortunately the Visualizer is only able to work on an AudioTrack that is currently being played back. Currently I'm recording with AudioRecord and copy the data into an…
4
votes
0 answers

Equalizer application for Android using AudioTrack?

I want to create an equalizer using Android. The app should load a .mp3 from the SDcard; apply some audio filtering and playback the filtered audio in (as close to) real time and also save the filtered audio. Filtering the audio with a IIR…
chilipepper
  • 105
  • 1
  • 10
4
votes
0 answers

Android Audiotrack clicking noise since Android 4 ICS

i have also a piano keyboard integrated in my app. I encountered a problem with audiotrack, when setting the playbackRate with setPlayBackRate(...). To get the next half-tone on the keyboard i change the playback rate with this formula: int…
pawlinsky
  • 420
  • 1
  • 6
  • 18
4
votes
4 answers

3D Audio Library for Android

I have searched everywhere on the internet for a solution for this and I can't seem to find a definitive answer. Basically, I'm looking to implement a 3D audio environment on the android platform. What I'm searching for is an android library that is…
Liam George Betsworth
  • 18,373
  • 5
  • 39
  • 42
3
votes
1 answer

Android AudioTrack object won't play quiet sine signal (below approx. 15 db)

I have a problem with playing generated sine audio signal, using an Android API AudioTrack object. Everything works great while the amplitude of the sine signal is above around 40 ( maximum possible amplitude value is 36535 due to the 16 bit PCM…
eNeLOu
  • 31
  • 2
3
votes
0 answers

Stop transmitting audio when app is in background in android webRTC/AppRTC

I am working on webRTC on the android platform. I run the appRTC code(https://github.com/njovy/AppRTCDemo). Now I joined the call from the android mobile and one from the web(https://appr.tc/). it is working fine. Now Android mobile goes in…
Shashank Gupta
  • 165
  • 2
  • 16
3
votes
0 answers

Problem to play parallel sound using SoundPool in android Studio piano practice

I can not play parallel sound using SoundPool and Thread for my piano app. I want to create a simple 1 octave Piano, the mp3 files are loaded in raw folder, the problem is when I push piano buttons , the new pushed key will cut the previous one…
Hadi
  • 124
  • 9
3
votes
1 answer

float [] to bytes array conversion for AudioTrack

I am using AudioTrack for playing through some float values. code: float[] audio_payload = getFloatValues(); final int length = audio_payload.length; int PLAYER_MODE = AudioTrack.MODE_STREAM; int PLAYER_STREAM_TYPE = AudioManager.STREAM_MUSIC; int…
Saurabh Pandey
  • 519
  • 2
  • 15
3
votes
3 answers

Android AudioTrack playback fast

I am trying to playback audio using AudioTrack. I can playback at normal speed. And I can playback slowly. But I cannot playback fast. How can I playback fast? try (InputStream is = getResources().openRawResource(R.raw.sample)) { byte[] bytes =…
pagliarulo
  • 31
  • 4