summaryrefslogtreecommitdiffstats
path: root/src/lib/formats/wavfile.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-10-22 16:37:12 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-10-22 16:37:12 +0200
commita6bdefec8c76e9878b634119c56438a7673b0385 (patch)
tree9b435836a12773fe5b84cf1fd04866ecd9ecc2da /src/lib/formats/wavfile.cpp
parent5f3d4fb33da4304e417a0e142e82e3d292646465 (diff)
more TRUE/FALSE cleanup (nw)
Diffstat (limited to 'src/lib/formats/wavfile.cpp')
-rw-r--r--src/lib/formats/wavfile.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/formats/wavfile.cpp b/src/lib/formats/wavfile.cpp
index 29f33c4102b..072be6c92a2 100644
--- a/src/lib/formats/wavfile.cpp
+++ b/src/lib/formats/wavfile.cpp
@@ -58,7 +58,7 @@ static void put_leuint16(void *ptr, uint16_t value)
static cassette_image::error wavfile_process(cassette_image *cassette, struct CassetteOptions *opts,
- int read_waveform)
+ bool read_waveform)
{
uint8_t file_header[12];
uint8_t tag_header[8];
@@ -68,7 +68,7 @@ static cassette_image::error wavfile_process(cassette_image *cassette, struct Ca
uint32_t tag_size;
uint32_t tag_samples;
uint64_t offset;
- int format_specified = FALSE;
+ bool format_specified = false;
uint16_t format_type = 0;
uint32_t bytes_per_second = 0;
@@ -102,7 +102,7 @@ static cassette_image::error wavfile_process(cassette_image *cassette, struct Ca
/* format tag */
if (format_specified || (tag_size < sizeof(format_tag)))
return cassette_image::error::INVALID_IMAGE;
- format_specified = TRUE;
+ format_specified = true;
cassette_image_read(cassette, format_tag, offset, sizeof(format_tag));
@@ -160,7 +160,7 @@ static cassette_image::error wavfile_process(cassette_image *cassette, struct Ca
static cassette_image::error wavfile_identify(cassette_image *cassette, struct CassetteOptions *opts)
{
- return wavfile_process(cassette, opts, FALSE);
+ return wavfile_process(cassette, opts, false);
}
@@ -169,7 +169,7 @@ static cassette_image::error wavfile_load(cassette_image *cassette)
{
struct CassetteOptions opts;
memset(&opts, 0, sizeof(opts));
- return wavfile_process(cassette, &opts, TRUE);
+ return wavfile_process(cassette, &opts, true);
}