ahojte vie z vas niekto s tym robit? ak ano tak sem hodte nejaky program + prikaz na kompilaciu
dakujem
ja som skusal toto s prikazom "g++ -Wall audio.cpp -o audio" ale hadze to chyby
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <pulse/simple.h>
pa_simple *s;
pa_sample_spec ss;
int main()
{
ss.format = PA_SAMPLE_S16NE;
ss.channels = 2;
ss.rate = 44100;
s = pa_simple_new(NULL, // Use the default server.
"Fooapp", // Our application's name.
PA_STREAM_PLAYBACK,
NULL, // Use the default device.
"Music", // Description of our stream.
&ss, // Our sample format.
NULL, // Use default channel map
NULL, // Use default buffering attributes.
NULL // Ignore error code.
);
return 0;
}