Recent

Author Topic: Sound in raspberry pi  (Read 17975 times)

openscoreboard

  • New Member
  • *
  • Posts: 30
  • openscoreboard
Re: Sound in raspberry pi
« Reply #15 on: January 26, 2016, 03:14:36 pm »
I uninstall ALSA but "choppy sound" continue....

Any idea?

mig-31

  • Sr. Member
  • ****
  • Posts: 308
Re: Sound in raspberry pi
« Reply #16 on: January 26, 2016, 03:34:15 pm »
Hi,

it sounds strange that you can play sound without ALSA. I think there is no difference between ARM an x86 platform in Linux: you need ALSA to play sound, because ALSA is a sound card driver.

Lazarus 4.0 - OpenSuse Leap 15.4, Mageia 8, CentOS 7

openscoreboard

  • New Member
  • *
  • Posts: 30
  • openscoreboard
Re: Sound in raspberry pi
« Reply #17 on: January 26, 2016, 03:49:59 pm »
With out whitout ALSA in my rpi the sound is poor



A sample with ALSA installed

https://youtu.be/D7Ph_IJqpUo

mig-31

  • Sr. Member
  • ****
  • Posts: 308
Re: Sound in raspberry pi
« Reply #18 on: January 26, 2016, 04:07:27 pm »
Do you use pulse audio in Rasberrian?
Lazarus 4.0 - OpenSuse Leap 15.4, Mageia 8, CentOS 7

Fred vS

  • Hero Member
  • *****
  • Posts: 3734
    • StrumPract is the musicians best friend
Re: Sound in raspberry pi
« Reply #19 on: January 26, 2016, 05:10:45 pm »
Quote
it sounds strange that you can play sound without ALSA. I think there is no difference between ARM an x86 platform in Linux: you need ALSA to play sound, because ALSA is a sound card driver.

uos uses PortAudio library that can deal directly with sound-cards.
But, via config in uos, you may ask to PortAudio to use OSS, or ALSA or PulseAudio.

Quote
A sample with ALSA installed

https://youtu.be/D7Ph_IJqpUo

There is no sound in your video, same for example you give before.
That way it is difficult to understand what is "poor" sound...

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: 3734
    • StrumPract is the musicians best friend
Re: Sound in raspberry pi
« Reply #20 on: January 26, 2016, 05:40:27 pm »
Quote
With out whitout ALSA in my rpi the sound is poor

Have you try to use /uos/examples/deviceinfos.lpi ?

It will show you all the devices recognized by PortAudio.

Maybe, you may try then with a other config:

Code: Pascal  [Select][+][-]
  1.  function AddIntoDevOut(Device: LongInt; Latency: CDouble;
  2.       SampleRate: LongInt; Channels: LongInt; SampleFormat: LongInt ; FramesCount: LongInt ): LongInt;
     ////// Add a Output into Device Output
    //////////// Device ( -1 is default device )  : Try to change here
    //////////// Latency  ( -1 is latency suggested ) )
    //////////// SampleRate : delault : -1 (44100)
    //////////// Channels : delault : -1 (2:stereo) (0: no channels, 1:mono, 2:stereo, ...)  : Try to change here
    //////////// SampleFormat : default : -1 (1:Int16) (0: Float32, 1:Int32, 2:Int16)  : Try to change here
    //////////// FramesCount : default : -1 (= 65536)  : Try to change here
    //  result :  Output Index in array    -1 = error
    /// example : OutputIndex1 := AddIntoDevOut(-1,-1,-1,-1,0);

Fre;D


« Last Edit: January 26, 2016, 05:43:22 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

openscoreboard

  • New Member
  • *
  • Posts: 30
  • openscoreboard
Re: Sound in raspberry pi
« Reply #21 on: February 03, 2016, 09:35:05 pm »
https://youtu.be/51ajloZmOrs

Now work fine!!!
Thanks!!!

Fred vS

  • Hero Member
  • *****
  • Posts: 3734
    • StrumPract is the musicians best friend
Re: Sound in raspberry pi
« Reply #22 on: February 04, 2016, 12:55:58 pm »
Quote
Now work fine!!!
Thanks!!!

Super, I am very happy for you.  ;)

Could you add in attachment or give a link of the uos-libraries that you use for Raspberry pi?
So other people can use it too.

Many 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

openscoreboard

  • New Member
  • *
  • Posts: 30
  • openscoreboard
Re: Sound in raspberry pi
« Reply #23 on: February 04, 2016, 10:47:49 pm »
Rpi work with raspbian (https://www.raspberrypi.org/downloads/raspbian/)

Im use raspbian Jessie (\usr\lib\arm-linux-gnu-eabihf\)

 ;)

Thanks Fred!!


libmpg123...
« Last Edit: February 04, 2016, 10:54:26 pm by openscoreboard »

openscoreboard

  • New Member
  • *
  • Posts: 30
  • openscoreboard
Re: Sound in raspberry pi
« Reply #24 on: February 04, 2016, 10:49:07 pm »
libportaudio...

openscoreboard

  • New Member
  • *
  • Posts: 30
  • openscoreboard
Re: Sound in raspberry pi
« Reply #25 on: February 04, 2016, 10:51:05 pm »
and libsndfile

Fred vS

  • Hero Member
  • *****
  • Posts: 3734
    • StrumPract is the musicians best friend
Re: Sound in raspberry pi
« Reply #26 on: February 05, 2016, 12:55:02 am »
@ openscoreboard.

Many thanks for libraries.

I will add it in /uos/lib/linux/arm/

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