Re: [hatari-devel] Re: PortAudio replaced

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hi,

I'll try to complete my reply:

1) Which Linux distro and which SDL version are you using?

Distro: Ubuntu 20.04.3 LTS
sdl :     using SDL2 v2.0.10

2) Do you have multiple microphone inputs on your computer? E.g. a
direct mic on the Laptop and one in the dock? If so, could it be that
SDL uses a different default mic than PortAudio?

Yes, at least 1 mic in front and another one at the rear of the computer.

And the headphone I use for my tests is an USB one with a microphone.


are these freely available somewhere?

You can find them here (I don't know if it's free or not, but at least, it's for testing purpose).

If you test with AFM, just stop the equalizer (it makes a very glitchy sound, I've never found why).

http://christophe.bray.free.fr/informatique/falcon/archives/atari_falcon_musique.htm


Is there anything recognizable at all in the "garbage"? Or is it just
random?

Neither of them. Nothing recognisable, but it doesn't sound like garbage or white  noise.

It sounds like a repetitive small looping sound that change the frequency every 3 or 4 seconds.

I can record the sound (tomorrow) if you want.


Frame per buffer at 64, 512 or 8192 doesn't solve the problem.


Could you maybe add a fprintf to the beginning of the
Microphone_Callback statement to see whether nLen contains sane values?

Yes,

with FRAMES_PER_BUFFER = 64 --> nlen = 512

with FRAMES_PER_BUFFER = 512 --> nlen = 2048


I'll give it another look tomorrow.

Regards

Laurent



Le 09/01/2022 à 21:55, Thomas Huth a écrit :
Am Sat, 8 Jan 2022 22:56:31 +0100
schrieb Laurent Sallafranque <laurent.sallafranque@xxxxxxx>:

I confirm my first try of this afternoon.

The microphone is broken.
Too bad :-(

Some questions:

1) Which Linux distro and which SDL version are you using?

2) Do you have multiple microphone inputs on your computer? E.g. a
direct mic on the Laptop and one in the dock? If so, could it be that
SDL uses a different default mic than PortAudio?

I've tested the version n-1 and the sound is OK with AFM and Winrec.
I tried to find these programs on the internet, but so far I failed ...
are these freely available somewhere?

I only tested the mic input with WHIP! and it was working fine for me
there.

With the SDL2 version, the sound is garbage, it loops forever, ...
Is there anything recognizable at all in the "garbage"? Or is it just
random?

Something to try: I changed FRAMES_PER_BUFFER from 64 to 512 since 64
seemed to be a very small value for SDL ... does it work different for
you if you change it back to 64?

Could you maybe add a fprintf to the beginning of the
Microphone_Callback statement to see whether nLen contains sane values?

  Thomas





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/