Displaying 6 results from an estimated 6 matches for "snd_pcm_hw_params_set_rate_near".
2004 Aug 06
0
Patch for IceS (im_alsa.c)
Hi there.
I noticed that the alsa input module in IceS 2.0-Beta4 have some
problems with sample rates.
The problem derives from the fact that the sample rate is set by a call
to snd_pcm_hw_params_set_rate_near() in the ALSA API. This means that if
you specify a sample rate that your ALSA driver soes not like, ALSA will
choose the nearest possible sample rate instead.
In the present im_alsa.c this yields no warning, which may confuse some
people (it certainly confused me). For further information on this...
2004 Aug 06
2
Speex/Linux/ALSA
...nd it.
Here are some details of what I am doing, some questions I have,
and hopefully someone can point out what I am doing wrong.
The ALSA call to snd_pcm_hw_params_set_format is setting the sound
format to unsigned 8 bit SND_PCM_FORMAT_U8
Q - Do I have to use 16 bit for speex?
The ALSA call to snd_pcm_hw_params_set_rate_near is setting the
rate to 11025 hz, the lowest I have been successful with.
Q - how does this correlate to speex narrow and wide modes?
The ALSA call to snd_pcm_hw_params_set_channels is setting it to
a single channel (MONO)
The ALSA call to snd_pcm_hw_params_set_periods is setting this
to 2. Perio...
2004 Aug 06
2
Server drops client - problem with IceS?
Geoff Shang wrote:
> Does your playback match the sound that you are encoding? Perhaps share
> your config file so we can help troubleshoot this.
I would think so, but I might have missed something.
<p>Here is my IceS2-config - with this one, the problem manifests after 2
minutes of playing, and the client is disconnected after 3 minutes.
I have tried tweaking bitrate, quality,
2007 Jan 29
0
3 commits - autogen.sh configure.ac player/.gitignore player/Makefile.am player/swfdec_playback_alsa.c player/swfdec_playback.c player/swfdec_playback_none.c
...format (ret, hw_params, SND_PCM_FORMAT_S16) < 0) {
- g_printerr ("Failed setting format\n");
- goto fail;
- }
- if (snd_pcm_hw_params_set_channels (ret, hw_params, 2) < 0) {
- g_printerr ("Failed setting channels\n");
- goto fail;
- }
- rate = 44100;
- if (snd_pcm_hw_params_set_rate_near (ret, hw_params, &rate, 0) < 0) {
- g_printerr ("Failed setting rate\n");
- goto fail;
- }
- uframes = 16384;
- if (snd_pcm_hw_params_set_buffer_size_near (ret, hw_params, &uframes) < 0) {
- g_printerr ("Failed setting buffer size\n");
- goto fail;
-...
2007 Jan 31
0
Branch 'interpreter' - 20 commits - autogen.sh configure.ac libswfdec/js libswfdec/swfdec_debug.h libswfdec/swfdec_js.c libswfdec/swfdec_js_color.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_script.c
...format (ret, hw_params, SND_PCM_FORMAT_S16) < 0) {
- g_printerr ("Failed setting format\n");
- goto fail;
- }
- if (snd_pcm_hw_params_set_channels (ret, hw_params, 2) < 0) {
- g_printerr ("Failed setting channels\n");
- goto fail;
- }
- rate = 44100;
- if (snd_pcm_hw_params_set_rate_near (ret, hw_params, &rate, 0) < 0) {
- g_printerr ("Failed setting rate\n");
- goto fail;
- }
- uframes = 16384;
- if (snd_pcm_hw_params_set_buffer_size_near (ret, hw_params, &uframes) < 0) {
- g_printerr ("Failed setting buffer size\n");
- goto fail;
-...
2007 Mar 27
0
15 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/.gitignore libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h
...format (ret, hw_params, SND_PCM_FORMAT_S16) < 0) {
+ g_printerr ("Failed setting format\n");
+ goto fail;
+ }
+ if (snd_pcm_hw_params_set_channels (ret, hw_params, 2) < 0) {
+ g_printerr ("Failed setting channels\n");
+ goto fail;
+ }
+ rate = 44100;
+ if (snd_pcm_hw_params_set_rate_near (ret, hw_params, &rate, 0) < 0) {
+ g_printerr ("Failed setting rate\n");
+ goto fail;
+ }
+ uframes = 16384;
+ if (snd_pcm_hw_params_set_buffer_size_near (ret, hw_params, &uframes) < 0) {
+ g_printerr ("Failed setting buffer size\n");
+ goto fail;
+...