Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [audiotrack]

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

audiotrack
0 votes
0 answers
23 views

AudioFormat builder setEncoding supported encodings doubtful

I'm trying to set the encoding for an instance to ENCODING_AAC_LC This is a snippet of what I'm trying to do ref = JNI_CALL_OBJECT( p_afmt_builder, jfields....
adelden22's user avatar
1 vote
1 answer
70 views

How can I attach more than one auxiliary effect to Android AudioTrack?

I've read all the documentation on attaching aux effects to AudioTrack but can't understand how I can attach more than one effect. Attaching an effect seems simple enough. But how does the ...
jho's user avatar
  • 263
1 vote
0 answers
62 views

AudioTrack is disabled due to previous underrun error on releaseBuffer()

I'm developing an Android app that uses AudioTrack for audio playback. I have encountered an issue where the AudioTrack gets disabled due to a previous underrun error when calling releaseBuffer(). ...
Hasan Altay's user avatar
0 votes
0 answers
30 views

Playing audio by writing pcm data in flutter(like AudioTrack for Android)

I've just started writing android/ios application with Flutter. I would like to feed 32bit float data continuously to play the audio like AndioTrack in Android. Is there any suitable way on flutter? I'...
Roid Ando's user avatar
0 votes
0 answers
50 views

track x disabled due to previous underrun, restarting - warning when using high quality source URL in just_audio

I am getting some warning when using high quality url of same youtube video in flutter just_audio and also the song seem to be playing cause the duration and current timestamp is running fine but no ...
korner253vn's user avatar
0 votes
0 answers
31 views

How can I write a short[] array to a .wav file in Java?

I have a simple music application. It uses AudioTrack to playback music the user has created, and AudioTrack requires audio data in the form of a short[]. I would like to implement an "export&...
16-bit-apps's user avatar
0 votes
0 answers
26 views

TarsosDSP Skip Function

I'm trying to implement a sort of a play/pause function on a recorded bit of Audio using TarsosDSP for Android. Since it doesn't natively support it. I'm doing the following. OnPauseButtonPressed() ...
fujinman's user avatar
  • 125
0 votes
0 answers
153 views

Android. Using the AudioTrack.write method in coroutine context makes app crash

I have the lines of code below. I am trying to play a stream and I am using AudioTrack. CoroutineScope(Dispatchers.IO).launch { withContext(Dispatchers.IO) { ...
Stefan Olteanu's user avatar
0 votes
0 answers
37 views

Audio tracking with agora

I would like to find out how long each person speaks during an online meeting using Agora Web. I looked around and tried writing some code to accomplish this but it didn't work as expected. Is there a ...
Jinx Yoshi's user avatar
0 votes
1 answer
76 views

Android Java sound recorded with AudioRecord has noise when played

I'm recording voice using AudioRecord, send it to server, receive it on both Android and Web. On Android, I'm playing the audio using AudioTrack, and there's a "tttttt" noise. On web, such ...
Amir's user avatar
  • 125
0 votes
0 answers
30 views

Android AudioTrack with setLoopPoints cuts out early

I am writing a simple android compose app in which I want to do some basic synthesized sounds. My starting problem is getting a sine wave to repeat forever. For now, I am trying to get AudioTrack, ...
dlw's user avatar
  • 275
0 votes
0 answers
56 views

How to control the volume of audio track in mediastream object?

I have been working on a audio/video streaming site using the AWS IVS service in angular. I have created a media stream object by creating capture when the audio elements plays the music and then add ...
Hari Dulal's user avatar
1 vote
1 answer
315 views

Android: Record and Playback audio from different devices

I'm trying to record and play audio using different devices with AudioRecord and AudioTrack and setting preferredDevice to set the devices to each. audioRecord = AudioRecord( ...
ajw's user avatar
  • 2,572
2 votes
1 answer
106 views

Audio sample not playing as expected on android11

I am trying to extract and play audio samples from a video file in Android 11. However, I have followed some tutorials from the official documentation, but it still doesn't work. All I get is noise ...
EinStyn's user avatar
  • 93
0 votes
1 answer
657 views

Type of a video HTML element in Typescript

I am trying to detect the presence of audio from a video loaded within a video HTML element compatible with both Mozilla and Chrome. I am using React Player package. The following code is a sample of ...
Nickname's user avatar
  • 115

15 30 50 per page
1
2 3 4 5
29