Skip to content
Snippets Groups Projects
Verified Commit 1168a29e authored by Ralph Giles's avatar Ralph Giles
Browse files

trivial_example: open raw pcm files in binary mode.


The simple codec round-trip example file in the doc directory
opens an input and output pcm file. It was working fine on
POSIX systems, but not on Windows, which treats text files
differently.

This is confusing in a example, so it's better to add an
explicit binary flag to the fopen() calls. This does nothing
on unix-like systems, but should make the example work for
developers on Windows.

Thanks to Wavesonics who reported this on irc.

Signed-off-by: default avatarMark Harris <mark.hsj@gmail.com>
parent 4d406367
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment