Windows 11: simplerecorder error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
79 messages Options
1234
Reply | Threaded
Open this post in threaded view
|

Re: Windows 11: simplerecorder error

NeedUOS
Tested with all combinations of 'Listen MIC', 'Save to file', ogg, wav.
All have the same result:
When playing back the recorded audio, the speed seems to be 4 times.
When listening while recording, the speed seems to be 2 times!
Reply | Threaded
Open this post in threaded view
|

Re: Windows 11: simplerecorder error

fredvs
Administrator
Is it ok with Simple Player demo?

Can you give the binary of the library?
Reply | Threaded
Open this post in threaded view
|

Re: Windows 11: simplerecorder error

NeedUOS
> Is it ok
Yes - with all sample formats, also SoundTouch plugin.

> binary of the library
 How?
Reply | Threaded
Open this post in threaded view
|

Re: Windows 11: simplerecorder error

fredvs
Administrator
I just test here (with a headphone in place of a mic, not the best but it work) with the last binary of spacialaudio and here the sound is ok, but it was tested on wine emulator.
I will try on the Windows 11 machine asap (but it is already late here).

Subsidiary question, if libportaudio64.dll from uos was ok, why do you want one that does not work?
Reply | Threaded
Open this post in threaded view
|

Re: Windows 11: simplerecorder error

NeedUOS
This is what PortAudio says:
This is the new v19.7.0 stable release. We encourage developers to use this because it has many important bug fixes and works with the latest Mac OS and PipeWire.

I say, without an error message, your library looks even better!

The problem now is only the recording. Maybe I just have to find the right custom parameters? By now the example uses in some places the default parameters.
Reply | Threaded
Open this post in threaded view
|

Re: Windows 11: simplerecorder error

fredvs
Administrator
>many important bug fixes and works with the latest Mac OS and PipeWire.

Yes, it is for Unix Oses, it is the one installed on my Linux/BSD system.
I did find difference but it works.

For Windows it is a other story, I dont have seen new development for Windows API in last release and the portaudio devs are unix devs.

But playing with the parameters in uos, maybe you can adapt the new release.
For recording, you can play with parameters latency and buffer size, it could have a impact.
Also try mainly with 16 bit format.

You may try also with a other input device, you can get the list with uos demo DeviceInfos.

Good luck and courage.

Fre;D
Reply | Threaded
Open this post in threaded view
|

Re: Windows 11: simplerecorder error

NeedUOS
I fixed now the sound while recording by switching from -1 to 1 for the channels, which makes sense. With 19.7 the invalid handle error is gone, at least something, what the developers fixed for windows.

By the way: even with 'Save to file' off, a file will be saved.

Good night, till next time.
Reply | Threaded
Open this post in threaded view
|

Re: Windows 11: simplerecorder error

fredvs
Administrator
This post was updated on .
> switching from -1 to 1 for the channels
You may also after
 In1Index := uos_AddFromDevIn(PlayerIndex1);
do  
numchannels :=  uos_InputGetChannels(PlayerIndex1, IIn1Index);
to get the number of channels of the sound card.
The default is 2/stereo.

>With 19.7 the invalid handle error is gone,
For what parameter?
Reply | Threaded
Open this post in threaded view
|

Re: Windows 11: simplerecorder error

fredvs
Administrator
In reply to this post by NeedUOS
>By the way: even with 'Save to file' off, a file will be saved.

Ooops ? I will check this, thanks to note it.
Reply | Threaded
Open this post in threaded view
|

Re: Windows 11: simplerecorder error

fredvs
Administrator
In reply to this post by fredvs
And yes, the order should be first uos_AddFromDevIn(), then uos_AddIntoDevOut().
OK, I will update the demo.
Reply | Threaded
Open this post in threaded view
|

Re: Windows 11: simplerecorder error

fredvs
Administrator
Ok, updated Simple Recorder in last commit.
But i have still doubt about the result of the saved file.
It is set to stereo and normally if the input is mono, uos will format it into a stereo (2xmono) format.
But I cannot try it because my sound card has a stereo input.
So maybe there is something to fix there too.
Reply | Threaded
Open this post in threaded view
|

Re: Windows 11: simplerecorder error

fredvs
Administrator
This post was updated on .
Hello.

OK, I am on a Windows 11 machine and try the last portaudio64bit.dll from spacialaudio.
And indeed with that library, with last commit of uos, the saved file is not ok.
But the "listen to mic" is ok.
With uos/lib version of portaudio, the audio-input is recognized as stereo (that is normal) but with last spacialaudio the audio-input is recognized as mono.



Fre;D





Reply | Threaded
Open this post in threaded view
|

Re: Windows 11: simplerecorder error

fredvs
Administrator
OK, I am back on my Linux machine.

Imho, the last version of portaudio64bit.dll has problems.
On Windows 11 the input of my audio card is recognized as mono but using the previous release it is stereo.
My audio-input is stereo.

I updated the Simple Recorder demo in last commit.

But with last release of portaudio there is still a problem with the record into wav.
I did not find a solution yet.
The good news is that recording into ogg is ok.

Using the previous release of portaudio is ok for all here.
Reply | Threaded
Open this post in threaded view
|

Re: Windows 11: simplerecorder error

fredvs
Administrator
OK, fixed in last commit.
Now you should save to wav also with last version of portaudio64bit.dll.

I find strange that the input device is now found as mono but uos should be able to deal with that now.

Have a nice day.

Fre;D

Reply | Threaded
Open this post in threaded view
|

Re: Windows 11: simplerecorder error

NeedUOS
> there is still a problem with the record into wav
Saw this too. Fixed it:
uos.zip
Reply | Threaded
Open this post in threaded view
|

Re: Windows 11: simplerecorder error

NeedUOS
> Using the old release of portaudio
deviceinfos.exe shows, that my microphone has two channels, which is clearly false.

Using the new release of PortAudio, shows correctly one channel.
Reply | Threaded
Open this post in threaded view
|

Re: Windows 11: simplerecorder error

fredvs
Administrator
Hello NeedUOS.

Is it ok with last commit of uos?
You should save recording into mono or stereo, even if your input is mono or stereo.
Reply | Threaded
Open this post in threaded view
|

Re: Windows 11: simplerecorder error

NeedUOS
Good morning, Fred!

> Is it ok with last commit of uos?

No, since it immediately crashes with 'Invalid Handle'.

-----------

Why don't you use an image for the UOS logo?
Reply | Threaded
Open this post in threaded view
|

Re: Windows 11: simplerecorder error

fredvs
Administrator
>No, since it immediately crashes with 'Invalid Handle'.

Not sure to understand, what app crash, Simple Recorder ? when?

>Why don't you use an image for the UOS logo?

Yes maybe, it was done 10 years ago, it should be removed maybe.
Reply | Threaded
Open this post in threaded view
|

Re: Windows 11: simplerecorder error

NeedUOS
It's about deviceinfos.exe. Sorry, I started it from Lazarus with debug on.
When starting from explorer instead, loading the UOS LibPortaudio-64.dll it is not crashing and shows two channels for my microphone, which is wrong.

When starting from explorer or from Lazarus with debug on, loading the new compiled LibPortaudio dll, v19.7, it is not crashing and shows one channel for my microphone, which is correct.

1234