search for: dspdev

Displaying 1 result from an estimated 1 matches for "dspdev".

Did you mean: dsdev
2003 Jul 27
2
Ogg ouput using libvorbisfile
...a weird static noise. Any idea what I'm doing wrong or not doing? <code> #include <stdio.h> #include <stdlib.h> #include <math.h> #include "vorbis/codec.h" #include "vorbis/vorbisfile.h" char pcmout[4096]; int main() { FILE * input; FILE * dspdev; OggVorbis_File *vf; int eof=0; int current_section; /* Opening File */ if ((input = fopen("sound.ogg", "r")) == NULL) fprintf(stderr, "Cannot open %s\n", "sound.ogg"); /* Opening /dev/dsp for writing*/ dspdev=fopen("/dev/dsp",&...