From 73e542a4611411411a6df4843d62576e25ddeb7c Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Mon, 28 Nov 2011 21:52:35 +1300 Subject: srd: Pass samplerate to decoder in metadata. --- decode.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'decode.c') diff --git a/decode.c b/decode.c index 50b87b4..fed9fa7 100644 --- a/decode.c +++ b/decode.c @@ -365,15 +365,17 @@ int srd_instance_set_probe(struct srd_decoder_instance *di, } int srd_instance_start(struct srd_decoder_instance *di, - const char *driver, int unitsize, uint64_t starttime) + const char *driver, int unitsize, uint64_t starttime, + uint64_t samplerate) { PyObject *py_res; if (!(py_res = PyObject_CallMethod(di->py_instance, "start", - "{s:s,s:i,s:d}", + "{s:s,s:l,s:l,s:l}", "driver", driver, - "unitsize", unitsize, - "starttime", starttime))) { + "unitsize", (long)unitsize, + "starttime", (long)starttime, + "samplerate", (long)samplerate))) { if (PyErr_Occurred()) PyErr_Print(); /* Returns void. */ -- cgit v1.2.3-70-g09d2