aboutsummaryrefslogtreecommitdiffstats
path: root/src/at3.h
diff options
context:
space:
mode:
authorThomas Perl <m@thp.io>2022-05-08 22:19:07 +0200
committerGitHub <noreply@github.com>2022-05-08 23:19:07 +0300
commit52271de4d7dbb11379cfc1b3dddc0a35852a06d8 (patch)
tree9a9033fb69d0a2afeefd4390629c73bb475f8079 /src/at3.h
parent03eac5e0aab558aeba465c886fce57c37f6f0c53 (diff)
downloadatracdenc-52271de4d7dbb11379cfc1b3dddc0a35852a06d8.tar.gz
Add support for writing .at3/.wav files with ATRAC3 (#30)
* Add support for writing .at3/.wav files with ATRAC3 * Check file size limit * AT3/WAV export: Add big endian support, force packed structs
Diffstat (limited to 'src/at3.h')
-rw-r--r--src/at3.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/at3.h b/src/at3.h
new file mode 100644
index 0000000..85f7a9e
--- /dev/null
+++ b/src/at3.h
@@ -0,0 +1,25 @@
+/*
+ * This file is part of AtracDEnc.
+ *
+ * AtracDEnc is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * AtracDEnc is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with AtracDEnc; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#pragma once
+
+#include "compressed_io.h"
+
+TCompressedOutputPtr
+CreateAt3Output(const std::string& filename, uint8_t numChannel,
+ uint32_t numFrames, uint32_t framesize, bool jointStereo);