B4A Class [B4x] xFFT Class and b4xlib

SimonElck

Member
Licensed User
Here is my small first tuner project. It analyzes the fundamental frequency of a soundwave in two steps:
  1. ...
Hi
I tried this (I am only beginning again with b4a after a long time).
I also tried
xFFTDemo.zip and FFT_Record.zip
But nothing works.
I did not change one line but get this error:

*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Error occurred on line: 123 (Main)
java.lang.IllegalStateException: startRecording() called on an uninitialized AudioRecord.
at android.media.AudioRecord.startRecording(AudioRecord.java:1004)

as soon as I hit the 'Start' button

Is it to do with permissions? Or something else?
Thanks
 

klaus

Expert
Licensed User
Longtime User
I cannot answer for the Tuner project, you need to ask skrjabin.

I downloaded the xFFTDemo.zip from the forum and it works as expected.
What is your problem?

I downloaded the FFTRecord.zip file from the forum and I get the same error as you.
It is a permission problem, new Google rules, I hadn't tested this project for a wile

The project has been updated in the first post.
 

SimonElck

Member
Licensed User
Thanks, the permission thing was the problem. Same for the Tuner project.
Your new upload solved this

xFFTDemo worked well, sorry

Thanks again
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…