Re: [pulseaudio-discuss] Audible plop at beginning when using pcat-simple

2021-09-04 Thread Sean Greenslade
On Fri, Sep 03, 2021 at 11:54:04AM +0200, mindfsck wrote: > > Apologies for leading you down a dead-end. I've taken a closer look > > at the code and found what the problem is. The pacat-simple.c example is > > expecting raw PCM sample data in the file. Since you're giving it a .WAV > > file,

Re: [pulseaudio-discuss] Audible plop at beginning when using pcat-simple

2021-09-03 Thread mindfsck
Thank you Sean, that did indeed the trick and my files play nicely now! Do you expect to add this WAV header detection (and skipping) in a future release or do you restrict it to PCM (and user code must skip)? On Fri, Sep 3, 2021 at 8:05 AM Sean Greenslade wrote: > On Sun, Aug 29, 2021 at

Re: [pulseaudio-discuss] Audible plop at beginning when using pcat-simple

2021-09-03 Thread Sean Greenslade
On Sun, Aug 29, 2021 at 07:02:25PM +0200, mindfsck wrote: > or use 'vlc' or use any Video/Audio playback you have on your machine.Sigh, > I may just reach out for alternative APIs instead of trying to convince > people that this might be a bug in the simple API you provide. Apologies for leading

Re: [pulseaudio-discuss] Audible plop at beginning when using pcat-simple

2021-08-29 Thread mindfsck
or use 'vlc' or use any Video/Audio playback you have on your machine.Sigh, I may just reach out for alternative APIs instead of trying to convince people that this might be a bug in the simple API you provide. On Sun, Aug 29, 2021 at 6:53 PM mindfsck wrote: > I repeat myself...use 'paplay' or

Re: [pulseaudio-discuss] Audible plop at beginning when using pcat-simple

2021-08-29 Thread mindfsck
I repeat myself...use 'paplay' or 'aplay' and the result is fine. On Sun, Aug 29, 2021 at 6:31 PM guest271314 wrote: > How do we know what the expected result is? > > On Sun, Aug 29, 2021 at 5:01 AM mindfsck wrote: > >> you could try is making use of the buffering attributes in >>>

Re: [pulseaudio-discuss] Audible plop at beginning when using pcat-simple

2021-08-29 Thread guest271314
How do we know what the expected result is? On Sun, Aug 29, 2021 at 5:01 AM mindfsck wrote: > you could try is making use of the buffering attributes in >> pa_simple_new. Specifically, setting prebuf to a suitable value. >> > > I tried setting prebuf to -1, 0, 1, 2, 4, 16, and 320. Made no

Re: [pulseaudio-discuss] Audible plop at beginning when using pcat-simple

2021-08-29 Thread mindfsck
> > you could try is making use of the buffering attributes in > pa_simple_new. Specifically, setting prebuf to a suitable value. > I tried setting prebuf to -1, 0, 1, 2, 4, 16, and 320. Made no difference to me. Another thing to check is if there are a couple of silent samples at the >

Re: [pulseaudio-discuss] Audible plop at beginning when using pcat-simple

2021-08-28 Thread Sean Greenslade
On Fri, Aug 27, 2021 at 04:57:07PM +0200, mindfsck wrote: > I seem to be to silly for it: > # sox in.wav -r 22050 out.wav resample > sox FAIL formats: can't open input file `out.wav': No such file or directory > > Of course there is no out.wav since that's what I want to create! I would not

Re: [pulseaudio-discuss] Audible plop at beginning when using pcat-simple

2021-08-27 Thread mindfsck
I seem to be to silly for it: # sox in.wav -r 22050 out.wav resample sox FAIL formats: can't open input file `out.wav': No such file or directory Of course there is no out.wav since that's what I want to create! On Fri, Aug 27, 2021 at 4:28 PM guest271314 wrote: > What happens when you

Re: [pulseaudio-discuss] Audible plop at beginning when using pcat-simple

2021-08-27 Thread guest271314
What happens when you resample to 22050? On Fri, Aug 27, 2021 at 7:18 AM mindfsck wrote: > Why is the sample rate set to 48000? >> > > No idea! The sourcing of the file is outside of my hands.. > > On Fri, Aug 27, 2021 at 4:14 PM guest271314 wrote: > >> Why is the sample rate set to 48000? >>

Re: [pulseaudio-discuss] Audible plop at beginning when using pcat-simple

2021-08-27 Thread mindfsck
> > Why is the sample rate set to 48000? > No idea! The sourcing of the file is outside of my hands.. On Fri, Aug 27, 2021 at 4:14 PM guest271314 wrote: > Why is the sample rate set to 48000? > > On Fri, Aug 27, 2021 at 6:40 AM mindfsck wrote: > >> Thanks Sean. I unloaded the suspend module

Re: [pulseaudio-discuss] Audible plop at beginning when using pcat-simple

2021-08-27 Thread guest271314
Why is the sample rate set to 48000? On Fri, Aug 27, 2021 at 6:40 AM mindfsck wrote: > Thanks Sean. I unloaded the suspend module but the plop is still there. > I don't really think it is HW related since the file plays just fine with > paplay and aplay. > > On Fri, Aug 27, 2021 at 5:49 AM Sean

Re: [pulseaudio-discuss] Audible plop at beginning when using pcat-simple

2021-08-27 Thread mindfsck
Thanks Sean. I unloaded the suspend module but the plop is still there. I don't really think it is HW related since the file plays just fine with paplay and aplay. On Fri, Aug 27, 2021 at 5:49 AM Sean Greenslade wrote: > On Thu, Aug 26, 2021 at 09:43:23PM +0200, mindfsck wrote: > > Hi there, >

Re: [pulseaudio-discuss] Audible plop at beginning when using pcat-simple

2021-08-26 Thread Sean Greenslade
On Thu, Aug 26, 2021 at 09:43:23PM +0200, mindfsck wrote: > Hi there, > > I was using this example to simply play a WAV file without having much clue > of audio: > https://www.freedesktop.org/software/pulseaudio/doxygen/pacat-simple_8c-example.html > I changed the sources to match (IMHO) my