aboutsummaryrefslogtreecommitdiffstats
path: root/src/at3.cpp
diff options
context:
space:
mode:
authorDaniil Cheredni <dan.cherednik@gmail.com>2024-10-21 21:53:55 +0200
committerDaniil Cherednik <dan.cherednik@gmail.com>2024-11-01 18:21:42 +0100
commitd459470e2d8c1cdfc633584b277505ef03565ab1 (patch)
treeaf7676bd204836e357c1034a8138ce7f472db47c /src/at3.cpp
parentfe377370c1ae4691a65270123345f225e3159ed8 (diff)
downloadatracdenc-d459470e2d8c1cdfc633584b277505ef03565ab1.tar.gz
Do not use 8bit, 16bit types if do not realy need it.
Diffstat (limited to 'src/at3.cpp')
-rw-r--r--src/at3.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/at3.cpp b/src/at3.cpp
index f4afc4f..35d6121 100644
--- a/src/at3.cpp
+++ b/src/at3.cpp
@@ -80,7 +80,7 @@ At3WaveHeader {
class TAt3 : public ICompressedOutput {
public:
- TAt3(const std::string &filename, uint8_t numChannels,
+ TAt3(const std::string &filename, size_t numChannels,
uint32_t numFrames, uint32_t frameSize, bool jointStereo)
: fp(fopen(filename.c_str(), "wb"))
{
@@ -146,7 +146,7 @@ public:
return {};
}
- uint8_t GetChannelNum() const override {
+ size_t GetChannelNum() const override {
return 2;
}
@@ -157,7 +157,7 @@ private:
} //namespace
TCompressedOutputPtr
-CreateAt3Output(const std::string& filename, uint8_t numChannel,
+CreateAt3Output(const std::string& filename, size_t numChannel,
uint32_t numFrames, uint32_t framesize, bool jointStereo)
{
return std::unique_ptr<TAt3>(new TAt3(filename, numChannel, numFrames, framesize, jointStereo));