Commit a91c387
committed
general: linux audio extract now considers actual header len
The documentation on page /general/audio-file-format/ section 2. Audio file
format reports, that the header is of variable length. Thus, for precise
audio data extraction, the header's length must be parsed in order to
discard the correct number of bytes.
Previously, the code-snippet discarded always 4096 bytes, which would fail
when the header length should be ever different.
Also, i always like to have easy-to-copy&paste snippets in documentation.1 parent cc17438 commit a91c387
1 file changed
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
82 | 94 | | |
83 | 95 | | |
84 | 96 | | |
| |||
0 commit comments