diff options
author | Josh Coalson <jcoalson@users.sourceforce.net> | 2007-09-13 00:37:21 +0000 |
---|---|---|
committer | Josh Coalson <jcoalson@users.sourceforce.net> | 2007-09-13 00:37:21 +0000 |
commit | 8bc1cde8bbde18e969abd90e89029d970d5ecaf3 (patch) | |
tree | d2832b497b09a329e97598329b52270544e2f6a3 /examples | |
parent | 8679516bc5f05ab67da658a15282d2599fa4d99d (diff) | |
download | flac-8bc1cde8bbde18e969abd90e89029d970d5ecaf3.tar.gz |
minor improvements
Diffstat (limited to 'examples')
-rw-r--r-- | examples/c/decode/file/main.c | 11 | ||||
-rw-r--r-- | examples/cpp/decode/file/main.cpp | 13 |
2 files changed, 15 insertions, 9 deletions
diff --git a/examples/c/decode/file/main.c b/examples/c/decode/file/main.c index 27eb799b..20fafa20 100644 --- a/examples/c/decode/file/main.c +++ b/examples/c/decode/file/main.c @@ -19,6 +19,9 @@ /* * This example shows how to use libFLAC to decode a FLAC file to a WAVE * file. It only supports 16-bit stereo files. + * + * Complete API documentation can be found at: + * http://flac.sourceforge.net/api/ */ #if HAVE_CONFIG_H @@ -33,10 +36,10 @@ static FLAC__StreamDecoderWriteStatus write_callback(const FLAC__StreamDecoder * static void metadata_callback(const FLAC__StreamDecoder *decoder, const FLAC__StreamMetadata *metadata, void *client_data); static void error_callback(const FLAC__StreamDecoder *decoder, FLAC__StreamDecoderErrorStatus status, void *client_data); -FLAC__uint64 total_samples = 0; -unsigned sample_rate = 0; -unsigned channels = 0; -unsigned bps = 0; +static FLAC__uint64 total_samples = 0; +static unsigned sample_rate = 0; +static unsigned channels = 0; +static unsigned bps = 0; static FLAC__bool write_little_endian_uint16(FILE *f, FLAC__uint16 x) { diff --git a/examples/cpp/decode/file/main.cpp b/examples/cpp/decode/file/main.cpp index 7c74ea77..56140503 100644 --- a/examples/cpp/decode/file/main.cpp +++ b/examples/cpp/decode/file/main.cpp @@ -17,8 +17,11 @@ */ /* - * This example shows how to use libFLAC to decode a FLAC file to a WAVE + * This example shows how to use libFLAC++ to decode a FLAC file to a WAVE * file. It only supports 16-bit stereo files. + * + * Complete API documentation can be found at: + * http://flac.sourceforge.net/api/ */ #if HAVE_CONFIG_H @@ -29,10 +32,10 @@ #include <stdlib.h> #include "FLAC++/decoder.h" -FLAC__uint64 total_samples = 0; -unsigned sample_rate = 0; -unsigned channels = 0; -unsigned bps = 0; +static FLAC__uint64 total_samples = 0; +static unsigned sample_rate = 0; +static unsigned channels = 0; +static unsigned bps = 0; static bool write_little_endian_uint16(FILE *f, FLAC__uint16 x) { |