Recent

Author Topic: UOS recording mono audio source  (Read 23085 times)

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: UOS recording mono audio source
« Reply #30 on: April 25, 2016, 03:08:03 pm »
@ mrisco -> thanks for the examples, I will check it asap.
Write you later.

Fre;D
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: UOS recording mono audio source
« Reply #31 on: April 25, 2016, 11:03:45 pm »
Hello mrisco.

It is clearly a buffer-frames-count problem, so we will resolve it...

But step by step,...

Could you please try with uos.pas in attachment ?

PS: I will need your help to test, because I do not have a mono input device.

Thanks.

Fre;D
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

M.A.R.C.

  • Jr. Member
  • **
  • Posts: 68
Re: UOS recording mono audio source
« Reply #32 on: April 26, 2016, 02:11:15 am »
Hi Fred, I'm happy to help us to test and solve this.
I tried the new uos.pas, but not change at all.

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: UOS recording mono audio source
« Reply #33 on: April 26, 2016, 02:25:45 pm »
Quote
I tried the new uos.pas, but not change at all.

OK, could you try with new attachment ?

Can you test this :  mono/stereo/ 16/32 bit and see if there is one ok ?

Code: Pascal  [Select][+][-]
  1. addIntoFile(PlayerIndex1, Pchar(test.wav) ,-1,1,1,-1 );  // mono 32 bit

Code: Pascal  [Select][+][-]
  1. addIntoFile(PlayerIndex1, Pchar(test.wav) ,-1,2,1,-1 );  // mono to stereo 32 bit

Code: Pascal  [Select][+][-]
  1. addIntoFile(PlayerIndex1, Pchar(test.wav) ,-1,1,2,-1 );  // mono 16 bit

Code: Pascal  [Select][+][-]
  1. addIntoFile(PlayerIndex1, Pchar(test.wav) ,-1,2,2,-1 );  // mono to stereo 16 bit

And also with AddFromDevIn() ->

Code: Pascal  [Select][+][-]
  1. AddFromDevIn( -1, -1, -1, -1, 1, -1);  // input 32 bit

Code: Pascal  [Select][+][-]
  1. AddFromDevIn( -1, -1, -1, -1, 2, -1);  // input 16 bit


Thanks.

Fre;D



 
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

M.A.R.C.

  • Jr. Member
  • **
  • Posts: 68
Re: UOS recording mono audio source
« Reply #34 on: April 28, 2016, 02:29:09 am »
BINGO!!

With the new uos.pas my wav recordings were ok!

Only when I choose to monitor the recordings the output vibrate and it is distorted.

Thank you.
« Last Edit: April 28, 2016, 02:32:53 am by mrisco »

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: UOS recording mono audio source
« Reply #35 on: April 28, 2016, 03:17:12 pm »
Quote
BINGO!!

With the new uos.pas my wav recordings were ok!

Yep, I am really happy for you.  ;D

Quote
Only when I choose to monitor the recordings the output vibrate and it is distorted.

Could you give the code you are using ?

[EDIT] Do you monitoring (direct-wire) in stereo or mono ?
It is possible that if you do monitoring from a mono input device into a stereo output device ->  there is problem.
If it is the case, i will need your help once again to test it. (I do not have a mono input device)

Thanks.

Fre;D
« Last Edit: April 28, 2016, 03:30:23 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: UOS recording mono audio source
« Reply #36 on: April 28, 2016, 07:51:26 pm »
Quote
    Only when I choose to monitor the recordings the output vibrate and it is distorted.

Hello.

Could you try please with new uos.pas in attachment ?

Fre;D

« Last Edit: April 28, 2016, 08:27:08 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

M.A.R.C.

  • Jr. Member
  • **
  • Posts: 68
Re: UOS recording mono audio source
« Reply #37 on: May 05, 2016, 02:12:44 am »
Hi, sorry, I was a little busy. I will going to test the new uos.pas this week.

M.A.R.C.

  • Jr. Member
  • **
  • Posts: 68
Re: UOS recording mono audio source
« Reply #38 on: May 25, 2016, 08:02:16 pm »
Hi, I was able to test the last "debug4" uos file, all seems to be ok. Thanks.

MRisco

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: UOS recording mono audio source
« Reply #39 on: May 26, 2016, 01:44:57 pm »
Quote
Hi, I was able to test the last "debug4" uos file, all seems to be ok. Thanks.
MRisco

 ;)

OK, fixes committed in last release.

Fre;D
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

 

TinyPortal © 2005-2018