]> sigrok.org Git - libsigrokdecode.git/commit
i2s: Add WAV dump support, drop obsolete 'i2s_dump' PD.
authorUwe Hermann <redacted>
Sat, 18 Jan 2014 18:15:41 +0000 (19:15 +0100)
committerUwe Hermann <redacted>
Thu, 23 Jan 2014 19:02:38 +0000 (20:02 +0100)
commite54f222c4edf55a379e5b3ad892cf671ace83e48
tree0cf8c3e3b4b6a7f8112ed984b5c456b83c4f3a9b
parente8ce01860673214bae97a6b793a7f55e13128dba
i2s: Add WAV dump support, drop obsolete 'i2s_dump' PD.

The functionality of the preliminary 'i2s_dump' PD is now available
in the proper 'i2s' PD, via the OUTPUT_BINARY mechanism that frontends
can use to dump decoded data (in various formats) to a file, or pipe it
into other applications, and so on.

Old sigrok-cli example usage:

 $ sigrok-cli -i 2ch-16bit-16khz.sr \
-P i2s:sck=0:ws=1:sd=2,i2s_dump:filename=foo.wav
 $ aplay foo.wav

New sigrok-cli example usage:

 $ sigrok-cli -i 2ch-16bit-16khz.sr \
-P i2s:sck=0:ws=1:sd=2 -B i2s=wav > foo.wav
 $ aplay foo.wav

New sigrok-cli example usage (piping into other applications):

 $ sigrok-cli -i 2ch-16bit-16khz.sr \
-P i2s:sck=0:ws=1:sd=2 -B i2s=wav | aplay -
decoders/i2s/pd.py
decoders/i2s_dump/__init__.py [deleted file]
decoders/i2s_dump/pd.py [deleted file]