aboutsummaryrefslogtreecommitdiffstats
path: root/src/wav.cpp
diff options
context:
space:
mode:
authorDaniil Cherednik <dan.cherednik@gmail.com>2019-05-17 01:21:41 +0300
committerDaniil Cherednik <dan.cherednik@gmail.com>2019-05-17 01:21:41 +0300
commit72c3f6ec998e8acfade1e1b40abf32af21eb282b (patch)
tree2e5444a0711aa29a24e39ae2404d5c5f562af19b /src/wav.cpp
parented9629395ce9696164c1d617d573a47982e82169 (diff)
downloadatracdenc-0.0.1.tar.gz
Fix some VS compilation warnings0.0.1
Diffstat (limited to 'src/wav.cpp')
-rw-r--r--src/wav.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/wav.cpp b/src/wav.cpp
index 649189b..8750377 100644
--- a/src/wav.cpp
+++ b/src/wav.cpp
@@ -36,7 +36,7 @@ TWav::TWav(const std::string& path)
: Impl(CreatePCMIOReadImpl(path))
{ }
-TWav::TWav(const std::string& path, int channels, int sampleRate)
+TWav::TWav(const std::string& path, uint8_t channels, uint16_t sampleRate)
: Impl(CreatePCMIOWriteImpl(path, channels, sampleRate))
{ }
@@ -47,12 +47,12 @@ uint64_t TWav::GetTotalSamples() const {
return Impl->GetTotalSamples();
}
-uint32_t TWav::GetChannelNum() const {
- return Impl->GetChannelsNum();
+uint8_t TWav::GetChannelNum() const {
+ return (uint8_t)Impl->GetChannelsNum();
}
-uint32_t TWav::GetSampleRate() const {
- return Impl->GetSampleRate();
+uint16_t TWav::GetSampleRate() const {
+ return (uint16_t)Impl->GetSampleRate();
}
//bool TWav::IsFormatSupported() const {