No visual feedback.
Closed this issue · 24 comments
Everything I see is a "b" and a #, a ruler from -30 to +30 and a green mic icon. Might be caused by my small screen since it's only 480p.
Thank you very much for your fast feedback! The same behavior occurs on my phone but only when installing the app through F-Droid (not in development mode). I'm looking into it.
Actually, it seems like it should work. If it isn't too much to ask, could you please play the attached sound files (sound_files.zip) over your speakers and tell me whether you see any change? It should look something like this:
There was also an issue with the permissions (the app didn't ask at runtime for the required permission) which you apparently already figured out on your own. Thanks :)! I fixed it but it might take a while for the updated version to appear on F-Droid.
Speaker? Did you mean my microphone? It did ask for 'record audio' permission on my device. I'll report in a few minutes.
It did? That's good to hear :-). I meant the speaker of your notebook or desktop computer (if you happen to be near one and aren't limited to your phone at the moment). Thank you in advance!
The permission issue might have something to do with the Android version. Could you please tell me your version?
Hm, that's strange. If you don't mind, could you please try playing a sound using this site: http://onlinetonegenerator.com/ (with a frequency of e.g. 146 or 110 Hz)?
Thank you! I'll start up an emulator with Android 22 to see what happens.
I had some trouble with callbacks apparently not being called. Initially, I thought there was some issue with the audio input.
Anyhow, the pitch detection did NOT work in the Android 22 emulator (but it did with the emulator for levels 25 and 26). I'll start debugging.
Thanks for the link! Their app seems much more advanced :-).
It turns out that a method was depreciated in versions > 23 (https://stackoverflow.com/questions/32077086/android-onattachcontext-not-called-for-api-23) so that the listener fragment could not invoke the callback on the main activity.
I attached an APK to the release page (https://github.com/gstraube/cythara/releases/tag/v1.2) in case you don't want to wait for the F-Droid update.
Thank you very much for your help and patience!
Seems like at least it could serve as a source of inspiration. However, I can't install it through F-Droid at the moment.
Speaking of which, an update is available through F-Droid but is not the one which contains the fix, although the metadata has already been updated (https://gitlab.com/fdroid/fdroiddata/commit/40fc61e2e6bbe10fa13c09464773ac88c3672b47). I guess it should be available tomorrow or the day after tomorrow.
The update has been published.
Sorry, I just now saw your message. Did you try the sounds from http://onlinetonegenerator.com/? If possible, could you send me the logging output?
I'll look into that, seems like a good idea. Surely it will also be useful for the future :-).
The microphone symbol is now colored green if the app could start recording and it remains red otherwise. This should narrow down the cause for the problem.
Okay, now it works for some reason. Whatever you did, thanks!