Author Topic: [Android] How to modify AudioSource  (Read 658 times)

lefjucabro

  • Posts: 13
[Android] How to modify AudioSource
« on: 21 Aug '23 - 10:46 »
Hello,

On some Android devices, I have bad levels on a different ways: 10 times greater, 4 times lower, levels reduction on low frequencies, ... So I decided to modify AudioSource of my acquisition task and set UNPROCESSED value:
Code: [Select]
Delphi
FAudioRecord := TJAudioRecord.JavaClass.init(TJMediaRecorder_AudioSource.JavaClass.UNPROCESSED, FSampleRate, FChannelConfig, FAudioFormat, FTailleBufferBytes);

By doing this, I thought having real raw datas from my sensor but I still have levels issues.

I am using Bass for iOS and want to evaluate Bass for Android hoping it would fix my problem.
With Android Bass library, could I change my AudioSource ? If yes, how can I do it ?

Regards

Ian @ un4seen

  • Administrator
  • Posts: 26177
Re: [Android] How to modify AudioSource
« Reply #1 on: 22 Aug '23 - 14:08 »
BASS doesn't currently provide access to the UNPROCESSED option (only GENERIC = device 0 and CAMCORDER = device 1), but from what you say, it doesn't sound like it helps in your case anyway. Perhaps the effects that you're hearing are something else device-specific, and the device has its own options/settings for it?

lefjucabro

  • Posts: 13
Re: [Android] How to modify AudioSource
« Reply #2 on: 23 Aug '23 - 09:39 »
Thanks Ian for your reply.

I dug into the phone settings hoping finding a solution but I won't. Android devices parameters are not easy to find with google layer, manufacturer layer...
I contacted the phone manufacturer but they can't help me...

The thing that is weird is that levels are sometimes good (hopefully) and sometimes wrong with several levels issues (10 times greater, 4 times lower...).
As I cannot find phone settings, I want to delete all audio device settings using bass: topic https://www.un4seen.com/forum/?topic=20192.0

Ian @ un4seen

  • Administrator
  • Posts: 26177
Re: [Android] How to modify AudioSource
« Reply #3 on: 23 Aug '23 - 14:23 »
Are you sure the problem is caused by effects/processing? Might it instead be a hardware/microphone defect? For reference, is there any recording app that the problem doesn't happen with on an affected device?

lefjucabro

  • Posts: 13
Re: [Android] How to modify AudioSource
« Reply #4 on: 23 Aug '23 - 15:19 »
I don't know if the problem is caused by effects or processing but I want to believe in it  ;)

I am sure that external usb microphone is OK because I tested another one and still have the same errors. Moreover my competitors' applications have the same problem.

That's why I try to remove all effects and processing during recordings.