Thank you very much, Gerhard!
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user
Why does the program below issue errors for
snd_pcm_hw_params_set_period_size(),
snd_pcm_hw_params_set_buffer_size(), and snd_pcm_hw_params_set_rate()?
If I raise the value of SAMPLES to 768 it only issues an error to
snd_pcm_hw_params_set_rate(). The value "512" is important here since I
am p
Hello together!
On Wed, 24 Jun 2020 17:37:46 -0300
Sleep schrieb:
> // Insert samples to framebuffer.
> wav = fopen("pcm1611s.wav", "r");
> fseek(wav, 0L, SEEK_END);
> size = ftell(wav);
> fseek(wav, 0L, SEEK_SET);
> buffer = malloc(size);
> fread(buffer,
Nevermind, it is frames * STEREO here, this is where the error is.
ptrbuffer += FRAMEBUFFERSIZE * STEREO * BITS
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user
https://files.catbox.moe/5jvu18.wav
Here is the recording of the effect as requested, new code below.
#include
#include
#include
#define STEREO 2
#define BITS16 / 8
#define FRAMEBUFFERSIZE 512 // in samples
#define PERIODS 2
#define SAMPLERATE 11025
snd_pcm_hw_params_set_buffer_size() and
snd_pcm_hw_params_set_period_size() returns an error, a mere "Invalid
argument." which doesn't help much, commenting them out doesn't appear
to address the scratchy sound.
___
Alsa-user mailing list
Alsa-user@
Hi all,
I'm currently experiencing the following issue with a (usb) Plantronics Savi
8200 Office Series headset
When changing the volume via the buttons on the headset, while the volume
changes on the headset itself, the change is not reflected in 'alsamixer', with
the (PCM) volume level r
Hi all,
I'm currently experiencing the following issue with a (usb) Plantronics Savi
8200 Office Series headset
When changing the volume via the buttons on the headset, while the volume
changes on the headset itself, the change is not reflected in 'alsamixer', with
the (PCM) volume level remai
I've used snd_pcm_prepare() because underrun (-EPIPE) was occurring
because I had put the wrong value for frames, but despite adjusting the
value of the frames, I am still getting the scratchy effect, here is the
current code I have, now I am really stuck. Also yeah, "scratchy" would
be a bette