]> gitweb @ CieloNegro.org - soundpipes.git/commitdiff
diagram of wvparse
authorPHO <pho@cielonegro.org>
Wed, 20 Jul 2011 22:17:11 +0000 (07:17 +0900)
committerPHO <pho@cielonegro.org>
Wed, 20 Jul 2011 22:17:11 +0000 (07:17 +0900)
docs/components.rst

index 5770f63bf6101453f654a27df5d910c02323a4f9..5f86f3f1f4fd0af836ff340ed49825b99fdf919c 100644 (file)
@@ -15,12 +15,18 @@ Diagram::
             |         |
             `---------'
 
             |         |
             `---------'
 
+Input
+~~~~~
+
 control event
     * Open FilePath
     * Seek SeekMode Integer
     * Read Int
     * Close
 
 control event
     * Open FilePath
     * Seek SeekMode Integer
     * Read Int
     * Close
 
+Output
+~~~~~~
+
 octet stream event
     ByteString (response for the "Read" event)
 
 octet stream event
     ByteString (response for the "Read" event)
 
@@ -28,6 +34,72 @@ reactive state value
     * Open Integer Integer -- size and the current position
     * Closed
 
     * Open Integer Integer -- size and the current position
     * Closed
 
+
+-------
+wvparse
+-------
+
+Diagram::
+
+    parser ctl
+    -----------.
+                v
+    wv stream  ,---------. wv ctrl
+    ---------->|         |---------->
+    wvc stream |         | wv blocks
+    ---------->| wvparse |---------->
+               |         | wvc ctrl
+               |         |---------->
+               `---------' wvc blocks
+                    | | `----------->
+                    | | media tags
+                    | `------------->
+                    | state
+                    `--------------->
+
+Input
+~~~~~
+
+parser control event
+    SeekableParserCtrl
+        * GetNext
+        * FindTags
+        * Seek Integer -- sample index
+
+    NonSeekableParserCtrl
+        * GetNext
+
+wv stream event
+    ByteString
+
+wvc stream event
+    Maybe ByteString
+
+Output
+~~~~~~
+
+wv/wvc control event
+    Seekable
+        * Seek SeekMode Integer
+        * Read Int
+
+    NonSeekable
+        * Read Int
+
+wv block event
+    WavPack.Block
+
+wvc block event
+    Maybe WavPack.Block
+
+reactive media tags
+    Map Text Text
+
+reactive state value
+    * Active
+    * Inactive
+
+
 -----
 wvdec
 -----
 -----
 wvdec
 -----