summaryrefslogtreecommitdiffstats
path: root/tdeioslave/audiocd/plugins/wav
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2017-03-26 15:58:46 +0200
committerSlávek Banko <slavek.banko@axis.cz>2017-03-26 15:58:46 +0200
commit8b12682035e2ae92a29a9ce12abc5fbcf38b1192 (patch)
tree1cc5c3fe9ef3b23557fc4e9e507fd0d23d007160 /tdeioslave/audiocd/plugins/wav
parent250d713ff809fa943f614459009d1160e269dcef (diff)
downloadtdemultimedia-8b12682035e2ae92a29a9ce12abc5fbcf38b1192.tar.gz
tdemultimedia-8b12682035e2ae92a29a9ce12abc5fbcf38b1192.zip
Initial cmake conversion
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tdeioslave/audiocd/plugins/wav')
-rw-r--r--tdeioslave/audiocd/plugins/wav/CMakeLists.txt35
-rw-r--r--tdeioslave/audiocd/plugins/wav/encoderwav.cpp22
2 files changed, 46 insertions, 11 deletions
diff --git a/tdeioslave/audiocd/plugins/wav/CMakeLists.txt b/tdeioslave/audiocd/plugins/wav/CMakeLists.txt
new file mode 100644
index 00000000..454ecb11
--- /dev/null
+++ b/tdeioslave/audiocd/plugins/wav/CMakeLists.txt
@@ -0,0 +1,35 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/..
+ ${CMAKE_SOURCE_DIR}/libkcddb
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### libaudiocd_encoder_wav (module) ###########
+
+tde_add_kpart( libaudiocd_encoder_wav AUTOMOC
+ SOURCES
+ encoderwav.cpp
+ encodercda.cpp
+ LINK
+ tdeio-shared audiocdplugins-shared ${CDPARANOIA_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/tdeioslave/audiocd/plugins/wav/encoderwav.cpp b/tdeioslave/audiocd/plugins/wav/encoderwav.cpp
index 84a8586b..7bed1765 100644
--- a/tdeioslave/audiocd/plugins/wav/encoderwav.cpp
+++ b/tdeioslave/audiocd/plugins/wav/encoderwav.cpp
@@ -50,17 +50,17 @@ const char * EncoderWav::mimeType() const {
long EncoderWav::readInit(long byteCount){
static char riffHeader[] =
{
- 0x52, 0x49, 0x46, 0x46, // 0 "AIFF"
- 0x00, 0x00, 0x00, 0x00, // 4 wavSize
- 0x57, 0x41, 0x56, 0x45, // 8 "WAVE"
- 0x66, 0x6d, 0x74, 0x20, // 12 "fmt "
- 0x10, 0x00, 0x00, 0x00, // 16
- 0x01, 0x00, 0x02, 0x00, // 20
- 0x44, 0xac, 0x00, 0x00, // 24
- 0x10, 0xb1, 0x02, 0x00, // 28
- 0x04, 0x00, 0x10, 0x00, // 32
- 0x64, 0x61, 0x74, 0x61, // 36 "data"
- 0x00, 0x00, 0x00, 0x00 // 40 byteCount
+ '\x52', '\x49', '\x46', '\x46', // 0 "AIFF"
+ '\x00', '\x00', '\x00', '\x00', // 4 wavSize
+ '\x57', '\x41', '\x56', '\x45', // 8 "WAVE"
+ '\x66', '\x6d', '\x74', '\x20', // 12 "fmt "
+ '\x10', '\x00', '\x00', '\x00', // 16
+ '\x01', '\x00', '\x02', '\x00', // 20
+ '\x44', '\xac', '\x00', '\x00', // 24
+ '\x10', '\xb1', '\x02', '\x00', // 28
+ '\x04', '\x00', '\x10', '\x00', // 32
+ '\x64', '\x61', '\x74', '\x61', // 36 "data"
+ '\x00', '\x00', '\x00', '\x00' // 40 byteCount
};
TQ_INT32 wavSize(byteCount + 44 - 8);