aboutsummaryrefslogtreecommitdiffstats
path: root/src/oma.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/oma.cpp
parented9629395ce9696164c1d617d573a47982e82169 (diff)
downloadatracdenc-0.0.1.tar.gz
Fix some VS compilation warnings0.0.1
Diffstat (limited to 'src/oma.cpp')
-rw-r--r--src/oma.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/oma.cpp b/src/oma.cpp
index ceeaf69..4aed863 100644
--- a/src/oma.cpp
+++ b/src/oma.cpp
@@ -19,7 +19,11 @@
#include "oma.h"
#include <stdlib.h>
-TOma::TOma(const std::string& filename, const std::string& title, int numChannel, uint32_t numFrames, int cid, uint32_t framesize) {
+using std::string;
+using std::vector;
+using std::unique_ptr;
+
+TOma::TOma(const string& filename, const string& title, uint8_t numChannel, uint32_t numFrames, int cid, uint32_t framesize) {
oma_info_t info;
info.codec = cid;
info.samplerate = 44100;
@@ -34,27 +38,27 @@ TOma::~TOma() {
oma_close(File);
}
-std::unique_ptr<ICompressedIO::TFrame> TOma::ReadFrame() {
+unique_ptr<ICompressedIO::TFrame> TOma::ReadFrame() {
abort();
return nullptr;
}
-void TOma::WriteFrame(std::vector<char> data) {
+void TOma::WriteFrame(vector<char> data) {
if (oma_write(File, &data[0], 1) == -1) {
fprintf(stderr, "write error\n");
abort();
}
}
-std::string TOma::GetName() const {
+string TOma::GetName() const {
abort();
return {};
}
-int TOma::GetChannelNum() const {
+uint8_t TOma::GetChannelNum() const {
return 2; //for ATRAC3
}
-long long TOma::GetLengthInSamples() const {
+uint64_t TOma::GetLengthInSamples() const {
abort();
return 0;
}