Displaying 5 results from an estimated 5 matches for "audio_fd".
Did you mean:
audio_01
2004 Aug 06
0
Sun audio driver for speexdec
...lt;sys/ioctl.h>
+#include <sys/audioio.h>
+#include <fcntl.h>
+#ifndef AUDIO_ENCODING_SLINEAR
+#define AUDIO_ENCODING_SLINEAR AUDIO_ENCODING_LINEAR /* Solaris */
+#endif
#endif
#include <string.h>
@@ -166,6 +174,32 @@ FILE *out_file_open(char *outFile, int r
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", O_WRONLY);
+ if (audio_fd<0)
+ {
+ perror("Cannot open /dev/audio...
2008 Apr 04
0
speexdec 1.2.3
...}
fwrite(c, 1, len, stderr);
c+=len;
fprintf (stderr, "\n");
}
}
FILE *out_file_open(char *outFile, int wav_format, int rate, int *channels)
{
FILE *fout=NULL;
/*Open output file*/
if (strlen(outFile)==0)
{
#if defined HAVE_SYS_SOUNDCARD_H
int audio_fd, format, stereo;
audio_fd=open("/dev/dsp", O_WRONLY);
if (audio_fd<0)
{
perror("Cannot open /dev/dsp");
exit(1);
}
format=AFMT_S16_NE;
if (ioctl(audio_fd, SNDCTL_DSP_SETFMT, &format)==-1)
{
per...
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
2004 Aug 06
1
[PATCH] Re: Decoding .spx with 1.0 on ppc produces noise!
...<bds02@uow.edu.au>
University of Wollongong
--- speex-1.0/src/speexdec.c Fri Mar 21 08:52:39 2003
+++ speex-1.0-works/src/speexdec.c Thu Apr 17 06:39:23 2003
@@ -136,7 +136,7 @@
exit(1);
}
- format=AFMT_S16_LE;
+ format=AFMT_S16_NE;
if (ioctl(audio_fd, SNDCTL_DSP_SETFMT, &format)==-1)
{
perror("SNDCTL_DSP_SETFMT");
@@ -612,7 +612,7 @@
}
/*Convert to short and save to output file*/
for (i=0;i<frame_size*channels;i++)
- out[i]=(short)le_s...
2004 Aug 06
4
Decoding .spx with 1.0 on ppc produces noise!
Hi,
I got my hands on the LCA 2003 CD today and I tried to listen to it on
my powerbook running Linux. Instead of getting speech, I got an earfull
of noise! Attempting the same experiment on an i386 with the same CD
produced understandable speech.
It seems that the output routine in speexdec converts the output data to
little endian short format, which is incorrect on the ppc architecture.
The