]> sigrok.org Git - libsigrok.git/blobdiff - src/input/wav.c
Fix obsolete code comments.
[libsigrok.git] / src / input / wav.c
index 186693047f123088b74790ab9d1c275ae4be34b2..243fd4ca2d984451a8cf68e889e187a03a607c31 100644 (file)
@@ -31,7 +31,7 @@
 #define LOG_PREFIX "input/wav"
 
 /* How many bytes at a time to process and send to the session bus. */
-#define CHUNK_SIZE 4096
+#define CHUNK_SIZE               4096
 
 /* Minimum size of header + 1 8-bit mono PCM sample. */
 #define MIN_DATA_CHUNK_OFFSET    45
@@ -227,7 +227,8 @@ static void send_chunk(const struct sr_input *in, int offset, int num_samples)
                d += inc->unitsize;
        }
 
-       sr_analog_init(&analog, &encoding, &meaning, &spec, 0);
+       /* TODO: Use proper 'digits' value for this device (and its modes). */
+       sr_analog_init(&analog, &encoding, &meaning, &spec, 2);
        packet.type = SR_DF_ANALOG;
        packet.payload = &analog;
        analog.num_samples = num_samples;