[Lazarus] Update sound shop my next tutoring project

Marc Weustink marc at dommelstein.nl
Thu May 16 21:37:16 CEST 2019


Just to verify that it isn't caused by your program, just open a temp filestream and write every sample you write to the sdl library also to that stream. When the pops happen. Stop running, close the stream and  import the raw file into audacity. If the spectral view is clean, it is not your generation of tones.
One other thing what can happen is that your buffer underflows. Ie there are no samples to play anymore 

Marc

On May 16, 2019 9:08:10 PM GMT+02:00, Anthony Walter <sysrpl at gmail.com> wrote:
>Just an update. I've added the ability to program music with it. You
>have
>the ability to either load music from a file or create music by adding
>notes to the piano Music property.
>
>http://cache.getlazarus.org/videos/sound-shop-music.mp4
>
>Marc,
>
>The phase of each note is now set to a completely completely random
>value
>right before it a note is pressed, but I still get the pops and
>clicking. I
>am nearly 100% sure the problem is with Linux, SDL 2, or my hardware. I
>say
>this because I am experiencing multiple clicks or pops when within the
>holding of one constant tone.


More information about the lazarus mailing list