Displaying 1 result from an estimated 1 matches for "send_shout".
Did you mean:
send_host
2004 Aug 06
0
programming with libshout
...romwhere it gets the data... what should be received on
STDIN?
and... in the case of record from the microphone, should I rec to stdout,
redirect it to the stdin of LAME (or another encoder) and redirect again to
stdout, so my application reads it from stdin (by using a pipe) and sends is
with send_shout()?
if (shout_open(shout) == SHOUTERR_SUCCESS) {
printf("Connected to server...\n");
total = 0;
while (1) {
/*
* MY DOUBT IS HERE IN THE FREAD
*/
read = fread(buff, 1, sizeof(buff), stdin);
total = total + read;
if (read > 0) {
ret...