Skip to content

Commit 30bec8d

Browse files
committed
Minor refactoring
1 parent 87b25f3 commit 30bec8d

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,8 @@ either -1 (default compression) or between 0 (fastest) and 9 (best compression).
439439

440440
#### `--raw-samplerate`
441441

442-
When using raw input audio format, this must be set to the appropriate samplerate.
442+
When using raw input audio format, this must be set to the appropriate sample
443+
rate, in Hz.
443444

444445
#### `--raw-channels`
445446

doc/audiowaveform.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ either -1 (default compression) or between 0 (fastest) and 9 (best compression).
206206
.TP
207207
.B --raw-samplerate\fR <rate>
208208
When using raw input audio format, this must be set to the appropriate
209-
samplerate.
209+
sample rate, in Hz.
210210

211211
.TP
212212
.B --raw-channels\fR <n>

src/Options.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ bool Options::parseCommandLine(int argc, const char* const* argv)
254254
)(
255255
"raw-samplerate",
256256
po::value<int>(&raw_samplerate_),
257-
"samplerate for raw audio input"
257+
"sample rate for raw audio input (Hz)"
258258
)(
259259
"raw-channels",
260260
po::value<int>(&raw_channels_),
@@ -340,7 +340,8 @@ bool Options::parseCommandLine(int argc, const char* const* argv)
340340
reportError("Invalid bits: must be either 8 or 16");
341341
return false;
342342
}
343-
else if (png_compression_level_ < -1 || png_compression_level_ > 9) {
343+
344+
if (png_compression_level_ < -1 || png_compression_level_ > 9) {
344345
reportError("Invalid compression level: must be from 0 (none) to 9 (best), or -1 (default)");
345346
return false;
346347
}

src/Options.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,15 @@
2626

2727
//------------------------------------------------------------------------------
2828

29-
#include "Rgba.h"
30-
#include "AudioFileReader.h"
3129
#include "FileFormat.h"
30+
#include "Rgba.h"
3231

3332
#include <boost/filesystem.hpp>
3433
#include <boost/program_options.hpp>
3534

3635
#include <iosfwd>
37-
#include <string>
3836
#include <stdexcept>
37+
#include <string>
3938

4039
//------------------------------------------------------------------------------
4140

0 commit comments

Comments
 (0)