Re: [hatari-devel] Re: PortAudio replaced |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Re: PortAudio replaced
- From: Laurent Sallafranque <laurent.sallafranque@xxxxxxx>
- Date: Mon, 10 Jan 2022 00:11:51 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1641769912; bh=iMLb+aVydU252E/zke0vrHgX3MByxTLhtWJCVw7d8lU=; h=Subject:To:References:From:Date:In-Reply-To:From; b=tOQV7h1sgsLqdTbkxAcAArr3llaWA1LXYBUcRmTQalgQCCQWXKgLsLzQ0vm+UV0KV gicpA1bx1AK6ICI0IFwHCgNuNwLtv7qPqoX7kd9Tlw6xcO24jLR3bLt+putwP2doW8 P7NNAAG3Eg1X1wtlNHtYTQNHD3e4yb4cHEawvamb1gZ7wmDQFRhkNOkzk92sElNFD+ X0gSmfS1SakTP71jJI/WBmx86Y5FD9Z+Qdq0QCu3CYKfN65tQ5EFUNIjEIfqYtfwiX DX6fdkEKXWSRyICaGL40ZNw5RUZEZJZrqKpjY0+xdovj4LCm5Uuq6q5n6fQ5h4lPNM U0DvEL2DtISWQ==
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