Explorar o código

Merge pull request #1 from thajohns/beta

added documentation for mapped file structure
Graham Northup %!s(int64=3) %!d(string=hai) anos
pai
achega
fdca5ccd30
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      render.py

+ 10 - 0
render.py

@@ -1,5 +1,15 @@
 # A visualizer for the Python client (or any other client) rendering to a mapped file
 
+# The map file format should look like the following C structure:
+# struct mapping {
+#   float disp_factor;  // a factor to be displayed onscreen
+#   float last_samples[MAP_SAMPLES];  // samples from the waveform being played
+#   struct {
+#     unsigned long frequency;
+#     float amplitude;
+#   } values[STREAMS];
+# }
+
 import optparse
 import mmap
 import os