diff --git a/app/src/main/cpp/sox/CmakeLists.txt b/app/src/main/cpp/sox/CmakeLists.txt index eaaf8d9..6b2eff9 100644 --- a/app/src/main/cpp/sox/CmakeLists.txt +++ b/app/src/main/cpp/sox/CmakeLists.txt @@ -110,6 +110,11 @@ set(formats_srcs s3-fmt.c s4-fmt.c sox-fmt.c + u1-fmt.c + u2-fmt.c + u3-fmt.c + u4-fmt.c + ul-fmt.c voc.c vox.c vox.h diff --git a/app/src/main/cpp/sox/formats.h b/app/src/main/cpp/sox/formats.h index 13ce859..0a87acb 100644 --- a/app/src/main/cpp/sox/formats.h +++ b/app/src/main/cpp/sox/formats.h @@ -52,11 +52,11 @@ // FORMAT(sphere) // FORMAT(svx) // FORMAT(txw) -// FORMAT(u1) -// FORMAT(u2) -// FORMAT(u3) -// FORMAT(u4) -// FORMAT(ul) + FORMAT(u1) + FORMAT(u2) + FORMAT(u3) + FORMAT(u4) + FORMAT(ul) FORMAT(voc) FORMAT(vox) FORMAT(wav) diff --git a/app/src/main/cpp/sox/u1-fmt.c b/app/src/main/cpp/sox/u1-fmt.c new file mode 100644 index 0000000..f25f39d --- /dev/null +++ b/app/src/main/cpp/sox/u1-fmt.c @@ -0,0 +1,21 @@ +/* libSoX file formats: raw (c) 2007-8 SoX contributors + * + * This library 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. + * + * This library 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 this library; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "sox_i.h" +#include "raw.h" + +RAW_FORMAT4(u1, "u8", "ub", "sou", "fssd", 8, 0, UNSIGNED) diff --git a/app/src/main/cpp/sox/u2-fmt.c b/app/src/main/cpp/sox/u2-fmt.c new file mode 100644 index 0000000..27019d6 --- /dev/null +++ b/app/src/main/cpp/sox/u2-fmt.c @@ -0,0 +1,21 @@ +/* libSoX file formats: raw (c) 2007-8 SoX contributors + * + * This library 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. + * + * This library 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 this library; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "sox_i.h" +#include "raw.h" + +RAW_FORMAT2(u2, "u16", "uw", 16, 0, UNSIGNED) diff --git a/app/src/main/cpp/sox/u3-fmt.c b/app/src/main/cpp/sox/u3-fmt.c new file mode 100644 index 0000000..66b7587 --- /dev/null +++ b/app/src/main/cpp/sox/u3-fmt.c @@ -0,0 +1,21 @@ +/* libSoX file formats: raw (c) 2007-8 SoX contributors + * + * This library 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. + * + * This library 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 this library; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "sox_i.h" +#include "raw.h" + +RAW_FORMAT1(u3, "u24", 24, 0, UNSIGNED) diff --git a/app/src/main/cpp/sox/u4-fmt.c b/app/src/main/cpp/sox/u4-fmt.c new file mode 100644 index 0000000..28f99fa --- /dev/null +++ b/app/src/main/cpp/sox/u4-fmt.c @@ -0,0 +1,21 @@ +/* libSoX file formats: raw (c) 2007-8 SoX contributors + * + * This library 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. + * + * This library 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 this library; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "sox_i.h" +#include "raw.h" + +RAW_FORMAT1(u4, "u32", 32, 0, UNSIGNED) diff --git a/app/src/main/cpp/sox/ul-fmt.c b/app/src/main/cpp/sox/ul-fmt.c new file mode 100644 index 0000000..b876f3e --- /dev/null +++ b/app/src/main/cpp/sox/ul-fmt.c @@ -0,0 +1,21 @@ +/* libSoX file formats: raw (c) 2007-8 SoX contributors + * + * This library 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. + * + * This library 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 this library; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "sox_i.h" +#include "raw.h" + +RAW_FORMAT(ul, 8, 0, ULAW)