Demos "Simple recorder" not work in Windows 7

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

Demos "Simple recorder" not work in Windows 7

volenrog

Tested on two systems (Win7)... in Windows 10 - Ok. Help!
Reply | Threaded
Open this post in threaded view
|

Re: Demos "Simple recorder" not work in Windows 7

fredvs
Administrator
This post was updated on .
Hello Volenrog and welcome to uos forum.

>Tested on two systems (Win7)... in Windows 10 - Ok. Help!

When does the crash appear, when you click on "Start" (record) button or "Stop" (record) or "Play saved file" button?
Do you get the crash when choosing to save as "ogg" or "wav" or both?

Do you get the same error when compiling with fpc 32 bit?

Did you use the last version of uos?


Reply | Threaded
Open this post in threaded view
|

Re: Demos "Simple recorder" not work in Windows 7

volenrog
fredvs wrote
Do you get the crash when choosing to save as "ogg" or "wav" or both?
All variants from example.

fredvs wrote
Do you get the same error when compiling with fpc 32 bit?
FPC and Win7 - 64 bit ver

fredvs wrote
Did you use the last version of uos?
2023.03.03 from Lazarus Manager and from Github (v2240422)
Reply | Threaded
Open this post in threaded view
|

Re: Demos "Simple recorder" not work in Windows 7

fredvs
Administrator
Hello.

I need more infos to be able to help you because I dont have a Windows 7 machine to test.

>>    Do you get the crash when choosing to save as "ogg" or "wav" or both?
> All variants from example.

So it seems that the crash comes at recording.
Did you try to load at init of program the older Portaudio.dll library that is in /uos/examples/lib/Windows/64bit/LibPortaudio-64old.dll ?

Did you try to debug the program, did you get a error message and what message?

Do you get crash also when running SimplePlayer demo, when choosing test.org or test.wav?

>> Do you get the same error when compiling with fpc 32 bit?
>FPC and Win7 - 64 bit ver

OK, but Windows 7 is multi-arch so it can also run 32 bit applications.
Did you try to compile+run simplerecorder demo using FPC 32 bit (and so the libraries 32 bit)?

Reply | Threaded
Open this post in threaded view
|

Re: Demos "Simple recorder" not work in Windows 7

volenrog
This post was updated on .
Hi.
fredvs wrote
Did you try to load at init of program the older Portaudio.dll library that is in /uos/examples/lib/Windows/64bit/LibPortaudio-64old.dll ?
Yep...

fredvs wrote
Did you try to debug the program, did you get a error message and what message?
When select the option "wav" debugger show this info: <uos.pas>

On "ogg" this: <uos_libsndfile.pas>


fredvs wrote
Do you get crash also when running SimplePlayer demo, when choosing test.org or test.wav?
No, it's ok.

fredvs wrote
Did you try to compile+run simplerecorder demo using FPC 32 bit (and so the libraries 32 bit)?
No, my proj is 64 bit...
Reply | Threaded
Open this post in threaded view
|

Re: Demos "Simple recorder" not work in Windows 7

fredvs
Administrator
Hello.

Hum, it seems to have problem with the default device.

Could you give a screenshot of the result of the demo deviceinfos.lpi ?
Reply | Threaded
Open this post in threaded view
|

Re: Demos "Simple recorder" not work in Windows 7

volenrog
fredvs wrote
Could you give a screenshot of the result of the demo deviceinfos.lpi ?
Reply | Threaded
Open this post in threaded view
|

Re: Demos "Simple recorder" not work in Windows 7

fredvs
Administrator
In reply to this post by fredvs
Re-hello.

Do you have crash in the SimpleRecorder demo when "Save to file" is disabled (with "Listen to Mic" enabled/disabled) ?
Reply | Threaded
Open this post in threaded view
|

Re: Demos "Simple recorder" not work in Windows 7

fredvs
Administrator
Thanks for the screenshot.

There is no default input device assigned in your screenshot.

Could you try to change in main_sr.pas at line 293:
In1Index := uos_AddFromDevIn(PlayerIndex1);  

with this:

 In1Index := uos_AddFromDevIn(PlayerIndex1, 6, -1, -1, -1, -1, -1, -1);
     
or this

 In1Index := uos_AddFromDevIn(PlayerIndex1, 7, -1, -1, -1, -1, -1, -1);

or this

 In1Index := uos_AddFromDevIn(PlayerIndex1, 9, -1, -1, -1, -1, -1, -1);

Reply | Threaded
Open this post in threaded view
|

Re: Demos "Simple recorder" not work in Windows 7

volenrog
In reply to this post by fredvs
fredvs wrote
Do you have crash in the SimpleRecorder demo when "Save to file" is disabled (with "Listen to Mic" enabled/disabled) ?
If "Listen MIC" and "Save to file" is disabled then it's ok!
Reply | Threaded
Open this post in threaded view
|

Re: Demos "Simple recorder" not work in Windows 7

volenrog
In reply to this post by fredvs
fredvs wrote
Could you try to change in main_sr.pas at line 293:
In1Index := uos_AddFromDevIn(PlayerIndex1);  
I try 0 to 9... but still not work :(
Reply | Threaded
Open this post in threaded view
|

Re: Demos "Simple recorder" not work in Windows 7

fredvs
Administrator
Hum, I dont have other idea at the moment.
Can you record something using the the native Windows recorder?
Reply | Threaded
Open this post in threaded view
|

Re: Demos "Simple recorder" not work in Windows 7

fredvs
Administrator
It would be interesting to compile SimpleRecorder demo with FPC 32 bit and see if you get the same bad result.
Reply | Threaded
Open this post in threaded view
|

Re: Demos "Simple recorder" not work in Windows 7

volenrog
fredvs wrote
Can you record something using the the native Windows recorder?
It work

fredvs wrote
It would be interesting to compile SimpleRecorder demo with FPC 32 bit and see if you get the same bad result.
Okay, I'll try sometime...

Reply | Threaded
Open this post in threaded view
|

Re: Demos "Simple recorder" not work in Windows 7

fredvs
Administrator


Maybe using a other release of Portaudio.dll?

There is some there:
https://github.com/spatialaudio/portaudio-binaries

also here:
https://github.com/adfernandes/precompiled-portaudio-windows
Reply | Threaded
Open this post in threaded view
|

Re: Demos "Simple recorder" not work in Windows 7

fredvs
Administrator
Re-hello.

Maybe your Windows 7 has not defined the default input.
Here (maybe) some light (Audacity uses also Portaudio):
https://www.sevenforums.com/sound-audio/311259-input-device-not-available.html

(I agree, lot of maybe...)
Reply | Threaded
Open this post in threaded view
|

Re: Demos "Simple recorder" not work in Windows 7

volenrog
fredvs wrote
Re-hello.

Maybe your Windows 7 has not defined the default input.
Here (maybe) some light (Audacity uses also Portaudio):
https://www.sevenforums.com/sound-audio/311259-input-device-not-available.html

(I agree, lot of maybe...)
Thanks, i'll try.