Questions tagged [audioeffect]

Anything related to audio effects, i.e. ways to alter the sounds produced by a system or an application. For example this tag may applied to questions related to sound equalization, amplification, dynamics compression (NOT audio file compression), distortion (as special effect), etc.

Anything related to audio effects, i.e. ways to alter the sounds produced by a system or an application. For example this tag may applied to questions related to sound equalization, amplification, dynamics compression (NOT audio file compression), distortion (as special effect), etc.

54 questions
13
votes
1 answer

Equalizer not always supported, even when api >= 9?

before enabling equalizer capabilities, I check for api level to make sure it's equal or greater than 9. From the reports I'm getting from my users, it seems that some exceptions are thrown anyway : the code eq = new Equalizer(0,…
elgui
  • 3,303
  • 4
  • 28
  • 37
9
votes
2 answers

android AcousticEchoCanceler doesn't seem to work on most devices

I am building an application which requires the mic to cancel any sound coming from the speaker. It seems that this issue is almost a conspiracy on-line as others with the exact same problem were never responded to for an extended duration.…
Said Afifi
  • 101
  • 1
  • 3
8
votes
1 answer

Android Audio effect on wav file and save it

Requirement Android open a .wav file in sd card, play it , add some effect (like echo, pitch shift etc), save the file with effect. Simple :( What I know I can open and play file using Soundpool or MediaPlayer. I can give some effect while playing…
8
votes
3 answers

Android MediaPlayer with AudioEffect : Getting Error (-22,0)

Well, simply this is my requirement.. I have a WAV file, I want to open it, add some effects, and play. I am using MediaPlayer to play file, and PresetReverb to add some effects. This is my code public void playSound(){ String fullPath =…
Krishnabhadra
  • 34,169
  • 30
  • 118
  • 167
7
votes
2 answers

UnsupportedOperationException AudioEffect: invalid parameter operation

I'm getting an UnsupportedOperationException error on an equalizer on this line of code. bassBoost.setStrength((short) bassBoostPos); Here's the code equalizer = new Equalizer(0, 0); if (equalizer != null) { equalizer.setEnabled…
Julia
  • 1,207
  • 4
  • 29
  • 47
7
votes
1 answer

android app keeps crashing audioEffect error code -1

I put some code in for continuous generation and playback of a sine wave inside my main activity for my app and created a PresetReverb object to test it out on the sine wave. But, every time I launch it, the app crashes, and it generates this in the…
Kevin Ossia
  • 179
  • 1
  • 3
  • 9
3
votes
1 answer

Android PresetReverb and EnvironmentalReverb not working

I think that I read everything about this problem but haven't found a working answer. So can anybody help with adding reverb to mediaplayer? Here is my code adding PresetReverb mediaPlayer = MediaPlayer.create(this, R.raw.song) val presetReverb =…
3
votes
0 answers

Android: Attaching effect to SoundPool sound?

I have an Android application which uses android.media.SoundPool to play audio cues for the user. It works as expected, but I'd like to be able to add effects to the playback (via android.media.audiofx.AudioEffect subclasses). I understand how audio…
Douglas Henke
  • 355
  • 3
  • 12
3
votes
0 answers

processes started with Runtime.getRuntime().exec() candidates for killing?

The problem with most (if not all) equalizer apps for android is they getting killed when OS runs low on resources. (Some have the ability to restart after a short timeout) If you wear earphones when the app suddenly dies, the volume may suddenly…
basin
  • 3,949
  • 2
  • 27
  • 63
3
votes
1 answer

Android's PresetReverb doesn't work?

I'm developing a small audio player with support for Android's built-in audio effects (like EnvironmentalReverb). So far I was having a problem with having it launching without crashing and I solved the issue by adding a missing permission to…
2
votes
0 answers

Java Basic Audio Effects and Crop on OGG Vorbis

I'm working on a project in Java where I need to take an OGG Vorbis sound file of unknown length, and crop it into individual 1-second segments, then apply a fade out effect to all of those segments as well as a fade in to the first segment. Then…
iso2013
  • 43
  • 7
2
votes
1 answer

how to set audio virtualizer properly

I am trying to make an android equalizer but I am not able to use the virtualizer properly .Not Visualizer this is some piece of my code the app is not getting crashed but it is just not working vr = new Virtualizer(0,…
Neelay Srivastava
  • 1,041
  • 3
  • 15
  • 46
2
votes
0 answers

java.lang.RuntimeException: Cannot initialize effect engine for type: 47382d60-ddd8-11db-bf3a-0002a5d5c51b Error: -3

I am getting the following error in equalizer of my music app. E/AudioEffect: set(): AudioFlinger could not create effect, status: -38 E/AudioEffects-JNI: AudioEffect initCheck failed -3 E/AudioEffect-JAVA: Error code -3 when initializing…
Waylent
  • 175
  • 1
  • 1
  • 11
2
votes
1 answer

How to implement a Pitch Effect in Java? (FFT, IFFT, Amplitude, Phase)

I use the apache commons math library for transforming the FFt and IFFT on my audio sample buffers. The outout of the FFT gives me an array of complex numbers. The frequencies mirror in the middle. With a sample buffer size of 4096 samples I get…
thiloilg
  • 1,733
  • 2
  • 18
  • 23
2
votes
0 answers

PresetReverb doesn't work at all why?

im a testing my audiorecording application for android im launching an application to be audio recording in real time with audio effects as below it was applied to equalizer, bass boost, presetreverb API which developer.android provides in the…
1
2 3 4