1

Why simple code construced from pulse audio API doesn't run?

view story
linux-howto

http://stackoverflow.com – I have used the simple C code of pulse audio for playback and record and it worked fine. But when I converted it to C++ it doesn't work. I am pasting both the codes. Please help. The C++ code doesn't shows any error but doesn't playback any sound. But C++ code plays the recorded sound. N.B: I am using 64 bit CentOS 6.2 C++ Code: #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <iostream> #include <stdio.h> #include <unistd.h> #include <string.h> #include <errno.h> #include <fcntl.h> #include <stdint.h> #include "pulse/simple.h" #inc (HowTos)