Changeset 5782f99 for doc


Ignore:
Timestamp:
Mar 24, 2017, 7:46:40 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, sampler
Children:
4e2173e
Parents:
67e0eeb
Message:

doc/develop.rst: improve examples

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/develop.rst

    r67e0eeb r5782f99  
    8686--------------------
    8787
    88 In this example, ``aubio_source`` is used to read a media file.
     88In this example, `aubio_source <https://aubio.org/doc/latest/source_8h.html>`_
     89is used to read a media file:
    8990
    90 First, create the objects we need.
     91First, define a few variables and allocate some memory.
    9192
    9293.. literalinclude:: ../tests/src/io/test-source.c
     
    104105   :lines: 40-44
    105106
    106 At the end of the processing loop, clean-up and de-allocate memory:
     107At the end of the processing loop, memory is deallocated:
    107108
    108109.. literalinclude:: ../tests/src/io/test-source.c
    109110   :language: C
    110    :lines: 50-56
     111   :lines: 55-56
    111112
    112113See the complete example: :download:`test-source.c
     
    126127.. literalinclude:: ../tests/src/spectral/test-phasevoc.c
    127128   :language: C
    128    :lines: 21-35
     129   :lines: 20-37
     130
     131Time to clean up the previously allocated memory:
     132
     133.. literalinclude:: ../tests/src/spectral/test-phasevoc.c
     134   :language: C
     135   :lines: 39-44
    129136
    130137See the complete example: :download:`test-phasevoc.c
Note: See TracChangeset for help on using the changeset viewer.