1

PulseAudio recording and playback fails

view story
linux-howto

http://stackoverflow.com – I am trying to record and playback audio data using pulse audio API in centOS 6.2. But it records and playbacks nothing. I am using a code from pulseaudio. I need help to get it working in my PC. What should I do? My code is also given below- #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <stdio.h> #include <unistd.h> #include <string.h> #include <errno.h> #include <fcntl.h> #include <pulse/simple.h> #include <pulse/error.h> #define BUFSIZE 32 int main(int argc, char*argv[]) { /* The Sample format to use */ static const pa_sample_ (HowTos)