[asterisk-commits] russell: branch russell/jack r93171 - /team/russell/jack/apps/app_jack.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Dec 16 11:59:08 CST 2007


Author: russell
Date: Sun Dec 16 11:59:08 2007
New Revision: 93171

URL: http://svn.digium.com/view/asterisk?view=rev&rev=93171
Log:
implement handle_output, which writes data to the jack output port ... that was easy

Modified:
    team/russell/jack/apps/app_jack.c

Modified: team/russell/jack/apps/app_jack.c
URL: http://svn.digium.com/view/asterisk/team/russell/jack/apps/app_jack.c?view=diff&rev=93171&r1=93170&r2=93171
==============================================================================
--- team/russell/jack/apps/app_jack.c (original)
+++ team/russell/jack/apps/app_jack.c Sun Dec 16 11:59:08 2007
@@ -232,7 +232,14 @@
 static void handle_output(void *buf, jack_nframes_t nframes, 
 	struct jack_data *jack_data)
 {
-
+	size_t res;
+
+	res = jack_ringbuffer_read(jack_data->output_rb, buf, nframes * sizeof(float));
+
+	if (res != nframes) {
+		ast_log(LOG_WARNING, "Wanted %d bytes to send to the output port, "
+			"but only got %d\n", nframes, res);
+	}
 }
 
 static int jack_process(jack_nframes_t nframes, void *arg)




More information about the asterisk-commits mailing list