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
0
votes
1 answer

Creating a specific square signal in android headphone jack

This is the first time I am on this website. I have been trying this project but trying various methods and mixing different methods for this have not helped and some or the other error just keeps crashing the app. My code requirements are specific,…
0
votes
2 answers

How to stop audiotrack and audiorecord playback on back press in android?

I have an Activity A and Activity B. In Activity A audio record and playback performs and on the press of back button audiotrack and audio record stops without any issue, but the main problem is in Activity B there is a video,when the footage of the…
Abhi
  • 433
  • 2
  • 7
  • 17
0
votes
1 answer

How to perform animation according to sound level?

I have created a project where users voice get replicated http://androidsourcecode.blogspot.in/2013/07/android-audio-demo-audiotrack.html and I want to perform animation according to voice level, I got to know about voice level through this tutorial…
0
votes
1 answer

Windows Phone 8 Audiotrack Error - Why?

I'm trying to play an internet audio file in my app, but i'm having problems with large files. The code: var track = new AudioTrack( new Uri(uri, UriKind.Absolute), "Podcast", string.Empty, string.Empty, …
Adelaiglesia
  • 365
  • 1
  • 4
  • 16
0
votes
0 answers

AudioTrack.play() - can't resolve symbol 'play' (Android Studio)

new Android developer here, following the audio programming tutorial at: http://audioprograming.wordpress.com/2012/10/18/a-simple-synth-in-android-step-by-step-guide-using-the-java-sdk/ I'm running into a problem where my AudioTrack object's call to…
gmo
  • 3
  • 3
0
votes
1 answer

How to change the pitch of sound in audiotrack?

I have a project in which the users voice should get repeated just like an echo or Talking tom app.I have used AudioRecorder and Audiotrack features,but my problem is I am not able to vary the pitch of sound I have referred…
Abhi
  • 433
  • 2
  • 7
  • 17
0
votes
1 answer

AudioTrack/AudioRecord behaviour depends on the device?

I'm currently playing with a little program to learn a bit more about udp datagram transfert. My script is based on an example I found here and what I'm doing is only using AudioTrack and AudioRecorder with two threads. One receives packets from…
0
votes
0 answers

Playback of Streams Are Taking Longer with Android KitKat (AudioTrack + MediaCodec Solution)

I am using MediaCodec + AudioTrack solution to stream MP3 music. It was working fine until the recent KitKat update. With KitKat, the playback begins after approximately 14-15 seconds, whereas on JellyBean it was taking no more than a few seconds.…
burakk
  • 1,231
  • 2
  • 22
  • 45
0
votes
0 answers

How to play 2 different tones on the earphone jack using AudioTrack in android

I have a need of playing 2 different tones of different frequency in the earphone. I was trying with AudioTrack class, and was able to do MONO and was not able to do in STEREO mode. I want to play a tone for 50 micro second and stop for next 50…
BNDMD
  • 11
  • 3
0
votes
1 answer

Audio recording using AudioRecord class and playback using AudioTrack class

Hi I have been tried to record audio through MIC using AudioRecord class and store it in the buffer of size 2048. And I tried to playback the recorded audio from that buffer itself using AudioTrack class creating another buffer of same size. When I…
Ashok
  • 1
  • 1
0
votes
1 answer

Android MediaCodec API - Music Plays on Emulator, Not on the Device

The code given below works fine on the emulator, but not the device. I found the following lines that looked suspicious to me: V/MediaExtractor(5030): Autodetected media content as 'audio/mpeg' with confidence 0.20 V/ChromiumHTTPDataSource(5030):…
burakk
  • 1,231
  • 2
  • 22
  • 45
0
votes
1 answer

Play mp3 data with audiotrack with ffmpeg

I am designing an android app where i receive live mp3 data as stream from Red5 server and i need to play it. I cant play it using media player class as i don't have any url for the stream, nor i cant use files. Another option is to use Audio track…
Ichigo Kurosaki
  • 3,765
  • 8
  • 41
  • 56
0
votes
1 answer

Associating a Visualizer with an AudioTrack alters the audio

I'm using the Visualizer class to create visualizations for an AudioTrack. The problem is associating the Visualizer to the AudioTrack modifies the audio output, it sounds "brighter" and louder, almost as if the Visualizer bytes were being added to…
Steve M
  • 9,296
  • 11
  • 49
  • 98
0
votes
1 answer

getting noise as output instead of mixed sounds

When I run the following code I have no sound as output instead it gives me noise. I have two audio files in my resource folder and using 1 inputstream these are converted to bytearray.If I add mp3 then the app closes unfortunately. private void…
ank
  • 55
  • 1
  • 7
0
votes
3 answers

audiotrack position update windows phone

I am playing audio through the background audio player agent. How do I display a progress bar in the foreground indicating what position is the track currently add, like the built-in music player.
Leo Lin
  • 95
  • 1
  • 10