audiotrack Questions

2

I'm building a screen recorder plugin for chrome store. I'm adding microphone's audio track to the media stream that contains (Screen's video track + System audio track). So final stream contain 2 ...
Highbred asked 6/9, 2017 at 11:39

4

Solved

I have managed to play audio files using ffmpeg and AudioTrack class in my android project. I can change the speed of audio using AudioTrack class setRate method. But it also change the pitch of au...
Unrestraint asked 29/6, 2012 at 10:20

2

I am trying to play sound on speaker even if headphones are on, BUT if there is music playing in background, I want the music to be played on headphones until the sound is played. So I am taking ...

3

Solved

I'm experimenting with AudioTrack class. Basically, my app has to generate a sound when the user touches a specific object on screen. I've used this example as a guide. My app seems to work as it ...
Shoeshine asked 2/7, 2012 at 18:13

2

Solved

Currently I'm using AudioTrack passing to it audio data from native layer to play. It seems I can use OpenSL ES in the native layer instead of AudioTrack in Java. What are the supposed advantages...
Perceval asked 25/6, 2012 at 20:32

5

Should I use AudioTrack, SoundPool or MediaPlayer if I need to be able to: play multiple audio files, with different duration, like 5 to 30 seconds. set the volume independently for right / left c...
Thundering asked 23/11, 2012 at 10:25

1

Solved

I am having a issue in combining two audio tracks into one, in order to add the whole merged audio to a video track. this.promises = [navigator.mediaDevices.getUserMedia({ audio: true, video: true...
Gratulant asked 6/11, 2020 at 15:52

2

Solved

Is it possible to play wav files with AudioTrack from the resources folder raw? It tried many ways to reference the raw files in my Android project, but I got a lot of exceptions. This is what I h...
Aceous asked 4/9, 2012 at 12:38

4

Solved

I am currently developing an Android Application that has audio recording and playing. I am new to dealing with audio and I'm having some trouble with encoding and formats. I am able to record an...
Jeannajeanne asked 17/5, 2016 at 16:12

4

Solved

In my Android App, I would like to take in some audio from the mic of the smartphone and play it immediately, live, like a microphone, with no lag. I am currently thinking of using AudioRecord and ...
Bacteriostasis asked 28/12, 2015 at 7:27

1

I am testing the concept of an Android application that allows you to stream Bluetooth over RFCOMM (from PC to phone). I am able to transfer audio from my computer to the phone no problem and start...
Hammonds asked 10/9, 2017 at 22:51

1

I have an android application which streams videos with ExoPlayer. I want to add language support to the streams. What languages the stream will have, must be taken from the stream's metadata. In E...
Alphonsealphonsine asked 9/5, 2019 at 15:22

1

Solved

I encountered a severe problem of memory leak when AudioTrack and MediaSync are used together. It seems to me, the problem is that AudioTrack doesn't release some native resources. As a result, the...
Imbibition asked 15/3, 2019 at 7:39

2

Solved

I have an Android app with single button. When the button is clicked, the app starts playing (looping) sound loaded with SoundPool. When the button is clicked again, the sound is stopped, and then ...
Jamisonjammal asked 25/3, 2017 at 14:45

3

Solved

I am wondering if I need to call release on an audio track? For example, in my following code I instantiate a AudioTrack instance in a method, and do not call release on it (because that stops pla...
Sectionalize asked 17/2, 2016 at 0:55

0

I have noticed that AudioTrack.setPlaybackPositionUpdateListener() sometimes does not seem to work as intended (at least in Android Studio emulators from API 19-22). I've made a little test progra...
Thais asked 16/5, 2018 at 23:30

2

Solved

In Android the getPlaybackHeadPosition() method of AudioTrack class returns the playback head position expressed in frames ,what is its equivalent value in milli seconds?
Lovage asked 1/5, 2012 at 9:44

3

Solved

I'm getting this AudioTrack warning AUDIO_OUTPUT_FLAG_FAST denied by client in my Android app for a button I'm subclassing. I can hear a click when tapping on the button so is this anything to w...
Pylorectomy asked 7/1, 2015 at 13:6

4

Background I've succeeded uploading an audio file (3gp) into Google-Drive. Now I want to be able to play the file within the app. The Google Drive API only allows to get the input stream of the...

1

I have my own implementation of TrackRenderer for an mp3 decoder, that I integrated. When a lollipop device goes to standby and comes back, it's not always repeatable but the audio starts to stutte...
Ido asked 29/7, 2015 at 17:49

2

Solved

I'm using AudioTrack to play a sequence of sine waves, but when I run it on my HTC M9, it plays only part of the samples, and how long it will play is random. e. g. I have 20 tones to play, but it ...
Timmy asked 19/1, 2016 at 10:5

4

Solved

I have an app in which I use an AudioTrack in streaming mode to play dynamically generated audio. The app doesn't have to respond instantaneously to inputs, so the latency issues don't bother me fo...
Anethole asked 4/4, 2013 at 4:41

3

I have a feature I want to transition over to use Androids AudioTrack instead of MediaPlayer, due to a few well known bugs with MediaPlayer, such as the small gap that appears between looping track...
Aristippus asked 24/3, 2016 at 1:17

4

I am trying to play a synthesized sound (basically 2 sine waves and some noise) using the AudioTrack class. It doesn't seem to be any different than the SourceDataLine in javax.sound.sampled, BUT t...
Clairclairaudience asked 29/4, 2013 at 11:25

1

In Android 4.4.2, I am using MediaCodec to decode mp3 files. I'm using queueInputBuffer() to queue an input mp3 encoded frames and dequeueOutputBuffer() to get the decoded frames. But decoder giv...
Fechner asked 25/1, 2016 at 10:21

© 2022 - 2024 — McMap. All rights reserved.