Displaying 6 results from an estimated 6 matches for "sndctl_dsp_speed".
2006 Oct 12
1
Problem with encoding and decoding
...lse;
}
else{
channels=1;
if (ioctl (card, SNDCTL_DSP_CHANNELS, &channels)==-1) {
return false;
}
format = AFMT_S16_NE;
tmp = ioctl (card, SNDCTL_DSP_SETFMT, &format);
if (tmp==-1) {
return false;
}
// set speed
tmp = 16000;
ioctl(card, SNDCTL_DSP_SPEED, &tmp);
}
/*Create a new encoder state in narrowband mode*/
state = speex_encoder_init(&speex_nb_mode);
/*Set the quality to 8 (15 kbps)*/
tmp=8;
speex_encoder_ctl(state, SPEEX_SET_QUALITY, &tmp);
//inFile = argv[1];
fin = fopen(file, "w");
/*In...
2005 Feb 01
5
Cannot save/migrate domains
Hi,
I had a problem trying to migrate domains, in trying to locate it I
noticed that saving domains doesn''t work either, which I believe
explains why the receiving xfrd doesn''t actually receive anything.
So here it goes...
xenone:/tmp# xm list
Name Id Mem(MB) CPU State Time(s) Console
Domain-0 0 123 0 r---- 900.6
sky 9
2006 Feb 11
2
Xend crashes repeatedly starting DomU - please help...
Hi, this is a repost of a previous question - since then I have tried
rebuilding my Xen0 kernel numerous times and trying different
configurations, but I haven''t yet ever got a single DomU to boot so I
really don''t even know what is supposed to happen, let alone how to
start debugging it...
Can someone please speculate on how to debug this further? It''s a
gentoo
2008 Apr 04
0
speexdec 1.2.3
...perror("SNDCTL_DSP_STEREO");
close(audio_fd);
exit(1);
}
if (stereo!=0)
{
if (*channels==1)
fprintf (stderr, "Cannot set mono mode, will decode in stereo\n");
*channels=2;
}
if (ioctl(audio_fd, SNDCTL_DSP_SPEED, &rate)==-1)
{
perror("SNDCTL_DSP_SPEED");
close(audio_fd);
exit(1);
}
fout = fdopen(audio_fd, "w");
#elif defined HAVE_SYS_AUDIOIO_H
audio_info_t info;
int audio_fd;
audio_fd = open("/dev/audio"...
2007 Jul 16
0
configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_playback_oss.c
...o set sound format\n");
+ close(dsp_fd);
+ return;
+ }
+
+ channels = 2;
+ ret = ioctl(dsp_fd, SNDCTL_DSP_CHANNELS, &channels);
+ if (ret == -1) {
+ g_printerr ("Failed to set stereo\n");
+ close(dsp_fd);
+ return;
+ }
+
+ rate = 44100;
+ ret = ioctl(dsp_fd, SNDCTL_DSP_SPEED, &rate);
+ if (ret == -1) {
+ g_printerr ("Failed to set rate\n");
+ close(dsp_fd);
+ return;
+ }
+
+ ret = ioctl(dsp_fd, SNDCTL_DSP_GETBLKSIZE, &fragsize);
+ if (ret == -1) {
+ g_printerr ("Failed to get fragment size\n");
+ close(dsp_fd);
+ return...
2008 Apr 04
2
speexdec 1.2.3
On Fri, Apr 4, 2008 at 12:19 AM, Jean-Marc Valin
<jean-marc.valin at usherbrooke.ca> wrote:
> Jahn, Ray (R.) a ?crit :
>
> > Dear Speex codec community:
> >
> > I am working on conversion of voice files. I could not figure out how to use speexdec.exe 1.2.3 in piped mode in order to avoid the creation of the potentially large intermediate *.wav or *.pcm files. Any