瀏覽代碼

Merge pull request #1 from thajohns/beta

added documentation for mapped file structure
Graham Northup 3 年之前
父節點
當前提交
fdca5ccd30
共有 1 個文件被更改,包括 10 次插入0 次删除
  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