From: FrancoisGrondin Date: Fri, 28 Jul 2017 16:19:21 +0000 (-0400) Subject: Bug fixed: sample rate is instantiated correctly. X-Git-Url: http://kyz.pub/gitweb/?a=commitdiff_plain;h=049b10d14b0c9555774a6d1ccda23ad72f2caa3d;p=yn%2Fyn-odas.git Bug fixed: sample rate is instantiated correctly. --- diff --git a/src/message/msg_spectra.c b/src/message/msg_spectra.c index 27ad4fa..a42a81e 100644 --- a/src/message/msg_spectra.c +++ b/src/message/msg_spectra.c @@ -8,7 +8,7 @@ obj = (msg_spectra_obj *) malloc(sizeof(msg_spectra_obj)); obj->timeStamp = 0; - obj->fS = 0; + obj->fS = msg_spectra_config->fS; obj->freqs = freqs_construct_zero(msg_spectra_config->nChannels, msg_spectra_config->halfFrameSize); return obj;