diff options
author | Shashank | 2017-05-29 12:40:26 +0530 |
---|---|---|
committer | Shashank | 2017-05-29 12:40:26 +0530 |
commit | 0345245e860375a32c9a437c4a9d9cae807134e9 (patch) | |
tree | ad51ecbfa7bcd3cc5f09834f1bb8c08feaa526a4 /modules/sound | |
download | scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.gz scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.bz2 scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.zip |
CMSCOPE changed
Diffstat (limited to 'modules/sound')
169 files changed, 13273 insertions, 0 deletions
diff --git a/modules/sound/.libs/libscisound.la b/modules/sound/.libs/libscisound.la new file mode 120000 index 000000000..5c228d512 --- /dev/null +++ b/modules/sound/.libs/libscisound.la @@ -0,0 +1 @@ +../libscisound.la
\ No newline at end of file diff --git a/modules/sound/.libs/libscisound.lai b/modules/sound/.libs/libscisound.lai new file mode 100755 index 000000000..b1007c03c --- /dev/null +++ b/modules/sound/.libs/libscisound.lai @@ -0,0 +1,41 @@ +# libscisound.la - a libtool library file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='libscisound.so.5' + +# Names of this library. +library_names='libscisound.so.5.5.2 libscisound.so.5 libscisound.so' + +# The name of the static archive. +old_library='' + +# Linker flags that can not go in dependency_libs. +inherited_linker_flags='' + +# Libraries that this one depends upon. +dependency_libs=' -lpthread -ldl -lcurses -lm' + +# Names of additional weak libraries provided by this library +weak_library_names='' + +# Version information for libscisound. +current=10 +age=5 +revision=2 + +# Is this an already installed library? +installed=yes + +# Should we warn about portability when linking against -modules? +shouldnotlink=no + +# Files to dlopen/dlpreopen +dlopen='' +dlpreopen='' + +# Directory that this library needs to be installed in: +libdir='/usr/local/lib/scilab' diff --git a/modules/sound/.libs/libscisound.so b/modules/sound/.libs/libscisound.so new file mode 120000 index 000000000..8852e05ff --- /dev/null +++ b/modules/sound/.libs/libscisound.so @@ -0,0 +1 @@ +libscisound.so.5.5.2
\ No newline at end of file diff --git a/modules/sound/.libs/libscisound.so.5 b/modules/sound/.libs/libscisound.so.5 new file mode 120000 index 000000000..8852e05ff --- /dev/null +++ b/modules/sound/.libs/libscisound.so.5 @@ -0,0 +1 @@ +libscisound.so.5.5.2
\ No newline at end of file diff --git a/modules/sound/.libs/libscisound.so.5.5.2 b/modules/sound/.libs/libscisound.so.5.5.2 Binary files differnew file mode 100755 index 000000000..a8dc7053b --- /dev/null +++ b/modules/sound/.libs/libscisound.so.5.5.2 diff --git a/modules/sound/Makefile b/modules/sound/Makefile new file mode 100755 index 000000000..3bc1188aa --- /dev/null +++ b/modules/sound/Makefile @@ -0,0 +1,1283 @@ +# Makefile.in generated by automake 1.14.1 from Makefile.am. +# modules/sound/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + +# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +# Copyright (C) 2006 - INRIA - Sylvestre Ledru <sylvestre.ledru@inria.fr> +# +# This file is distributed under the same license as the Scilab package. + +# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +# Copyright (C) 2006-2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr> +# Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr> +# +# This file must be used under the terms of the CeCILL. +# This source file is licensed as described in the file COPYING, which +# you should have received as part of this distribution. The terms +# are also available at +# http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +# + +########## +### Makefile included stuff +### Target, variable, suffixes which are supposed to be useful in every makefile.am +########## + + + +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/scilab +pkgincludedir = $(includedir)/scilab +pkglibdir = $(libdir)/scilab +pkglibexecdir = $(libexecdir)/scilab +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +DIST_COMMON = $(top_srcdir)/Makefile.incl.am $(srcdir)/Makefile.in \ + $(srcdir)/Makefile.am $(top_srcdir)/config/mkinstalldirs \ + $(top_srcdir)/config/depcomp +am__append_1 = java +subdir = modules/sound +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/backtrace.m4 \ + $(top_srcdir)/m4/compiler.m4 $(top_srcdir)/m4/curl.m4 \ + $(top_srcdir)/m4/docbook.m4 $(top_srcdir)/m4/doxygen.m4 \ + $(top_srcdir)/m4/fftw.m4 $(top_srcdir)/m4/fortran.m4 \ + $(top_srcdir)/m4/giws.m4 $(top_srcdir)/m4/hdf5.m4 \ + $(top_srcdir)/m4/intel_compiler.m4 \ + $(top_srcdir)/m4/java-thirdparty.m4 $(top_srcdir)/m4/java.m4 \ + $(top_srcdir)/m4/largefile.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/libsmath.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/ltoptions.m4 \ + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/macosx.m4 \ + $(top_srcdir)/m4/mpi.m4 $(top_srcdir)/m4/ocaml.m4 \ + $(top_srcdir)/m4/pcre.m4 $(top_srcdir)/m4/pkg.m4 \ + $(top_srcdir)/m4/relocatable.m4 $(top_srcdir)/m4/swig.m4 \ + $(top_srcdir)/m4/symlinks.m4 $(top_srcdir)/m4/tcltk.m4 \ + $(top_srcdir)/m4/umfpack.m4 $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/modules/core/includes/machine.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(pkglibdir)" \ + "$(DESTDIR)$(libscisound_la_etcdir)" \ + "$(DESTDIR)$(libscisound_la_rootdir)" \ + "$(DESTDIR)$(libscisound_la_sci_gatewaydir)" +LTLIBRARIES = $(pkglib_LTLIBRARIES) +libscisound_la_LIBADD = +am__dirstamp = $(am__leading_dot)dirstamp +am__objects_1 = sci_gateway/c/libscisound_la-gw_sound.lo \ + sci_gateway/c/libscisound_la-sci_beep.lo \ + sci_gateway/c/libscisound_la-sci_PlaySound.lo +am_libscisound_la_OBJECTS = $(am__objects_1) +libscisound_la_OBJECTS = $(am_libscisound_la_OBJECTS) +AM_V_lt = $(am__v_lt_$(V)) +am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) +am__v_lt_0 = --silent +am__v_lt_1 = +AM_V_P = $(am__v_P_$(V)) +am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY)) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ +am__v_at_1 = +DEFAULT_INCLUDES = -I. -I$(top_builddir)/modules/core/includes +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_$(V)) +am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) +am__v_CC_0 = @echo " CC " $@; +am__v_CC_1 = +CCLD = $(CC) +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_$(V)) +am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) +am__v_CCLD_0 = @echo " CCLD " $@; +am__v_CCLD_1 = +SOURCES = $(libscisound_la_SOURCES) +DIST_SOURCES = $(libscisound_la_SOURCES) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +DATA = $(libscisound_la_etc_DATA) $(libscisound_la_root_DATA) \ + $(libscisound_la_sci_gateway_DATA) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing aclocal-1.14 +ALL_LINGUAS = en_US fr_FR zh_CN zh_TW ru_RU ca_ES de_DE es_ES pt_BR ja_JP it_IT uk_UA pl_PL cs_CZ +ALL_LINGUAS_DOC = en_US fr_FR pt_BR ja_JP ru_RU +AMTAR = $${TAR-tar} +AM_DEFAULT_VERBOSITY = 1 +ANT = /usr/bin/ant +ANTLR = /usr/share/java/antlr.jar +AR = ar +ARPACK_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -larpack +ASM3 = /usr/share/java/asm3-3.3.2.jar +AUTOCONF = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing autoconf +AUTOHEADER = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing autoheader +AUTOMAKE = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing automake-1.14 +AVALON_FRAMEWORK = /home/shashank/scilab-master_5.5.2/thirdparty/avalon-framework.jar +AWK = mawk +BATIK = /home/shashank/scilab-master_5.5.2/thirdparty/batik-all-1.7.jar +BLAS_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lblas +CC = gcc +CCACHE = +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CHECKSTYLE = +COBERTURA = /usr/share/java/cobertura.jar +COMMONS_BEANUTILS = +COMMONS_IO = /home/shashank/scilab-master_5.5.2/thirdparty/commons-io.jar +COMMONS_LOGGING = /home/shashank/scilab-master_5.5.2/thirdparty/commons-logging.jar +CPP = gcc -E +CPPFLAGS = +CURL_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include +CURL_CONFIG = /home/shashank/scilab-master_5.5.2/usr/bin/curl-config +CURL_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lcurl -L/home/scilab/work/linux-prerequisites-sources/trunk/Dev-Tools/SE/Prerequirements/linux_x64/usr/lib -L/home/scilab/work/linux-prerequisites-sources/trunk/Dev-Tools/SE/Prerequirements/linux_x64/usr/lib -lssl -lcrypto -lrt -lz +CURL_VERSION = libcurl 7.19.7 +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DEFS = -DHAVE_CONFIG_H +DEMOTOOLS_ENABLE = yes +DEPDIR = .deps +DLLTOOL = false +DOCBOOK_ROOT = /home/shashank/scilab-master_5.5.2/thirdparty/docbook/ +DOXYGEN_BIN = +DSYMUTIL = +DUMPBIN = +ECHO_C = +ECHO_N = -n +ECHO_T = +ECJ = /home/shashank/scilab-master_5.5.2/thirdparty/ecj.jar +EGREP = /bin/grep -E +EXEEXT = +F77 = gfortran +FFLAGS = -g -O2 +FFTW3_LIB = -L/home/shashank/scilab-master_5.5.2/usr/lib -lfftw3 +FFTW_ENABLE = yes +FGREP = /bin/grep -F +FLEXDOCK = /home/shashank/scilab-master_5.5.2/thirdparty/flexdock-1.2.4.jar +FLIBS = -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. -lpthread -ldl -lcurses -lgfortran -lm -lquadmath +FOP = /home/shashank/scilab-master_5.5.2/thirdparty/fop.jar +FREEHEP_GRAPHICS2D = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-graphics2d.jar +FREEHEP_GRAPHICSIO = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-graphicsio.jar +FREEHEP_GRAPHICSIO_EMF = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-graphicsio-emf.jar +FREEHEP_IO = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-io.jar +FREEHEP_UTIL = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-util.jar +GENHTML = +GETTEXT_MACRO_VERSION = 0.19 +GIWS_BIN = +GLUEGEN2_RT = /home/shashank/scilab-master_5.5.2/thirdparty/gluegen2-rt.jar +GMSGFMT = /usr/bin/msgfmt +GMSGFMT_015 = /usr/bin/msgfmt +GRAPHICS_ENABLE = yes +GREP = /bin/grep +GUI_ENABLE = yes +HDF5_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include +HDF5_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lhdf5 -lhdf5_hl +HELP_ENABLE = yes +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +INTLLIBS = +INTL_MACOSX_LIBS = +JAR = /usr/lib/jvm/java-8-openjdk-amd64/bin/jar +JAVA = /usr/lib/jvm/java-8-openjdk-amd64/bin/java +JAVAC = /usr/lib/jvm/java-8-openjdk-amd64/bin/javac +JAVAC_DEBUG = off +JAVADOC = /usr/lib/jvm/java-8-openjdk-amd64/bin/javadoc +JAVAH = /usr/lib/jvm/java-8-openjdk-amd64/bin/javah +JAVASCI_ENABLE = yes +JAVA_ENABLE = yes +JAVA_G = /usr/lib/jvm/java-8-openjdk-amd64/bin/java +JAVA_HOME = /usr/lib/jvm/java-8-openjdk-amd64 +JAVA_JNI_INCLUDE = -I/usr/lib/jvm/java-8-openjdk-amd64/include -I/usr/lib/jvm/java-8-openjdk-amd64/include/linux +JAVA_JNI_LIBS = -L/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64 -ljava -lverify -L/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server -ljvm +JDB = /usr/lib/jvm/java-8-openjdk-amd64/bin/jdb +JEUCLID_CORE = /home/shashank/scilab-master_5.5.2/thirdparty/jeuclid-core.jar +JGRAPHX = /home/shashank/scilab-master_5.5.2/thirdparty/jgraphx.jar +JHALL = /home/shashank/scilab-master_5.5.2/thirdparty/jhall.jar +JLATEXMATH = /home/shashank/scilab-master_5.5.2/thirdparty/jlatexmath-1.0.3.jar +JLATEXMATH_FOP = /home/shashank/scilab-master_5.5.2/thirdparty/jlatexmath-fop-1.0.3.jar +JOGL2 = /home/shashank/scilab-master_5.5.2/thirdparty/jogl2.jar +JROSETTA_API = /home/shashank/scilab-master_5.5.2/thirdparty/jrosetta-API.jar +JROSETTA_ENGINE = /home/shashank/scilab-master_5.5.2/thirdparty/jrosetta-engine.jar +JUNIT4 = /usr/share/java/junit4.jar +LAPACK_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -llapack +LCOV = +LD = /usr/bin/ld -m elf_x86_64 +LDFLAGS = -Wl,--no-as-needed +LIBICONV = -liconv +LIBINTL = +LIBM = -lm +LIBOBJS = +LIBS = -lpthread -ldl -lcurses -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool +LIPO = +LN_S = ln -s +LOGGING_LEVEL = SEVERE +LOOKS = /home/shashank/scilab-master_5.5.2/thirdparty/looks-2.1.1.jar +LTLIBICONV = -liconv +LTLIBINTL = +LTLIBOBJS = +MAINT = # +MAKEINFO = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing makeinfo +MANIFEST_TOOL = : +MATIO_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include +MATIO_ENABLE = yes +MATIO_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lm -lz -lmatio -lhdf5 +MKDIR_P = /bin/mkdir -p +MPI_ENABLE = no +MSGCAT = /usr/bin/msgcat +MSGFMT = /usr/bin/msgfmt +MSGFMT_015 = /usr/bin/msgfmt +MSGMERGE = /usr/bin/msgmerge +NM = nm +NMEDIT = +OBJDUMP = objdump +OBJEXT = o +OCAMLC = ocamlc +OCAMLDEP = ocamldep +OCAMLLEX = ocamllex +OCAMLOPT = ocamlopt +OCAMLYACC = ocamlyacc +OPENMPI_CC = +OPENMPI_CFLAGS = +OPENMPI_CXX = +OPENMPI_CXXFLAGS = +OPENMPI_LIBS = +OPENMP_CFLAGS = -fopenmp +OPENMP_CXXFLAGS = -fopenmp +OPENMP_ENABLE = yes +OPENMP_LIBS = -lgomp -lstdc++ +OTOOL = +OTOOL64 = +PACKAGE = scilab +PACKAGE_BUGREPORT = http://bugzilla.scilab.org/ +PACKAGE_NAME = Scilab +PACKAGE_STRING = Scilab 5 +PACKAGE_TARNAME = scilab +PACKAGE_URL = +PACKAGE_VERSION = 5 +PATH_SEPARATOR = : +PCRE_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include +PCRE_CONFIG = /home/shashank/scilab-master_5.5.2/usr/bin/pcre-config +PCRE_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lpcreposix -lpcre +PCRE_VERSION = 8.35 +PKG_CONFIG = /usr/bin/pkg-config +POSUB = po +POW_LIB = +PYTHON = +RANLIB = ranlib +RELOCATABLE = no +RT_LIB = -lrt +SAXON = /home/shashank/scilab-master_5.5.2/thirdparty/saxon9he.jar +SCILAB_BINARY_VERSION = 5.5.2 +SCILAB_LIBRARY_VERSION = 5:5:2 +SCILAB_VERSION_MAINTENANCE = 2 +SCILAB_VERSION_MAJOR = 5 +SCILAB_VERSION_MINOR = 5 +SCIRENDERER = ${modules.dir}/scirenderer/${build.jar.dir}/scirenderer.jar +SCIRENDERER_CP = $SCILAB/modules/scirenderer/jar/scirenderer.jar +SCI_CFLAGS = -D_LARGEFILE64_SOURCE -DNDEBUG -m64 -fno-stack-protector +SCI_CXXFLAGS = -DNDEBUG -fno-stack-protector +SCI_FFLAGS = -DNDEBUG -m64 -fPIC +SCI_LDFLAGS = +SED = /bin/sed +SET_MAKE = +SET_RELOCATABLE = +SHELL = /bin/bash +SKINLF = /home/shashank/scilab-master_5.5.2/thirdparty/skinlf.jar +SPLINT = no +STRIP = strip +SWIG_BIN = +SWIG_JAVA = +SWIG_RUNTIME_LIBS_DIR = +SWIG_SCILAB = +TCLTK_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -ltk8.5 -L/home/shashank/scilab-master_5.5.2/usr/lib -ltcl8.5 -ldl +TCL_INC_PATH = -I/home/shashank/scilab-master_5.5.2/usr/include +TK_INC_PATH = -I/home/shashank/scilab-master_5.5.2/usr/include +UMFPACK_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include +UMFPACK_ENABLE = yes +UMFPACK_LIB = -L/home/shashank/scilab-master_5.5.2/usr/lib -lumfpack -lamd +USE_NLS = yes +VERSION = 5 +WITH_OCAML = +WITH_TKSCI = yes +XCOS_ENABLE = yes +XGETTEXT = /usr/bin/xgettext +XGETTEXT_015 = /usr/bin/xgettext +XGETTEXT_EXTRA_OPTIONS = +XMKMF = +XMLGRAPHICS_COMMONS = /home/shashank/scilab-master_5.5.2/thirdparty/xmlgraphics-commons-1.4.jar +XML_APIS_EXT = /home/shashank/scilab-master_5.5.2/thirdparty/xml-apis-ext.jar +XML_CONFIG = /home/shashank/scilab-master_5.5.2/usr/bin/xml2-config +XML_FLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include/libxml2 +XML_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lxml2 -L/home/scilab/work/linux-prerequisites-sources/trunk/Dev-Tools/SE/Prerequirements/linux_x64/usr/lib -lz -lm -ldl +XML_VERSION = 2.9.1 +X_CFLAGS = +X_EXTRA_LIBS = +X_LIBS = +X_PRE_LIBS = +abs_builddir = /home/shashank/scilab-master_5.5.2/modules/sound +abs_srcdir = /home/shashank/scilab-master_5.5.2/modules/sound +abs_top_builddir = /home/shashank/scilab-master_5.5.2 +abs_top_srcdir = /home/shashank/scilab-master_5.5.2 +ac_ct_AR = ar +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_DUMPBIN = +ac_ct_F77 = gfortran +am__include = include +am__leading_dot = . +am__quote = +am__tar = $${TAR-tar} chof - "$$tardir" +am__untar = $${TAR-tar} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +cxx_present = yes +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE_TARNAME} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = ${SHELL} /home/shashank/scilab-master_5.5.2/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = $(MKDIR_P) +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_build_prefix = ../../ +top_builddir = ../.. +top_srcdir = ../.. +GATEWAY_C_SOURCES = sci_gateway/c/gw_sound.c \ +sci_gateway/c/sci_beep.c \ +sci_gateway/c/sci_PlaySound.c + +libscisound_la_CPPFLAGS = -I$(srcdir)/includes/ \ + -I$(srcdir)/src/c/ \ + -I$(top_srcdir)/modules/output_stream/includes/ \ + -I$(top_srcdir)/modules/api_scilab/includes/ \ + -I$(top_srcdir)/modules/localization/includes/ \ + -I$(top_srcdir)/modules/fileio/includes/ \ + $(AM_CPPFLAGS) + +pkglib_LTLIBRARIES = libscisound.la +libscisound_la_SOURCES = $(GATEWAY_C_SOURCES) + +# For the code check (splint) +CHECK_SRC = $(libscisound_la_SOURCES) +INCLUDE_FLAGS = $(libscisound_la_CPPFLAGS) + +#### Target ###### +modulename = sound + +#### sound : Conf files #### +libscisound_la_rootdir = $(mydatadir) +libscisound_la_root_DATA = license.txt + +####�sound : init scripts #### +libscisound_la_etcdir = $(mydatadir)/etc +libscisound_la_etc_DATA = etc/sound.quit etc/sound.start + +####�sound : gateway declaration #### +libscisound_la_sci_gatewaydir = $(mydatadir)/sci_gateway +libscisound_la_sci_gateway_DATA = sci_gateway/sound_gateway.xml + +####�sound : include files #### +libscisound_la_includedir = $(pkgincludedir) + +# Where all the Scilab stuff is installed (macros, help, ...) +mydatadir = $(pkgdatadir)/modules/$(modulename) + +# Set AM_* SCI detected settings +AM_CPPFLAGS = $(SCI_CPPFLAGS) +AM_CFLAGS = $(SCI_CFLAGS) +AM_CXXFLAGS = $(SCI_CXXFLAGS) +# append includes to AM_FFLAGS to manage fortran includes +AM_FFLAGS = $(SCI_FFLAGS) -I$(top_srcdir)/modules/core/includes/ + +# Tag shared libraries with the Scilab version +AM_LDFLAGS = $(SCI_LDFLAGS) -version-number $(SCILAB_LIBRARY_VERSION) + +# splint options +SPLINT_OPTIONS = -weak -booltype BOOL + +########################### JAVA ###################################### +#### We are delegating java compilation to ant... Thanks to that +#### the procedure will be the same with Microsoft Windows (C) +#### and Linux/Unix +####################################################################### +TARGETS_ALL = $(am__append_1) + +################ MACROS ###################### +# Rule to build a macro +# NOT USED AT THE MOMENT +SUFFIXES = .sci + +########### INSTALL DOCUMENTATION ################### + +# Install documentation files into the right target +# We do not use the automake mechanism (libxxxx_la_help_fr_DATA) because +# automake needs the html files to be present which is not the case when +# we are building Scilab + +# Where it should be installed +pkgdocdir = $(mydatadir) + +# What is the mask of the help source +DOCMASKXML = *.xml + +# What is the mask of the MathML sources +DOCMASKMML = *.mml + +########### INSTALL DATA ################### +# Install macros, help & demos +# Where it should be installed +pkgmacrosdir = $(mydatadir) +# Which directory we process +MACRODIRS = macros/ +# Mask of the Scilab sources macros +MACROMASK = *.sci +# Mask of the Scilab executable sources macros +MACROBUILDMASK = *.sce +# Mask of the Scilab compiled macros +MACROBINMASK = *.bin +# List of the standard directory for tests +TESTS_DIR = tests/benchmarks tests/nonreg_tests tests/unit_tests tests/java +# Where the demos should be installed +pkgdemosdir = $(mydatadir) +# List of the standard directory for demos +DEMOS_DIR = demos +# List of the standard directory for examples +EXAMPLES_DIR = examples +# Where to export JAVA archives (.jar) +JARDIR = jar/ +# JAR files mask +JARMASK = *.jar +# Chapter file +HELP_CHAPTERDIR = help/ +HELP_CHAPTERFILE = addchapter.sce +HELP_CHAPTERLANG = en_US fr_FR pt_BR +all: all-am + +.SUFFIXES: +.SUFFIXES: .sci .bin .c .lo .o .obj +$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(top_srcdir)/Makefile.incl.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign modules/sound/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign modules/sound/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; +$(top_srcdir)/Makefile.incl.am: + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: # $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): # $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES) + @$(NORMAL_INSTALL) + @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \ + list2=; for p in $$list; do \ + if test -f $$p; then \ + list2="$$list2 $$p"; \ + else :; fi; \ + done; \ + test -z "$$list2" || { \ + echo " $(MKDIR_P) '$(DESTDIR)$(pkglibdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" || exit 1; \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkglibdir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkglibdir)"; \ + } + +uninstall-pkglibLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$f"; \ + done + +clean-pkglibLTLIBRARIES: + -test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES) + @list='$(pkglib_LTLIBRARIES)'; \ + locs=`for p in $$list; do echo $$p; done | \ + sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ + sort -u`; \ + test -z "$$locs" || { \ + echo rm -f $${locs}; \ + rm -f $${locs}; \ + } +sci_gateway/c/$(am__dirstamp): + @$(MKDIR_P) sci_gateway/c + @: > sci_gateway/c/$(am__dirstamp) +sci_gateway/c/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) sci_gateway/c/$(DEPDIR) + @: > sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscisound_la-gw_sound.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscisound_la-sci_beep.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscisound_la-sci_PlaySound.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) + +libscisound.la: $(libscisound_la_OBJECTS) $(libscisound_la_DEPENDENCIES) $(EXTRA_libscisound_la_DEPENDENCIES) + $(AM_V_CCLD)$(LINK) -rpath $(pkglibdir) $(libscisound_la_OBJECTS) $(libscisound_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + -rm -f sci_gateway/c/*.$(OBJEXT) + -rm -f sci_gateway/c/*.lo + +distclean-compile: + -rm -f *.tab.c + +include sci_gateway/c/$(DEPDIR)/libscisound_la-gw_sound.Plo +include sci_gateway/c/$(DEPDIR)/libscisound_la-sci_PlaySound.Plo +include sci_gateway/c/$(DEPDIR)/libscisound_la-sci_beep.Plo + +.c.o: + $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ + $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ + $(am__mv) $$depbase.Tpo $$depbase.Po +# $(AM_V_CC)source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(COMPILE) -c -o $@ $< + +.c.obj: + $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ + $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ + $(am__mv) $$depbase.Tpo $$depbase.Po +# $(AM_V_CC)source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.c.lo: + $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ + $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ + $(am__mv) $$depbase.Tpo $$depbase.Plo +# $(AM_V_CC)source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LTCOMPILE) -c -o $@ $< + +sci_gateway/c/libscisound_la-gw_sound.lo: sci_gateway/c/gw_sound.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscisound_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscisound_la-gw_sound.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscisound_la-gw_sound.Tpo -c -o sci_gateway/c/libscisound_la-gw_sound.lo `test -f 'sci_gateway/c/gw_sound.c' || echo '$(srcdir)/'`sci_gateway/c/gw_sound.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscisound_la-gw_sound.Tpo sci_gateway/c/$(DEPDIR)/libscisound_la-gw_sound.Plo +# $(AM_V_CC)source='sci_gateway/c/gw_sound.c' object='sci_gateway/c/libscisound_la-gw_sound.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscisound_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscisound_la-gw_sound.lo `test -f 'sci_gateway/c/gw_sound.c' || echo '$(srcdir)/'`sci_gateway/c/gw_sound.c + +sci_gateway/c/libscisound_la-sci_beep.lo: sci_gateway/c/sci_beep.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscisound_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscisound_la-sci_beep.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscisound_la-sci_beep.Tpo -c -o sci_gateway/c/libscisound_la-sci_beep.lo `test -f 'sci_gateway/c/sci_beep.c' || echo '$(srcdir)/'`sci_gateway/c/sci_beep.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscisound_la-sci_beep.Tpo sci_gateway/c/$(DEPDIR)/libscisound_la-sci_beep.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_beep.c' object='sci_gateway/c/libscisound_la-sci_beep.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscisound_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscisound_la-sci_beep.lo `test -f 'sci_gateway/c/sci_beep.c' || echo '$(srcdir)/'`sci_gateway/c/sci_beep.c + +sci_gateway/c/libscisound_la-sci_PlaySound.lo: sci_gateway/c/sci_PlaySound.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscisound_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscisound_la-sci_PlaySound.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscisound_la-sci_PlaySound.Tpo -c -o sci_gateway/c/libscisound_la-sci_PlaySound.lo `test -f 'sci_gateway/c/sci_PlaySound.c' || echo '$(srcdir)/'`sci_gateway/c/sci_PlaySound.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscisound_la-sci_PlaySound.Tpo sci_gateway/c/$(DEPDIR)/libscisound_la-sci_PlaySound.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_PlaySound.c' object='sci_gateway/c/libscisound_la-sci_PlaySound.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscisound_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscisound_la-sci_PlaySound.lo `test -f 'sci_gateway/c/sci_PlaySound.c' || echo '$(srcdir)/'`sci_gateway/c/sci_PlaySound.c + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + -rm -rf sci_gateway/c/.libs sci_gateway/c/_libs +install-libscisound_la_etcDATA: $(libscisound_la_etc_DATA) + @$(NORMAL_INSTALL) + @list='$(libscisound_la_etc_DATA)'; test -n "$(libscisound_la_etcdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libscisound_la_etcdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libscisound_la_etcdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscisound_la_etcdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libscisound_la_etcdir)" || exit $$?; \ + done + +uninstall-libscisound_la_etcDATA: + @$(NORMAL_UNINSTALL) + @list='$(libscisound_la_etc_DATA)'; test -n "$(libscisound_la_etcdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libscisound_la_etcdir)'; $(am__uninstall_files_from_dir) +install-libscisound_la_rootDATA: $(libscisound_la_root_DATA) + @$(NORMAL_INSTALL) + @list='$(libscisound_la_root_DATA)'; test -n "$(libscisound_la_rootdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libscisound_la_rootdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libscisound_la_rootdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscisound_la_rootdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libscisound_la_rootdir)" || exit $$?; \ + done + +uninstall-libscisound_la_rootDATA: + @$(NORMAL_UNINSTALL) + @list='$(libscisound_la_root_DATA)'; test -n "$(libscisound_la_rootdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libscisound_la_rootdir)'; $(am__uninstall_files_from_dir) +install-libscisound_la_sci_gatewayDATA: $(libscisound_la_sci_gateway_DATA) + @$(NORMAL_INSTALL) + @list='$(libscisound_la_sci_gateway_DATA)'; test -n "$(libscisound_la_sci_gatewaydir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libscisound_la_sci_gatewaydir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libscisound_la_sci_gatewaydir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscisound_la_sci_gatewaydir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libscisound_la_sci_gatewaydir)" || exit $$?; \ + done + +uninstall-libscisound_la_sci_gatewayDATA: + @$(NORMAL_UNINSTALL) + @list='$(libscisound_la_sci_gateway_DATA)'; test -n "$(libscisound_la_sci_gatewaydir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libscisound_la_sci_gatewaydir)'; $(am__uninstall_files_from_dir) + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-am +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-am + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-am + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am + $(MAKE) $(AM_MAKEFLAGS) check-local +check: check-am +all-am: Makefile $(LTLIBRARIES) $(DATA) all-local +installdirs: + for dir in "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(libscisound_la_etcdir)" "$(DESTDIR)$(libscisound_la_rootdir)" "$(DESTDIR)$(libscisound_la_sci_gatewaydir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -rm -f sci_gateway/c/$(DEPDIR)/$(am__dirstamp) + -rm -f sci_gateway/c/$(am__dirstamp) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-local \ + clean-pkglibLTLIBRARIES mostlyclean-am + +distclean: distclean-am + -rm -rf sci_gateway/c/$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-local distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-data-local install-libscisound_la_etcDATA \ + install-libscisound_la_rootDATA \ + install-libscisound_la_sci_gatewayDATA + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-pkglibLTLIBRARIES + +install-html: install-html-am + +install-html-am: install-html-local + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf sci_gateway/c/$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-libscisound_la_etcDATA \ + uninstall-libscisound_la_rootDATA \ + uninstall-libscisound_la_sci_gatewayDATA \ + uninstall-pkglibLTLIBRARIES + +.MAKE: check-am install-am install-strip + +.PHONY: CTAGS GTAGS TAGS all all-am all-local check check-am \ + check-local clean clean-generic clean-libtool clean-local \ + clean-pkglibLTLIBRARIES cscopelist-am ctags ctags-am distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-local distclean-tags distdir dvi dvi-am html html-am \ + info info-am install install-am install-data install-data-am \ + install-data-local install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am \ + install-html-local install-info install-info-am \ + install-libscisound_la_etcDATA install-libscisound_la_rootDATA \ + install-libscisound_la_sci_gatewayDATA install-man install-pdf \ + install-pdf-am install-pkglibLTLIBRARIES install-ps \ + install-ps-am install-strip installcheck installcheck-am \ + installdirs maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ + uninstall-am uninstall-libscisound_la_etcDATA \ + uninstall-libscisound_la_rootDATA \ + uninstall-libscisound_la_sci_gatewayDATA \ + uninstall-pkglibLTLIBRARIES + + +# This target enables tests for Scilab +check-local: $(top_builddir)/scilab-bin test + if test -d $(mydatadir)/tests; then \ + @COMMAND="try test_run('$(modulename)');catch exit(-1);end;exit(0)"; export LANG=C; $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \ + fi +check-code: + if test -f build.xml; then \ + $(ANT) checkstyle; \ + fi + if test -x "$(SPLINT)"; then \ + $(SPLINT) $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC); \ + fi +java: +# Some configurations needs to export JAVA_HOME in the current env + @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \ + if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \ + if test -f build.xml -a $$USEANT -eq 1; then \ + $(ANT); \ + fi + +clean-java: +# Some configurations needs to export JAVA_HOME in the current env + @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \ + if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \ + if test -f build.xml -a $$USEANT -eq 1; then \ + $(ANT) clean; \ + fi; + +# If the user request for the SWIG generation of the wrappers Java => C/C++ +# We call the target swig-build on the variable SWIG_WRAPPERS + +#swig: $(SWIG_WRAPPERS) +# @SWIG_PACKAGENAME=org.scilab.modules.$(modulename); \ +# SWIG_OUTDIR=src/java/org/scilab/modules/$(modulename)/; \ +# if test -n "$(SWIG_WRAPPERS)"; then \ +# for file in $(SWIG_WRAPPERS) ; do \ +# echo "Swig process of $$file (Java) ..."; \ +# $(SWIG_BIN) $(SWIG_JAVA) -package $$SWIG_PACKAGENAME -outdir $$SWIG_OUTDIR $$file; \ +# done; \ +# fi + +#swig-scilab: $(SWIG_SCILAB_WRAPPERS) +# @SWIG_OUTDIR=src/swig/; \ +# if test -n "$(SWIG_SCILAB_WRAPPERS)"; then \ +# for file in $(SWIG_SCILAB_WRAPPERS) ; do \ +# echo "Swig process of $$file (Scilab) ..."; \ +# $(SWIG_BIN) $(SWIG_SCILAB) -outdir $$SWIG_OUTDIR $$file; \ +# done; \ +# fi + +# If the user request for the SWIG generation of the wrappers Java => C/C++ +# We call the target swig-build on the variable SWIG_WRAPPERS + +#giws: $(GIWS_WRAPPERS) +# @GIWS_OUTPUTDIR=src/jni/; \ +# MANDATORY_OPTIONS="--throws-exception-on-error --description-file"; \ +# if test -n "$(GIWS_WRAPPERS)"; then \ +# for file in $(GIWS_WRAPPERS) ; do \ +# echo "GIWS process of $$file ..."; \ +# if test -z "$(GIWS_OPTIONS)"; then \ +# $(GIWS_BIN) --disable-return-size-array --output-dir $$GIWS_OUTPUTDIR $$MANDATORY_OPTIONS $$file; \ +# else \ +# echo "Custom GIWS call with '$$GIWS_OPTIONS'"; \ +# $(GIWS_BIN) $$GIWS_OPTIONS --output-dir $$GIWS_OUTPUTDIR $$MANDATORY_OPTIONS $$file; \ +# fi \ +# done; \ +# fi + +#giws-exception: +# @GIWS_OUTPUTDIR=src/jni/;\ +# echo "GIWS: Generation of exception class ..."; \ +# $(GIWS_BIN) --generate-exception-class --output-dir $$GIWS_OUTPUTDIR + +macros: + -@( if test ! -x $(top_builddir)/scilab-bin; then \ + echo "Error : Cannot build $< : Scilab has not been built"; \ + else \ + $(top_builddir)/bin/scilab -ns -nwni -e "exec('macros/buildmacros.sce');quit;";\ + fi) + +# Removes the macros +clean-macros: +# Removes macros (*.bin generated from .sci) + @for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \ + echo "rm -f $(builddir)/$$dir/$(MACROBINMASK)"; \ + rm -f $(builddir)/$$dir/$(MACROBINMASK); \ + done + +test: +# More tests could be added here + @if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \ + if test -f build.xml -a $$USEANT -eq 1; then \ + $(ANT) test; \ + fi + +all-local: $(TARGETS_ALL) + +.sci.bin: + -@( if test ! -x $(top_builddir)/scilab-bin; then \ + echo "Error : Cannot build $< : Scilab has not been build"; \ + else \ + echo "Creating $@"; \ + $(top_builddir)/bin/scilab -ns -nwni -e "exec('$(abs_srcdir)/$<');save('$(abs_srcdir)/$@');exit;"; \ + fi ) + +install-html-local: + +install-data-local-local: +# Mainly for javasci + @if test -d $(srcdir)/javadoc; then \ + cp -R $(srcdir)/javadoc $(DESTDIR)/$(mydatadir)/; \ + fi +# If the user wants the help sources to be installed + @echo "-------- Install of XML sources of help files --------"; \ + for lang in $(ALL_LINGUAS); do \ + if test -d $(srcdir)/help/$$lang; then \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/$$lang && \ + if ls -lLd $(srcdir)/help/$$lang/$(DOCMASKXML) >/dev/null 2>&1; then \ + for file in $(srcdir)/help/$$lang/$(DOCMASKXML) ; do \ + echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/$$lang" ; \ + $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/$$lang ; \ + done ; \ + fi; \ + fi; \ + done; \ + @echo "-------- Install of MathML sources --------"; \ + if test -d $(srcdir)/help/mml/; then \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/mml/ && \ + if ls -lLd $(srcdir)/help/mml/$(DOCMASKMML) >/dev/null 2>&1; then \ + for file in $(srcdir)/help/mml/$(DOCMASKMML) ; do \ + echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/mml" ; \ + $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/mml ; \ + done ; \ + fi; \ + fi +install-data-local: +# Install the tests + @echo "-------- Install tests (if any) --------"; \ + for dir in $(TESTS_DIR) $(TESTS_DIREXT) ; do \ + if test -d $(srcdir)/$$dir/; then \ + $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \ + for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \ + if test -d "$(srcdir)/$$dir/$$file"; then \ + echo $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir/$$file; \ + $(mkinstalldirs) "$(DESTDIR)$(pkgmacrosdir)/$$dir/$$file"; \ + else \ + echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \ + $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \ + fi \ + done; \ + fi; \ + done +# Install the help chapter + @echo "-------- Install the help chapter (if any) --------"; \ + for lang in $(HELP_CHAPTERLANG); do \ + HELPFILE=$(srcdir)/$(HELP_CHAPTERDIR)$$lang/$(HELP_CHAPTERFILE); \ + if test -f $$HELPFILE; then \ + echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \ + echo $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \ + $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \ + fi; \ + done +# Install the demos & examples + @echo "-------- Install demos & examples (if any) --------"; \ + for dir in $(DEMOS_DIR) $(DEMOS_DIREXT) $(EXAMPLES_DIR) $(EXAMPLES_DIREXT) ; do \ + if test -d $(srcdir)/$$dir/; then \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir && \ + for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \ + if test -d "$(srcdir)/$$dir/$$file"; then \ + echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir/$$file; \ + $(mkinstalldirs) "$(DESTDIR)$(pkgdocdir)/$$dir/$$file"; \ + else \ + echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \ + $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \ + fi \ + done; \ + fi; \ + done +# Install the macros + @echo "-------- Install macros (if any) --------"; \ + for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \ + $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \ + if test -d $(srcdir)/$$dir/; then \ + FILELIST="$(srcdir)/$$dir/$(MACROMASK) $(srcdir)/$$dir/$(MACROBINMASK) $(srcdir)/$$dir/$(MACROBUILDMASK) $(srcdir)/$$dir/names $(srcdir)/$$dir/lib";\ + if test -n "$(MACROSSPECIALEXT)"; then \ + specialExtDir=""; \ + for specialExt in $(MACROSSPECIALEXT); do \ + specialExtDir="$$specialExtDir $(srcdir)/$$dir/$$specialExt"; \ + done; \ + FILELIST="$$FILELIST $$specialExtDir"; \ + fi; \ + for file in `ls -1 $$FILELIST 2>/dev/null`; do \ + echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgmacrosdir)/$$dir" ; \ + $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgmacrosdir)/$$dir ; \ + done; \ + fi; \ + done +# Install java files (.jar) + @if ls -lLd $(srcdir)/$(JARDIR)$(JARMASK) >/dev/null 2>&1; then \ + echo "-------- Install jar files --------"; \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(JARDIR); \ + for file in $(srcdir)/$(JARDIR)$(JARMASK); do\ + echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/$(JARDIR)" ; \ + $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/$(JARDIR) ; \ + done ; \ + fi + +########### CLEAN ################### +# Clean help (generated automatically by Scilab) +# It used to clean the macro (clean-macros) but this was causing +# make clean && make to fail Scilab startup +clean-local: clean-java +#clean-local: + +distclean-local: + rm -f $(builddir)/help/*/.last_successful_build_javaHelp $(builddir)/help/*/.list_* + +.PHONY: macros java swig giws + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/modules/sound/Makefile.am b/modules/sound/Makefile.am new file mode 100755 index 000000000..58d7d02a4 --- /dev/null +++ b/modules/sound/Makefile.am @@ -0,0 +1,49 @@ +# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +# Copyright (C) 2006 - INRIA - Sylvestre Ledru <sylvestre.ledru@inria.fr> +# +# This file is distributed under the same license as the Scilab package. + + +GATEWAY_C_SOURCES = sci_gateway/c/gw_sound.c \ +sci_gateway/c/sci_beep.c \ +sci_gateway/c/sci_PlaySound.c + +libscisound_la_CPPFLAGS= -I$(srcdir)/includes/ \ + -I$(srcdir)/src/c/ \ + -I$(top_srcdir)/modules/output_stream/includes/ \ + -I$(top_srcdir)/modules/api_scilab/includes/ \ + -I$(top_srcdir)/modules/localization/includes/ \ + -I$(top_srcdir)/modules/fileio/includes/ \ + $(AM_CPPFLAGS) + +pkglib_LTLIBRARIES = libscisound.la + + +libscisound_la_SOURCES = $(GATEWAY_C_SOURCES) + +# For the code check (splint) +CHECK_SRC= $(libscisound_la_SOURCES) +INCLUDE_FLAGS = $(libscisound_la_CPPFLAGS) + + +#### Target ###### +modulename=sound + + +#### sound : Conf files #### +libscisound_la_rootdir = $(mydatadir) +libscisound_la_root_DATA = license.txt + + +####�sound : init scripts #### +libscisound_la_etcdir = $(mydatadir)/etc +libscisound_la_etc_DATA = etc/sound.quit etc/sound.start + +####�sound : gateway declaration #### +libscisound_la_sci_gatewaydir = $(mydatadir)/sci_gateway +libscisound_la_sci_gateway_DATA = sci_gateway/sound_gateway.xml + +####�sound : include files #### +libscisound_la_includedir=$(pkgincludedir) + +include $(top_srcdir)/Makefile.incl.am diff --git a/modules/sound/Makefile.in b/modules/sound/Makefile.in new file mode 100755 index 000000000..fd533e062 --- /dev/null +++ b/modules/sound/Makefile.in @@ -0,0 +1,1283 @@ +# Makefile.in generated by automake 1.14.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +# Copyright (C) 2006 - INRIA - Sylvestre Ledru <sylvestre.ledru@inria.fr> +# +# This file is distributed under the same license as the Scilab package. + +# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +# Copyright (C) 2006-2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr> +# Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr> +# +# This file must be used under the terms of the CeCILL. +# This source file is licensed as described in the file COPYING, which +# you should have received as part of this distribution. The terms +# are also available at +# http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +# + +########## +### Makefile included stuff +### Target, variable, suffixes which are supposed to be useful in every makefile.am +########## + + +VPATH = @srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +DIST_COMMON = $(top_srcdir)/Makefile.incl.am $(srcdir)/Makefile.in \ + $(srcdir)/Makefile.am $(top_srcdir)/config/mkinstalldirs \ + $(top_srcdir)/config/depcomp +@NEED_JAVA_TRUE@am__append_1 = java +subdir = modules/sound +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/backtrace.m4 \ + $(top_srcdir)/m4/compiler.m4 $(top_srcdir)/m4/curl.m4 \ + $(top_srcdir)/m4/docbook.m4 $(top_srcdir)/m4/doxygen.m4 \ + $(top_srcdir)/m4/fftw.m4 $(top_srcdir)/m4/fortran.m4 \ + $(top_srcdir)/m4/giws.m4 $(top_srcdir)/m4/hdf5.m4 \ + $(top_srcdir)/m4/intel_compiler.m4 \ + $(top_srcdir)/m4/java-thirdparty.m4 $(top_srcdir)/m4/java.m4 \ + $(top_srcdir)/m4/largefile.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/libsmath.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/ltoptions.m4 \ + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/macosx.m4 \ + $(top_srcdir)/m4/mpi.m4 $(top_srcdir)/m4/ocaml.m4 \ + $(top_srcdir)/m4/pcre.m4 $(top_srcdir)/m4/pkg.m4 \ + $(top_srcdir)/m4/relocatable.m4 $(top_srcdir)/m4/swig.m4 \ + $(top_srcdir)/m4/symlinks.m4 $(top_srcdir)/m4/tcltk.m4 \ + $(top_srcdir)/m4/umfpack.m4 $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/modules/core/includes/machine.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(pkglibdir)" \ + "$(DESTDIR)$(libscisound_la_etcdir)" \ + "$(DESTDIR)$(libscisound_la_rootdir)" \ + "$(DESTDIR)$(libscisound_la_sci_gatewaydir)" +LTLIBRARIES = $(pkglib_LTLIBRARIES) +libscisound_la_LIBADD = +am__dirstamp = $(am__leading_dot)dirstamp +am__objects_1 = sci_gateway/c/libscisound_la-gw_sound.lo \ + sci_gateway/c/libscisound_la-sci_beep.lo \ + sci_gateway/c/libscisound_la-sci_PlaySound.lo +am_libscisound_la_OBJECTS = $(am__objects_1) +libscisound_la_OBJECTS = $(am_libscisound_la_OBJECTS) +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) +am__v_lt_0 = --silent +am__v_lt_1 = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/modules/core/includes +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) +am__v_CC_0 = @echo " CC " $@; +am__v_CC_1 = +CCLD = $(CC) +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) +am__v_CCLD_0 = @echo " CCLD " $@; +am__v_CCLD_1 = +SOURCES = $(libscisound_la_SOURCES) +DIST_SOURCES = $(libscisound_la_SOURCES) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +DATA = $(libscisound_la_etc_DATA) $(libscisound_la_root_DATA) \ + $(libscisound_la_sci_gateway_DATA) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALL_LINGUAS = @ALL_LINGUAS@ +ALL_LINGUAS_DOC = @ALL_LINGUAS_DOC@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +ANT = @ANT@ +ANTLR = @ANTLR@ +AR = @AR@ +ARPACK_LIBS = @ARPACK_LIBS@ +ASM3 = @ASM3@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AVALON_FRAMEWORK = @AVALON_FRAMEWORK@ +AWK = @AWK@ +BATIK = @BATIK@ +BLAS_LIBS = @BLAS_LIBS@ +CC = @CC@ +CCACHE = @CCACHE@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CHECKSTYLE = @CHECKSTYLE@ +COBERTURA = @COBERTURA@ +COMMONS_BEANUTILS = @COMMONS_BEANUTILS@ +COMMONS_IO = @COMMONS_IO@ +COMMONS_LOGGING = @COMMONS_LOGGING@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CURL_CFLAGS = @CURL_CFLAGS@ +CURL_CONFIG = @CURL_CONFIG@ +CURL_LIBS = @CURL_LIBS@ +CURL_VERSION = @CURL_VERSION@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEMOTOOLS_ENABLE = @DEMOTOOLS_ENABLE@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DOCBOOK_ROOT = @DOCBOOK_ROOT@ +DOXYGEN_BIN = @DOXYGEN_BIN@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +ECJ = @ECJ@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +FFTW3_LIB = @FFTW3_LIB@ +FFTW_ENABLE = @FFTW_ENABLE@ +FGREP = @FGREP@ +FLEXDOCK = @FLEXDOCK@ +FLIBS = @FLIBS@ +FOP = @FOP@ +FREEHEP_GRAPHICS2D = @FREEHEP_GRAPHICS2D@ +FREEHEP_GRAPHICSIO = @FREEHEP_GRAPHICSIO@ +FREEHEP_GRAPHICSIO_EMF = @FREEHEP_GRAPHICSIO_EMF@ +FREEHEP_IO = @FREEHEP_IO@ +FREEHEP_UTIL = @FREEHEP_UTIL@ +GENHTML = @GENHTML@ +GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ +GIWS_BIN = @GIWS_BIN@ +GLUEGEN2_RT = @GLUEGEN2_RT@ +GMSGFMT = @GMSGFMT@ +GMSGFMT_015 = @GMSGFMT_015@ +GRAPHICS_ENABLE = @GRAPHICS_ENABLE@ +GREP = @GREP@ +GUI_ENABLE = @GUI_ENABLE@ +HDF5_CFLAGS = @HDF5_CFLAGS@ +HDF5_LIBS = @HDF5_LIBS@ +HELP_ENABLE = @HELP_ENABLE@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLLIBS = @INTLLIBS@ +INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ +JAR = @JAR@ +JAVA = @JAVA@ +JAVAC = @JAVAC@ +JAVAC_DEBUG = @JAVAC_DEBUG@ +JAVADOC = @JAVADOC@ +JAVAH = @JAVAH@ +JAVASCI_ENABLE = @JAVASCI_ENABLE@ +JAVA_ENABLE = @JAVA_ENABLE@ +JAVA_G = @JAVA_G@ +JAVA_HOME = @JAVA_HOME@ +JAVA_JNI_INCLUDE = @JAVA_JNI_INCLUDE@ +JAVA_JNI_LIBS = @JAVA_JNI_LIBS@ +JDB = @JDB@ +JEUCLID_CORE = @JEUCLID_CORE@ +JGRAPHX = @JGRAPHX@ +JHALL = @JHALL@ +JLATEXMATH = @JLATEXMATH@ +JLATEXMATH_FOP = @JLATEXMATH_FOP@ +JOGL2 = @JOGL2@ +JROSETTA_API = @JROSETTA_API@ +JROSETTA_ENGINE = @JROSETTA_ENGINE@ +JUNIT4 = @JUNIT4@ +LAPACK_LIBS = @LAPACK_LIBS@ +LCOV = @LCOV@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBM = @LIBM@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LOGGING_LEVEL = @LOGGING_LEVEL@ +LOOKS = @LOOKS@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MATIO_CFLAGS = @MATIO_CFLAGS@ +MATIO_ENABLE = @MATIO_ENABLE@ +MATIO_LIBS = @MATIO_LIBS@ +MKDIR_P = @MKDIR_P@ +MPI_ENABLE = @MPI_ENABLE@ +MSGCAT = @MSGCAT@ +MSGFMT = @MSGFMT@ +MSGFMT_015 = @MSGFMT_015@ +MSGMERGE = @MSGMERGE@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OCAMLC = @OCAMLC@ +OCAMLDEP = @OCAMLDEP@ +OCAMLLEX = @OCAMLLEX@ +OCAMLOPT = @OCAMLOPT@ +OCAMLYACC = @OCAMLYACC@ +OPENMPI_CC = @OPENMPI_CC@ +OPENMPI_CFLAGS = @OPENMPI_CFLAGS@ +OPENMPI_CXX = @OPENMPI_CXX@ +OPENMPI_CXXFLAGS = @OPENMPI_CXXFLAGS@ +OPENMPI_LIBS = @OPENMPI_LIBS@ +OPENMP_CFLAGS = @OPENMP_CFLAGS@ +OPENMP_CXXFLAGS = @OPENMP_CXXFLAGS@ +OPENMP_ENABLE = @OPENMP_ENABLE@ +OPENMP_LIBS = @OPENMP_LIBS@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PCRE_CFLAGS = @PCRE_CFLAGS@ +PCRE_CONFIG = @PCRE_CONFIG@ +PCRE_LIBS = @PCRE_LIBS@ +PCRE_VERSION = @PCRE_VERSION@ +PKG_CONFIG = @PKG_CONFIG@ +POSUB = @POSUB@ +POW_LIB = @POW_LIB@ +PYTHON = @PYTHON@ +RANLIB = @RANLIB@ +RELOCATABLE = @RELOCATABLE@ +RT_LIB = @RT_LIB@ +SAXON = @SAXON@ +SCILAB_BINARY_VERSION = @SCILAB_BINARY_VERSION@ +SCILAB_LIBRARY_VERSION = @SCILAB_LIBRARY_VERSION@ +SCILAB_VERSION_MAINTENANCE = @SCILAB_VERSION_MAINTENANCE@ +SCILAB_VERSION_MAJOR = @SCILAB_VERSION_MAJOR@ +SCILAB_VERSION_MINOR = @SCILAB_VERSION_MINOR@ +SCIRENDERER = @SCIRENDERER@ +SCIRENDERER_CP = @SCIRENDERER_CP@ +SCI_CFLAGS = @SCI_CFLAGS@ +SCI_CXXFLAGS = @SCI_CXXFLAGS@ +SCI_FFLAGS = @SCI_FFLAGS@ +SCI_LDFLAGS = @SCI_LDFLAGS@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SET_RELOCATABLE = @SET_RELOCATABLE@ +SHELL = @SHELL@ +SKINLF = @SKINLF@ +SPLINT = @SPLINT@ +STRIP = @STRIP@ +SWIG_BIN = @SWIG_BIN@ +SWIG_JAVA = @SWIG_JAVA@ +SWIG_RUNTIME_LIBS_DIR = @SWIG_RUNTIME_LIBS_DIR@ +SWIG_SCILAB = @SWIG_SCILAB@ +TCLTK_LIBS = @TCLTK_LIBS@ +TCL_INC_PATH = @TCL_INC_PATH@ +TK_INC_PATH = @TK_INC_PATH@ +UMFPACK_CFLAGS = @UMFPACK_CFLAGS@ +UMFPACK_ENABLE = @UMFPACK_ENABLE@ +UMFPACK_LIB = @UMFPACK_LIB@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +WITH_OCAML = @WITH_OCAML@ +WITH_TKSCI = @WITH_TKSCI@ +XCOS_ENABLE = @XCOS_ENABLE@ +XGETTEXT = @XGETTEXT@ +XGETTEXT_015 = @XGETTEXT_015@ +XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ +XMKMF = @XMKMF@ +XMLGRAPHICS_COMMONS = @XMLGRAPHICS_COMMONS@ +XML_APIS_EXT = @XML_APIS_EXT@ +XML_CONFIG = @XML_CONFIG@ +XML_FLAGS = @XML_FLAGS@ +XML_LIBS = @XML_LIBS@ +XML_VERSION = @XML_VERSION@ +X_CFLAGS = @X_CFLAGS@ +X_EXTRA_LIBS = @X_EXTRA_LIBS@ +X_LIBS = @X_LIBS@ +X_PRE_LIBS = @X_PRE_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +cxx_present = @cxx_present@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +GATEWAY_C_SOURCES = sci_gateway/c/gw_sound.c \ +sci_gateway/c/sci_beep.c \ +sci_gateway/c/sci_PlaySound.c + +libscisound_la_CPPFLAGS = -I$(srcdir)/includes/ \ + -I$(srcdir)/src/c/ \ + -I$(top_srcdir)/modules/output_stream/includes/ \ + -I$(top_srcdir)/modules/api_scilab/includes/ \ + -I$(top_srcdir)/modules/localization/includes/ \ + -I$(top_srcdir)/modules/fileio/includes/ \ + $(AM_CPPFLAGS) + +pkglib_LTLIBRARIES = libscisound.la +libscisound_la_SOURCES = $(GATEWAY_C_SOURCES) + +# For the code check (splint) +CHECK_SRC = $(libscisound_la_SOURCES) +INCLUDE_FLAGS = $(libscisound_la_CPPFLAGS) + +#### Target ###### +modulename = sound + +#### sound : Conf files #### +libscisound_la_rootdir = $(mydatadir) +libscisound_la_root_DATA = license.txt + +####�sound : init scripts #### +libscisound_la_etcdir = $(mydatadir)/etc +libscisound_la_etc_DATA = etc/sound.quit etc/sound.start + +####�sound : gateway declaration #### +libscisound_la_sci_gatewaydir = $(mydatadir)/sci_gateway +libscisound_la_sci_gateway_DATA = sci_gateway/sound_gateway.xml + +####�sound : include files #### +libscisound_la_includedir = $(pkgincludedir) + +# Where all the Scilab stuff is installed (macros, help, ...) +mydatadir = $(pkgdatadir)/modules/$(modulename) + +# Set AM_* SCI detected settings +AM_CPPFLAGS = $(SCI_CPPFLAGS) +AM_CFLAGS = $(SCI_CFLAGS) +AM_CXXFLAGS = $(SCI_CXXFLAGS) +# append includes to AM_FFLAGS to manage fortran includes +AM_FFLAGS = $(SCI_FFLAGS) -I$(top_srcdir)/modules/core/includes/ + +# Tag shared libraries with the Scilab version +AM_LDFLAGS = $(SCI_LDFLAGS) -version-number $(SCILAB_LIBRARY_VERSION) + +# splint options +SPLINT_OPTIONS = -weak -booltype BOOL + +########################### JAVA ###################################### +#### We are delegating java compilation to ant... Thanks to that +#### the procedure will be the same with Microsoft Windows (C) +#### and Linux/Unix +####################################################################### +TARGETS_ALL = $(am__append_1) + +################ MACROS ###################### +# Rule to build a macro +# NOT USED AT THE MOMENT +SUFFIXES = .sci + +########### INSTALL DOCUMENTATION ################### + +# Install documentation files into the right target +# We do not use the automake mechanism (libxxxx_la_help_fr_DATA) because +# automake needs the html files to be present which is not the case when +# we are building Scilab + +# Where it should be installed +pkgdocdir = $(mydatadir) + +# What is the mask of the help source +DOCMASKXML = *.xml + +# What is the mask of the MathML sources +DOCMASKMML = *.mml + +########### INSTALL DATA ################### +# Install macros, help & demos +# Where it should be installed +pkgmacrosdir = $(mydatadir) +# Which directory we process +MACRODIRS = macros/ +# Mask of the Scilab sources macros +MACROMASK = *.sci +# Mask of the Scilab executable sources macros +MACROBUILDMASK = *.sce +# Mask of the Scilab compiled macros +MACROBINMASK = *.bin +# List of the standard directory for tests +TESTS_DIR = tests/benchmarks tests/nonreg_tests tests/unit_tests tests/java +# Where the demos should be installed +pkgdemosdir = $(mydatadir) +# List of the standard directory for demos +DEMOS_DIR = demos +# List of the standard directory for examples +EXAMPLES_DIR = examples +# Where to export JAVA archives (.jar) +JARDIR = jar/ +# JAR files mask +JARMASK = *.jar +# Chapter file +HELP_CHAPTERDIR = help/ +HELP_CHAPTERFILE = addchapter.sce +HELP_CHAPTERLANG = en_US fr_FR pt_BR +all: all-am + +.SUFFIXES: +.SUFFIXES: .sci .bin .c .lo .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.incl.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign modules/sound/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign modules/sound/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; +$(top_srcdir)/Makefile.incl.am: + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES) + @$(NORMAL_INSTALL) + @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \ + list2=; for p in $$list; do \ + if test -f $$p; then \ + list2="$$list2 $$p"; \ + else :; fi; \ + done; \ + test -z "$$list2" || { \ + echo " $(MKDIR_P) '$(DESTDIR)$(pkglibdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" || exit 1; \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkglibdir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkglibdir)"; \ + } + +uninstall-pkglibLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$f"; \ + done + +clean-pkglibLTLIBRARIES: + -test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES) + @list='$(pkglib_LTLIBRARIES)'; \ + locs=`for p in $$list; do echo $$p; done | \ + sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ + sort -u`; \ + test -z "$$locs" || { \ + echo rm -f $${locs}; \ + rm -f $${locs}; \ + } +sci_gateway/c/$(am__dirstamp): + @$(MKDIR_P) sci_gateway/c + @: > sci_gateway/c/$(am__dirstamp) +sci_gateway/c/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) sci_gateway/c/$(DEPDIR) + @: > sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscisound_la-gw_sound.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscisound_la-sci_beep.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscisound_la-sci_PlaySound.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) + +libscisound.la: $(libscisound_la_OBJECTS) $(libscisound_la_DEPENDENCIES) $(EXTRA_libscisound_la_DEPENDENCIES) + $(AM_V_CCLD)$(LINK) -rpath $(pkglibdir) $(libscisound_la_OBJECTS) $(libscisound_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + -rm -f sci_gateway/c/*.$(OBJEXT) + -rm -f sci_gateway/c/*.lo + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscisound_la-gw_sound.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscisound_la-sci_PlaySound.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscisound_la-sci_beep.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< + +.c.obj: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< + +sci_gateway/c/libscisound_la-gw_sound.lo: sci_gateway/c/gw_sound.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscisound_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscisound_la-gw_sound.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscisound_la-gw_sound.Tpo -c -o sci_gateway/c/libscisound_la-gw_sound.lo `test -f 'sci_gateway/c/gw_sound.c' || echo '$(srcdir)/'`sci_gateway/c/gw_sound.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscisound_la-gw_sound.Tpo sci_gateway/c/$(DEPDIR)/libscisound_la-gw_sound.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/gw_sound.c' object='sci_gateway/c/libscisound_la-gw_sound.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscisound_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscisound_la-gw_sound.lo `test -f 'sci_gateway/c/gw_sound.c' || echo '$(srcdir)/'`sci_gateway/c/gw_sound.c + +sci_gateway/c/libscisound_la-sci_beep.lo: sci_gateway/c/sci_beep.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscisound_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscisound_la-sci_beep.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscisound_la-sci_beep.Tpo -c -o sci_gateway/c/libscisound_la-sci_beep.lo `test -f 'sci_gateway/c/sci_beep.c' || echo '$(srcdir)/'`sci_gateway/c/sci_beep.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscisound_la-sci_beep.Tpo sci_gateway/c/$(DEPDIR)/libscisound_la-sci_beep.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_beep.c' object='sci_gateway/c/libscisound_la-sci_beep.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscisound_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscisound_la-sci_beep.lo `test -f 'sci_gateway/c/sci_beep.c' || echo '$(srcdir)/'`sci_gateway/c/sci_beep.c + +sci_gateway/c/libscisound_la-sci_PlaySound.lo: sci_gateway/c/sci_PlaySound.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscisound_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscisound_la-sci_PlaySound.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscisound_la-sci_PlaySound.Tpo -c -o sci_gateway/c/libscisound_la-sci_PlaySound.lo `test -f 'sci_gateway/c/sci_PlaySound.c' || echo '$(srcdir)/'`sci_gateway/c/sci_PlaySound.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscisound_la-sci_PlaySound.Tpo sci_gateway/c/$(DEPDIR)/libscisound_la-sci_PlaySound.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_PlaySound.c' object='sci_gateway/c/libscisound_la-sci_PlaySound.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscisound_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscisound_la-sci_PlaySound.lo `test -f 'sci_gateway/c/sci_PlaySound.c' || echo '$(srcdir)/'`sci_gateway/c/sci_PlaySound.c + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + -rm -rf sci_gateway/c/.libs sci_gateway/c/_libs +install-libscisound_la_etcDATA: $(libscisound_la_etc_DATA) + @$(NORMAL_INSTALL) + @list='$(libscisound_la_etc_DATA)'; test -n "$(libscisound_la_etcdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libscisound_la_etcdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libscisound_la_etcdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscisound_la_etcdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libscisound_la_etcdir)" || exit $$?; \ + done + +uninstall-libscisound_la_etcDATA: + @$(NORMAL_UNINSTALL) + @list='$(libscisound_la_etc_DATA)'; test -n "$(libscisound_la_etcdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libscisound_la_etcdir)'; $(am__uninstall_files_from_dir) +install-libscisound_la_rootDATA: $(libscisound_la_root_DATA) + @$(NORMAL_INSTALL) + @list='$(libscisound_la_root_DATA)'; test -n "$(libscisound_la_rootdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libscisound_la_rootdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libscisound_la_rootdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscisound_la_rootdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libscisound_la_rootdir)" || exit $$?; \ + done + +uninstall-libscisound_la_rootDATA: + @$(NORMAL_UNINSTALL) + @list='$(libscisound_la_root_DATA)'; test -n "$(libscisound_la_rootdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libscisound_la_rootdir)'; $(am__uninstall_files_from_dir) +install-libscisound_la_sci_gatewayDATA: $(libscisound_la_sci_gateway_DATA) + @$(NORMAL_INSTALL) + @list='$(libscisound_la_sci_gateway_DATA)'; test -n "$(libscisound_la_sci_gatewaydir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libscisound_la_sci_gatewaydir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libscisound_la_sci_gatewaydir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscisound_la_sci_gatewaydir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libscisound_la_sci_gatewaydir)" || exit $$?; \ + done + +uninstall-libscisound_la_sci_gatewayDATA: + @$(NORMAL_UNINSTALL) + @list='$(libscisound_la_sci_gateway_DATA)'; test -n "$(libscisound_la_sci_gatewaydir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libscisound_la_sci_gatewaydir)'; $(am__uninstall_files_from_dir) + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-am +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-am + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-am + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am + $(MAKE) $(AM_MAKEFLAGS) check-local +check: check-am +all-am: Makefile $(LTLIBRARIES) $(DATA) all-local +installdirs: + for dir in "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(libscisound_la_etcdir)" "$(DESTDIR)$(libscisound_la_rootdir)" "$(DESTDIR)$(libscisound_la_sci_gatewaydir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -rm -f sci_gateway/c/$(DEPDIR)/$(am__dirstamp) + -rm -f sci_gateway/c/$(am__dirstamp) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-local \ + clean-pkglibLTLIBRARIES mostlyclean-am + +distclean: distclean-am + -rm -rf sci_gateway/c/$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-local distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-data-local install-libscisound_la_etcDATA \ + install-libscisound_la_rootDATA \ + install-libscisound_la_sci_gatewayDATA + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-pkglibLTLIBRARIES + +install-html: install-html-am + +install-html-am: install-html-local + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf sci_gateway/c/$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-libscisound_la_etcDATA \ + uninstall-libscisound_la_rootDATA \ + uninstall-libscisound_la_sci_gatewayDATA \ + uninstall-pkglibLTLIBRARIES + +.MAKE: check-am install-am install-strip + +.PHONY: CTAGS GTAGS TAGS all all-am all-local check check-am \ + check-local clean clean-generic clean-libtool clean-local \ + clean-pkglibLTLIBRARIES cscopelist-am ctags ctags-am distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-local distclean-tags distdir dvi dvi-am html html-am \ + info info-am install install-am install-data install-data-am \ + install-data-local install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am \ + install-html-local install-info install-info-am \ + install-libscisound_la_etcDATA install-libscisound_la_rootDATA \ + install-libscisound_la_sci_gatewayDATA install-man install-pdf \ + install-pdf-am install-pkglibLTLIBRARIES install-ps \ + install-ps-am install-strip installcheck installcheck-am \ + installdirs maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ + uninstall-am uninstall-libscisound_la_etcDATA \ + uninstall-libscisound_la_rootDATA \ + uninstall-libscisound_la_sci_gatewayDATA \ + uninstall-pkglibLTLIBRARIES + + +# This target enables tests for Scilab +check-local: $(top_builddir)/scilab-bin test + if test -d $(mydatadir)/tests; then \ + @COMMAND="try test_run('$(modulename)');catch exit(-1);end;exit(0)"; export LANG=C; $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \ + fi +check-code: + if test -f build.xml; then \ + $(ANT) checkstyle; \ + fi + if test -x "$(SPLINT)"; then \ + $(SPLINT) $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC); \ + fi +@NEED_JAVA_TRUE@java: +# Some configurations needs to export JAVA_HOME in the current env +@NEED_JAVA_TRUE@ @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \ +@NEED_JAVA_TRUE@ if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \ +@NEED_JAVA_TRUE@ if test -f build.xml -a $$USEANT -eq 1; then \ +@NEED_JAVA_TRUE@ $(ANT); \ +@NEED_JAVA_TRUE@ fi + +@NEED_JAVA_TRUE@clean-java: +# Some configurations needs to export JAVA_HOME in the current env +@NEED_JAVA_TRUE@ @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \ +@NEED_JAVA_TRUE@ if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \ +@NEED_JAVA_TRUE@ if test -f build.xml -a $$USEANT -eq 1; then \ +@NEED_JAVA_TRUE@ $(ANT) clean; \ +@NEED_JAVA_TRUE@ fi; + +# If the user request for the SWIG generation of the wrappers Java => C/C++ +# We call the target swig-build on the variable SWIG_WRAPPERS + +@SWIG_TRUE@swig: $(SWIG_WRAPPERS) +@SWIG_TRUE@ @SWIG_PACKAGENAME=org.scilab.modules.$(modulename); \ +@SWIG_TRUE@ SWIG_OUTDIR=src/java/org/scilab/modules/$(modulename)/; \ +@SWIG_TRUE@ if test -n "$(SWIG_WRAPPERS)"; then \ +@SWIG_TRUE@ for file in $(SWIG_WRAPPERS) ; do \ +@SWIG_TRUE@ echo "Swig process of $$file (Java) ..."; \ +@SWIG_TRUE@ $(SWIG_BIN) $(SWIG_JAVA) -package $$SWIG_PACKAGENAME -outdir $$SWIG_OUTDIR $$file; \ +@SWIG_TRUE@ done; \ +@SWIG_TRUE@ fi + +@SWIG_TRUE@swig-scilab: $(SWIG_SCILAB_WRAPPERS) +@SWIG_TRUE@ @SWIG_OUTDIR=src/swig/; \ +@SWIG_TRUE@ if test -n "$(SWIG_SCILAB_WRAPPERS)"; then \ +@SWIG_TRUE@ for file in $(SWIG_SCILAB_WRAPPERS) ; do \ +@SWIG_TRUE@ echo "Swig process of $$file (Scilab) ..."; \ +@SWIG_TRUE@ $(SWIG_BIN) $(SWIG_SCILAB) -outdir $$SWIG_OUTDIR $$file; \ +@SWIG_TRUE@ done; \ +@SWIG_TRUE@ fi + +# If the user request for the SWIG generation of the wrappers Java => C/C++ +# We call the target swig-build on the variable SWIG_WRAPPERS + +@GIWS_TRUE@giws: $(GIWS_WRAPPERS) +@GIWS_TRUE@ @GIWS_OUTPUTDIR=src/jni/; \ +@GIWS_TRUE@ MANDATORY_OPTIONS="--throws-exception-on-error --description-file"; \ +@GIWS_TRUE@ if test -n "$(GIWS_WRAPPERS)"; then \ +@GIWS_TRUE@ for file in $(GIWS_WRAPPERS) ; do \ +@GIWS_TRUE@ echo "GIWS process of $$file ..."; \ +@GIWS_TRUE@ if test -z "$(GIWS_OPTIONS)"; then \ +@GIWS_TRUE@ $(GIWS_BIN) --disable-return-size-array --output-dir $$GIWS_OUTPUTDIR $$MANDATORY_OPTIONS $$file; \ +@GIWS_TRUE@ else \ +@GIWS_TRUE@ echo "Custom GIWS call with '$$GIWS_OPTIONS'"; \ +@GIWS_TRUE@ $(GIWS_BIN) $$GIWS_OPTIONS --output-dir $$GIWS_OUTPUTDIR $$MANDATORY_OPTIONS $$file; \ +@GIWS_TRUE@ fi \ +@GIWS_TRUE@ done; \ +@GIWS_TRUE@ fi + +@GIWS_TRUE@giws-exception: +@GIWS_TRUE@ @GIWS_OUTPUTDIR=src/jni/;\ +@GIWS_TRUE@ echo "GIWS: Generation of exception class ..."; \ +@GIWS_TRUE@ $(GIWS_BIN) --generate-exception-class --output-dir $$GIWS_OUTPUTDIR + +macros: + -@( if test ! -x $(top_builddir)/scilab-bin; then \ + echo "Error : Cannot build $< : Scilab has not been built"; \ + else \ + $(top_builddir)/bin/scilab -ns -nwni -e "exec('macros/buildmacros.sce');quit;";\ + fi) + +# Removes the macros +clean-macros: +# Removes macros (*.bin generated from .sci) + @for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \ + echo "rm -f $(builddir)/$$dir/$(MACROBINMASK)"; \ + rm -f $(builddir)/$$dir/$(MACROBINMASK); \ + done + +test: +# More tests could be added here + @if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \ + if test -f build.xml -a $$USEANT -eq 1; then \ + $(ANT) test; \ + fi + +all-local: $(TARGETS_ALL) + +.sci.bin: + -@( if test ! -x $(top_builddir)/scilab-bin; then \ + echo "Error : Cannot build $< : Scilab has not been build"; \ + else \ + echo "Creating $@"; \ + $(top_builddir)/bin/scilab -ns -nwni -e "exec('$(abs_srcdir)/$<');save('$(abs_srcdir)/$@');exit;"; \ + fi ) + +install-html-local: + +install-data-local-local: +# Mainly for javasci + @if test -d $(srcdir)/javadoc; then \ + cp -R $(srcdir)/javadoc $(DESTDIR)/$(mydatadir)/; \ + fi +# If the user wants the help sources to be installed +@INSTALL_HELP_XML_TRUE@ @echo "-------- Install of XML sources of help files --------"; \ +@INSTALL_HELP_XML_TRUE@ for lang in $(ALL_LINGUAS); do \ +@INSTALL_HELP_XML_TRUE@ if test -d $(srcdir)/help/$$lang; then \ +@INSTALL_HELP_XML_TRUE@ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/$$lang && \ +@INSTALL_HELP_XML_TRUE@ if ls -lLd $(srcdir)/help/$$lang/$(DOCMASKXML) >/dev/null 2>&1; then \ +@INSTALL_HELP_XML_TRUE@ for file in $(srcdir)/help/$$lang/$(DOCMASKXML) ; do \ +@INSTALL_HELP_XML_TRUE@ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/$$lang" ; \ +@INSTALL_HELP_XML_TRUE@ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/$$lang ; \ +@INSTALL_HELP_XML_TRUE@ done ; \ +@INSTALL_HELP_XML_TRUE@ fi; \ +@INSTALL_HELP_XML_TRUE@ fi; \ +@INSTALL_HELP_XML_TRUE@ done; \ +@INSTALL_HELP_XML_TRUE@ @echo "-------- Install of MathML sources --------"; \ +@INSTALL_HELP_XML_TRUE@ if test -d $(srcdir)/help/mml/; then \ +@INSTALL_HELP_XML_TRUE@ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/mml/ && \ +@INSTALL_HELP_XML_TRUE@ if ls -lLd $(srcdir)/help/mml/$(DOCMASKMML) >/dev/null 2>&1; then \ +@INSTALL_HELP_XML_TRUE@ for file in $(srcdir)/help/mml/$(DOCMASKMML) ; do \ +@INSTALL_HELP_XML_TRUE@ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/mml" ; \ +@INSTALL_HELP_XML_TRUE@ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/mml ; \ +@INSTALL_HELP_XML_TRUE@ done ; \ +@INSTALL_HELP_XML_TRUE@ fi; \ +@INSTALL_HELP_XML_TRUE@ fi +install-data-local: +# Install the tests + @echo "-------- Install tests (if any) --------"; \ + for dir in $(TESTS_DIR) $(TESTS_DIREXT) ; do \ + if test -d $(srcdir)/$$dir/; then \ + $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \ + for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \ + if test -d "$(srcdir)/$$dir/$$file"; then \ + echo $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir/$$file; \ + $(mkinstalldirs) "$(DESTDIR)$(pkgmacrosdir)/$$dir/$$file"; \ + else \ + echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \ + $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \ + fi \ + done; \ + fi; \ + done +# Install the help chapter + @echo "-------- Install the help chapter (if any) --------"; \ + for lang in $(HELP_CHAPTERLANG); do \ + HELPFILE=$(srcdir)/$(HELP_CHAPTERDIR)$$lang/$(HELP_CHAPTERFILE); \ + if test -f $$HELPFILE; then \ + echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \ + echo $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \ + $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \ + fi; \ + done +# Install the demos & examples + @echo "-------- Install demos & examples (if any) --------"; \ + for dir in $(DEMOS_DIR) $(DEMOS_DIREXT) $(EXAMPLES_DIR) $(EXAMPLES_DIREXT) ; do \ + if test -d $(srcdir)/$$dir/; then \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir && \ + for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \ + if test -d "$(srcdir)/$$dir/$$file"; then \ + echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir/$$file; \ + $(mkinstalldirs) "$(DESTDIR)$(pkgdocdir)/$$dir/$$file"; \ + else \ + echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \ + $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \ + fi \ + done; \ + fi; \ + done +# Install the macros + @echo "-------- Install macros (if any) --------"; \ + for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \ + $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \ + if test -d $(srcdir)/$$dir/; then \ + FILELIST="$(srcdir)/$$dir/$(MACROMASK) $(srcdir)/$$dir/$(MACROBINMASK) $(srcdir)/$$dir/$(MACROBUILDMASK) $(srcdir)/$$dir/names $(srcdir)/$$dir/lib";\ + if test -n "$(MACROSSPECIALEXT)"; then \ + specialExtDir=""; \ + for specialExt in $(MACROSSPECIALEXT); do \ + specialExtDir="$$specialExtDir $(srcdir)/$$dir/$$specialExt"; \ + done; \ + FILELIST="$$FILELIST $$specialExtDir"; \ + fi; \ + for file in `ls -1 $$FILELIST 2>/dev/null`; do \ + echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgmacrosdir)/$$dir" ; \ + $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgmacrosdir)/$$dir ; \ + done; \ + fi; \ + done +# Install java files (.jar) + @if ls -lLd $(srcdir)/$(JARDIR)$(JARMASK) >/dev/null 2>&1; then \ + echo "-------- Install jar files --------"; \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(JARDIR); \ + for file in $(srcdir)/$(JARDIR)$(JARMASK); do\ + echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/$(JARDIR)" ; \ + $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/$(JARDIR) ; \ + done ; \ + fi + +########### CLEAN ################### +# Clean help (generated automatically by Scilab) +# It used to clean the macro (clean-macros) but this was causing +# make clean && make to fail Scilab startup +@NEED_JAVA_TRUE@clean-local: clean-java +@NEED_JAVA_FALSE@clean-local: + +distclean-local: + rm -f $(builddir)/help/*/.last_successful_build_javaHelp $(builddir)/help/*/.list_* + +.PHONY: macros java swig giws + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/modules/sound/core_Import.def b/modules/sound/core_Import.def new file mode 100755 index 000000000..559e5c1b9 --- /dev/null +++ b/modules/sound/core_Import.def @@ -0,0 +1,8 @@ +LIBRARY core.dll + + +EXPORTS +callFunctionFromGateway +com_ +MyHeapAlloc +MyHeapFree diff --git a/modules/sound/demos/chimes.wav b/modules/sound/demos/chimes.wav Binary files differnew file mode 100755 index 000000000..265a37f5d --- /dev/null +++ b/modules/sound/demos/chimes.wav diff --git a/modules/sound/demos/sound.dem.gateway.sce b/modules/sound/demos/sound.dem.gateway.sce new file mode 100755 index 000000000..83185beb9 --- /dev/null +++ b/modules/sound/demos/sound.dem.gateway.sce @@ -0,0 +1,18 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - DIGITEO - Allan CORNET +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +function subdemolist = demo_gateway() + + demopath = get_absolute_file_path("sound.dem.gateway.sce"); + add_demo(_("Sound file handling"), demopath + "sound.dem.gateway.sce"); + + subdemolist = [_("FFT on a wav file") ,"sound.dem.sce"] + + subdemolist(:,2) = demopath + subdemolist(:,2); + +endfunction + +subdemolist = demo_gateway(); +clear demo_gateway;
\ No newline at end of file diff --git a/modules/sound/demos/sound.dem.sce b/modules/sound/demos/sound.dem.sce new file mode 100755 index 000000000..582df9c23 --- /dev/null +++ b/modules/sound/demos/sound.dem.sce @@ -0,0 +1,46 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2001 - INRIA - Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +function demo_sound() + + // At first we create 0.5 seconds of sound parameters. + t = soundsec(0.5); + // Then we generate the sound. + + s = sin(440*t)+sin(220*t)/2+sin(880*t)/2; + [nr, nc] = size(t); + s(nc/2:nc) = sin(330*t(nc/2:nc)); + + // We can easily make a Fourier analysis of it. + my_handle = scf(100001); + clf(my_handle, "reset"); + analyze(s); + messagebox(_("Fourier analysis of 0.5 seconds of sound parameters."), "modal"); + + // Save the file in WAV format. + // we renormalize s in order to check that save+load is invariant + s = s - sum(s)/prod(size(s)); + s = s/max(abs(s)); + savewave(TMPDIR + "/test.wav",s); + + // Load it back. + s1 = loadwave(TMPDIR + "/test.wav"); + if max(abs(s1 - s)) < 1.e-4;end + + // Now we can make a complete picture of the sound. + clf(my_handle,"reset"); + mapsound(s); + messagebox([_("A complete picture of the sound."); _("see ''mapsound'' function")], "modal"); + + // Or a Fourier analysis. + clf(my_handle,"reset"); + analyze(s); + demo_viewCode("sound.dem.sce"); + +endfunction + +demo_sound(); +clear demo_sound; diff --git a/modules/sound/etc/sound.quit b/modules/sound/etc/sound.quit new file mode 100755 index 000000000..b64bbfc8d --- /dev/null +++ b/modules/sound/etc/sound.quit @@ -0,0 +1,11 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// Copyright (C) 2009 - DIGITEO +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +// ============================================================================= diff --git a/modules/sound/etc/sound.start b/modules/sound/etc/sound.start new file mode 100755 index 000000000..fb997e537 --- /dev/null +++ b/modules/sound/etc/sound.start @@ -0,0 +1,12 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2006 - INRIA - Scilab +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +// Load functions libraries +// ============================================================================= +load('SCI/modules/sound/macros/lib'); diff --git a/modules/sound/help/en_US/addchapter.sce b/modules/sound/help/en_US/addchapter.sce new file mode 100755 index 000000000..40678a7a4 --- /dev/null +++ b/modules/sound/help/en_US/addchapter.sce @@ -0,0 +1,11 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +add_help_chapter("Sound file handling",SCI+"/modules/sound/help/en_US",%T); + diff --git a/modules/sound/help/en_US/analyze.xml b/modules/sound/help/en_US/analyze.xml new file mode 100755 index 000000000..a847e50e2 --- /dev/null +++ b/modules/sound/help/en_US/analyze.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2006 - INRIA - Scilab + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="analyze"> + <refnamediv> + <refname>analyze</refname> + <refpurpose>frequency plot of a sound signal</refpurpose> + </refnamediv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>fmin,fmax,rate,points</term> + <listitem> + <para>scalars. default values fmin=100,fmax=1500,rate=22050,points=8192;</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Make a frequency plot of the signal <literal>w</literal> with sampling rate <literal>rate</literal>. + The data must be at least <literal>points</literal> long. + The maximal frequency plotted will be <literal>fmax</literal>, the minimal <literal>fmin</literal>. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +// At first we create 0.5 seconds of sound parameters. +t=soundsec(0.5); + +// Then we generate the sound. +s=sin(440*t)+sin(220*t)/2+sin(880*t)/2; +[nr,nc]=size(t); +s(nc/2:nc)=sin(330*t(nc/2:nc)); +analyze(s); + ]]></programlisting> + <scilab:image> + t=soundsec(0.5); + s=sin(440*t)+sin(220*t)/2+sin(880*t)/2; + [nr,nc]=size(t); + s(nc/2:nc)=sin(330*t(nc/2:nc)); + analyze(s); + </scilab:image> + </refsection> +</refentry> diff --git a/modules/sound/help/en_US/auread.xml b/modules/sound/help/en_US/auread.xml new file mode 100755 index 000000000..a0332ea42 --- /dev/null +++ b/modules/sound/help/en_US/auread.xml @@ -0,0 +1,114 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2008 - INRIA - Scilab + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="auread"> + <refnamediv> + <refname>auread</refname> + <refpurpose>load .au sound file</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>y=auread(aufile) + y=auread(aufile,ext) + [y,Fs,bits]=auread(aufile) + [y,Fs,bits]=auread(aufile,ext) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>aufile</term> + <listitem> + <para>string (The .au extension is appended if no extension is given)</para> + </listitem> + </varlistentry> + <varlistentry> + <term>Fs</term> + <listitem> + <para>...</para> + </listitem> + </varlistentry> + <varlistentry> + <term>[]</term> + <listitem> + <para>integer, frequency sampling in Hz.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>ext</term> + <listitem> + <para> + string (<literal>'size'</literal> or <literal>'snd'</literal>) or integer (to read n samples) or 1 x 2 integer vector [n1,n2] (to read from n1 to n2). + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Utility function to read <literal>.au</literal> sound file. + <literal>auread(aufile)</literal> loads a sound file specified by the string aufile, + returning the sampled data in y. Amplitude values are in the range + [-1,+1]. + </para> + <para> + Supports multi-channel data in the following formats: + 8-bit mu-law, 8-, 16-, and 32-bit linear, and floating point. + </para> + <para> + <literal>[y,Fs,bits]=auread(aufile)</literal> returns the sample rate (Fs) in Hertz + and the number of bits per sample used to encode the data in the file. + </para> + <para> + <literal>auread(aufile,n)</literal> returns the first n samples from each channel. + </para> + <para> + <literal>auread(aufile,[n1,n2])</literal> returns samples n1 to n2. + </para> + <para> + <literal>auread(aufile,'size')</literal> returns the size of the audio data contained + in the file in place of the actual audio data, returning the + vector as [samples channels]. + </para> + <para> + <literal>auread(aufile,'snd')</literal> returns information about the sample and data + as a tlist. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +y=wavread('SCI/modules/sound/demos/chimes.wav'); + +// default is 8-bits mu-law +auwrite(y,TMPDIR+'/tmp.au'); +y1=auread(TMPDIR+'/tmp.au'); +max(abs(y-y1)) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="savewave">savewave</link> + </member> + <member> + <link linkend="analyze">analyze</link> + </member> + <member> + <link linkend="mapsound">mapsound</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/sound/help/en_US/auwrite.xml b/modules/sound/help/en_US/auwrite.xml new file mode 100755 index 000000000..9997f910f --- /dev/null +++ b/modules/sound/help/en_US/auwrite.xml @@ -0,0 +1,115 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2006 - INRIA - Scilab + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="auwrite"> + <refnamediv> + <refname>auwrite</refname> + <refpurpose>writes .au sound file</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>auwrite(y,aufile) + auwrite(y,Fs,aufile) + auwrite(y,Fs,bits,aufile) + auwrite(y,Fs,bits,method,aufile) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>y</term> + <listitem> + <para>real vector or matrix with entries in [-1,1].</para> + </listitem> + </varlistentry> + <varlistentry> + <term>aufile</term> + <listitem> + <para>string (The .au extension is appended if no extension is given)</para> + </listitem> + </varlistentry> + <varlistentry> + <term>Fs</term> + <listitem> + <para>integer, frequency sampling in Hz.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>bits</term> + <listitem> + <para>integer, number of bits in the encoding.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>method</term> + <listitem> + <para> + string , <literal>'mu'</literal> (default) or <literal>'linear'</literal>, encoding method. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Utility function to save <literal>.au</literal> sound file. + <literal>auwrite(y,aufile)</literal> writes a sound file specified by the + string aufile. The data should be arranged with one channel + per column. Amplitude values outside the range [-1,+1] are + ignored. + Supports multi-channel data for 8-bit mu-law, and 8, 16, 32, 64 bits linear formats. + </para> + <para> + <literal>auwrite(y,Fs,aufile)</literal> specifies in <literal>Fs</literal> the sample rate of the data + in Hertz. + </para> + <para> + <literal>auwrite(y,Fs,bits,aufile)</literal> selects the number of bits in + the encoder. Allowable settings are bits in [8,16,32,64]. + + <literal>auwrite(y,Fs,bits,method,aufile)</literal> allows selection of the + encoding method, which can be either 'mu' or 'linear'. + Note that bits must be 8 for 'mu' choice. The default method is 8-bits mu-law encoding. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +A=matrix(1:6,2,3); +auwrite(A/6,22050,64,'linear',TMPDIR+'/foo.au'); +B=auread(TMPDIR+'/foo.au'); +max(abs(A- round(B*6))) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="auread">auread</link> + </member> + <member> + <link linkend="wavread">wavread</link> + </member> + <member> + <link linkend="savewave">savewave</link> + </member> + <member> + <link linkend="analyze">analyze</link> + </member> + <member> + <link linkend="mapsound">mapsound</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/sound/help/en_US/beep.xml b/modules/sound/help/en_US/beep.xml new file mode 100755 index 000000000..3c82631d3 --- /dev/null +++ b/modules/sound/help/en_US/beep.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2006 - INRIA - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="beep"> + <refnamediv> + <refname>beep</refname> + <refpurpose>Produce a beep sound</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>beep(); + beep('on') + beep('off') + s=beep() + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Description</title> + <para> + <literal>beep()</literal> produces your computer's default beep sound. + </para> + <para> + <literal>beep('on')</literal> turns the beep on + </para> + <para> + <literal>beep('off')</literal> turns the beep off + </para> + <para> + <literal>s=beep()</literal> returns the current beep mode (on or off). + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +beep() // Make a sound +beep("off") // disable the sound +]]></programlisting> + </refsection> +</refentry> diff --git a/modules/sound/help/en_US/lin2mu.xml b/modules/sound/help/en_US/lin2mu.xml new file mode 100755 index 000000000..8fa6a3630 --- /dev/null +++ b/modules/sound/help/en_US/lin2mu.xml @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2006 - INRIA - Scilab + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="lin2mu"> + <refnamediv> + <refname>lin2mu</refname> + <refpurpose>linear signal to mu-law encoding</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>mu=lin2mu(y)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>y</term> + <listitem> + <para>real vector</para> + </listitem> + </varlistentry> + <varlistentry> + <term>mu</term> + <listitem> + <para>real vector</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Utility fct: converts linear signal to mu-law encoding. + <literal>mu = lin2mu(y)</literal> converts linear audio signal amplitudes + in the range -1 <= y <= 1 to mu-law in the range 0 <= mu <= 255. + </para> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="mu2lin">mu2lin</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/sound/help/en_US/loadwave.xml b/modules/sound/help/en_US/loadwave.xml new file mode 100755 index 000000000..6fe4b0a46 --- /dev/null +++ b/modules/sound/help/en_US/loadwave.xml @@ -0,0 +1,86 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2006 - INRIA - Scilab + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="loadwave" xml:lang="en"> + <refnamediv> + <refname>loadwave</refname> + <refpurpose>load a sound wav file into scilab</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>x=loadwave(filename); + [x,y]=loadwave(filename); + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>filename</term> + <listitem> + <para>a string. The path of the wav file to be loaded</para> + </listitem> + </varlistentry> + <varlistentry> + <term>x</term> + <listitem> + <para>a matrix one line for each channel</para> + </listitem> + </varlistentry> + <varlistentry> + <term>y</term> + <listitem> + <para>vector as [data format, number of channels, samples per second + per channel, estimate of bytes per second needed, byte alignment of + a basic sample block, bits per sample, length of sound data in + bytes, bytes per sample (per channel)]. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Reads a <literal>.wav</literal> sound file into Scilab as a matrix. + If y is given, it is filled with information about the samples (See the + message sent by <literal>loadwave</literal>). + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +// At first we create 0.5 seconds of sound parameters. +t=soundsec(0.5); + +// Then we generate the sound: a two channels sound. +s=[sin(2*%pi*440*t);sin(2*%pi*350*t)]; +savewave(TMPDIR+'/foo.wav',s); +s1=loadwave(TMPDIR+'/foo.wav'); +max(abs(s1-s)) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="savewave">savewave</link> + </member> + <member> + <link linkend="analyze">analyze</link> + </member> + <member> + <link linkend="mapsound">mapsound</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/sound/help/en_US/mapsound.xml b/modules/sound/help/en_US/mapsound.xml new file mode 100755 index 000000000..3ea43f03d --- /dev/null +++ b/modules/sound/help/en_US/mapsound.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2006 - INRIA - Scilab + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mapsound"> + <refnamediv> + <refname>mapsound</refname> + <refpurpose>Plots a sound map</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>mapsound (w,dt,fmin,fmax,simpl,rate)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>dt,fmin,fmax,simpl,rate</term> + <listitem> + <para>scalars. default values dt=0.1,fmin=100,fmax=1500,simpl=1,rate=22050;</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Plots a sound map for a sound. It does FFT at time increments dt. + <literal>rate</literal> is the sampling rate. <literal>simpl</literal> points are collected for + speed reasons. <literal>fmin</literal> and <literal>fmax</literal> are used for graphic + boundaries. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +// At first we create 0.5 seconds of sound parameters. +t=soundsec(0.5); + +// Then we generate the sound. +s=sin(440*t)+sin(220*t)/2+sin(880*t)/2; +[nr,nc]=size(t); +s(nc/2:nc)=sin(330*t(nc/2:nc)); +mapsound(s); + ]]></programlisting> + <scilab:image> + t=soundsec(0.5); + s=sin(440*t)+sin(220*t)/2+sin(880*t)/2; + [nr,nc]=size(t); + s(nc/2:nc)=sin(330*t(nc/2:nc)); + mapsound(s); + </scilab:image> + </refsection> +</refentry> diff --git a/modules/sound/help/en_US/mu2lin.xml b/modules/sound/help/en_US/mu2lin.xml new file mode 100755 index 000000000..6f181cdec --- /dev/null +++ b/modules/sound/help/en_US/mu2lin.xml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2006 - INRIA - Scilab + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mu2lin"> + <refnamediv> + <refname>mu2lin</refname> + <refpurpose>mu-law encoding to linear signal</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>mu=lin2mu(y)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>y</term> + <listitem> + <para>real vector</para> + </listitem> + </varlistentry> + <varlistentry> + <term>mu</term> + <listitem> + <para>real vector</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Utility fct: <literal>y=mu2lin(mu)</literal> converts mu-law encoded 8-bit audio signals, + stored in the range 0 <= mu <= 255, to linear signal amplitude in + the range -s < y < s where s = 32124/32768 ~= .9803. + The input mu is often obtained using mget(...,'uc') to read + byte-encoded audio files. Translation of C program by Craig Reese: + IDA/Supercomputing Research Center Joe Campbell: Department of Defense + </para> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="mu2lin">mu2lin</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/sound/help/en_US/playsnd.xml b/modules/sound/help/en_US/playsnd.xml new file mode 100755 index 000000000..7c158eea6 --- /dev/null +++ b/modules/sound/help/en_US/playsnd.xml @@ -0,0 +1,81 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2006 - INRIA - Scilab + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="playsnd"> + <refnamediv> + <refname>playsnd</refname> + <refpurpose>sound player facility</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>[]=playsnd(y) + []=playsnd(y,rate,bits [,command]) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>y</term> + <listitem> + <para>A matrix. Each line describes a channel</para> + </listitem> + </varlistentry> + <varlistentry> + <term>fs</term> + <listitem> + <para>real number, sampling frequency (default value is 22050).</para> + </listitem> + </varlistentry> + <varlistentry> + <term>bits</term> + <listitem> + <para>real number, number of bits (usually 8 or 16). Unused yet.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>command</term> + <listitem> + <para>Only used on Unix systems it gives the name of the command to use for playing sound + (wav) files. The default value is <literal>play</literal>. If set <literal>/dev/audio</literal> then + a 8 bits mu-law raw sound file is created and send to <literal>/dev/audio</literal> + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para>Plays a multi channel signal given by a Scilab matrix were sound is sampled at rate given by + <literal>rate</literal>. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +// a two channel signal +y=loadwave("SCI/modules/sound/demos/chimes.wav"); +playsnd(y) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="lin2mu">lin2mu</link> + </member> + <member> + <link linkend="wavread">wavread</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/sound/help/en_US/savewave.xml b/modules/sound/help/en_US/savewave.xml new file mode 100755 index 000000000..93eef6ca4 --- /dev/null +++ b/modules/sound/help/en_US/savewave.xml @@ -0,0 +1,82 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2006 - INRIA - Scilab + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="savewave" xml:lang="en"> + <refnamediv> + <refname>savewave</refname> + <refpurpose>save data into a sound wav file.</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>savewave(filename,x [, rate , nbits]);</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>filename</term> + <listitem> + <para>a string. The path of the output wav file</para> + </listitem> + </varlistentry> + <varlistentry> + <term>x</term> + <listitem> + <para>a mxn matrix where m is the number of channels and n the + number of samples for each channel + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>rate</term> + <listitem> + <para>a scalar giving the sampling rate (number of sample per + second) 22050 is the default value. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para>save x into a wav sound file. you can transform other sound files + into wav file with the <literal>sox</literal> program. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +// At first we create 0.5 seconds of sound parameters. +t=soundsec(0.5); + +// Then we generate the sound. +s=sin(2*%pi*440*t)+sin(2*%pi*220*t)/2+sin(2*%pi*880*t)/2; +[nr,nc]=size(t); +s(nc/2:nc)=sin(2*%pi*330*t(nc/2:nc)); +savewave(TMPDIR+'/foo.wav',s); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="loadwave">loadwave</link> + </member> + <member> + <link linkend="analyze">analyze</link> + </member> + <member> + <link linkend="mapsound">mapsound</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/sound/help/en_US/sound.xml b/modules/sound/help/en_US/sound.xml new file mode 100755 index 000000000..008cbbeab --- /dev/null +++ b/modules/sound/help/en_US/sound.xml @@ -0,0 +1,82 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2007 - INRIA - Scilab + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="sound"> + <refnamediv> + <refname>sound</refname> + <refpurpose>sound player facility</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>sound(y [,fs,bits,command)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>y</term> + <listitem> + <para>real vector</para> + </listitem> + </varlistentry> + <varlistentry> + <term>fs</term> + <listitem> + <para>real number, sampling frequency in sample per second (default value is 22050)</para> + </listitem> + </varlistentry> + <varlistentry> + <term>bits</term> + <listitem> + <para>real number, number of bits (unused)</para> + </listitem> + </varlistentry> + <varlistentry> + <term>command</term> + <listitem> + <para>Only used on Unix systems it gives the name of the command to use for playing sound + (wav) files. The default value is <literal>aplay</literal>. If set <literal>/dev/audio</literal> then + a 8 bits mu-law raw sound file is created and send to <literal>/dev/audio</literal> + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <literal>sound(y,fs)</literal>plays the sound signal given by matrix <literal>y</literal> (with sample frequency + fs). In fact this function is just a wrapper for <literal>playsnd</literal>. Values in y are assumed to be in the + range -1.0 <= y <= 1.0. Values outside that range are truncated. + The number of rows of <literal>y</literal> gives the number of channels. + <literal>sound(y)</literal> plays the sound at the default sample rate of 22050 sample per second. + <literal>sound(y,fs,nbits)</literal> plays the sound using <literal>nbits</literal> bits/sample if + possible (it is in fact unused). Most platforms support bits=8 or 16. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +// a two channel signal +y=loadwave("SCI/modules/sound/demos/chimes.wav"); +sound(y) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="playsnd">playsnd</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/sound/help/en_US/soundsec.xml b/modules/sound/help/en_US/soundsec.xml new file mode 100755 index 000000000..25ac106da --- /dev/null +++ b/modules/sound/help/en_US/soundsec.xml @@ -0,0 +1,76 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2006 - INRIA - Scilab + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="soundsec"> + <refnamediv> + <refname>soundsec</refname> + <refpurpose> + generates a vector of samples for <literal>t</literal> seconds at frequency <literal>freq</literal> Hz. + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>samples=soundsec(t [,freq])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>t</term> + <listitem> + <para>a 1-by-1 matrix of positive real numbers, the time length to sample.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>freq</term> + <listitem> + <para>a 1-by-1 matrix of positive real number, the frequency of samples per second.</para> + <para>default value is 22050 Hz</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Generates a vector coding time from 0 to <literal>t</literal> seconds at sampled rate <literal>freq</literal>. + </para> + <para> + Samples are always generated to fit in <literal>[0,t[</literal> (excluding upper bound). + </para> + <para> + Value 0 for either <literal>t</literal> or <literal>freq</literal> return an empty matrx + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +// At first we create 0.5 seconds of sound parameters. +t=soundsec(0.5); + +// Then we generate a pure A4 = 440Hz sine +s=sin(2*%pi*440*t); +analyze(s,200,600,22050); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="playsnd">playsnd</link> + </member> + <member> + <link linkend="analyze">analyze</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/sound/help/en_US/wavread.xml b/modules/sound/help/en_US/wavread.xml new file mode 100755 index 000000000..a3f673468 --- /dev/null +++ b/modules/sound/help/en_US/wavread.xml @@ -0,0 +1,132 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2008 - INRIA - Scilab + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="wavread" xml:lang="en"> + <refnamediv> + <refname>wavread</refname> + <refpurpose>load .wav sound file</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>y=wavread(wavfile) + y=wavread(wavfile,ext) + [y,Fs,bits]=wavread(wavfile) + [y,Fs,bits]=wavread(wavfile,ext) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>wavfile</term> + <listitem> + <para>string (The .wav extension is appended if no extension is + given) + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>Fs</term> + <listitem> + <para>integer, frequency sampling in Hz (number of samples per + second). + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>ext</term> + <listitem> + <para> + string (<literal>'size'</literal>) or string('info') or + integer (to read n samples) or 1 x 2 integer vector [n1,n2] (to read + from n1 to n2). + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Utility function to read <literal>.wav</literal> sound file. + <literal>wavread(wavfile)</literal> loads a sound file specified by the + string wavfile, returning the sampled data in y. Amplitude values are in + the range [-1,+1]. Supports multi-channel data in the following formats: + 8-bit mu-law, 8-, 16-, and 32-bit linear, and floating point. + </para> + <para> + <literal>[y,Fs,bits]=wavread(wavfile)</literal> returns the sample + rate (Fs) in Hertz and the number of bits per sample used to encode the + data in the file. + </para> + <para> + <literal>wavread(wavfile,n)</literal> returns the first n samples + from each channel. + </para> + <para> + <literal>wavread(wavfile,[n1,n2])</literal> returns samples n1 to + n2. + </para> + <para> + <literal>wavread(wavfile,'size')</literal> returns the size of the + audio data contained in the file in place of the actual audio data, + returning the vector as [channels samples]. + </para> + <para> + <literal>wavread(wavfile,'info')</literal> returns information + about the audio data contained in the file in place of the actual audio + data, returning the vector as [data format, number of channels, samples + per second per channel, estimate of bytes per second needed, byte + alignment of a basic sample block, bits per sample, length of sound data + in bytes, bytes per sample (per channel)]. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +wavread("SCI/modules/sound/demos/chimes.wav","size") +[y,Fs,bits]=wavread("SCI/modules/sound/demos/chimes.wav");Fs,bits +subplot(2,1,1) +plot2d(y(1,:)) // first channel +subplot(2,1,2) +plot2d(y(2,:)) // second channel +y=wavread("SCI/modules/sound/demos/chimes.wav",[1 5]) //the first five samples + ]]></programlisting> + <scilab:image> + wavread("SCI/modules/sound/demos/chimes.wav","size") + [y,Fs,bits]=wavread("SCI/modules/sound/demos/chimes.wav"); + subplot(2,1,1) + plot2d(y(1,:)) + subplot(2,1,2) + plot2d(y(2,:)) + y=wavread("SCI/modules/sound/demos/chimes.wav",[1 5]) + </scilab:image> + + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="auread">auread</link> + </member> + <member> + <link linkend="savewave">savewave</link> + </member> + <member> + <link linkend="analyze">analyze</link> + </member> + <member> + <link linkend="mapsound">mapsound</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/sound/help/en_US/wavwrite.xml b/modules/sound/help/en_US/wavwrite.xml new file mode 100755 index 000000000..0cac7fa70 --- /dev/null +++ b/modules/sound/help/en_US/wavwrite.xml @@ -0,0 +1,99 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2006 - INRIA - Scilab + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="wavwrite" xml:lang="en"> + <refnamediv> + <refname>wavwrite</refname> + <refpurpose>writes .wav sound file</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>wavwrite(y, wavfile) + wavwrite(y, Fs, wavfile) + wavwrite(y, Fs, nbits, wavfile) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>y</term> + <listitem> + <para>real vector or matrix with entries in [-1,1].</para> + </listitem> + </varlistentry> + <varlistentry> + <term>wavfile</term> + <listitem> + <para>string (The .wav extension is appended if no extension is + given) + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>Fs</term> + <listitem> + <para>integer, frequency sampling in Hz. 22500 is the default value.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>nbits</term> + <listitem> + <para>bit-depth 8, 16, 24, 32 bits. it describes the number of bits of information recorded for each sample. + 16 is the default value. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Utility function to save <literal>.wav</literal> sound file. + <literal>wavwrite(y,wavfile)</literal> writes a sound file specified by + the string wavfile. The data should be arranged with one channel per + column. Amplitude values outside the range [-1,+1] are ignored. + </para> + <para> + <literal>wavwrite(y,Fs,wavfile)</literal> specifies in + <literal>Fs</literal> the sample rate of the data in Hertz. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +A=matrix(1:6,2,3); +wavwrite(A/6,TMPDIR+'/foo.wav'); +B=wavread(TMPDIR+'/foo.wav'); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="auread">auread</link> + </member> + <member> + <link linkend="wavread">wavread</link> + </member> + <member> + <link linkend="savewave">savewave</link> + </member> + <member> + <link linkend="analyze">analyze</link> + </member> + <member> + <link linkend="mapsound">mapsound</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/sound/help/fr_FR/addchapter.sce b/modules/sound/help/fr_FR/addchapter.sce new file mode 100755 index 000000000..f7124df0a --- /dev/null +++ b/modules/sound/help/fr_FR/addchapter.sce @@ -0,0 +1,11 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +add_help_chapter("Manipulation de fichiers sons",SCI+"/modules/sound/help/fr_FR",%T); + diff --git a/modules/sound/help/fr_FR/beep.xml b/modules/sound/help/fr_FR/beep.xml new file mode 100755 index 000000000..fb479741c --- /dev/null +++ b/modules/sound/help/fr_FR/beep.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2006 - INRIA - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="beep"> + <refnamediv> + <refname>beep</refname> + <refpurpose>Produit le son "beep"</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Séquence d'appel</title> + <synopsis>beep(); + beep('on') + beep('off') + s=beep() + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Description</title> + <para> + <literal>beep()</literal> produit le son "beep". + </para> + <para> + <literal>beep('on')</literal> active le "beep" + </para> + <para> + <literal>beep('off')</literal> desactive le "beep" + </para> + <para> + <literal>s=beep()</literal> retourne le mode courantreturns the current beep + mode (on or off). + </para> + </refsection> +</refentry> diff --git a/modules/sound/help/ja_JP/addchapter.sce b/modules/sound/help/ja_JP/addchapter.sce new file mode 100755 index 000000000..9b9d14032 --- /dev/null +++ b/modules/sound/help/ja_JP/addchapter.sce @@ -0,0 +1,11 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +add_help_chapter("Sound file handling",SCI+"/modules/sound/help/ja_JP",%T); + diff --git a/modules/sound/help/ja_JP/analyze.xml b/modules/sound/help/ja_JP/analyze.xml new file mode 100755 index 000000000..e1a6882c5 --- /dev/null +++ b/modules/sound/help/ja_JP/analyze.xml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2006 - INRIA - Scilab + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="analyze"> + <refnamediv> + <refname>analyze</refname> + <refpurpose>サウンド信号の周波数プロット</refpurpose> + </refnamediv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>fmin,fmax,rate,points</term> + <listitem> + <para>スカラー. デフォルト値 fmin=100,fmax=1500,rate=22050,points=8192;</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + サンプリングレート<literal>rate</literal>の + 信号<literal>w</literal> の周波数プロットを作成します. + データ長は<literal>points</literal>である必要があります. + プロットされる周波数の最大値は<literal>fmax</literal>, + 最小値は<literal>fmin</literal>となります. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +// まず0.5秒分のサウンドパラメータを作成. +t=soundsec(0.5); +// 次にサウンドを生成. +s=sin(440*t)+sin(220*t)/2+sin(880*t)/2; +[nr,nc]=size(t); +s(nc/2:nc)=sin(330*t(nc/2:nc)); +analyze(s); + ]]></programlisting> + <scilab:image> + t=soundsec(0.5); + s=sin(440*t)+sin(220*t)/2+sin(880*t)/2; + [nr,nc]=size(t); + s(nc/2:nc)=sin(330*t(nc/2:nc)); + analyze(s); + </scilab:image> + </refsection> +</refentry> diff --git a/modules/sound/help/ja_JP/auread.xml b/modules/sound/help/ja_JP/auread.xml new file mode 100755 index 000000000..1c9cbab1b --- /dev/null +++ b/modules/sound/help/ja_JP/auread.xml @@ -0,0 +1,123 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2008 - INRIA - Scilab + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="auread"> + <refnamediv> + <refname>auread</refname> + <refpurpose>.au サウンドファイルを読み込む</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>y=auread(aufile) + y=auread(aufile,ext) + [y,Fs,bits]=auread(aufile) + [y,Fs,bits]=auread(aufile,ext) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>aufile</term> + <listitem> + <para>文字列 (拡張子が指定されない場合,拡張子.auが追加されます)</para> + </listitem> + </varlistentry> + <varlistentry> + <term>Fs</term> + <listitem> + <para>...</para> + </listitem> + </varlistentry> + <varlistentry> + <term>[]</term> + <listitem> + <para>整数, サンプリング周波数(単位:Hz).</para> + </listitem> + </varlistentry> + <varlistentry> + <term>ext</term> + <listitem> + <para> + 文字列(<literal>'size'</literal> または + <literal>'snd'</literal>) または + 整数 (n サンプルを読み込む) または + 1 x 2 整数ベクトル [n1,n2] (n1 から n2を読み込む). + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + <literal>.au</literal>サウンドファイルを読み込むための + ユーティリティ関数. + <literal>auread(aufile)</literal> は + aufile文字列で指定されたサウンドファイルを読み込み, + yにサンプリングデータを返します. + 大きさは範囲[-1,+1]となります. + </para> + <para> + 以下の形式の複数チャネルデータをサポートします: + 8-bit mu-law, 8-, 16-, および 32-bitリニア, および浮動小数点. + </para> + <para> + <literal>[y,Fs,bits]=auread(aufile)</literal> は + ヘルツ単位のサンプリングレート (Fs)と, + ファイル中でデータをエンコードする際に使用される + サンプル毎のビット数を返します. + </para> + <para> + <literal>auread(aufile,n)</literal> は,各チャネルから + 最初のnサンプルを返します. + </para> + <para> + <literal>auread(aufile,[n1,n2])</literal> は, + サンプル n1 から n2までを返します. + </para> + <para> + <literal>auread(aufile,'size')</literal> は, + 実際のオーディオデータの配置でファイル中に含まれる + オーディオデータの大きさを, + [samples channels] のベクトルとして返します. + </para> + <para> + <literal>auread(aufile,'snd')</literal> は + サンプルとデータに関する情報を tlist として返します. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +y=wavread('SCI/modules/sound/demos/chimes.wav'); +// デフォルトは 8-bits mu-law です +auwrite(y,TMPDIR+'/tmp.au'); +y1=auread(TMPDIR+'/tmp.au'); +max(abs(y-y1)) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="savewave">savewave</link> + </member> + <member> + <link linkend="analyze">analyze</link> + </member> + <member> + <link linkend="mapsound">mapsound</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/sound/help/ja_JP/auwrite.xml b/modules/sound/help/ja_JP/auwrite.xml new file mode 100755 index 000000000..ca8293993 --- /dev/null +++ b/modules/sound/help/ja_JP/auwrite.xml @@ -0,0 +1,122 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2006 - INRIA - Scilab + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="auwrite"> + <refnamediv> + <refname>auwrite</refname> + <refpurpose>.auサウンドファイルを書き込む</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>auwrite(y,aufile) + auwrite(y,Fs,aufile) + auwrite(y,Fs,bits,aufile) + auwrite(y,Fs,bits,method,aufile) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>y</term> + <listitem> + <para>実数ベクトルまたは行列,エントリは[-1,1]の範囲.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>aufile</term> + <listitem> + <para>文字列(拡張子が指定されない場合,拡張子.auが追加されます)</para> + </listitem> + </varlistentry> + <varlistentry> + <term>Fs</term> + <listitem> + <para>整数, 周波数サンプリング(単位:Hz).</para> + </listitem> + </varlistentry> + <varlistentry> + <term>bits</term> + <listitem> + <para>整数, エンコーディングのビット数.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>method</term> + <listitem> + <para> + 文字列, <literal>'mu'</literal> (デフォルト) または + <literal>'linear'</literal>, エンコーディング手法. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + <literal>.au</literal> サウンドファイルを + 保存するためのユーティリティ関数. + <literal>auwrite(y,aufile)</literal> は, + 文字列aufileで指定されたサウンドファイルを書き込みます. + データは列毎に1チャネルで整列している必要があります. + 大きさが範囲[-1,+1]の外側にある場合,無視されます. + サポートされる複数チャネルデータは, + 8-bit mu-law, および8, 16, 32, 64 ビット線形形式です. + </para> + <para> + <literal>auwrite(y,Fs,aufile)</literal> は, + データのサンプル・レート<literal>Fs</literal>(単位:Hz)を + 指定します. + </para> + <para> + <literal>auwrite(y,Fs,bits,aufile)</literal> は, + エンコーダのビット数を選択します. + 指定可能な設定は[8,16,32,64]ビットです. + <literal>auwrite(y,Fs,bits,method,aufile)</literal> により, + エンコーディング手法を選択でき, + 'mu' または 'linear'のどちらかを指定します. + 'mu'を選択する場合,ビット数は 8 とする必要があることに + 注意してください.デフォルトの手法は 8ビット + mu-lawエンコーディングです. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +A=matrix(1:6,2,3); +auwrite(A/6,22050,64,'linear',TMPDIR+'/foo.au'); +B=auread(TMPDIR+'/foo.au'); +max(abs(A- round(B*6))) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="auread">auread</link> + </member> + <member> + <link linkend="wavread">wavread</link> + </member> + <member> + <link linkend="savewave">savewave</link> + </member> + <member> + <link linkend="analyze">analyze</link> + </member> + <member> + <link linkend="mapsound">mapsound</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/sound/help/ja_JP/beep.xml b/modules/sound/help/ja_JP/beep.xml new file mode 100755 index 000000000..f0ef96e81 --- /dev/null +++ b/modules/sound/help/ja_JP/beep.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2006 - INRIA - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="beep"> + <refnamediv> + <refname>beep</refname> + <refpurpose>ビープ音を生成</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>beep(); + beep('on') + beep('off') + s=beep() + </synopsis> + </refsynopsisdiv> + <refsection> + <title>説明</title> + <para> + <literal>beep()</literal> は,使用する + コンピュータのデフォルトのビープ音を生成します. + </para> + <para> + <literal>beep('on')</literal> はビープをonにします. + </para> + <para> + <literal>beep('off')</literal>はビープをoffにします. + </para> + <para> + <literal>s=beep()</literal> は現在のビープモード(on または off) + を返します. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +beep() // サウンドを作成 +beep("off") // サウンドを無効にする +]]></programlisting> + </refsection> +</refentry> diff --git a/modules/sound/help/ja_JP/lin2mu.xml b/modules/sound/help/ja_JP/lin2mu.xml new file mode 100755 index 000000000..5317c446e --- /dev/null +++ b/modules/sound/help/ja_JP/lin2mu.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2006 - INRIA - Scilab + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="lin2mu"> + <refnamediv> + <refname>lin2mu</refname> + <refpurpose>linear信号をmu-lawエンコーディングに変換</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>mu=lin2mu(y)</synopsis> + </refsynopsisdiv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>y</term> + <listitem> + <para>実数ベクトル</para> + </listitem> + </varlistentry> + <varlistentry> + <term>mu</term> + <listitem> + <para>実数ベクトル</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + ユーティリティ関数: 線形信号をmu-lawエンコーディングに変換します. + <literal>mu = lin2mu(y)</literal> は, + 大きさが-1 <= y <= の範囲の線形オーディオ信号を + 範囲が0 <= mu <= 255の + mu-law に変換します. + </para> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="mu2lin">mu2lin</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/sound/help/ja_JP/loadwave.xml b/modules/sound/help/ja_JP/loadwave.xml new file mode 100755 index 000000000..f3e04c8f3 --- /dev/null +++ b/modules/sound/help/ja_JP/loadwave.xml @@ -0,0 +1,88 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2006 - INRIA - Scilab + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="loadwave" xml:lang="ja"> + <refnamediv> + <refname>loadwave</refname> + <refpurpose>サウンドwavファイルをscilabに読み込む</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>x=loadwave(filename); + [x,y]=loadwave(filename); + </synopsis> + </refsynopsisdiv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>filename</term> + <listitem> + <para>文字列. 読み込むwavファイルのパス</para> + </listitem> + </varlistentry> + <varlistentry> + <term>x</term> + <listitem> + <para>行列,各チャネル毎に1行</para> + </listitem> + </varlistentry> + <varlistentry> + <term>y</term> + <listitem> + <para> + ベクトル, + [データ形式, チャネル数, 各チャネルのサンプル/秒, + 所要バイト/秒の推定値, + 基本サンプリングブロックのバイト並び, + ビット/サンプル, サウンドデータ長(単位:バイト), + バイト/サンプル(チャネル毎)]. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + サウンドファイル<literal>.wav</literal>をScilabに行列として読み込みます. + yが指定された場合, サンプルに関する情報が代入されます + <literal>loadwave</literal>により送信されたメッセージを参照). + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +// まず0.5秒分のサウンドパラメータを作成. +t=soundsec(0.5); +// 次にサウンドを生成: 2チャンネルのサウンド. +s=[sin(2*%pi*440*t);sin(2*%pi*350*t)]; +savewave(TMPDIR+'/foo.wav',s); +s1=loadwave(TMPDIR+'/foo.wav'); +max(abs(s1-s)) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="savewave">savewave</link> + </member> + <member> + <link linkend="analyze">analyze</link> + </member> + <member> + <link linkend="mapsound">mapsound</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/sound/help/ja_JP/mapsound.xml b/modules/sound/help/ja_JP/mapsound.xml new file mode 100755 index 000000000..05ecc9339 --- /dev/null +++ b/modules/sound/help/ja_JP/mapsound.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2006 - INRIA - Scilab + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="mapsound"> + <refnamediv> + <refname>mapsound</refname> + <refpurpose>サウンドマップをプロット</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>mapsound (w,dt,fmin,fmax,simpl,rate)</synopsis> + </refsynopsisdiv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>dt,fmin,fmax,simpl,rate</term> + <listitem> + <para>スカラー. デフォルト値 dt=0.1,fmin=100,fmax=1500,simpl=1,rate=22050;</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + 音のサウンドマップをプロット. 時間増分dt毎にFFTを行います. + <literal>rate</literal> はサンプリング・レートです. + 速度面を考慮して<literal>simpl</literal> 点が収集されます. + <literal>fmin</literal> および <literal>fmax</literal> が + グラフィック境界として使用されます. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +// まず0.5秒分のサウンドパラメータを生成 +t=soundsec(0.5); +// 次にサウンドを生成. +s=sin(440*t)+sin(220*t)/2+sin(880*t)/2; +[nr,nc]=size(t); +s(nc/2:nc)=sin(330*t(nc/2:nc)); +mapsound(s); + ]]></programlisting> + <scilab:image> + t=soundsec(0.5); + s=sin(440*t)+sin(220*t)/2+sin(880*t)/2; + [nr,nc]=size(t); + s(nc/2:nc)=sin(330*t(nc/2:nc)); + mapsound(s); + </scilab:image> + </refsection> +</refentry> diff --git a/modules/sound/help/ja_JP/mu2lin.xml b/modules/sound/help/ja_JP/mu2lin.xml new file mode 100755 index 000000000..0a7e49df2 --- /dev/null +++ b/modules/sound/help/ja_JP/mu2lin.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2006 - INRIA - Scilab + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="mu2lin"> + <refnamediv> + <refname>mu2lin</refname> + <refpurpose>mu-lawエンコーディングを線形信号に変換</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>mu=lin2mu(y)</synopsis> + </refsynopsisdiv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>y</term> + <listitem> + <para>実数ベクトル</para> + </listitem> + </varlistentry> + <varlistentry> + <term>mu</term> + <listitem> + <para>実数ベクトル</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + ユーティリティ関数: <literal>y=mu2lin(mu)</literal> は, + 0 <= mu <= 255の範囲で保存された + mu-law形式の8-bitオーディオ信号を, + 大きさが範囲 -s < y < s (ただし,s = 32124/32768 ~= .9803. )の + 線形信号に変換します. + 入力 mu は,しばしば,バイトエンコードされたオーディオファイルを読み込む + mget(...,'uc') により取得されます. + Craig Reese + (IDA/Supercomputing Research Center Joe Campbell: Department of Defense) + によるCプログラムを翻訳. + </para> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="mu2lin">mu2lin</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/sound/help/ja_JP/playsnd.xml b/modules/sound/help/ja_JP/playsnd.xml new file mode 100755 index 000000000..85c09dd4f --- /dev/null +++ b/modules/sound/help/ja_JP/playsnd.xml @@ -0,0 +1,86 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2006 - INRIA - Scilab + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="playsnd"> + <refnamediv> + <refname>playsnd</refname> + <refpurpose>サウンドプレイヤー機能</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>[]=playsnd(y) + []=playsnd(y,rate,bits [,command]) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>y</term> + <listitem> + <para>行列. 各行は1チャネルを記述</para> + </listitem> + </varlistentry> + <varlistentry> + <term>fs</term> + <listitem> + <para>実数, サンプリング周波数 (デフォルト値は22050).</para> + </listitem> + </varlistentry> + <varlistentry> + <term>bits</term> + <listitem> + <para>実数, ビット長 (通常 8 または 16). 未使用.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>command</term> + <listitem> + <para> + Unixシステムのみで使用され, + サウンド(wav)ファイルを演奏する際に使用されるコマンド名を指定します. + デフォルト値は<literal>play</literal>です. + <literal>/dev/audio</literal>が指定された場合, + 8ビットmu-law rawサウンドが生成され, + <literal>/dev/audio</literal>に送信されます. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + Scilab行列で指定されたマルチチャネル信号を演奏します. + ただし, サウンドのサンプリングレートは<literal>rate</literal>です. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +// a two channel signal +y=loadwave("SCI/modules/sound/demos/chimes.wav"); +playsnd(y) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="lin2mu">lin2mu</link> + </member> + <member> + <link linkend="wavread">wavread</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/sound/help/ja_JP/savewave.xml b/modules/sound/help/ja_JP/savewave.xml new file mode 100755 index 000000000..2149a1b35 --- /dev/null +++ b/modules/sound/help/ja_JP/savewave.xml @@ -0,0 +1,84 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2006 - INRIA - Scilab + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="savewave" xml:lang="ja"> + <refnamediv> + <refname>savewave</refname> + <refpurpose>データをサウンドwavファイルに保存.</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>savewave(filename,x [, rate , nbits]);</synopsis> + </refsynopsisdiv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>filename</term> + <listitem> + <para>文字列. 出力wavファイルのパス</para> + </listitem> + </varlistentry> + <varlistentry> + <term>x</term> + <listitem> + <para>mxn 行列, ただし, m はチャンネル数, n は各チャネルの + サンプル数 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>rate</term> + <listitem> + <para> + サンプリング・レート(サンプル数/秒)を指定するスカラー. + 22050 がデフォルト値です. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + x をwavサウンドファイルに保存します. + 他のサウンドファイルを<literal>sox</literal>プログラムにより + wavファイルに変換できます. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +// まず0.5秒分のサウンドパラメータを作成. +t=soundsec(0.5); +// 次にサウンドを生成. +s=sin(2*%pi*440*t)+sin(2*%pi*220*t)/2+sin(2*%pi*880*t)/2; +[nr,nc]=size(t); +s(nc/2:nc)=sin(2*%pi*330*t(nc/2:nc)); +savewave(TMPDIR+'/foo.wav',s); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="loadwave">loadwave</link> + </member> + <member> + <link linkend="analyze">analyze</link> + </member> + <member> + <link linkend="mapsound">mapsound</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/sound/help/ja_JP/sound.xml b/modules/sound/help/ja_JP/sound.xml new file mode 100755 index 000000000..cd8df73cd --- /dev/null +++ b/modules/sound/help/ja_JP/sound.xml @@ -0,0 +1,92 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2007 - INRIA - Scilab + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="sound"> + <refnamediv> + <refname>sound</refname> + <refpurpose>サウンドプレイヤー機能</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>sound(y [,fs,bits,command)</synopsis> + </refsynopsisdiv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>y</term> + <listitem> + <para>実数ベクトル</para> + </listitem> + </varlistentry> + <varlistentry> + <term>fs</term> + <listitem> + <para>実数, サンプリング周波数(単位:サンプル/秒) (デフォルト値は 22050)</para> + </listitem> + </varlistentry> + <varlistentry> + <term>bits</term> + <listitem> + <para>実数, ビット数(未使用)</para> + </listitem> + </varlistentry> + <varlistentry> + <term>command</term> + <listitem> + <para> + Unixシステムでのみ使用され, + サウンド(wav)ファイルを演奏する際に使用される + コマンドの名前を指定します. + デフォルト値は<literal>aplay</literal>です. + <literal>/dev/audio</literal>を指定した場合, + 8ビットmu-law raw サウンドファイルが作成され, + <literal>/dev/audio</literal>に送信されます. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + <literal>sound(y,fs)</literal>は,行列<literal>y</literal> + (サンプリング周波数fs)で指定されたサウンド信号を演奏します. + 実際には,この関数は <literal>playsnd</literal>のラッパーです. + yの値は範囲-1.0 <= y <= 1.0にあると仮定されます. + この範囲の外側の値は丸められます. + <literal>y</literal> の行数はチャネル数を指定します. + <literal>sound(y)</literal> は,デフォルトのサンプリング・レート + 22050 サンプル/秒でサウンドを演奏します. + <literal>sound(y,fs,nbits)</literal> は, + 可能な場合(この機能は未使用), + <literal>nbits</literal> ビット/サンプルでサウンドを演奏します. + 多くのプラットフォームは8または16ビットをサポートします. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +// 2チャンネル信号 +y=loadwave("SCI/modules/sound/demos/chimes.wav"); +sound(y) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="playsnd">playsnd</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/sound/help/ja_JP/soundsec.xml b/modules/sound/help/ja_JP/soundsec.xml new file mode 100755 index 000000000..616a7c99b --- /dev/null +++ b/modules/sound/help/ja_JP/soundsec.xml @@ -0,0 +1,80 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2006 - INRIA - Scilab + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="soundsec"> + <refnamediv> + <refname>soundsec</refname> + <refpurpose> + 周波数<literal>freq</literal> Hzで + <literal>t</literal>秒分のサンプルベクトルを生成. + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>samples=soundsec(t [,freq])</synopsis> + </refsynopsisdiv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>t</term> + <listitem> + <para>正の実数の1行1列行列, サンプルの時間長.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>freq</term> + <listitem> + <para> + 正の実数の1行1列行列, サンプル/秒の周波数. + </para> + <para>デフォルト値は22050 Hz</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + サンプル・レート<literal>freq</literal>で + 0から <literal>t</literal> 秒までの時間ベクトルを生成します. + </para> + <para> + サンプルは常に <literal>[0,t[</literal>(上界を除く)に整合するように生成されます. + </para> + <para> + 0 を<literal>t</literal> または <literal>freq</literal> に指定すると, + 空の行列が返されます. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +// まず0.5秒分のサウンドパラメータを作成. +t=soundsec(0.5); +// 次に A4 = 440Hz サインを生成 +s=sin(2*%pi*440*t); +analyze(s,200,600,22050); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="playsnd">playsnd</link> + </member> + <member> + <link linkend="analyze">analyze</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/sound/help/ja_JP/wavread.xml b/modules/sound/help/ja_JP/wavread.xml new file mode 100755 index 000000000..1c2f9a1af --- /dev/null +++ b/modules/sound/help/ja_JP/wavread.xml @@ -0,0 +1,132 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2008 - INRIA - Scilab + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="wavread" xml:lang="ja"> + <refnamediv> + <refname>wavread</refname> + <refpurpose>.wav サウンドファイルを読み込む</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>y=wavread(wavfile) + y=wavread(wavfile,ext) + [y,Fs,bits]=wavread(wavfile) + [y,Fs,bits]=wavread(wavfile,ext) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>wavfile</term> + <listitem> + <para>文字列(拡張子が指定されない場合,拡張子 .wav が追加されます) + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>Fs</term> + <listitem> + <para>整数, サンプリング周波数(単位:Hz) (サンプル数/秒). + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>ext</term> + <listitem> + <para> + 文字列 (<literal>'size'</literal>) または string('info') または + (nサンプルを読み込む)整数 , + (n1からn2を読み込む) 1 x 2整数ベクトル. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + <literal>.wav</literal>サウンドファイルを読み込む + ユーティリティ関数. + <literal>wavread(wavfile)</literal> は文字列wavfileで + 指定されたサウンドファイルを読み込み,サンプルデータをyに返します. + 大きさは [-1,+1]の範囲となります. + 以下の形式の多チャネルデータをサポートします: + 8-bit mu-law, 8-, 16-, および 32ビット,線形, および浮動小数点. + </para> + <para> + <literal>[y,Fs,bits]=wavread(wavfile)</literal> は, + ファイル中のデータをエンコードする際に使用された + サンプルレート(Fs) (単位:Hz),ビット数/サンプルを返します. + </para> + <para> + <literal>wavread(wavfile,n)</literal>は各チャネルの最初のnサンプルを + 返します. + </para> + <para> + <literal>wavread(wavfile,[n1,n2])</literal> はサンプル n1 から n2までを返します. + </para> + <para> + <literal>wavread(wavfile,'size')</literal> は, + ファイル中に含まれるオーディオデータの大きさを + [チャネル サンプル] のベクトルとして返します. + </para> + <para> + <literal>wavread(wavfile,'info')</literal> は, + 実際のオーディオデータについて + ファイル中に含まれるオーディオデータに関する情報を, + ベクトル + [データ形式, チャネル数, サンプル/秒/チャネル, 所要バイト/秒の推定値, + 基本サンプルブロックのバイト並び, ビット/秒, サウンドデータ長(単位:バイト), + バイト/サンプル (チャネル毎)] + として返します. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +wavread("SCI/modules/sound/demos/chimes.wav","size") +[y,Fs,bits]=wavread("SCI/modules/sound/demos/chimes.wav");Fs,bits +subplot(2,1,1) +plot2d(y(1,:)) // 最初のチャネル +subplot(2,1,2) +plot2d(y(2,:)) // 2番目のチャネル +y=wavread("SCI/modules/sound/demos/chimes.wav",[1 5]) //最初の5サンプル + ]]></programlisting> + <scilab:image> + wavread("SCI/modules/sound/demos/chimes.wav","size") + [y,Fs,bits]=wavread("SCI/modules/sound/demos/chimes.wav"); + subplot(2,1,1) + plot2d(y(1,:)) + subplot(2,1,2) + plot2d(y(2,:)) + y=wavread("SCI/modules/sound/demos/chimes.wav",[1 5]) + </scilab:image> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="auread">auread</link> + </member> + <member> + <link linkend="savewave">savewave</link> + </member> + <member> + <link linkend="analyze">analyze</link> + </member> + <member> + <link linkend="mapsound">mapsound</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/sound/help/ja_JP/wavwrite.xml b/modules/sound/help/ja_JP/wavwrite.xml new file mode 100755 index 000000000..a328fbd2f --- /dev/null +++ b/modules/sound/help/ja_JP/wavwrite.xml @@ -0,0 +1,102 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) ????-2006 - INRIA - Scilab + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="wavwrite" xml:lang="ja"> + <refnamediv> + <refname>wavwrite</refname> + <refpurpose>.wavサウンドファイルに書き込む</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>wavwrite(y, wavfile) + wavwrite(y, Fs, wavfile) + wavwrite(y, Fs, nbits, wavfile) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>y</term> + <listitem> + <para>実数ベクトルまたは行列,エントリは [-1,1]の範囲.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>wavfile</term> + <listitem> + <para>文字列 (拡張子が指定されない場合拡張子.wavが追加されます) + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>Fs</term> + <listitem> + <para>整数, サンプリング周波数(単位:Hz). デフォルト値は 22500.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>nbits</term> + <listitem> + <para>ビット長8, 16, 24, 32 ビット. + 各サンプルに記録される情報のビット数を示します. + 16がデフォルト値です. + k + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + <literal>.wav</literal> サウンドファイルを保存するためのユーティリティ関数. + <literal>wavwrite(y,wavfile)</literal>は文字列wavfileで指定された + サウンドファイルを書き込みます. + デーはは1チャネル毎に1列に並べられている必要があります. + 範囲[-1,+1]を超える大きさは無視されます. + </para> + <para> + <literal>wavwrite(y,Fs,wavfile)</literal> は, + データのサンプルレート <literal>Fs</literal>を + Hzで指定します. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +A=matrix(1:6,2,3); +wavwrite(A/6,TMPDIR+'/foo.wav'); +B=wavread(TMPDIR+'/foo.wav'); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="auread">auread</link> + </member> + <member> + <link linkend="wavread">wavread</link> + </member> + <member> + <link linkend="savewave">savewave</link> + </member> + <member> + <link linkend="analyze">analyze</link> + </member> + <member> + <link linkend="mapsound">mapsound</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/sound/help/pt_BR/addchapter.sce b/modules/sound/help/pt_BR/addchapter.sce new file mode 100755 index 000000000..feb41e875 --- /dev/null +++ b/modules/sound/help/pt_BR/addchapter.sce @@ -0,0 +1,11 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +add_help_chapter("Manipulação de Arquivos de Som",SCI+"/modules/sound/help/pt_BR",%T); + diff --git a/modules/sound/help/ru_RU/addchapter.sce b/modules/sound/help/ru_RU/addchapter.sce new file mode 100755 index 000000000..5e0cac5d4 --- /dev/null +++ b/modules/sound/help/ru_RU/addchapter.sce @@ -0,0 +1,11 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +add_help_chapter("Sound file handling",SCI+"/modules/sound/help/ru_RU",%T); + diff --git a/modules/sound/includes/dynlib_sound.h b/modules/sound/includes/dynlib_sound.h new file mode 100755 index 000000000..b073b8ab8 --- /dev/null +++ b/modules/sound/includes/dynlib_sound.h @@ -0,0 +1,28 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) DIGITEO - 2009 - Allan CORNET +* +* This file must be used under the terms of the CeCILL. +* This source file is licensed as described in the file COPYING, which +* you should have received as part of this distribution. The terms +* are also available at +* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +* +*/ + +/*--------------------------------------------------------------------------*/ +#ifndef __DYNLIB_SOUND_H__ +#define __DYNLIB_SOUND_H__ + +#ifdef _MSC_VER +#ifdef SOUND_EXPORTS +#define SOUND_IMPEXP __declspec(dllexport) +#else +#define SOUND_IMPEXP __declspec(dllimport) +#endif +#else +#define SOUND_IMPEXP +#endif + +#endif /* __DYNLIB_SOUND_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/sound/includes/gw_sound.h b/modules/sound/includes/gw_sound.h new file mode 100755 index 000000000..cf143345a --- /dev/null +++ b/modules/sound/includes/gw_sound.h @@ -0,0 +1,25 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2006 - INRIA - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ + +/*--------------------------------------------------------------------------*/ +#ifndef __GW_SOUND__ +#define __GW_SOUND__ +/*--------------------------------------------------------------------------*/ +#include "dynlib_sound.h" +/*--------------------------------------------------------------------------*/ +SOUND_IMPEXP int gw_sound(void); +/*--------------------------------------------------------------------------*/ +SOUND_IMPEXP int sci_beep(char *fname, unsigned long fname_len); +SOUND_IMPEXP int sci_Playsound(char *fname, unsigned long fname_len); +/*--------------------------------------------------------------------------*/ +#endif /* __GW_SOUND__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/sound/libscisound.la b/modules/sound/libscisound.la new file mode 100755 index 000000000..9e202b9d6 --- /dev/null +++ b/modules/sound/libscisound.la @@ -0,0 +1,41 @@ +# libscisound.la - a libtool library file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='libscisound.so.5' + +# Names of this library. +library_names='libscisound.so.5.5.2 libscisound.so.5 libscisound.so' + +# The name of the static archive. +old_library='' + +# Linker flags that can not go in dependency_libs. +inherited_linker_flags='' + +# Libraries that this one depends upon. +dependency_libs=' -lpthread -ldl -lcurses -lm' + +# Names of additional weak libraries provided by this library +weak_library_names='' + +# Version information for libscisound. +current=10 +age=5 +revision=2 + +# Is this an already installed library? +installed=no + +# Should we warn about portability when linking against -modules? +shouldnotlink=no + +# Files to dlopen/dlpreopen +dlopen='' +dlpreopen='' + +# Directory that this library needs to be installed in: +libdir='/usr/local/lib/scilab' diff --git a/modules/sound/license.txt b/modules/sound/license.txt new file mode 100755 index 000000000..54d5984e5 --- /dev/null +++ b/modules/sound/license.txt @@ -0,0 +1,12 @@ +Copyright: +Copyright (c) 2008 - DIGITEO +Copyright (c) 1989-2008 - INRIA +Copyright (c) 1989-2007 - ENPC + +License: +This module must be used under the terms of the CeCILL. +This module file is licensed as described in the file COPYING, which +you should have received as part of this distribution. The terms +are also available at +http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + diff --git a/modules/sound/locales/ca_ES.po b/modules/sound/locales/ca_ES.po new file mode 100755 index 000000000..4e1ea8245 --- /dev/null +++ b/modules/sound/locales/ca_ES.po @@ -0,0 +1,238 @@ +# Catalan translation for scilab +# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2012-04-19 18:00+0000\n" +"Last-Translator: Marc Coll Carrillo <Unknown>\n" +"Language-Team: Catalan <ca@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: ca\n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "%s: no es pot llegir el paràmetre d'entrada #%d.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d és d'un tipus incorrecte: Ha de ser una cadena " +"de caràcters.\n" + +#, c-format +msgid "%s: An error occurred: %s\n" +msgstr "%s: Hi ha hagut un error: %s\n" + +msgid "Cannot play file." +msgstr "No s'ha pogut reproduir el fitxer." + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d té una mida incorrecta: Ha de ser una cadena de " +"text.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Error de memòria.\n" + +#, c-format +msgid "%s: Wrong input argument #%d: '%s' or '%s' expected.\n" +msgstr "%s: L'argument d'entrada #%d és incorrecte: Ha de ser '%s' o '%s'.\n" + +msgid "Scilab sound module not installed.\n" +msgstr "El mòdul de so del Scilab no està instal·lat.\n" + +msgid "Sound file handling" +msgstr "Gestió del fitxer de so" + +msgid "FFT on a wav file" +msgstr "FFT en un fitxer wav" + +msgid "Fourier analysis of 0.5 seconds of sound parameters." +msgstr "Anàlisi de Fourier de 0,5 segons de paràmetres de so." + +msgid "A complete picture of the sound." +msgstr "Una imatge completa del so." + +msgid "see 'mapsound' function" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "" +"%s: Nombre incorrecte d'arguments d'entrada: Hi ha d'haver entre %d i %d.\n" + +#, c-format +msgid "%s: Cannot open file %s.\n" +msgstr "%s: No s'ha pogut obrir el fitxer %s.\n" + +msgid "Index range must be specified as a scalar or a 2 elements vector." +msgstr "" + +msgid "Sample limit vector must have 2 elements." +msgstr "" + +msgid "Sample limits out of range." +msgstr "Els límits de la mostra estan fora del rang." + +msgid "Sample limits must be given in ascending order." +msgstr "" + +msgid "Error in file format." +msgstr "" + +msgid "Error while reading sound file." +msgstr "" + +msgid "Unrecognized data format." +msgstr "El format de les dades és desconegut." + +msgid "Truncated data file." +msgstr "" + +#, c-format +msgid "%s: Wrong values for input argument: Filename must be a string.\n" +msgstr "" +"%s: L'argument d'entrada té valors incorrectes: El nom del fitxer ha de ser " +"una cadena de text.\n" + +msgid "Data array must have 1- or 2-dimensions only." +msgstr "El vector de dades ha de tenir només 1 o 2 dimensions." + +msgid "Data clipped during write to file." +msgstr "" + +msgid "Error while writing sound file." +msgstr "Error escrivint el fitxer de so." + +msgid "Mu-law can only be used with 8 bit data. Use method='linear' instead." +msgstr "" +"La llei Mu només es pot utilitzar amb dades de 8 bits. Utilitzeu el " +"method='linear'." + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s: Nombre incorrecte d'arguments d'entrada: Se'n necessiten %d.\n" + +#, c-format +msgid "%s: Wrong number of output arguments.\n" +msgstr "%s: El nombre d'arguments de sortida és incorrecte.\n" + +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "%s: El nombre d'arguments de sortida és incorrecte.\n" + +#, c-format +msgid "%s: Failed to play the sound with command: %s.\n" +msgstr "%s: no s'ha pogut reproduir el so amb l'ordre: %s\n" + +#, c-format +msgid "%s: Audio capabilities not available.\n" +msgstr "%s: No hi ha disponible el sistema de so.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "%s: L'argument d'entrada #%d té una mida incorrecta.\n" + +msgid "only 8/16/24/32 bits for the encoding." +msgstr "Només es pot codificar en 8/16/24/32 bits." + +msgid "Unknown data format." +msgstr "El format de les dades és desconegut." + +#, c-format +msgid "%s: Wrong number of input argument(s): At least %d expected.\n" +msgstr "" +"%s: Nombre d'arguments d'entrada incorrecte: Són necessaris %d com a mínim.\n" + +msgid "Requires 2-D values only." +msgstr "Ha de tenir només valors en 2D." + +#, c-format +msgid "%s: Wrong size for input argument #%d: %d-by-%d matrix expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for argument #%d: Real matrix expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be >= %d.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: Must be %s or %s, an integer or a " +"vector of %d integers.\n" +msgstr "" +"%s: L'argument d'entrada #%d té un valor incorrecte: Ha de ser %s o %s, un " +"enter o un vector de %d enters.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument: Index range must be specified as a " +"scalar or %d-element vector.\n" +msgstr "" +"%s: L'argument d'entrada té un valor incorrecte: El rang d'índexos s'ha " +"d'especificar com un escalar o un vector de %d elements.\n" + +msgid ".wav file does not contain the RIFF identifier." +msgstr "El fitxer .wav no conté l'identificador RIFF." + +msgid ".wav file does not contain the wave identifier." +msgstr "El fitxer .wav no conté l'identificador d'ona." + +msgid "Error reading .wav file." +msgstr "Error llegint el fitxer .wav." + +msgid "Error reading <fact-ck> chunk." +msgstr "Error llegint la peça <fact-ck>." + +#, c-format +msgid "%s: An error occurred: %s is not supported.\n" +msgstr "%s: S'ha produït un error: %s no està suportat.\n" + +#, c-format +msgid "" +"%s: An error occurred: invalid file format. Error reading <%s> chunk.\n" +msgstr "" +"%s: S'ha produït un error: Format de fitxer invàlid. Error en la lectura de " +"<%s>.\n" + +msgid "Invalid .wav file: found data before format information." +msgstr "" +"El fitxer .wav és invàlid: s'ha trobat dades abans de la informació del " +"format." + +msgid "Incorrect chunk size information in RIFF file." +msgstr "S'ha trobat informació incorrecta de peça en el fitxer RIFF." + +msgid "Invalid wav format." +msgstr "El format wav no és vàlid." + +msgid "Error reading wav file." +msgstr "Error llegint el fitxer wav." + +#, c-format +msgid "%s: An error occurred: Data compression format %s is not supported.\n" +msgstr "" +"%s: Hi ha hagut un error: El format de compressió de dades %s no està " +"suportat.\n" + +msgid "Cannot read .wav file with more than 16 bits per sample." +msgstr "No s'ha pogut llegir el fitxer .wav amb més de 16 bits per mostra." + +msgid "Sample limit vector must have 2 entries." +msgstr "El vector de límit de mostra ha de tenir 2 entrades." + +msgid "Invalid sample limits (use ascending order)." +msgstr "Els límits de la mostra són invàlids (utilitzeu un ordre ascendent)." diff --git a/modules/sound/locales/cs_CZ.po b/modules/sound/locales/cs_CZ.po new file mode 100755 index 000000000..cd5b98249 --- /dev/null +++ b/modules/sound/locales/cs_CZ.po @@ -0,0 +1,225 @@ +# Czech translation for scilab +# Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2011. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2013-07-06 21:08+0000\n" +"Last-Translator: Zbyněk Schwarz <Unknown>\n" +"Language-Team: Czech <cs@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "%s: Nelze přečíst vstupní argument #%d.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "%s: Špatný typ vstupního argumentu #%d: Očekáván řetězec.\n" + +#, c-format +msgid "%s: An error occurred: %s\n" +msgstr "%s: Vyskytla se chyba: %s\n" + +msgid "Cannot play file." +msgstr "Nelze přehrát soubor." + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "%s: Špatná velikost vstupního argumentu #%d: Očekáván řetězec.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Chyba při přidělování paměti.\n" + +#, c-format +msgid "%s: Wrong input argument #%d: '%s' or '%s' expected.\n" +msgstr "%s: Špatný vstupní argument očekáván #%d: '%s' nebo '%s'.\n" + +msgid "Scilab sound module not installed.\n" +msgstr "Zvukový modul Scilab není nainstalován\n" + +msgid "Sound file handling" +msgstr "Zacházení se zvukovým souborem" + +msgid "FFT on a wav file" +msgstr "FFT v souboru wav" + +msgid "Fourier analysis of 0.5 seconds of sound parameters." +msgstr "Fourierova analýza 0,5 vteřin zvukových parametrů." + +msgid "A complete picture of the sound." +msgstr "Celkový obrázek zvuku." + +msgid "see 'mapsound' function" +msgstr "více ve funkci 'mapsound'" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "%s: Špatný počet vstupních argumentů: očekáváno %d až %d.\n" + +#, c-format +msgid "%s: Cannot open file %s.\n" +msgstr "%s: Nelze otevřít soubor %s.\n" + +msgid "Index range must be specified as a scalar or a 2 elements vector." +msgstr "" + +msgid "Sample limit vector must have 2 elements." +msgstr "Vektor omezení vzorku musí mít 2 prvky." + +msgid "Sample limits out of range." +msgstr "Limit vozrků mimo rozsah." + +msgid "Sample limits must be given in ascending order." +msgstr "Omezení prvku musí být zadáno ve vzestupném pořadí." + +msgid "Error in file format." +msgstr "Chyba ve formátu souboru." + +msgid "Error while reading sound file." +msgstr "Chyba při čtení zvukového souboru." + +msgid "Unrecognized data format." +msgstr "Nerozpoznaný formát dat." + +msgid "Truncated data file." +msgstr "Zkrácený datový soubor." + +#, c-format +msgid "%s: Wrong values for input argument: Filename must be a string.\n" +msgstr "" +"%s: Špatná hodnota vstupního argumentu: Jméno souboru musí být řetězec.\n" + +msgid "Data array must have 1- or 2-dimensions only." +msgstr "Datovové pole musí být pouze 1- nebo 2-rozměrné." + +msgid "Data clipped during write to file." +msgstr "Data oříznuta během zápisu do souboru." + +msgid "Error while writing sound file." +msgstr "Chyba při zápisu zvukového souboru." + +msgid "Mu-law can only be used with 8 bit data. Use method='linear' instead." +msgstr "" +"Mu-law může být použit pouze s 8 bitovými daty. Místo toho použijte " +"method='linear'." + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s: Chybný počet vstupních argumentů: očekáváno %d.\n" + +#, c-format +msgid "%s: Wrong number of output arguments.\n" +msgstr "%s: Špatný počet výstupních argumentů.\n" + +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "%s: Špatný počet výstupních argumentů.\n" + +#, c-format +msgid "%s: Failed to play the sound with command: %s.\n" +msgstr "%s: Nelze přehrát zvuk pomocí příkazu: %s.\n" + +#, c-format +msgid "%s: Audio capabilities not available.\n" +msgstr "%s: Funkce zvuku nejsou dostupné.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "%s: Špatná velikost vstupního argumentu #%d.\n" + +msgid "only 8/16/24/32 bits for the encoding." +msgstr "pro zakódování pouze 8/16/24/32 bitů" + +msgid "Unknown data format." +msgstr "Nezmámý formát dat." + +#, c-format +msgid "%s: Wrong number of input argument(s): At least %d expected.\n" +msgstr "%s: Špatný počet vstupního(ch) argumentu(ů): Očekáváno alespoň %d.\n" + +msgid "Requires 2-D values only." +msgstr "Vyžaduje pouze 2-D hodnoty." + +#, c-format +msgid "%s: Wrong size for input argument #%d: %d-by-%d matrix expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for argument #%d: Real matrix expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be >= %d.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: Must be %s or %s, an integer or a " +"vector of %d integers.\n" +msgstr "" +"%s: Špatná hodnota vstupního argumentu #%d: Musí být buď %s nebo %s, celé " +"číslo nebo vektor %d celých čísel.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument: Index range must be specified as a " +"scalar or %d-element vector.\n" +msgstr "" +"%s: Špatná hodnota pro vstupní argument: Rozsah ukazatele musí být určen " +"jako skalár, nebo vektor s %d prvky.\n" + +msgid ".wav file does not contain the RIFF identifier." +msgstr "soubor .wav neobsahuje identifikátor RIFF." + +msgid ".wav file does not contain the wave identifier." +msgstr "soubor .wav neobsahuje identifikátor wave." + +msgid "Error reading .wav file." +msgstr "Vyba při čtení souboru .wav." + +msgid "Error reading <fact-ck> chunk." +msgstr "Chyba při čtení kusu <fact-ck>." + +#, c-format +msgid "%s: An error occurred: %s is not supported.\n" +msgstr "%s: Vyskytla se chyba: %s není podporován.\n" + +#, c-format +msgid "" +"%s: An error occurred: invalid file format. Error reading <%s> chunk.\n" +msgstr "" +"%s: Vyskytla se chyba: neplatný formát souboru. Chyba při čtení kusu <%s>.\n" + +msgid "Invalid .wav file: found data before format information." +msgstr "Neplatný soubor .wav: nalezena data před informacemi o formátu." + +msgid "Incorrect chunk size information in RIFF file." +msgstr "Nesprávná velikost kusu informací v souboru RIFF." + +msgid "Invalid wav format." +msgstr "Neplatný formát wav." + +msgid "Error reading wav file." +msgstr "Vyba při čtení souboru .wav." + +#, c-format +msgid "%s: An error occurred: Data compression format %s is not supported.\n" +msgstr "%s: Vyskytla se chyba: Formát komprese dat %s není podporován.\n" + +msgid "Cannot read .wav file with more than 16 bits per sample." +msgstr "Nelze číst soubor .wav s více než 16 bity na vzorek." + +msgid "Sample limit vector must have 2 entries." +msgstr "Vektor limitu vzorku musí mít 2 záznamy." + +msgid "Invalid sample limits (use ascending order)." +msgstr "Neplatné limity vzorkování (použijte vzestupné pořadí)." diff --git a/modules/sound/locales/de_DE.po b/modules/sound/locales/de_DE.po new file mode 100755 index 000000000..05b83d822 --- /dev/null +++ b/modules/sound/locales/de_DE.po @@ -0,0 +1,233 @@ +# German translation for scilab +# Copyright (c) 2008 Rosetta Contributors and Canonical Ltd 2008 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2008. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2012-05-07 18:52+0000\n" +"Last-Translator: Dennis Baudys <Unknown>\n" +"Language-Team: German <de@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: de\n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "" +"%s: falscher Typ für Eingangsargument #%d: eine Zeichenkette erwartet.\n" + +#, c-format +msgid "%s: An error occurred: %s\n" +msgstr "%s: ein Fehler ist aufgetreten: %s\n" + +msgid "Cannot play file." +msgstr "Kann Datei nicht wiedergeben." + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "" +"%s: falsche Größe für Eingangsargument #%d: eine Zeichenkette erwartet.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Fehler in Speicherreservierung.\n" + +#, c-format +msgid "%s: Wrong input argument #%d: '%s' or '%s' expected.\n" +msgstr "%s: falsches Eingangsargument #%d: '%s' oder '%s' erwartet.\n" + +msgid "Scilab sound module not installed.\n" +msgstr "Scilab Audio Modul nicht installiert.\n" + +msgid "Sound file handling" +msgstr "" + +msgid "FFT on a wav file" +msgstr "" + +msgid "Fourier analysis of 0.5 seconds of sound parameters." +msgstr "" + +msgid "A complete picture of the sound." +msgstr "" + +msgid "see 'mapsound' function" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "%s: Falsche Anzahl an Eingangsargumenten: %d zu %d erwartet.\n" + +#, c-format +msgid "%s: Cannot open file %s.\n" +msgstr "%s: kann Datei nicht öffnen %s.\n" + +msgid "Index range must be specified as a scalar or a 2 elements vector." +msgstr "" + +msgid "Sample limit vector must have 2 elements." +msgstr "" + +msgid "Sample limits out of range." +msgstr "Abtast Grenzen außerhalb des Bereichs" + +msgid "Sample limits must be given in ascending order." +msgstr "" + +msgid "Error in file format." +msgstr "" + +msgid "Error while reading sound file." +msgstr "" + +msgid "Unrecognized data format." +msgstr "Unbekanntes Datenformat." + +msgid "Truncated data file." +msgstr "" + +#, c-format +msgid "%s: Wrong values for input argument: Filename must be a string.\n" +msgstr "" +"%s: falscher Wert für Eingangsargument: Dateiname muß eine Zeichenkette " +"sein.\n" + +msgid "Data array must have 1- or 2-dimensions only." +msgstr "Datenmatrix darf nur 1- oder 2 Dimensionen haben." + +msgid "Data clipped during write to file." +msgstr "" + +msgid "Error while writing sound file." +msgstr "Fehler beim Schreiben der Audiodatei." + +msgid "Mu-law can only be used with 8 bit data. Use method='linear' instead." +msgstr "" +"Mu-law kann nur mit 8 Bit Daten verwendet werden. Verwende Methode ='linear' " +"anstattdessen." + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s: Fehlerhafte Anzahl an Eingabeargumenten: Erwartete %d.\n" + +#, c-format +msgid "%s: Wrong number of output arguments.\n" +msgstr "%s: Fehlerhafte Anzahl an Ausgabeargumenten.\n" + +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "%s: Falscher Typ für Ausgangsargument.\n" + +#, c-format +msgid "%s: Failed to play the sound with command: %s.\n" +msgstr "" + +#, c-format +msgid "%s: Audio capabilities not available.\n" +msgstr "%s: Audio Ausgabemöglichkeiten nicht verfügbar.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "%s: Falsche Größe des Eingangsarguments #%d.\n" + +msgid "only 8/16/24/32 bits for the encoding." +msgstr "Nur 8/16/24/32 Bits für das Kodieren." + +msgid "Unknown data format." +msgstr "Unbekanntes Datenformat." + +#, c-format +msgid "%s: Wrong number of input argument(s): At least %d expected.\n" +msgstr "%s: falsche Anzahl von Eingangsargumenten: mindestens %d erwartet.\n" + +msgid "Requires 2-D values only." +msgstr "Benötigt nur 2-D Werte." + +#, c-format +msgid "%s: Wrong size for input argument #%d: %d-by-%d matrix expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for argument #%d: Real matrix expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be >= %d.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: Must be %s or %s, an integer or a " +"vector of %d integers.\n" +msgstr "" +"%s: falscher Wert für Eingangsargument #%d: muß ein %s oder %s, ein Integer " +"oder ein Vektor von %d Integern sein.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument: Index range must be specified as a " +"scalar or %d-element vector.\n" +msgstr "" +"%s: falscher Wert für Eingangsargument: Indexbereich muß als Skalar oder %d-" +"Element Vektor angegeben werden.\n" + +msgid ".wav file does not contain the RIFF identifier." +msgstr ".wav-Datei enthält keine RIFF Identifikation." + +msgid ".wav file does not contain the wave identifier." +msgstr ".wav-Datei enthält keine Wave Identifikation." + +msgid "Error reading .wav file." +msgstr "Fehler beim Lesen der .wav-Datei." + +msgid "Error reading <fact-ck> chunk." +msgstr "Fehler beim Lesen des Blocks <fact-ck>" + +#, c-format +msgid "%s: An error occurred: %s is not supported.\n" +msgstr "%s: ein Fehler ist aufgetreten: %s wird nicht unterstützt.\n" + +#, c-format +msgid "" +"%s: An error occurred: invalid file format. Error reading <%s> chunk.\n" +msgstr "" +"%s: ein Fehler ist aufgetreten: ungültiges Dateiformat: Fehler beim Lesen " +"des <%s> Stücks.\n" + +msgid "Invalid .wav file: found data before format information." +msgstr "" +"Ungültige .wav-Datei gefunden: Daten beginnen vor Formatinformationen." + +msgid "Incorrect chunk size information in RIFF file." +msgstr "Inkorrekte Information der Blockgröße in RIFF Datei," + +msgid "Invalid wav format." +msgstr "Ungültiges wav-Format" + +msgid "Error reading wav file." +msgstr "Fehler beim Lesen der Wavedatei" + +#, c-format +msgid "%s: An error occurred: Data compression format %s is not supported.\n" +msgstr "" +"%s: ein Fehler ist aufgetreten: Daten-Kompression-Format %s wird nicht " +"unterstützt.\n" + +msgid "Cannot read .wav file with more than 16 bits per sample." +msgstr "Kann keine .wav Datei mit mehr als 16 pro Abtastwert lesen" + +msgid "Sample limit vector must have 2 entries." +msgstr "Abtast-Grenz-Vektor muß 2 Einträge haben." + +msgid "Invalid sample limits (use ascending order)." +msgstr "ungültige Abtastgrenzen (verwenden aufsteigende Folge)." diff --git a/modules/sound/locales/es_ES.po b/modules/sound/locales/es_ES.po new file mode 100755 index 000000000..cf3556169 --- /dev/null +++ b/modules/sound/locales/es_ES.po @@ -0,0 +1,236 @@ +# Spanish translation for scilab +# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2012-02-01 22:21+0000\n" +"Last-Translator: Adrian Pardini <Unknown>\n" +"Language-Team: Spanish <es@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: es\n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "%s: No se puede leer el argumento de entrada#%d.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "" +"%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba un string.\n" + +#, c-format +msgid "%s: An error occurred: %s\n" +msgstr "%s: Ha ocurrido un error: %s\n" + +msgid "Cannot play file." +msgstr "No se puede interpretar el archivo." + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "" +"%s: Tamaño incorrecto del argumento de entrada #%d: Se esperaba un string.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Error de asignación de memoria.\n" + +#, c-format +msgid "%s: Wrong input argument #%d: '%s' or '%s' expected.\n" +msgstr "%s: Argumento de entrada #%d incorrecto: Se esperaba '%s' o '%s'.\n" + +msgid "Scilab sound module not installed.\n" +msgstr "Módulo de sonido de Scilab no instalado.\n" + +msgid "Sound file handling" +msgstr "Manipulación de archivos de sonido" + +msgid "FFT on a wav file" +msgstr "FFT en un archivo wav" + +msgid "Fourier analysis of 0.5 seconds of sound parameters." +msgstr "Análisis de Fourier de 0.5 segundos de parámetros de sonido." + +msgid "A complete picture of the sound." +msgstr "Una imagen completa del sonido." + +msgid "see 'mapsound' function" +msgstr "ver la función 'mapsound'" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "" +"%s: Número incorrecto de argumentos de entrada: Se esperaban de %d a %d.\n" + +#, c-format +msgid "%s: Cannot open file %s.\n" +msgstr "%s: No se puede abrir el archivo %s.\n" + +msgid "Index range must be specified as a scalar or a 2 elements vector." +msgstr "" + +msgid "Sample limit vector must have 2 elements." +msgstr "" + +msgid "Sample limits out of range." +msgstr "Límites de muestra fuera de rango." + +msgid "Sample limits must be given in ascending order." +msgstr "" + +msgid "Error in file format." +msgstr "" + +msgid "Error while reading sound file." +msgstr "" + +msgid "Unrecognized data format." +msgstr "Formato de datos no reconocido." + +msgid "Truncated data file." +msgstr "" + +#, c-format +msgid "%s: Wrong values for input argument: Filename must be a string.\n" +msgstr "" +"%s: Valores incorrectos del argumento de entrada: El nombre de archivo debe " +"ser un string.\n" + +msgid "Data array must have 1- or 2-dimensions only." +msgstr "El arreglo de datos debe tener solo 1- o 2- dimensiones." + +msgid "Data clipped during write to file." +msgstr "" + +msgid "Error while writing sound file." +msgstr "Error mientras se escribia el archivo de sonido." + +msgid "Mu-law can only be used with 8 bit data. Use method='linear' instead." +msgstr "" +"La ley Mu puede ser utilizada solo con datos de 8 bit. Use el método " +"'lineal' en su lugar." + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s: Número incorrecto de argumentos de entrada: Se esperaban %d.\n" + +#, c-format +msgid "%s: Wrong number of output arguments.\n" +msgstr "%s: Número incorrecto de argumentos de salida.\n" + +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "%s: Número incorrecto de argumento(s) de salida.\n" + +#, c-format +msgid "%s: Failed to play the sound with command: %s.\n" +msgstr "%s: No se puede reproducir sonido con el comando: %s.\n" + +#, c-format +msgid "%s: Audio capabilities not available.\n" +msgstr "%s: Funciones de audio no disponibles.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "%s: Tamaño incorrecto para el argumento de entrada #%d.\n" + +msgid "only 8/16/24/32 bits for the encoding." +msgstr "solo 8/16/24/32 bits para la codificacion." + +msgid "Unknown data format." +msgstr "Formato de datos desconocido." + +#, c-format +msgid "%s: Wrong number of input argument(s): At least %d expected.\n" +msgstr "" +"%s: Número incorrecto de argumento(s) de entrada: Se esperaba al menos %d.\n" + +msgid "Requires 2-D values only." +msgstr "Requiere solo valores 2-D." + +#, c-format +msgid "%s: Wrong size for input argument #%d: %d-by-%d matrix expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for argument #%d: Real matrix expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be >= %d.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: Must be %s or %s, an integer or a " +"vector of %d integers.\n" +msgstr "" +"%s: Valor incorrecto del argumento de entrada #%d: Debe ser %s o %s, un " +"entero o un vector de %d enteros.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument: Index range must be specified as a " +"scalar or %d-element vector.\n" +msgstr "" +"%s: Valor incorrecto del argumento de entrada: El rango del índice debe ser " +"especificado como escalar o un vector de %d-elementos.\n" + +msgid ".wav file does not contain the RIFF identifier." +msgstr "el archivo .wav no contiene el identificador RIFF." + +msgid ".wav file does not contain the wave identifier." +msgstr "El Archivo .wav no contiene el identificador de onda." + +msgid "Error reading .wav file." +msgstr "Error leyendo el archivo .wav." + +msgid "Error reading <fact-ck> chunk." +msgstr "Error leyendo la porción <fact-ck>." + +#, c-format +msgid "%s: An error occurred: %s is not supported.\n" +msgstr "%s: Ha ocurrido un error: %s no está soportado.\n" + +#, c-format +msgid "" +"%s: An error occurred: invalid file format. Error reading <%s> chunk.\n" +msgstr "" +"%s: Ha ocurrido un error: formato de archivo inválido. Error leyendo la " +"porción <%s>.\n" + +msgid "Invalid .wav file: found data before format information." +msgstr "" +"Archivo .wav inválido: se encontraron datos antes de la información de " +"formato." + +msgid "Incorrect chunk size information in RIFF file." +msgstr "Información de tamaño de porción incorrecto en el archivo RIFF." + +msgid "Invalid wav format." +msgstr "Formato wav inválido." + +msgid "Error reading wav file." +msgstr "Error leyendo archivo wav." + +#, c-format +msgid "%s: An error occurred: Data compression format %s is not supported.\n" +msgstr "" +"%s: A ocurrido un error: El formato de compresión de datos %s no está " +"soportado.\n" + +msgid "Cannot read .wav file with more than 16 bits per sample." +msgstr "No se puede leer el archivo .wav con más de 16 bits por muestra" + +msgid "Sample limit vector must have 2 entries." +msgstr "El vector límite de muestra debe tener 2 entradas" + +msgid "Invalid sample limits (use ascending order)." +msgstr "Límites de muestra inválidos (usando orden ascendente)." diff --git a/modules/sound/locales/fr_FR.po b/modules/sound/locales/fr_FR.po new file mode 100755 index 000000000..46c1a9937 --- /dev/null +++ b/modules/sound/locales/fr_FR.po @@ -0,0 +1,243 @@ +# French translation for scilab +# Copyright (c) 2008 Rosetta Contributors and Canonical Ltd 2008 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2008. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2014-03-31 08:42+0000\n" +"Last-Translator: Vincent Couvert <Unknown>\n" +"Language-Team: French <fr@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: fr\n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "%s : Impossible de lire l'argument d'entrée n°%d.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "" +"%s : Type erroné de l'argument d'entrée n°%d : Une chaîne de caractères " +"attendue.\n" + +#, c-format +msgid "%s: An error occurred: %s\n" +msgstr "%s : Une erreur s'est produite : %s\n" + +msgid "Cannot play file." +msgstr "Impossible de lire le fichier." + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "" +"%s : Dimension erronée de l'argument d'entrée n°%d : Une chaîne de " +"caractères attendue.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s : Erreur d'allocation mémoire.\n" + +#, c-format +msgid "%s: Wrong input argument #%d: '%s' or '%s' expected.\n" +msgstr "%s : Argument d'entrée n°%d faux : '%s' ou '%s' attendu.\n" + +msgid "Scilab sound module not installed.\n" +msgstr "Le module sound de Scilab n'est pas installé.\n" + +msgid "Sound file handling" +msgstr "Gestion de fichiers son" + +msgid "FFT on a wav file" +msgstr "Transformée de Fourier rapide sur un fichier wav" + +msgid "Fourier analysis of 0.5 seconds of sound parameters." +msgstr "Analyse de Fourier de 0,5 secondes de paramètres sonores." + +msgid "A complete picture of the sound." +msgstr "Une image complète du son." + +msgid "see 'mapsound' function" +msgstr "Voir la fonction 'mapsound'" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "%s : Nombre erroné d'arguments d'entrée : %d à %d attendus.\n" + +#, c-format +msgid "%s: Cannot open file %s.\n" +msgstr "%s : Impossible d'ouvrir le fichier %s.\n" + +msgid "Index range must be specified as a scalar or a 2 elements vector." +msgstr "" +"La gamme des index doit être spécifiée comme un scalaire ou un vecteur à 2 " +"éléments." + +msgid "Sample limit vector must have 2 elements." +msgstr "Le vecteur des limites de l'échantillon doit avoir 2 éléments." + +msgid "Sample limits out of range." +msgstr "Limites d'échantillonnage en dehors de l'intervalle." + +msgid "Sample limits must be given in ascending order." +msgstr "" +"Les limites de l'échantillon doivent être données par ordre croissant." + +msgid "Error in file format." +msgstr "Erreur de format de fichier." + +msgid "Error while reading sound file." +msgstr "Erreur à la lecture du fichier son." + +msgid "Unrecognized data format." +msgstr "Format de données non reconnu." + +msgid "Truncated data file." +msgstr "Fichier de données tronqué." + +#, c-format +msgid "%s: Wrong values for input argument: Filename must be a string.\n" +msgstr "" +"%s : Valeurs erronées de l'argument d'entrée : Le nom de fichier doit être " +"une chaîne de caractères.\n" + +msgid "Data array must have 1- or 2-dimensions only." +msgstr "Le tableau de données doit avoir 1 ou 2 dimensions seulement." + +msgid "Data clipped during write to file." +msgstr "Les données ont été tronquées à l'écriture dans le fichier." + +msgid "Error while writing sound file." +msgstr "Erreur pendant l'écriture du fichier son." + +msgid "Mu-law can only be used with 8 bit data. Use method='linear' instead." +msgstr "" +"Mu-law ne peut être utilisé qu'avec des données 8 bits. Utilisez " +"method='linear' à la place." + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s : Nombre erroné d'arguments d'entrée : %d attendus.\n" + +#, c-format +msgid "%s: Wrong number of output arguments.\n" +msgstr "%s : Nombre erroné d'arguments de sortie.\n" + +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "%s : Nombre erroné d'argument(s) de sortie.\n" + +#, c-format +msgid "%s: Failed to play the sound with command: %s.\n" +msgstr "%s : Impossible de lire le son avec la commande : %s.\n" + +#, c-format +msgid "%s: Audio capabilities not available.\n" +msgstr "%s : Les capacités audio ne sont pas disponibles.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "%s : Dimension erronée de l'argument d'entrée n°%d.\n" + +msgid "only 8/16/24/32 bits for the encoding." +msgstr "8/16/24/32 bits seulement pour l'encodage." + +msgid "Unknown data format." +msgstr "Format de données inconnu." + +#, c-format +msgid "%s: Wrong number of input argument(s): At least %d expected.\n" +msgstr "" +"%s : Nombre erroné d'argument(s) d'entrée : Au moins %d attendu(s).\n" + +msgid "Requires 2-D values only." +msgstr "Requiert des valeurs 2D seulement." + +#, c-format +msgid "%s: Wrong size for input argument #%d: %d-by-%d matrix expected.\n" +msgstr "" +"%s : Dimension erronée de l'argument d'entrée n°%d : Une matrice %dx%d " +"attendue.\n" + +#, c-format +msgid "%s: Wrong type for argument #%d: Real matrix expected.\n" +msgstr "%s : Type erroné de l'argument n°%d : Une matrice réelle attendue.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be >= %d.\n" +msgstr "%s : Valeur erronée de l'argument d'entrée n°%d : Doit être >= %d.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: Must be %s or %s, an integer or a " +"vector of %d integers.\n" +msgstr "" +"%s : Valeur erronée de l'argument d'entrée n°%d : Doit être %s ou %s, un " +"entier ou un vecteur de %d entiers.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument: Index range must be specified as a " +"scalar or %d-element vector.\n" +msgstr "" +"%s : Valeur erronée de l'argument d'entrée : La plage d'index doit être " +"spécifiée sous la forme d'un scalaire ou d'un vecteur de %d éléments.\n" + +msgid ".wav file does not contain the RIFF identifier." +msgstr "Le ficher .wav ne contient pas l'identifieur RIFF." + +msgid ".wav file does not contain the wave identifier." +msgstr "Le fichier .wav ne contient pas l'identifieur wave." + +msgid "Error reading .wav file." +msgstr "Erreur pendant la lecture du fichier .wav." + +msgid "Error reading <fact-ck> chunk." +msgstr "Erreur pendant la lecture du fragment <fact-ck>." + +#, c-format +msgid "%s: An error occurred: %s is not supported.\n" +msgstr "%s : Une erreur est survenue : %s n'est pas supporté.\n" + +#, c-format +msgid "" +"%s: An error occurred: invalid file format. Error reading <%s> chunk.\n" +msgstr "" +"%s : Une erreur est survenue : Format de fichier invalide. Erreur pendant la " +"lecture du morceau <%s>.\n" + +msgid "Invalid .wav file: found data before format information." +msgstr "" +"Fichier .wav invalide : Des données ont été trouvées avant l'information sur " +"le format." + +msgid "Incorrect chunk size information in RIFF file." +msgstr "Information erronée de la taille des fragments dans le fichier RIFF." + +msgid "Invalid wav format." +msgstr "Format wav invalide." + +msgid "Error reading wav file." +msgstr "Erreur pendant la lecture du fichier .wav." + +#, c-format +msgid "%s: An error occurred: Data compression format %s is not supported.\n" +msgstr "" +"%s : Une erreur est survenue : Le format de compression de données %s n'est " +"pas supporté.\n" + +msgid "Cannot read .wav file with more than 16 bits per sample." +msgstr "" +"Impossible de lire le fichier .wav avec plus de 16 bits par échantillons." + +msgid "Sample limit vector must have 2 entries." +msgstr "Le vecteur des limites d'échantillonnages doit avoir 2 entrées." + +msgid "Invalid sample limits (use ascending order)." +msgstr "Limites d'échantillonnage invalides (utilisez un ordre croissant)." diff --git a/modules/sound/locales/it_IT.po b/modules/sound/locales/it_IT.po new file mode 100755 index 000000000..4e44c37a3 --- /dev/null +++ b/modules/sound/locales/it_IT.po @@ -0,0 +1,251 @@ +# Italian translation for scilab +# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2015-02-14 22:08+0000\n" +"Last-Translator: Carml <mighty.carml@gmail.com>\n" +"Language-Team: Italian <it@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: it\n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "%s: Impossibile leggere l'argomento in ingresso #%d.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era attesa una " +"stringa.\n" + +#, c-format +msgid "%s: An error occurred: %s\n" +msgstr "%s: Si è verificato il seg. errore: %s\n" + +msgid "Cannot play file." +msgstr "Non è possibile eseguire il file." + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha una dimensione sbagliata: era attesa una " +"stringa.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Errore di allocazione della memoria.\n" + +#, c-format +msgid "%s: Wrong input argument #%d: '%s' or '%s' expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è sbagliato: era atteso '%s' o '%s'.\n" + +msgid "Scilab sound module not installed.\n" +msgstr "Il modulo di Scilab per il suono non è installato.\n" + +msgid "Sound file handling" +msgstr "Gestione dei file del suono" + +msgid "FFT on a wav file" +msgstr "FFT su file wav" + +msgid "Fourier analysis of 0.5 seconds of sound parameters." +msgstr "Analisi di Fourier di 0.5 secondi di parametri sonori." + +msgid "A complete picture of the sound." +msgstr "Un quadro completo del suono." + +msgid "see 'mapsound' function" +msgstr "vedere la funzione 'mapsound'" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "" +"%s: Il numero degli argomenti in ingresso è sbagliato: era atteso da %d a " +"%d.\n" + +#, c-format +msgid "%s: Cannot open file %s.\n" +msgstr "%s: Non è possibile aprire il file %s.\n" + +msgid "Index range must be specified as a scalar or a 2 elements vector." +msgstr "" +"L'intervallo dell'indice deve essere specificato come uno scalare o un " +"vettore a 2 elementi." + +msgid "Sample limit vector must have 2 elements." +msgstr "Il vettore limite di esempio deve avere 2 elementi" + +msgid "Sample limits out of range." +msgstr "Gli estremi del campione audio sono oltre il limite massimo." + +msgid "Sample limits must be given in ascending order." +msgstr "I limiti di esempio devono essere forniti in ordine crescente." + +msgid "Error in file format." +msgstr "Errore nel formato del file." + +msgid "Error while reading sound file." +msgstr "Errore nella lettura del file audio." + +msgid "Unrecognized data format." +msgstr "Formato di dati non riconosciuto." + +msgid "Truncated data file." +msgstr "File dei dati troncati" + +#, c-format +msgid "%s: Wrong values for input argument: Filename must be a string.\n" +msgstr "" +"%s: L'argomento in ingresso ha dei valori sbagliati: nomefile deve essere " +"una stringa.\n" + +msgid "Data array must have 1- or 2-dimensions only." +msgstr "Gli array di dati devono avere 1- o 2- dimensioni soltanto." + +msgid "Data clipped during write to file." +msgstr "Dati esclusi durante la scrittura del file." + +msgid "Error while writing sound file." +msgstr "Errore durante la scrittura del file di suono." + +msgid "Mu-law can only be used with 8 bit data. Use method='linear' instead." +msgstr "" +"La Mu-law può essere usata solo con dati a 8 bit.Usare invece metodo='linear'" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" +"%s: Il numero degli argomenti in ingresso è sbagliato: ne erano attesi %d.\n" + +#, c-format +msgid "%s: Wrong number of output arguments.\n" +msgstr "%s: Il numero degli argomenti in uscita è sbagliato.\n" + +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "%s: Il numero degli argomenti in uscita è sbagliato.\n" + +#, c-format +msgid "%s: Failed to play the sound with command: %s.\n" +msgstr "%s: Impossibile riprodurre il suono con il seg. comando: %s.\n" + +#, c-format +msgid "%s: Audio capabilities not available.\n" +msgstr "%s: Le capacità audio non sono disponibili.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "%s: L'argomento in ingresso #%d ha una dimensione sbagliata.\n" + +msgid "only 8/16/24/32 bits for the encoding." +msgstr "solo 8/16/24/32 bit per la codifica" + +msgid "Unknown data format." +msgstr "Formato di dati sconosciuto" + +#, c-format +msgid "%s: Wrong number of input argument(s): At least %d expected.\n" +msgstr "" +"%s: Il numero degli argomenti in ingresso è sbagliato: ne erano attesi " +"almeno %d.\n" + +msgid "Requires 2-D values only." +msgstr "Richiede solo valori 2-D" + +#, c-format +msgid "%s: Wrong size for input argument #%d: %d-by-%d matrix expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha una dimensione sbagliata: era attesa una " +"matrice %d-per-%d.\n" + +#, c-format +msgid "%s: Wrong type for argument #%d: Real matrix expected.\n" +msgstr "" +"%s: L'argomento in ingresso %d è di tipo sbagliato: era attesa una matrice " +"reale.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be >= %d.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha un valore sbagliato: deve essere >=%d.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: Must be %s or %s, an integer or a " +"vector of %d integers.\n" +msgstr "" +"%s: L?argomento in ingresso #%d è di tipo sbagliato: deve essere %s o %s, un " +"intero i un vettore di %d interi.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument: Index range must be specified as a " +"scalar or %d-element vector.\n" +msgstr "" +"%s: L'argomento in ingresso è di tipo sbagliato: l'estensione dell'indice " +"deve essere specificata come uno scalare o un vettore a %d elementi.\n" + +msgid ".wav file does not contain the RIFF identifier." +msgstr "il file .wav non contiene l'identificatore RIFF." + +msgid ".wav file does not contain the wave identifier." +msgstr "il file .wav non contiene l'identificatore dell'onda." + +msgid "Error reading .wav file." +msgstr "Errore durante la lettura del file .wav" + +msgid "Error reading <fact-ck> chunk." +msgstr "Errore durante la lettura della porzione <fact-ck>" + +#, c-format +msgid "%s: An error occurred: %s is not supported.\n" +msgstr "%s: Si è verificato un errore: %s non è supportato.\n" + +#, c-format +msgid "" +"%s: An error occurred: invalid file format. Error reading <%s> chunk.\n" +msgstr "" +"%s: Si è verificato un errore: il formato di file non è valido. Errore nel " +"leggere la porzione <%s>.\n" + +msgid "Invalid .wav file: found data before format information." +msgstr "" +"File .wav non valido: sono stati trovati dei dati prima dell'informazione " +"sul formato" + +msgid "Incorrect chunk size information in RIFF file." +msgstr "" +"Nel file RIFF l'informazione sulla dimensione del frammento non è corretta." + +msgid "Invalid wav format." +msgstr "Formato wav non valido" + +msgid "Error reading wav file." +msgstr "Errore durante la lettura del file wav." + +#, c-format +msgid "%s: An error occurred: Data compression format %s is not supported.\n" +msgstr "" +"%s: Si è verificato un errore: Il formato %s per la compressione dei dati " +"non è supportato.\n" + +msgid "Cannot read .wav file with more than 16 bits per sample." +msgstr "" +"Non è possibile leggere file .wav con più di 16 bit per campione audio." + +msgid "Sample limit vector must have 2 entries." +msgstr "Il vettore del limite del campione audio deve avere 2 voci." + +msgid "Invalid sample limits (use ascending order)." +msgstr "" +"Estremi del campione audio non valido (usare l'ordinamento ascendente)." diff --git a/modules/sound/locales/ja_JP.po b/modules/sound/locales/ja_JP.po new file mode 100755 index 000000000..765119bb5 --- /dev/null +++ b/modules/sound/locales/ja_JP.po @@ -0,0 +1,245 @@ +# Japanese translation for scilab +# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2014-03-30 14:15+0000\n" +"Last-Translator: Rui Hirokawa <Unknown>\n" +"Language-Team: Japanese <z-saito@guitar.ocn.ne.jp>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"X-Poedit-Country: Japan\n" +"Language: ja\n" +"X-Poedit-Language: Japanese\n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "%s: 入力引数 #%d を読み込めません.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "%s: 入力引数 #%d の型が間違っています: 文字列を指定してください.\n" + +#, c-format +msgid "%s: An error occurred: %s\n" +msgstr "%s: エラーが発生しました: %s\n" + +msgid "Cannot play file." +msgstr "ファイルを再生できません." + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "%s: 入力引数 #%d の大きさが間違っています: 文字列を指定してください.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: メモリ確保エラー.\n" + +#, c-format +msgid "%s: Wrong input argument #%d: '%s' or '%s' expected.\n" +msgstr "%s: 入力引数 #%d が間違っています: '%s' または '%s' を指定してください.\n" + +msgid "Scilab sound module not installed.\n" +msgstr "Scilab sound モジュールがインストールされていません.\n" + +msgid "Sound file handling" +msgstr "音楽ファイルの処理" + +msgid "FFT on a wav file" +msgstr "wavファイルに関するFFT" + +msgid "Fourier analysis of 0.5 seconds of sound parameters." +msgstr "音のパラメータの0.5秒間隔のフーリエ解析." + +msgid "A complete picture of the sound." +msgstr "音の完全な図." + +msgid "see 'mapsound' function" +msgstr "'mapsound' 関数参照" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "%s: 入力引数の数が間違っています: %d から %d 個の引数を指定してください.\n" + +# +# File: macros/auread.sci, line: 43 +# File: macros/auwrite.sci, line: 68 +# File: macros/loadwave.sci, line: 32 +# File: macros/savewave.sci, line: 242 +# File: macros/wavread.sci, line: 49 +#, c-format +msgid "%s: Cannot open file %s.\n" +msgstr "%s: ファイル %s がオープンできません。\n" + +msgid "Index range must be specified as a scalar or a 2 elements vector." +msgstr "添字範囲はスカラーまたは2要素のベクトルで指定する必要があります." + +msgid "Sample limit vector must have 2 elements." +msgstr "サンプル制限ベクトルは2要素としてください." + +msgid "Sample limits out of range." +msgstr "サンプル範囲を超えました." + +msgid "Sample limits must be given in ascending order." +msgstr "サンプル制限は昇順で指定してください." + +msgid "Error in file format." +msgstr "ファイル形式エラー:" + +msgid "Error while reading sound file." +msgstr "サウンドファイル読み込み時にエラー発生:" + +msgid "Unrecognized data format." +msgstr "データ形式を認識できません." + +msgid "Truncated data file." +msgstr "データファイルが切れています." + +#, c-format +msgid "%s: Wrong values for input argument: Filename must be a string.\n" +msgstr "%s: 入力引数の値が間違っています: ファイル名には文字列を指定してください.\n" + +msgid "Data array must have 1- or 2-dimensions only." +msgstr "データ配列の次元は 1または2次元としてください." + +msgid "Data clipped during write to file." +msgstr "ファイル書き込み時にデータがクリップされました." + +# +# File: macros/auwrite.sci, line: 88 +msgid "Error while writing sound file." +msgstr "サウンド・ファイルの書き込み中にエラー。" + +msgid "Mu-law can only be used with 8 bit data. Use method='linear' instead." +msgstr "Mu-law は 8ビットデータでのみ使用可能です. method='linear' を代わりに使用してください." + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s: 入力引数の数が間違っています: %d 個の引数を指定してください.\n" + +#, c-format +msgid "%s: Wrong number of output arguments.\n" +msgstr "%s: 出力引数の数が間違っています.\n" + +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "%s: 出力引数の数が間違っています.\n" + +#, c-format +msgid "%s: Failed to play the sound with command: %s.\n" +msgstr "%s:コマンド %s で音を発することができませんでした.\n" + +#, c-format +msgid "%s: Audio capabilities not available.\n" +msgstr "%s: オーディオ機能は利用できません.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "%s: 入力引数 #%d の大きさが間違っています.\n" + +msgid "only 8/16/24/32 bits for the encoding." +msgstr "対応する符号化は 8/16/24/32 ビットのみです." + +# +# File: macros/savewave.sci, line: 185 +msgid "Unknown data format." +msgstr "未知のデータ・フォーマットです。" + +#, c-format +msgid "%s: Wrong number of input argument(s): At least %d expected.\n" +msgstr "%s: 入力引数の数が間違っています: %d 個以上の引数を指定してください.\n" + +msgid "Requires 2-D values only." +msgstr "2次元の値のみとする必要があります." + +#, c-format +msgid "%s: Wrong size for input argument #%d: %d-by-%d matrix expected.\n" +msgstr "%s: 入力引数 #%d の大きさが間違っています: %d 行 %d 列の行列を指定してください.\n" + +#, c-format +msgid "%s: Wrong type for argument #%d: Real matrix expected.\n" +msgstr "%s: 引数 %d の型が間違っています: 実数行列を指定してください.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be >= %d.\n" +msgstr "%s: 引数 %d の値が間違っています: %d 個以上の引数を指定してください.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: Must be %s or %s, an integer or a " +"vector of %d integers.\n" +msgstr "%s: 入力引数 #%d の値が間違っています: %s または %s , 整数または %d 整数のベクトルを指定してください.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument: Index range must be specified as a " +"scalar or %d-element vector.\n" +msgstr "%s: 入力引数の値が間違っています: インデックスの範囲はスカラーまたは %d-要素ベクトルで指定してください.\n" + +msgid ".wav file does not contain the RIFF identifier." +msgstr ".wavファイルにRIFF識別子が含まれていません." + +msgid ".wav file does not contain the wave identifier." +msgstr ".wavファイルにwave 識別子が含まれていません." + +# +# File: macros/wavread.sci, line: 102 +# File: macros/wavread.sci, line: 159 +# File: macros/wavread.sci, line: 178 +msgid "Error reading .wav file." +msgstr ".wav ファイルを読み込み中にエラー" + +# +# File: macros/wavread.sci, line: 108 +msgid "Error reading <fact-ck> chunk." +msgstr "読み込み中エラー <fact-ck> チャンク" + +#, c-format +msgid "%s: An error occurred: %s is not supported.\n" +msgstr "%s: エラーが発生しました : %s はサポートされません.\n" + +# +# File: macros/wavread.sci, line: 236 +#, c-format +msgid "" +"%s: An error occurred: invalid file format. Error reading <%s> chunk.\n" +msgstr "%s: エラーが起きました: ファイルフォーマットが不正です、 <%s> チャンク読み取りエラー。\n" + +msgid "Invalid .wav file: found data before format information." +msgstr "不正な .wav ファイル: フォーマット情報の前にデータが見つかりました." + +# +# File: macros/wavread.sci, line: 137 +msgid "Incorrect chunk size information in RIFF file." +msgstr "RIFF・ファイルの不正確なチャンクサイズ情報。" + +msgid "Invalid wav format." +msgstr "wavフォーマットが間違っています." + +# +# File: macros/wavread.sci, line: 189 +# File: macros/wavread.sci, line: 200 +msgid "Error reading wav file." +msgstr "wavファイルの読み込みエラーです。" + +# +# File: macros/wavread.sci, line: 236 +#, c-format +msgid "%s: An error occurred: Data compression format %s is not supported.\n" +msgstr "%s: エラーが起きました: データ圧縮フォーマット %s サポートされません。\n" + +msgid "Cannot read .wav file with more than 16 bits per sample." +msgstr "16ビット/サンプルを超える .wav ファイルを読み込むことはできません." + +msgid "Sample limit vector must have 2 entries." +msgstr "サンプル範囲ベクトルは2つのエントリを有する必要があります." + +msgid "Invalid sample limits (use ascending order)." +msgstr "サンプル範囲が間違っています (昇順としてください)" diff --git a/modules/sound/locales/pl_PL.po b/modules/sound/locales/pl_PL.po new file mode 100755 index 000000000..45a6e324f --- /dev/null +++ b/modules/sound/locales/pl_PL.po @@ -0,0 +1,236 @@ +# Polish translation for scilab +# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2011-12-03 13:45+0000\n" +"Last-Translator: I.Rokach <Unknown>\n" +"Language-Team: Polish <pl@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: pl\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "" +"%s: Nieprawidłowa liczba argumentów wejściowych: oczekiwano od %d do %d.\n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "" +"%s: Nieprawidłowy typ argumentu wejściowego nr %d: oczekiwano łańcuch.\n" + +#, c-format +msgid "%s: An error occurred: %s\n" +msgstr "%s: Wystąpił błąd: %s\n" + +msgid "Cannot play file." +msgstr "Nie można odtworzyć pliku." + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "" +"%s: Nieprawidłowy rozmiar dla argumentu wejściowego nr %d: Oczekiwano ciągu " +"znaków.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Błąd alokacji pamięci.\n" + +#, c-format +msgid "%s: Wrong input argument #%d: '%s' or '%s' expected.\n" +msgstr "" +"%s: Nieprawidłowy parametr wejściowy nr %d: oczekiwano '%s' lub '%s'.\n" + +msgid "Scilab sound module not installed.\n" +msgstr "Moduł dźwiękowy nie jest zainstalowany.\n" + +msgid "Sound file handling" +msgstr "" + +msgid "FFT on a wav file" +msgstr "FFT na pliku wav" + +msgid "Fourier analysis of 0.5 seconds of sound parameters." +msgstr "Analiza Fouriera 0.5 sekundy parametrów dźwięku." + +msgid "A complete picture of the sound." +msgstr "" + +msgid "see 'mapsound' function" +msgstr "Zobacz funkcję 'mapsound'" + +#, c-format +msgid "%s: Cannot open file %s.\n" +msgstr "%s: Nie można otworzyć pliku %s.\n" + +msgid "Index range must be specified as a scalar or a 2 elements vector." +msgstr "" + +msgid "Sample limit vector must have 2 elements." +msgstr "" + +msgid "Sample limits out of range." +msgstr "Granice próbki poza zasięgiem." + +msgid "Sample limits must be given in ascending order." +msgstr "" + +msgid "Error in file format." +msgstr "" + +msgid "Error while reading sound file." +msgstr "" + +msgid "Unrecognized data format." +msgstr "Nierozpoznany format danych." + +msgid "Truncated data file." +msgstr "" + +#, c-format +msgid "%s: Wrong values for input argument: Filename must be a string.\n" +msgstr "" +"%s: NIeprawidłowa wartość parametru wejściowego: Nazwa pliku musi być " +"ciągiem znaków.\n" + +msgid "Data array must have 1- or 2-dimensions only." +msgstr "Tablica danych musi być 1 - lub 2-wymiarowa." + +msgid "Data clipped during write to file." +msgstr "" + +msgid "Error while writing sound file." +msgstr "Błąd podczas zapisywania pliku dźwiękowego." + +msgid "Mu-law can only be used with 8 bit data. Use method='linear' instead." +msgstr "" +"Mu-law może być tylko użyte z danymi 8-śmio bitowymi. W zamian użyj " +"method='linear'." + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s: Nieprawidłowa liczba argumentów wejściowych: oczekiwano %d.\n" + +#, c-format +msgid "%s: Wrong number of output arguments.\n" +msgstr "%s: Nieprawidłowa liczba parametrów wyjściowych.\n" + +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "%s: Nieprawidłowa liczba argumentów wyjściowych.\n" + +#, c-format +msgid "%s: Failed to play the sound with command: %s.\n" +msgstr "" + +#, c-format +msgid "%s: Audio capabilities not available.\n" +msgstr "%s: Funkcje audio nie są dostępne.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "%s: Nieprawidłowy rozmiar argumentu wejściowego nr %d.\n" + +msgid "only 8/16/24/32 bits for the encoding." +msgstr "Kodowanie tylko 8/16/24/32 bitowe." + +msgid "Unknown data format." +msgstr "Nieznany format danych." + +#, c-format +msgid "%s: Wrong number of input argument(s): At least %d expected.\n" +msgstr "" +"%s: Nieprawidłowa liczba argumentów wejściowych: oczekiwano przynajmniej " +"%d.\n" + +msgid "Requires 2-D values only." +msgstr "Wymaga tylko wartości 2-D." + +#, c-format +msgid "%s: Wrong size for input argument #%d: %d-by-%d matrix expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for argument #%d: Real matrix expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be >= %d.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: Must be %s or %s, an integer or a " +"vector of %d integers.\n" +msgstr "" +"%s: Zła wartość parametru wejściowego nr %d: Musi być %s lub %s, liczba " +"całkowita lub %d-elementowy wektor liczb całkowitych.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument: Index range must be specified as a " +"scalar or %d-element vector.\n" +msgstr "" +"%s: Zła wartość parametru wejściowego: Zakres indeksów musi być określony " +"jako skalar lub %d-elementowy wektor.\n" + +msgid ".wav file does not contain the RIFF identifier." +msgstr "Plik .wav nie zawiera idektyfikatora RIFF." + +msgid ".wav file does not contain the wave identifier." +msgstr "Plik .wav nie zawiera idektyfikatora wave." + +msgid "Error reading .wav file." +msgstr "Błąd odczytu pliku. WAV." + +msgid "Error reading <fact-ck> chunk." +msgstr "Błąd podczas odczytu kawałka <fact-ck>." + +#, c-format +msgid "%s: An error occurred: %s is not supported.\n" +msgstr "%s: Wystąpił błąd:% s błąd nie jest obsługiwany.\n" + +#, c-format +msgid "" +"%s: An error occurred: invalid file format. Error reading <%s> chunk.\n" +msgstr "" +"%s: Wystąpił błąd: niewłaściwy format pliku. Błąd podczas odczytu kawałka " +"<%s>.\n" + +msgid "Invalid .wav file: found data before format information." +msgstr "Niewłaściwy plik .wav: znaleziono dane przed informacja o formacie." + +msgid "Incorrect chunk size information in RIFF file." +msgstr "Nieprawidłowy rozmiar informacji kawałka w pliku typu RIFF." + +msgid "Invalid wav format." +msgstr "Niewłaściwy format wav." + +msgid "Error reading wav file." +msgstr "Błąd odczytu pliku WAV." + +#, c-format +msgid "%s: An error occurred: Data compression format %s is not supported.\n" +msgstr "%s: Wystąpił błąd %s format kompresji danych nie jest obsługiwany.\n" + +msgid "Cannot read .wav file with more than 16 bits per sample." +msgstr "" +"Nie można odczytać pliku .wav który posiada więcej niż 16 bitów na próbkę." + +msgid "Sample limit vector must have 2 entries." +msgstr "Wektor granic próbki musi posiadać dwie wartości." + +msgid "Invalid sample limits (use ascending order)." +msgstr "Niewłaściwe granice próbki (użyj kolejności rosnącej)." diff --git a/modules/sound/locales/pt_BR.po b/modules/sound/locales/pt_BR.po new file mode 100755 index 000000000..0d19cc4c0 --- /dev/null +++ b/modules/sound/locales/pt_BR.po @@ -0,0 +1,236 @@ +# Brazilian Portuguese translation for scilab +# Copyright (c) 2008 Rosetta Contributors and Canonical Ltd 2008 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2008. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2011-09-01 15:19+0000\n" +"Last-Translator: Allan CORNET <Unknown>\n" +"Language-Team: Brazilian Portuguese <pt_BR@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: pt_BR\n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "" +"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se um texto.\n" + +#, c-format +msgid "%s: An error occurred: %s\n" +msgstr "%s: Ocorreu um erro: %s\n" + +msgid "Cannot play file." +msgstr "Não foi possível reproduzir o arquivo." + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "" +"%s: Tamanho incorreto para o argumento de entrada #%d: esperava-se um " +"texto.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Erro de alocação de memória.\n" + +#, c-format +msgid "%s: Wrong input argument #%d: '%s' or '%s' expected.\n" +msgstr "%s: Erro no argumento de entrada #%d: esperava-se '%s' ou '%s'.\n" + +msgid "Scilab sound module not installed.\n" +msgstr "O módulo de som do Scilab não está instalado.\n" + +msgid "Sound file handling" +msgstr "" + +msgid "FFT on a wav file" +msgstr "FFT no arquivo wav" + +msgid "Fourier analysis of 0.5 seconds of sound parameters." +msgstr "Análise Fourier de 0.5 segundos de parâmetros do som." + +msgid "A complete picture of the sound." +msgstr "Uma imagem completa do som." + +msgid "see 'mapsound' function" +msgstr "veja a função 'mapsound'" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "" +"%s: Quantidade incorreta de argumentos de entrada: esperava-se de %d a %d.\n" + +#, c-format +msgid "%s: Cannot open file %s.\n" +msgstr "%s: Não é possível abrir o arquivo %s.\n" + +msgid "Index range must be specified as a scalar or a 2 elements vector." +msgstr "" + +msgid "Sample limit vector must have 2 elements." +msgstr "" + +msgid "Sample limits out of range." +msgstr "Os limites de amostra estão fora do intervalo." + +msgid "Sample limits must be given in ascending order." +msgstr "" + +msgid "Error in file format." +msgstr "" + +msgid "Error while reading sound file." +msgstr "" + +msgid "Unrecognized data format." +msgstr "Formato de dados desconhecido." + +msgid "Truncated data file." +msgstr "" + +#, c-format +msgid "%s: Wrong values for input argument: Filename must be a string.\n" +msgstr "" +"%s: Valor incorreto para o argumento de entrada: o nome de arquivo tem que " +"ser um texto.\n" + +msgid "Data array must have 1- or 2-dimensions only." +msgstr "A matriz de dados só pode ser uni ou bidimensional." + +msgid "Data clipped during write to file." +msgstr "" + +msgid "Error while writing sound file." +msgstr "Erro ao escrever o arquivo de som." + +msgid "Mu-law can only be used with 8 bit data. Use method='linear' instead." +msgstr "" +"A lei-mi só pode ser utilizada com dados de 8 bits. Use method='linear' no " +"lugar." + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s: Quantidade incorreta de argumentos de entrada: esperava-se %d.\n" + +#, c-format +msgid "%s: Wrong number of output arguments.\n" +msgstr "%s: Quantidade incorreta de argumentos de saída.\n" + +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "%s: Quantidade incorreta de argumentos de saída.\n" + +#, c-format +msgid "%s: Failed to play the sound with command: %s.\n" +msgstr "" + +#, c-format +msgid "%s: Audio capabilities not available.\n" +msgstr "%s: Os recursos de áudio não estão disponíveis.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "%s: Tamanho incorreto para o argumento de entrada #%d.\n" + +msgid "only 8/16/24/32 bits for the encoding." +msgstr "Apenas 8/16/24/32 bits para codificação." + +msgid "Unknown data format." +msgstr "Formato de dados desconhecido." + +#, c-format +msgid "%s: Wrong number of input argument(s): At least %d expected.\n" +msgstr "" +"%s: Quantidade incorreta de argumentos de entrada: esperava-se pelo menos " +"%d.\n" + +msgid "Requires 2-D values only." +msgstr "Só se aceita valores bidimensionais." + +#, c-format +msgid "%s: Wrong size for input argument #%d: %d-by-%d matrix expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for argument #%d: Real matrix expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be >= %d.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: Must be %s or %s, an integer or a " +"vector of %d integers.\n" +msgstr "" +"%s: Valor errado para o argumento de entrada #%d: Deve ser %s ou %s, um " +"inteiro, ou um vetor de %d inteiros.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument: Index range must be specified as a " +"scalar or %d-element vector.\n" +msgstr "" +"%s: Valor incorreto para o argumento de entrada: o intervalo de índices deve " +"ser especificado como um escalar ou um vetor de %d-elementos.\n" + +msgid ".wav file does not contain the RIFF identifier." +msgstr "O arquivo .wav não contém o identificador RIFF." + +msgid ".wav file does not contain the wave identifier." +msgstr "o arquivo .wav não contém o identificador wave." + +msgid "Error reading .wav file." +msgstr "Erro ao ler o arquivo .wav." + +msgid "Error reading <fact-ck> chunk." +msgstr "Erro ao ler o pedaço <fact-ck>." + +#, c-format +msgid "%s: An error occurred: %s is not supported.\n" +msgstr "%s: Ocorreu um erro: não há suporte para %s.\n" + +#, c-format +msgid "" +"%s: An error occurred: invalid file format. Error reading <%s> chunk.\n" +msgstr "" +"%s: Ocorreu um erro: o formato do arquivo é inválido. Erro ao ler o pedaço " +"<%s>.\n" + +msgid "Invalid .wav file: found data before format information." +msgstr "Arquivo .wav inválido: achou dados antes da informação de formato." + +msgid "Incorrect chunk size information in RIFF file." +msgstr "Informação de tamanho de pedaço incorreta no arquivo RIFF." + +msgid "Invalid wav format." +msgstr "Formato wav inválido." + +msgid "Error reading wav file." +msgstr "Erro ao carregar o arquivo wav." + +#, c-format +msgid "%s: An error occurred: Data compression format %s is not supported.\n" +msgstr "" +"%s: Ocorreu um erro: não há suporte para o formato %s de compressão de " +"dados.\n" + +msgid "Cannot read .wav file with more than 16 bits per sample." +msgstr "Não é possível ler o arquivo .wav com mais de 16 bits por amostra." + +msgid "Sample limit vector must have 2 entries." +msgstr "O vetor de limite de amostra deve ter 2 entradas." + +msgid "Invalid sample limits (use ascending order)." +msgstr "Limites de amostra inválidos (utilize ordem crescente)." diff --git a/modules/sound/locales/ru_RU.po b/modules/sound/locales/ru_RU.po new file mode 100755 index 000000000..739894ccf --- /dev/null +++ b/modules/sound/locales/ru_RU.po @@ -0,0 +1,232 @@ +# translation of sound-ru.po to Russian +# Russian translation for scilab +# Copyright (c) 2008 Rosetta Contributors and Canonical Ltd 2008 +# This file is distributed under the same license as the scilab package. +# +# FIRST AUTHOR <EMAIL@ADDRESS>, 2008. +# Aleksey Vorona <voronaam@yandex.ru>, 2009. +msgid "" +msgstr "" +"Project-Id-Version: sound-ru\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2015-03-27 14:59+0000\n" +"Last-Translator: Stanislav V. Kroter <krotersv@gmail.com>\n" +"Language-Team: Russian <localization@lists.scilab.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: ru\n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "%s: Не могу прочитать входной аргумент №%d.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "%s: Неверный тип входного параметра №%d: ожидалась строка.\n" + +#, c-format +msgid "%s: An error occurred: %s\n" +msgstr "%s: Произошла ошибка: %s\n" + +msgid "Cannot play file." +msgstr "Не удалось воспроизвести файл." + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "%s: Неверный размер входного параметра №%d: ожидалась строка.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Ошибка выделения памяти.\n" + +#, c-format +msgid "%s: Wrong input argument #%d: '%s' or '%s' expected.\n" +msgstr "%s: Неверный входной параметр №%d: ожидался «%s» или «%s».\n" + +msgid "Scilab sound module not installed.\n" +msgstr "Модуль «Sound» не установлен.\n" + +msgid "Sound file handling" +msgstr "Управление звуковым файлом" + +msgid "FFT on a wav file" +msgstr "БПФ wav-файла" + +msgid "Fourier analysis of 0.5 seconds of sound parameters." +msgstr "Фурье-анализ 0,5 секунды звуковых параметров." + +msgid "A complete picture of the sound." +msgstr "Полная картина звука." + +msgid "see 'mapsound' function" +msgstr "см. функцию 'mapsound'" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "%s: Неверное количество входных параметров: ожидалось от %d до %d.\n" + +#, c-format +msgid "%s: Cannot open file %s.\n" +msgstr "%s: Не удалось открыть файл %s.\n" + +msgid "Index range must be specified as a scalar or a 2 elements vector." +msgstr "" +"Диапазон индексов должен быть определён в виде скаляра или 2-элементным " +"вектором." + +msgid "Sample limit vector must have 2 elements." +msgstr "Вектор пределов выборки должен иметь 2 элемента." + +msgid "Sample limits out of range." +msgstr "Границы сэмплов вне допустимых пределов." + +msgid "Sample limits must be given in ascending order." +msgstr "Пределы выборки должны быть указаны в порядке возрастания." + +msgid "Error in file format." +msgstr "Ошибка в формате файла." + +msgid "Error while reading sound file." +msgstr "Ошибка во время чтения звукового файла." + +msgid "Unrecognized data format." +msgstr "Неизвестный формат данных." + +msgid "Truncated data file." +msgstr "" + +#, c-format +msgid "%s: Wrong values for input argument: Filename must be a string.\n" +msgstr "" +"%s: Неверное значение входного параметра: имя файла должно быть строкой.\n" + +msgid "Data array must have 1- or 2-dimensions only." +msgstr "Массив данных должен быть одно- или двумерным." + +msgid "Data clipped during write to file." +msgstr "Данные обрезаны во время записи в файл." + +msgid "Error while writing sound file." +msgstr "Ошибка записи звукового файла." + +msgid "Mu-law can only be used with 8 bit data. Use method='linear' instead." +msgstr "" +"Mu-law может быть использован только с 8-битными данными. Используйте метод " +"«linear» вместо него." + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s: Неверное количество входных параметров: ожидалось %d.\n" + +#, c-format +msgid "%s: Wrong number of output arguments.\n" +msgstr "%s: Неверное количество выходных параметров.\n" + +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "%s: Неверное количество выходных параметров.\n" + +#, c-format +msgid "%s: Failed to play the sound with command: %s.\n" +msgstr "%s: Не удалось воспроизвести звук с помощью команды: %s.\n" + +#, c-format +msgid "%s: Audio capabilities not available.\n" +msgstr "%s: Звуковые возможности недоступны.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "%s: Неверный размер входного параметра №%d.\n" + +msgid "only 8/16/24/32 bits for the encoding." +msgstr "только 8/16/24/32 бит для кодирования." + +msgid "Unknown data format." +msgstr "Неизвестный формат данных." + +#, c-format +msgid "%s: Wrong number of input argument(s): At least %d expected.\n" +msgstr "%s: Неверное количество входных параметров: ожидалось не менее %d.\n" + +msgid "Requires 2-D values only." +msgstr "Требуются двумерные значения." + +#, c-format +msgid "%s: Wrong size for input argument #%d: %d-by-%d matrix expected.\n" +msgstr "" +"%s: Неверный размер входного аргумента №%d: ожидалась матрица %d на %d.\n" + +#, c-format +msgid "%s: Wrong type for argument #%d: Real matrix expected.\n" +msgstr "%s: Неверный тип аргумента №%d: ожидалась вещественная матрица.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be >= %d.\n" +msgstr "%s: Неверное значение входного аргумента №%d: должно быть >= %d.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: Must be %s or %s, an integer or a " +"vector of %d integers.\n" +msgstr "" +"%s: Неверное значение входного параметра №%d: должно быть %s или %s, целое " +"число или вектор из %d целых чисел.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument: Index range must be specified as a " +"scalar or %d-element vector.\n" +msgstr "" +"%s: Неверное значение входного параметра: интервальный указатель должен быть " +"задан как скаляр или вектор из %d элементов.\n" + +msgid ".wav file does not contain the RIFF identifier." +msgstr ".wav файл не содержит идентификатора RIFF." + +msgid ".wav file does not contain the wave identifier." +msgstr ".wav файл не содержит идентификатора wave." + +msgid "Error reading .wav file." +msgstr "Ошибка чтения .wav файла." + +msgid "Error reading <fact-ck> chunk." +msgstr "Ошибка чтения <fact-ck> блока." + +#, c-format +msgid "%s: An error occurred: %s is not supported.\n" +msgstr "%s: Произошла ошибка: %s не подерживается.\n" + +#, c-format +msgid "" +"%s: An error occurred: invalid file format. Error reading <%s> chunk.\n" +msgstr "" +"%s: Произошла ошибка: неверный формат файла. Ошибка чтения блока <%s>.\n" + +msgid "Invalid .wav file: found data before format information." +msgstr "Неверный .wav файл: данные найдены до информации о формате." + +msgid "Incorrect chunk size information in RIFF file." +msgstr "Некорректная информация о размере блока в RIFF файле." + +msgid "Invalid wav format." +msgstr "Неверный формат wav." + +msgid "Error reading wav file." +msgstr "Ошибка чтения wav файла." + +#, c-format +msgid "%s: An error occurred: Data compression format %s is not supported.\n" +msgstr "%s: Произошла ошибка: формат сжатия данных %s не поддерживается.\n" + +msgid "Cannot read .wav file with more than 16 bits per sample." +msgstr "Не удалось прочитать .wav файл с более чем 16-ю битами на сэмпл." + +msgid "Sample limit vector must have 2 entries." +msgstr "" +"Вектор границ сэмплов (Sample limit vector) должен иметь два элемента." + +msgid "Invalid sample limits (use ascending order)." +msgstr "Неверные границы сэмплов (нужно указывать их по возрастанию)." diff --git a/modules/sound/locales/sound.pot b/modules/sound/locales/sound.pot new file mode 100755 index 000000000..cab95d99e --- /dev/null +++ b/modules/sound/locales/sound.pot @@ -0,0 +1,356 @@ +# Localization of the module sound +# Please see in SCI/tools/localization for localization management +# Copyright (C) 2007-2008 - INRIA +# Copyright (C) 2008-2011 - DIGITEO +# Copyright (C) 2012-2014 - Scilab-Enterprises +# This file is distributed under the same license as the Scilab package. +# +msgid "" +msgstr "" +"Project-Id-Version: Scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"Last-Translator: Vincent COUVERT <vincent.couvert@scilab-enterprises.com>\n" +"Language-Team: Scilab Localization <localization@lists.scilab.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Revision-Date: 2015-03-27 13:54+0100\n" + +# File: sci_gateway/c/sci_PlaySound.c, line: 48 +# File: sci_gateway/c/sci_PlaySound.c, line: 56 +# File: sci_gateway/c/sci_PlaySound.c, line: 69 +# File: sci_gateway/c/sci_beep.c, line: 61 +# File: sci_gateway/c/sci_beep.c, line: 69 +# File: sci_gateway/c/sci_beep.c, line: 83 +# File: sci_gateway/c/sci_beep.c, line: 104 +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_PlaySound.c, line: 62 +# File: sci_gateway/c/sci_beep.c, line: 75 +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_PlaySound.c, line: 128 +#, c-format +msgid "%s: An error occurred: %s\n" +msgstr "" + +# +# File: sci_gateway/c/sci_PlaySound.c, line: 128 +msgid "Cannot play file." +msgstr "" + +# +# File: sci_gateway/c/sci_beep.c, line: 89 +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_beep.c, line: 96 +# File: sci_gateway/c/sci_beep.c, line: 144 +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_beep.c, line: 126 +#, c-format +msgid "%s: Wrong input argument #%d: '%s' or '%s' expected.\n" +msgstr "" + +# +# File: src/nosound/nosound.c, line: 20 +msgid "Scilab sound module not installed.\n" +msgstr "" + +# File: demos/sound.dem.gateway.sce, line: 9 +msgid "Sound file handling" +msgstr "" + +# +# File: demos/sound.dem.gateway.sce, line: 11 +msgid "FFT on a wav file" +msgstr "" + +# +# File: demos/sound.dem.sce, line: 21 +msgid "Fourier analysis of 0.5 seconds of sound parameters." +msgstr "" + +# +# File: demos/sound.dem.sce, line: 36 +msgid "A complete picture of the sound." +msgstr "" + +# +# File: demos/sound.dem.sce, line: 36 +msgid "see 'mapsound' function" +msgstr "" + +# +# File: macros/auread.sci, line: 34 +# File: macros/auwrite.sci, line: 42 +# File: macros/auwrite.sci, line: 44 +# File: macros/wavwrite.sci, line: 20 +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "" + +# +# File: macros/auread.sci, line: 43 +# File: macros/auwrite.sci, line: 68 +# File: macros/loadwave.sci, line: 32 +# File: macros/savewave.sci, line: 249 +# File: macros/wavread.sci, line: 49 +#, c-format +msgid "%s: Cannot open file %s.\n" +msgstr "" + +# +# File: macros/auread.sci, line: 65 +msgid "Index range must be specified as a scalar or a 2 elements vector." +msgstr "" + +# +# File: macros/auread.sci, line: 107 +msgid "Sample limit vector must have 2 elements." +msgstr "" + +# +# File: macros/auread.sci, line: 110 +# File: macros/wavread.sci, line: 297 +msgid "Sample limits out of range." +msgstr "" + +# +# File: macros/auread.sci, line: 113 +msgid "Sample limits must be given in ascending order." +msgstr "" + +# +# File: macros/auread.sci, line: 121 +msgid "Error in file format." +msgstr "" + +# +# File: macros/auread.sci, line: 177 +msgid "Error while reading sound file." +msgstr "" + +# +# File: macros/auread.sci, line: 209 +# File: macros/auwrite.sci, line: 143 +# File: macros/auwrite.sci, line: 147 +msgid "Unrecognized data format." +msgstr "" + +# +# File: macros/auread.sci, line: 214 +msgid "Truncated data file." +msgstr "" + +# +# File: macros/auwrite.sci, line: 60 +#, c-format +msgid "%s: Wrong values for input argument: Filename must be a string.\n" +msgstr "" + +# +# File: macros/auwrite.sci, line: 72 +msgid "Data array must have 1- or 2-dimensions only." +msgstr "" + +# +# File: macros/auwrite.sci, line: 82 +msgid "Data clipped during write to file." +msgstr "" + +# +# File: macros/auwrite.sci, line: 88 +msgid "Error while writing sound file." +msgstr "" + +# +# File: macros/auwrite.sci, line: 125 +msgid "Mu-law can only be used with 8 bit data. Use method='linear' instead." +msgstr "" + +# +# File: macros/loadwave.sci, line: 17 +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" + +# +# File: macros/loadwave.sci, line: 22 +#, c-format +msgid "%s: Wrong number of output arguments.\n" +msgstr "" + +# +# File: macros/loadwave.sci, line: 43 +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "" + +# +# File: macros/playsnd.sci, line: 58 +#, c-format +msgid "%s: Failed to play the sound with command: %s.\n" +msgstr "" + +# +# File: macros/playsnd.sci, line: 68 +#, c-format +msgid "%s: Audio capabilities not available.\n" +msgstr "" + +# +# File: macros/savewave.sci, line: 98 +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "" + +# +# File: macros/savewave.sci, line: 146 +msgid "only 8/16/24/32 bits for the encoding." +msgstr "" + +# +# File: macros/savewave.sci, line: 192 +msgid "Unknown data format." +msgstr "" + +# +# File: macros/sound.sci, line: 27 +#, c-format +msgid "%s: Wrong number of input argument(s): At least %d expected.\n" +msgstr "" + +# +# File: macros/sound.sci, line: 41 +msgid "Requires 2-D values only." +msgstr "" + +# +# File: macros/soundsec.sci, line: 28 +# File: macros/soundsec.sci, line: 42 +#, c-format +msgid "%s: Wrong size for input argument #%d: %d-by-%d matrix expected.\n" +msgstr "" + +# +# File: macros/soundsec.sci, line: 31 +# File: macros/soundsec.sci, line: 34 +# File: macros/soundsec.sci, line: 45 +# File: macros/soundsec.sci, line: 48 +#, c-format +msgid "%s: Wrong type for argument #%d: Real matrix expected.\n" +msgstr "" + +# +# File: macros/soundsec.sci, line: 53 +# File: macros/soundsec.sci, line: 57 +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be >= %d.\n" +msgstr "" + +# +# File: macros/wavread.sci, line: 60 +# File: macros/wavread.sci, line: 75 +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: Must be %s or %s, an integer or a " +"vector of %d integers.\n" +msgstr "" + +# +# File: macros/wavread.sci, line: 65 +#, c-format +msgid "" +"%s: Wrong value for input argument: Index range must be specified as a " +"scalar or %d-element vector.\n" +msgstr "" + +# +# File: macros/wavread.sci, line: 82 +msgid ".wav file does not contain the RIFF identifier." +msgstr "" + +# +# File: macros/wavread.sci, line: 87 +msgid ".wav file does not contain the wave identifier." +msgstr "" + +# +# File: macros/wavread.sci, line: 102 +# File: macros/wavread.sci, line: 173 +# File: macros/wavread.sci, line: 192 +msgid "Error reading .wav file." +msgstr "" + +# +# File: macros/wavread.sci, line: 109 +msgid "Error reading <fact-ck> chunk." +msgstr "" + +# +# File: macros/wavread.sci, line: 115 +#, c-format +msgid "%s: An error occurred: %s is not supported.\n" +msgstr "" + +# +# File: macros/wavread.sci, line: 120 +#, c-format +msgid "%s: An error occurred: invalid file format. Error reading <%s> chunk.\n" +msgstr "" + +# +# File: macros/wavread.sci, line: 131 +msgid "Invalid .wav file: found data before format information." +msgstr "" + +# +# File: macros/wavread.sci, line: 150 +msgid "Incorrect chunk size information in RIFF file." +msgstr "" + +# +# File: macros/wavread.sci, line: 183 +msgid "Invalid wav format." +msgstr "" + +# +# File: macros/wavread.sci, line: 203 +# File: macros/wavread.sci, line: 215 +msgid "Error reading wav file." +msgstr "" + +# +# File: macros/wavread.sci, line: 254 +#, c-format +msgid "%s: An error occurred: Data compression format %s is not supported.\n" +msgstr "" + +# +# File: macros/wavread.sci, line: 277 +msgid "Cannot read .wav file with more than 16 bits per sample." +msgstr "" + +# +# File: macros/wavread.sci, line: 293 +msgid "Sample limit vector must have 2 entries." +msgstr "" + +# +# File: macros/wavread.sci, line: 300 +msgid "Invalid sample limits (use ascending order)." +msgstr "" diff --git a/modules/sound/locales/uk_UA.po b/modules/sound/locales/uk_UA.po new file mode 100755 index 000000000..6be7936b8 --- /dev/null +++ b/modules/sound/locales/uk_UA.po @@ -0,0 +1,245 @@ +# Ukrainian translation for scilab +# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 +# This file is distributed under the same license as the scilab package. +# +# FIRST AUTHOR <EMAIL@ADDRESS>, 2010. +# Yuri Chornoivan <yurchor@gmail.com>, 2010, 2013. +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2014-03-29 18:25+0000\n" +"Last-Translator: Yuri Chornoivan <yurchor@gmail.com>\n" +"Language-Team: Ukrainian <translation@linux.org.ua>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: uk\n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "%s: не вдалося прочитати вхідний параметр №%d.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "" +"%s: помилковий тип вхідного параметра №%d: слід використовувати тип " +"«string».\n" + +#, c-format +msgid "%s: An error occurred: %s\n" +msgstr "%s: сталася помилка: %s\n" + +msgid "Cannot play file." +msgstr "Не вдалося відтворити файл." + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "" +"%s: помилковий розмір вхідного параметра №%d: слід використовувати рядок.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: помилка виділення пам’яті.\n" + +#, c-format +msgid "%s: Wrong input argument #%d: '%s' or '%s' expected.\n" +msgstr "" +"%s: помилковий вхідний параметра №%d: слід використовувати «%s» або «%s».\n" + +msgid "Scilab sound module not installed.\n" +msgstr "Модуль роботи зі звуком (sound) Scilab не встановлено.\n" + +msgid "Sound file handling" +msgstr "Обробка файла звукових даних" + +msgid "FFT on a wav file" +msgstr "ШПФ для файла wav" + +msgid "Fourier analysis of 0.5 seconds of sound parameters." +msgstr "Розклад Фур’є 0,5 секунди звукових параметрів." + +msgid "A complete picture of the sound." +msgstr "Повний образ звуку." + +msgid "see 'mapsound' function" +msgstr "див. функцію «mapsound»" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "" +"%s: помилкова кількість вхідних параметрів: слід використовувати від %d до " +"%d.\n" + +#, c-format +msgid "%s: Cannot open file %s.\n" +msgstr "%s: не вдалося відкрити файл %s.\n" + +msgid "Index range must be specified as a scalar or a 2 elements vector." +msgstr "" +"Діапазон індексів має бути вказано у форматі числа або вектора з двох " +"елементів." + +msgid "Sample limit vector must have 2 elements." +msgstr "Вектор обмеження семпла має складатися з двох елементів." + +msgid "Sample limits out of range." +msgstr "Межі семпла поза діапазоном." + +msgid "Sample limits must be given in ascending order." +msgstr "Обмеження семпла слід вказувати у порядку зростання." + +msgid "Error in file format." +msgstr "Помилка у форматуванні файла." + +msgid "Error while reading sound file." +msgstr "Помилка під час читання файла звукових даних." + +msgid "Unrecognized data format." +msgstr "Не вдалося визначити формат даних." + +msgid "Truncated data file." +msgstr "Обрізаний файл даних." + +#, c-format +msgid "%s: Wrong values for input argument: Filename must be a string.\n" +msgstr "" +"%s: помилкові значення вхідних параметрів: назва файла має бути рядком.\n" + +msgid "Data array must have 1- or 2-dimensions only." +msgstr "Масив даних може бути лише одно- або двовимірним." + +msgid "Data clipped during write to file." +msgstr "Під час запису до файла дані обрізано." + +msgid "Error while writing sound file." +msgstr "Помилка під час спроби запису звукового файла." + +msgid "Mu-law can only be used with 8 bit data. Use method='linear' instead." +msgstr "" +"Мю-закон можна використовувати лише для 8-бітових даних. Скористайтеся " +"методом «linear»." + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" +"%s: помилкова кількість вхідних параметрів: слід використовувати %d.\n" + +#, c-format +msgid "%s: Wrong number of output arguments.\n" +msgstr "%s: помилкова кількість вихідних параметрів.\n" + +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "%s: помилкова кількість вихідних параметрів.\n" + +#, c-format +msgid "%s: Failed to play the sound with command: %s.\n" +msgstr "%s: не вдалося відтворити звук за допомогою цієї команди: %s.\n" + +#, c-format +msgid "%s: Audio capabilities not available.\n" +msgstr "%s: не виявлено можливостей роботи зі звуком.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "%s: помилкова розмірність вхідного параметра №%d.\n" + +msgid "only 8/16/24/32 bits for the encoding." +msgstr "лише 8/16/24/32 бітів для кодування." + +msgid "Unknown data format." +msgstr "Невідомий формат даних." + +#, c-format +msgid "%s: Wrong number of input argument(s): At least %d expected.\n" +msgstr "" +"%s: помилкова кількість вхідних параметрів: слід використовувати не менше за " +"%d.\n" + +msgid "Requires 2-D values only." +msgstr "Можна використовувати лише двовимірні дані." + +#, c-format +msgid "%s: Wrong size for input argument #%d: %d-by-%d matrix expected.\n" +msgstr "" +"%s: помилкова розмірність вхідного параметра №%d: мала бути матриця %d на " +"%d.\n" + +#, c-format +msgid "%s: Wrong type for argument #%d: Real matrix expected.\n" +msgstr "" +"%s: помилковий тип параметра %d: слід використовувати матрицю дійсних " +"значень.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be >= %d.\n" +msgstr "" +"%s: помилкове значення вхідного параметра №%d: значення має бути >= %d.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: Must be %s or %s, an integer or a " +"vector of %d integers.\n" +msgstr "" +"%s: помилкове значення вхідного параметра №%d: слід використовувати %s або " +"%s, ціле число або вектор з %d цілих чисел.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument: Index range must be specified as a " +"scalar or %d-element vector.\n" +msgstr "" +"%s: помилкове значення вхідного параметра: діапазон індексів слід визначати " +"як скалярне значення або вектор з %d елементів.\n" + +msgid ".wav file does not contain the RIFF identifier." +msgstr "Файл .wav не містить ідентифікатора RIFF." + +msgid ".wav file does not contain the wave identifier." +msgstr "Файл .wav не містить ідентифікатора wave." + +msgid "Error reading .wav file." +msgstr "Помилка під час читання файла .wav." + +msgid "Error reading <fact-ck> chunk." +msgstr "Помилка під час читання фрагмента <fact-ck>." + +#, c-format +msgid "%s: An error occurred: %s is not supported.\n" +msgstr "%s: сталася помилка: %s не підтримується.\n" + +#, c-format +msgid "" +"%s: An error occurred: invalid file format. Error reading <%s> chunk.\n" +msgstr "" +"%s: сталася помилка: некоректний формат файла. Помилка читання фрагмента " +"<%s>.\n" + +msgid "Invalid .wav file: found data before format information." +msgstr "" +"Некоректний файл .wav: виявлено дані поза межами відомостей про формат." + +msgid "Incorrect chunk size information in RIFF file." +msgstr "Помилкові дані щодо розмірів фрагмента у файлі RIFF." + +msgid "Invalid wav format." +msgstr "Некоректний формат wav." + +msgid "Error reading wav file." +msgstr "Помилка читання файла wav." + +#, c-format +msgid "%s: An error occurred: Data compression format %s is not supported.\n" +msgstr "%s: сталася помилка: формат стискання даних %s не підтримується.\n" + +msgid "Cannot read .wav file with more than 16 bits per sample." +msgstr "Читання файла .wav у форматі 16 бітів на семпл неможливе." + +msgid "Sample limit vector must have 2 entries." +msgstr "Вектор обмеження семпла має складатися з двох записів 2." + +msgid "Invalid sample limits (use ascending order)." +msgstr "Некоректні межі семпла (слід впорядковувати за зростанням)." diff --git a/modules/sound/locales/zh_CN.po b/modules/sound/locales/zh_CN.po new file mode 100755 index 000000000..ef802fef1 --- /dev/null +++ b/modules/sound/locales/zh_CN.po @@ -0,0 +1,218 @@ +# Simplified Chinese translation for scilab +# Copyright (c) 2008 Rosetta Contributors and Canonical Ltd 2008 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2008. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2012-03-06 12:48+0000\n" +"Last-Translator: Wesh <Unknown>\n" +"Language-Team: Simplified Chinese <zh_CN@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: \n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "%s:不能读取第%d个输入参数。\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "%s:输入参数#%d的类型错误:应该为一个字符串。\n" + +#, c-format +msgid "%s: An error occurred: %s\n" +msgstr "%s:出现错误:%s\n" + +msgid "Cannot play file." +msgstr "无法播放文件。" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "%s:输入参数#%d的大小错误:应该为字符串。\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s:内存分配错误。\n" + +#, c-format +msgid "%s: Wrong input argument #%d: '%s' or '%s' expected.\n" +msgstr "%s:输入参数#%d错误:应该为'%s'或'%s'。\n" + +msgid "Scilab sound module not installed.\n" +msgstr "Scilab sound模块没有被安装。\n" + +msgid "Sound file handling" +msgstr "声音文件处理" + +msgid "FFT on a wav file" +msgstr "傅里叶分析wav声音文件" + +msgid "Fourier analysis of 0.5 seconds of sound parameters." +msgstr "0.5秒声音参数的傅里叶分析" + +msgid "A complete picture of the sound." +msgstr "声音的完整图像" + +msgid "see 'mapsound' function" +msgstr "查看‘mapsound’函数" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "%s:输入参数的数目错误:应该为%d到%d个参数。\n" + +#, c-format +msgid "%s: Cannot open file %s.\n" +msgstr "%s:无法打开文件%s。\n" + +msgid "Index range must be specified as a scalar or a 2 elements vector." +msgstr "" + +msgid "Sample limit vector must have 2 elements." +msgstr "" + +msgid "Sample limits out of range." +msgstr "采样限制超出范围。" + +msgid "Sample limits must be given in ascending order." +msgstr "" + +msgid "Error in file format." +msgstr "" + +msgid "Error while reading sound file." +msgstr "" + +msgid "Unrecognized data format." +msgstr "无法识别的数据格式。" + +msgid "Truncated data file." +msgstr "" + +#, c-format +msgid "%s: Wrong values for input argument: Filename must be a string.\n" +msgstr "%s:输入参数的值错误:文件名必须为一个字符串。\n" + +msgid "Data array must have 1- or 2-dimensions only." +msgstr "数据数组必须只能有1维或2维。" + +msgid "Data clipped during write to file." +msgstr "" + +msgid "Error while writing sound file." +msgstr "写声音文件时出错。" + +msgid "Mu-law can only be used with 8 bit data. Use method='linear' instead." +msgstr "Mu-law只能用于8位数据。使用了method='linear'。" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s:输入参数的数目错误,应该为%d个。\n" + +#, c-format +msgid "%s: Wrong number of output arguments.\n" +msgstr "%s:输出参数的数目错误。\n" + +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "%s:输出参数的数目错误。\n" + +#, c-format +msgid "%s: Failed to play the sound with command: %s.\n" +msgstr "%s:用命令播放声音失败:%s。\n" + +#, c-format +msgid "%s: Audio capabilities not available.\n" +msgstr "%s:不具有音频能力。\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "%s:输入参数#%d的大小错误。\n" + +msgid "only 8/16/24/32 bits for the encoding." +msgstr "只能为8/16/24/32位编码。" + +msgid "Unknown data format." +msgstr "未知的数据格式。" + +#, c-format +msgid "%s: Wrong number of input argument(s): At least %d expected.\n" +msgstr "%s:输入参数的数目错误:至少%d个。\n" + +msgid "Requires 2-D values only." +msgstr "值需要2D值。" + +#, c-format +msgid "%s: Wrong size for input argument #%d: %d-by-%d matrix expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for argument #%d: Real matrix expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be >= %d.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: Must be %s or %s, an integer or a " +"vector of %d integers.\n" +msgstr "%s:输入参数#%d的值错误:必须为%s或%s,一个整数,或者一个含有%d整数的向量。\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument: Index range must be specified as a " +"scalar or %d-element vector.\n" +msgstr "%s:输入参数的值错误:索引范围必须制定为一个标量,或有%d元素的向量。\n" + +msgid ".wav file does not contain the RIFF identifier." +msgstr ".wav文件不包含RIFF标识。" + +msgid ".wav file does not contain the wave identifier." +msgstr ".wav文件不包含wave标识。" + +msgid "Error reading .wav file." +msgstr "读.wav文件出错。" + +msgid "Error reading <fact-ck> chunk." +msgstr "读<fact-ck>块出错。" + +#, c-format +msgid "%s: An error occurred: %s is not supported.\n" +msgstr "%s:发生了一个错误:不支持%s。\n" + +#, c-format +msgid "" +"%s: An error occurred: invalid file format. Error reading <%s> chunk.\n" +msgstr "%s:发生了一个错误:不正确的文件格式。读<%s>区块时出错。\n" + +msgid "Invalid .wav file: found data before format information." +msgstr "不正确的.wav文件:在格式信息之前发现数据" + +msgid "Incorrect chunk size information in RIFF file." +msgstr "在RIFF文件中有不正确的块(chunk)大小信息。" + +msgid "Invalid wav format." +msgstr "不正确的wav格式。" + +msgid "Error reading wav file." +msgstr "读wav文件时发生错误。" + +#, c-format +msgid "%s: An error occurred: Data compression format %s is not supported.\n" +msgstr "%s:一个错误发生:不支持格式%s的数据压缩。\n" + +msgid "Cannot read .wav file with more than 16 bits per sample." +msgstr "无法读每个采样超过16位的.wav文件。" + +msgid "Sample limit vector must have 2 entries." +msgstr "采样限制向量必须有2个入口。" + +msgid "Invalid sample limits (use ascending order)." +msgstr "不正确的采样限制(使用升序)" diff --git a/modules/sound/locales/zh_TW.po b/modules/sound/locales/zh_TW.po new file mode 100755 index 000000000..330987a7f --- /dev/null +++ b/modules/sound/locales/zh_TW.po @@ -0,0 +1,218 @@ +# Traditional Chinese translation for scilab +# Copyright (c) 2008 Rosetta Contributors and Canonical Ltd 2008 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2008. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2011-09-01 15:21+0000\n" +"Last-Translator: tim loo <timloo0710@gmail.com>\n" +"Language-Team: Traditional Chinese <zh_TW@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: \n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "%s: 第 %d 輸入參數 的資料型態錯誤: 應該是字串型態.\n" + +#, c-format +msgid "%s: An error occurred: %s\n" +msgstr "%s: 錯誤產生: %s\n" + +msgid "Cannot play file." +msgstr "無法使用檔案." + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "%s: 第 %d 個輸入參數的資料長度錯誤: 應該是字串型態.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Memory 分配有誤.\n" + +#, c-format +msgid "%s: Wrong input argument #%d: '%s' or '%s' expected.\n" +msgstr "%s: 第 %d 輸入參數錯誤: 應為 '%s' 或 '%s'.\n" + +msgid "Scilab sound module not installed.\n" +msgstr "未安裝 Scilab sound 模組\n" + +msgid "Sound file handling" +msgstr "" + +msgid "FFT on a wav file" +msgstr "" + +msgid "Fourier analysis of 0.5 seconds of sound parameters." +msgstr "" + +msgid "A complete picture of the sound." +msgstr "" + +msgid "see 'mapsound' function" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input arguments: %d to %d expected.\n" +msgstr "%s: 輸入參數之數目錯誤: 應為 %d 到 %d 之數.\n" + +#, c-format +msgid "%s: Cannot open file %s.\n" +msgstr "%s: 無法開啟檔案 %s.\n" + +msgid "Index range must be specified as a scalar or a 2 elements vector." +msgstr "" + +msgid "Sample limit vector must have 2 elements." +msgstr "" + +msgid "Sample limits out of range." +msgstr "取樣的限制值超過範圍." + +msgid "Sample limits must be given in ascending order." +msgstr "" + +msgid "Error in file format." +msgstr "" + +msgid "Error while reading sound file." +msgstr "" + +msgid "Unrecognized data format." +msgstr "無法理解的資料格式" + +msgid "Truncated data file." +msgstr "" + +#, c-format +msgid "%s: Wrong values for input argument: Filename must be a string.\n" +msgstr "%s: 輸入參數數值錯誤: 檔案名稱必須為一字串.\n" + +msgid "Data array must have 1- or 2-dimensions only." +msgstr "數據陣列必須只有1- or 2-維 ." + +msgid "Data clipped during write to file." +msgstr "" + +msgid "Error while writing sound file." +msgstr "寫入聲音檔時有誤." + +msgid "Mu-law can only be used with 8 bit data. Use method='linear' instead." +msgstr "Mu-law 只能在8 bit數據使用。請改用method='linear'." + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s: 輸入參數之數目錯誤: 應為 %d 個.\n" + +#, c-format +msgid "%s: Wrong number of output arguments.\n" +msgstr "%s: 輸出參數數目錯誤.\n" + +#, c-format +msgid "%s: Wrong number of output argument(s).\n" +msgstr "%s: 輸出參數之數目錯誤(s).\n" + +#, c-format +msgid "%s: Failed to play the sound with command: %s.\n" +msgstr "" + +#, c-format +msgid "%s: Audio capabilities not available.\n" +msgstr "%s: 音訊功能尚未作用.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "%s: 第 %d 個輸入參數長度錯誤.\n" + +msgid "only 8/16/24/32 bits for the encoding." +msgstr "只有8/16/24/32 位元 可以用作編碼." + +msgid "Unknown data format." +msgstr "未知的資料格式." + +#, c-format +msgid "%s: Wrong number of input argument(s): At least %d expected.\n" +msgstr "%s: 輸入參數之數目錯誤(s): 最少應為 %d.\n" + +msgid "Requires 2-D values only." +msgstr "只需求2-D值." + +#, c-format +msgid "%s: Wrong size for input argument #%d: %d-by-%d matrix expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for argument #%d: Real matrix expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be >= %d.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: Must be %s or %s, an integer or a " +"vector of %d integers.\n" +msgstr "%s:輸入參數的值有誤#%d: 必須是%s or %s,整數或者是%d個整數的向量.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument: Index range must be specified as a " +"scalar or %d-element vector.\n" +msgstr "%s:輸入參數的值有誤:索引值的範圍必須設定成純量或是%d-元素向量.\n" + +msgid ".wav file does not contain the RIFF identifier." +msgstr ".wav檔裏沒有 RIFF 指示符號." + +msgid ".wav file does not contain the wave identifier." +msgstr ".wav檔裏沒有wave 指示符號." + +msgid "Error reading .wav file." +msgstr "讀取.wav 檔有誤." + +msgid "Error reading <fact-ck> chunk." +msgstr "讀<fact-ck>區塊有誤." + +#, c-format +msgid "%s: An error occurred: %s is not supported.\n" +msgstr "%s: 一個錯誤發生 %s 並不支援.\n" + +#, c-format +msgid "" +"%s: An error occurred: invalid file format. Error reading <%s> chunk.\n" +msgstr "%s: 一個錯誤發生: 無效的檔案格式. 讀取大量<%s> 發生錯誤.\n" + +msgid "Invalid .wav file: found data before format information." +msgstr "無效的.wav檔:在格式資訊中發現資料" + +msgid "Incorrect chunk size information in RIFF file." +msgstr "RIFF 檔案中有不正確的區塊大小資訊" + +msgid "Invalid wav format." +msgstr "無法的wav 格式" + +msgid "Error reading wav file." +msgstr "讀取.wav 檔有誤." + +#, c-format +msgid "%s: An error occurred: Data compression format %s is not supported.\n" +msgstr "%s: 錯誤: 未支持資料壓縮格式 %s .\n" + +msgid "Cannot read .wav file with more than 16 bits per sample." +msgstr "不能用每個樣本大於16 bits 才讀.wav檔" + +msgid "Sample limit vector must have 2 entries." +msgstr "取樣的極限向量只能有2個輸入值." + +msgid "Invalid sample limits (use ascending order)." +msgstr "無效的取樣限制(使用遞減順序)." diff --git a/modules/sound/macros/analyze.bin b/modules/sound/macros/analyze.bin Binary files differnew file mode 100755 index 000000000..2a946c930 --- /dev/null +++ b/modules/sound/macros/analyze.bin diff --git a/modules/sound/macros/analyze.sci b/modules/sound/macros/analyze.sci new file mode 100755 index 000000000..f5de115f2 --- /dev/null +++ b/modules/sound/macros/analyze.sci @@ -0,0 +1,26 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ???? - INRIA - Scilab +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +function analyze (w,fmin,fmax,rate,points) + // Make a frequency plot of the signal w with sampling rate. + // The data must be at least points long. + // The maximal frequency plotted will be fmax, the minimal fmin. + [lhs,rhs]=argn(0); + if ( rhs <= 4 ) then points=8192 ; end ; + if ( rhs <= 3 ) then rate=0; end ; + if ( rhs <= 2 ) then fmax=1500; end ; + if ( rhs <= 1 ) then fmin=10; end ; + defaultrate=22050; + if rate==0; rate=defaultrate; end; + v=w(1:points); + f=abs(fft(v,1)); + i=fmin/rate*points:fmax/rate*points; + fr=i/points*rate; + plot2d(fr',f(i)'); +endfunction diff --git a/modules/sound/macros/auread.bin b/modules/sound/macros/auread.bin Binary files differnew file mode 100755 index 000000000..cf20e24fb --- /dev/null +++ b/modules/sound/macros/auread.bin diff --git a/modules/sound/macros/auread.sci b/modules/sound/macros/auread.sci new file mode 100755 index 000000000..5be614f5c --- /dev/null +++ b/modules/sound/macros/auread.sci @@ -0,0 +1,216 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ???? - INRIA - Scilab +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +function [y,Fs,bits]=auread(aufile,ext) + + //Utility fct: reads .au sound file. + //auread(aufile) loads a sound file specified by the string aufile, + //returning the sampled data in y. The .au extension is appended + //if no extension is given. Amplitude values are in the range [-1,+1]. + //Supports multi-channel data in the following formats: + //8-bit mu-law, 8-, 16-, and 32-bit linear, and floating point. + + // [y,Fs,bits]=auread(aufile) returns the sample rate (Fs) in Hertz + // and the number of bits per sample used to encode the + // data in the file. + + // auread(aufile,n) returns the first n samples from each + // channel in the file. + // auread(aufile,[n1,n2]) returns samples n1 through n2 from + // each channel in the file. + // siz=auread(aufile,'size') returns the size of the audio data contained + // in the file in place of the actual audio data, returning the + // vector siz=[samples channels]. + + [nargout,nargin] = argn(0); + + if nargin>2 then + error(msprintf(gettext("%s: Wrong number of input arguments: %d to %d expected.\n"),"auread",1,2)); + end + // Append .au extension if it's missing: + if strindex(aufile,".")==[] then + aufile = aufile+".au"; + end + + [fid,junk] = mopen(aufile,"rb",0); + if junk<0 then + error(msprintf(gettext("%s: Cannot open file %s.\n"),"auread",aufile)); + end + + snd = read_sndhdr(fid); + + Fs = snd("rate")*snd("chans"); + bits = snd("bits"); + + // Determine if caller wants data: + if nargin<2 then + ext = []; + end + // Default - read all samples + exts = prod(size(ext)); + + if ext <> [] then + if convstr(ext)=="size" then + // Caller doesn't want data - just data size: + mclose(fid); + y = [snd("samples"),snd("chans")]; + return + elseif exts>2 then + error(msprintf(gettext("%s: An error occurred: %s\n"),"auread",gettext("Index range must be specified as a scalar or a 2 elements vector."))); + elseif exts==1 then + ext = [1,ext]; + end + end + + // Read data: + + snd = read_sndata(fid,snd,ext); + y = snd("data"); + mclose(fid); + +endfunction + + +function [new_snd]=read_sndata(fid,snd,ext) + new_snd=[]; + SamplesPerChannel = snd("samples"); + BytesPerSample = snd("bits")/8; + // format: + if snd("format")==1 then + dtype = "ucb"; // 8-bit mu-law + elseif snd("format")==2 then + dtype = "cb"; // 8-bit linear + elseif snd("format")==3 then + dtype = "sb"; // 16-bit linear + elseif snd("format")==5 then + dtype = "ib"; // 32-bit linear + elseif snd("format")==6 then + dtype = "fb"; // Single precision + elseif snd("format")==7 then + dtype = "db"; // Double-precision + else + error("Unrecognized data format.") + end + + // sample range to read: + if ext==[] then + ext = [1,SamplesPerChannel]; + // all samples + else + if prod(size(ext))~=2 then + error(msprintf(gettext("%s: An error occurred: %s\n"),"read_sndata",gettext("Sample limit vector must have 2 elements."))); + end + if ext(1)<1|ext(2)>SamplesPerChannel then + error(msprintf(gettext("%s: An error occurred: %s\n"),"read_sndata",gettext("Sample limits out of range."))); + end + if ext(1)>ext(2) then + error(msprintf(gettext("%s: An error occurred: %s\n"),"read_sndata",gettext("Sample limits must be given in ascending order."))); + end + end + // Skip over leading samples: + if ext(1)>1 then + // Skip over leading samples, if specified: + mseek(BytesPerSample*(ext(1)-1)*snd("chans"),fid,"cur"); + if (merror(fid) <> 0) then + error(msprintf(gettext("%s: An error occurred: %s\n"),"read_sndata",gettext("Error in file format."))); + end + end + + // Read desired data: + nSPCext = ext(2)-ext(1)+1; + // # samples per channel in extraction range + extSamples = snd("chans")*nSPCext; + data=mget(snd("chans")*nSPCext,dtype,fid); + // Rearrange data into a matrix with one channel per column: + // XXXX A finir + data = matrix(data,snd("chans"),nSPCext); + // Convert and normalize data range: + if snd("format")==1 then + // 8-bit mu-law + data = mu2lin(data); + elseif snd("format")==2 then + // 8-bit linear + data = data*(2^(-7)); + elseif snd("format")==3 then + // 16-bit linear + data = data*(2^(-15)); + elseif snd("format")==5 then + // 32-bit linear + data = data*(2^(-31)); + elseif snd("format")==6|snd("format")==7 then + // Float/Double + //a = min(data); + //b = max(data); + //data = (data-a)/(b-a)*2-1; + end + new_snd = snd; + new_snd("data")=data + return +endfunction + +function [snd]=read_sndhdr(fid) + // Read file header: + snd=tlist(["snd","offset","databytes","format","rate","chans","data","info","bits","samples","magic"]) + + snd.magic = ascii(mget(4,"c",fid)) + if snd.magic~=".snd", + error("Not a .au sound file.") + end + + snd("offset")=mget(1,"uib",fid) + snd("databytes")=mget(1,"uib",fid) + snd("format")=mget(1,"uib",fid) + snd("rate")=mget(1,"uib",fid) + snd("chans")=mget(1,"uib",fid) + + // Directly determine how long info string is: + info_len = snd("offset")-24; + [info,cnt] = mtlb_fread(fid,info_len,"char"); + snd("info")=stripblanks(ascii(info')) + if cnt~=info_len then + error(msprintf(gettext("%s: An error occurred: %s\n"),"read_sndhdr",gettext("Error while reading sound file."))); + end + + // Determine file length + mseek(0,fid,"end"); + // Go to end of file + file_len = mtell(fid); + // Get position in bytes + mseek(snd("offset"),fid,"set"); + // Reposition file pointer + snd("databytes")=file_len-snd("offset") + + // Interpret format: + if snd("format")==1 then + snd("bits")=8 + // 8-bit mu-law + elseif snd("format")==2 then + snd("bits")=8 + // 8-bit linear + elseif snd("format")==3 then + snd("bits")=16 + // 16-bit linear + elseif snd("format")==5 then + snd("bits")=32 + // 32-bit linear + elseif snd("format")==6 then + snd("bits")=32 + // Single precision + elseif snd("format")==7 then + snd("bits")=64 + // Double-precision + else + error(msprintf(gettext("%s: An error occurred: %s\n"),"read_sndhdr",gettext("Unrecognized data format."))); + end + // Determine # of samples per channel: + snd("samples")=snd("databytes")*8/snd("bits")/snd("chans") + if snd("samples")~=fix(snd("samples")) then + error(msprintf(gettext("%s: An error occurred: %s\n"),"read_sndhdr",gettext("Truncated data file."))); + end +endfunction diff --git a/modules/sound/macros/auwrite.bin b/modules/sound/macros/auwrite.bin Binary files differnew file mode 100755 index 000000000..b4a4c6070 --- /dev/null +++ b/modules/sound/macros/auwrite.bin diff --git a/modules/sound/macros/auwrite.sci b/modules/sound/macros/auwrite.sci new file mode 100755 index 000000000..50b362704 --- /dev/null +++ b/modules/sound/macros/auwrite.sci @@ -0,0 +1,168 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ???? - INRIA - Scilab +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +function []=auwrite(y,Fs,nbits,method,aufile) + //Write .au sound file. + //auwrite(y,aufile) writes a sound file specified by the + //string aufile. The data should be arranged with one channel + //per column. Amplitude values outside the range [-1,+1] are + //clipped prior to writing. + // + //Supports multi-channel data for 8-bit mu-law, and 8- and + //16-bit linear formats: + // + //auwrite(y,Fs,aufile) specifies the sample rate of the data + //in Hertz. + // + //auwrite(y,Fs,bits,aufile) selects the number of bits in + //the encoder. Allowable settings are bits=8 and bits=16. + // + //auwrite(y,Fs,bits,method,aufile) allows selection of the + //encoding method, which can be either 'mu' or 'linear'. + //Note that mu-law files must be 8-bit. By default, method='mu'. + + // test : + // auwrite(y,44100,8,'mu','poo.au') + // aplay -c 1 -f MU_LAW --rate=22050 poo.au + // + + // Get default: + [nargout,nargin] = argn(0) + Fs_pref = 22050; + nbits_pref = 8; + method_pref = "mu"; + + if nargin==1 then + error(msprintf(gettext("%s: Wrong number of input arguments: %d to %d expected.\n"),"auwrite",2,5)); + elseif nargin>5 then + error(msprintf(gettext("%s: Wrong number of input arguments: %d to %d expected.\n"),"auwrite",2,5)); + elseif nargin==4 then + aufile = method; + method = method_pref; + elseif nargin==3 then + aufile = nbits; + method = method_pref; + nbits = nbits_pref; + elseif nargin==2 then + aufile = Fs; + method = method_pref; + nbits = nbits_pref; + Fs = Fs_pref; + end + + if ~(type(aufile)==10) then + error(msprintf(gettext("%s: Wrong values for input argument: Filename must be a string.\n"),"auwrite")); + end + if strindex(aufile,".")==[] then + aufile = aufile+".au"; + end + + [fid,junk] = mopen(aufile,"wb",0) // Big-endian + if junk<0 then + error(msprintf(gettext("%s: Cannot open file %s.\n"),"auwrite",aufile)); + end + + if length(size(y)) > 2 then + error(msprintf(gettext("%s: An error occurred: %s\n"),"auwrite",gettext("Data array must have 1- or 2-dimensions only."))); + end + if size(y,2)==1 then + y = y'; + end + + // Clip data to normalized range [-1,+1]: + i = matrix(find(abs(y)>1),1,-1); + if ~(i==[]) then + y(i) = sign(y(i)); + warning(gettext("Data clipped during write to file.")); + end + + snd = write_sndhdr(fid,Fs,nbits,method,size(y)); + + if write_sndata(fid,snd,y) then + error(msprintf(gettext("%s: An error occurred: %s\n"),"auwrite",gettext("Error while writing sound file."))); + end + mclose(fid); +endfunction + +function [status]=write_sndata(fid,snd,data) + status = 0; + if snd("format")==1 then + dtype = "uc"; + data = lin2mu(data); + elseif snd("format")==2 then + dtype = "c";// 'int8'; + data = round(data*(2^7-1)); + elseif snd("format")==3 then + dtype = "sb";// 'int16" + data = round(data*(2^15-1)); + elseif snd("format")==5 then + dtype = "ib";// 'int32" + data = round(data*(2^31-1)); + elseif snd("format")==6 then + dtype = "fb"; + // + elseif snd("format")==7 then + dtype = "db";// double precision + // + else + status = -1; + return + end + total_samples = snd("samples")*snd("chans"); + mput(data,dtype,fid); +endfunction + +function [snd]=write_sndhdr(fid,Fs,nbits,method,sz) + // write header part + if method=="mu" then + if nbits~=8 then + error(msprintf(gettext("%s: An error occurred: %s\n"),"auwrite",gettext("Mu-law can only be used with 8 bit data. Use method=''linear'' instead."))); + end + snd.format = 1; + snd.bits = 8; + elseif method=="linear" then + if nbits==8 then + snd.format=2 // 8-bit linear + snd.bits=8 + elseif nbits==16 then + snd.format=3 // 16-bit linear + snd.bits=16 + elseif nbits==32 then + snd.format=5 // 32-bit linear + snd.bits=32; + elseif nbits==64 then + snd.format=7; // Double-precision + snd.bits=64; + else + error(msprintf(gettext("%s: An error occurred: %s\n"),"auwrite",gettext("Unrecognized data format."))); + return + end + else + error(msprintf(gettext("%s: An error occurred: %s\n"),"auwrite",gettext("Unrecognized data format."))); + end + + // Define sound header structure: + snd("samples")=sz(2) + snd("chans")=sz(1) + total_samples = snd("samples")*snd("chans"); + bytes_per_sample = ceil(snd("bits")/8); + snd("rate")=Fs + snd("databytes")=bytes_per_sample*total_samples + snd("offset")=28 + snd("info")="SCI0"; + + mput(ascii(".snd"),"c",fid); // magic number + mput(snd("offset"),"uib",fid); // data location + mput(snd("databytes"),"uib",fid); // size in bytes + mput(snd("format"),"uib",fid); // data format + // + mput(snd("rate")/snd("chans"),"uib",fid); // sample rate + mput(snd("chans"),"uib",fid); // channels + mput(ascii(snd("info")),"c",fid); // info +endfunction diff --git a/modules/sound/macros/buildmacros.bat b/modules/sound/macros/buildmacros.bat new file mode 100755 index 000000000..f464ac666 --- /dev/null +++ b/modules/sound/macros/buildmacros.bat @@ -0,0 +1,6 @@ +rem Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +rem Copyright (C) 2007 - INRIA - Allan CORNET +rem +rem This file is distributed under the same license as the Scilab package. + +@..\..\..\bin\scilex -nwni -ns -e exec('buildmacros.sce');quit;
\ No newline at end of file diff --git a/modules/sound/macros/buildmacros.sce b/modules/sound/macros/buildmacros.sce new file mode 100755 index 000000000..dbe343894 --- /dev/null +++ b/modules/sound/macros/buildmacros.sce @@ -0,0 +1,16 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2005 - INRIA - Allan CORNET +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +//------------------------------------ +if (isdef("genlib") == %f) then + exec(SCI+"/modules/functions/scripts/buildmacros/loadgenlib.sce"); +end +//------------------------------------ +genlib("soundlib","SCI/modules/sound/macros",%f,%t); +//------------------------------------ diff --git a/modules/sound/macros/cleanmacros.bat b/modules/sound/macros/cleanmacros.bat new file mode 100755 index 000000000..9356615c4 --- /dev/null +++ b/modules/sound/macros/cleanmacros.bat @@ -0,0 +1,8 @@ +rem Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +rem Copyright (C) 2007 - INRIA - Allan CORNET +rem +rem This file is distributed under the same license as the Scilab package. + +@del *.bin 2>NUL +@del lib 2>NUL +@del names 2>NUL
\ No newline at end of file diff --git a/modules/sound/macros/lib b/modules/sound/macros/lib Binary files differnew file mode 100755 index 000000000..b95665a07 --- /dev/null +++ b/modules/sound/macros/lib diff --git a/modules/sound/macros/lin2mu.bin b/modules/sound/macros/lin2mu.bin Binary files differnew file mode 100755 index 000000000..5076582a7 --- /dev/null +++ b/modules/sound/macros/lin2mu.bin diff --git a/modules/sound/macros/lin2mu.sci b/modules/sound/macros/lin2mu.sci new file mode 100755 index 000000000..c0365d436 --- /dev/null +++ b/modules/sound/macros/lin2mu.sci @@ -0,0 +1,23 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ???? - INRIA - Scilab +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +function [mu]=lin2mu(y) + //Utility fct: converts linear signal to mu-law encoding. + // mu = lin2mu(y) converts linear audio signal amplitudes + // in the range -1 <= y <= 1 to mu-law in the range 0 <= mu <= 255. + SCALE = 32768; + BIAS = 132; + CLIP = 32635; + OFFSET = 335; + y = SCALE*y; + sig = sign(y)+bool2s(y==0); + y = min(abs(y),CLIP); + [f,e] = frexp(y+BIAS); + mu = 64*sig-16*e-fix(32*f)+OFFSET; +endfunction diff --git a/modules/sound/macros/loadwave.bin b/modules/sound/macros/loadwave.bin Binary files differnew file mode 100755 index 000000000..44fdd253f --- /dev/null +++ b/modules/sound/macros/loadwave.bin diff --git a/modules/sound/macros/loadwave.sci b/modules/sound/macros/loadwave.sci new file mode 100755 index 000000000..2904b948f --- /dev/null +++ b/modules/sound/macros/loadwave.sci @@ -0,0 +1,48 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Allan CORNET +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +// ============================================================================= +function varargout = loadwave(filename) + + lhs = argn(1); + rhs = argn(2); + + if rhs <> 1 then + error(msprintf(gettext("%s: Wrong number of input arguments: %d expected.\n"),"loadwave",1)); + return + end + + if lhs > 2 then + error(msprintf(gettext("%s: Wrong number of output arguments.\n"),"loadwave")); + return + end + + if ~(type(filename) == 10) then + error(msprintf(gettext("%s: Wrong type for input argument #%d: A string expected.\n" ),"loadwave",1)); + return + end + + if ~isfile(filename) then + error(msprintf(gettext("%s: Cannot open file %s.\n"),"loadwave",filename)); + end + + y = wavread(filename); + + if (lhs == 1) then + varargout = list(y); + elseif (lhs == 2) then + info_wav = wavread(filename,"info"); + varargout = list(y, info_wav); + else + error(msprintf(gettext("%s: Wrong number of output argument(s).\n" ),"loadwave")); + return + end + +endfunction +// ============================================================================= diff --git a/modules/sound/macros/mapsound.bin b/modules/sound/macros/mapsound.bin Binary files differnew file mode 100755 index 000000000..3d2d6a3e9 --- /dev/null +++ b/modules/sound/macros/mapsound.bin diff --git a/modules/sound/macros/mapsound.sci b/modules/sound/macros/mapsound.sci new file mode 100755 index 000000000..ce83d7f72 --- /dev/null +++ b/modules/sound/macros/mapsound.sci @@ -0,0 +1,45 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ???? - INRIA - Scilab +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +function mapsound (w,dt,fmin,fmax,simpl,rate) + // Plots a sound map for a sound. + // It does FFT at time increments dt. + // rate is the sampling rate. + // simpl points are collected for speed reasons. + + [lhs,rhs]=argn(0); + if ( rhs <= 5 ) then rate=0;end + if ( rhs <= 4 ) then simpl=1; end ; + if ( rhs <= 3 ) then fmax=1500; end ; + if ( rhs <= 2 ) then fmin=100; end ; + if ( rhs <= 1 ) then dt=0.1; end ; + n=prod(size(w)); + defaultrate=22050; + if rate==0; rate=defaultrate; end; + dp=dt*rate; + points=2^floor(log(dp)/log(2)); + ind=fmin/rate*points/simpl:fmax/rate*points/simpl; + f=abs(fft(w(1:points),1)); + f=sum(matrix(f,points/simpl,simpl),"c")'; + M=f(ind); + i=1; + i=i+dp; + while i+points <= n; + f=abs(fft(w(i:i+points-1),1)); + f=sum(matrix(f,points/simpl,simpl),"c")'; + M=[M;f(ind)]; + i=i+dp; + end; + [nl,nc]=size(M); + if nl==1 ; return;end + x_abs= (0:(nl-1))*(n/rate)/(nl-1); + y_abs= (0:(nc-1))/(nc-1); + y_abs= fmin*(1-y_abs) + fmax*(y_abs) + grayplot(x_abs,y_abs,-M) +endfunction diff --git a/modules/sound/macros/mu2lin.bin b/modules/sound/macros/mu2lin.bin Binary files differnew file mode 100755 index 000000000..21f8f1ef9 --- /dev/null +++ b/modules/sound/macros/mu2lin.bin diff --git a/modules/sound/macros/mu2lin.sci b/modules/sound/macros/mu2lin.sci new file mode 100755 index 000000000..3c786df26 --- /dev/null +++ b/modules/sound/macros/mu2lin.sci @@ -0,0 +1,21 @@ +function [y]=mu2lin(mu) + //Utility fct: converts mu-law encoding to linear signal. + // y=mu2lin(mu) converts mu-law encoded 8-bit audio signals, + // stored in the range 0 <= mu <= 255, to + // linear signal amplitude in the range -s < y < s where + // s = 32124/32768 ~= .9803. The input mu is often obtained + // using mget(...,'uc') to read byte-encoded audio files. + // Translation of C program by: + // Craig Reese: IDA/Supercomputing Research Center + // Joe Campbell: Department of Defense + // 29 September 1989 + SCALE = 1/32768; + ETAB = [0,132,396,924,1980,4092,8316,16764]; + mu = 255-mu; + sig = mu>127; + e = fix(mu/16)-8*bool2s(sig)+1; + f = mu-fix(mu./16).*16; + y = f.*2.^(e+2); + e(:) = ETAB(e); + y = SCALE*(1-2*bool2s(sig)) .* (e+y); +endfunction diff --git a/modules/sound/macros/names b/modules/sound/macros/names new file mode 100755 index 000000000..9c6e8d83e --- /dev/null +++ b/modules/sound/macros/names @@ -0,0 +1,13 @@ +analyze +auread +auwrite +lin2mu +loadwave +mapsound +mu2lin +playsnd +savewave +sound +soundsec +wavread +wavwrite diff --git a/modules/sound/macros/playsnd.bin b/modules/sound/macros/playsnd.bin Binary files differnew file mode 100755 index 000000000..3d88bbe21 --- /dev/null +++ b/modules/sound/macros/playsnd.bin diff --git a/modules/sound/macros/playsnd.sci b/modules/sound/macros/playsnd.sci new file mode 100755 index 000000000..4dfcd17c1 --- /dev/null +++ b/modules/sound/macros/playsnd.sci @@ -0,0 +1,78 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ???? - INRIA - Scilab +// Copyright (C) ???? - ENPC +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +function [] = playsnd(y, rate, bits, aplay) + // play signal y at sample rate rate + // bits is unused + [lhs,rhs] = argn(0); + + // default values + if (rhs <= 2) then + bits = 16; + end + + if (rhs <= 1) then + rate = 22050; + end + + if rhs > 2 then + + if type(aplay) <> 10 then + error(msprintf(_("%s: Wrong type for input argument #%d: A string expected.\n"),"playsnd",3)); + end + + if size(aplay,"*") <> 1 then + error(msprintf(_("%s: Wrong size for input argument #%d: A string expected.\n"),"playsnd",3)); + end + + else + if rhs <= 3 then + if getos() == "Darwin" then + aplay = "afplay" + else + aplay = "aplay"; + end + end + end + + if getos() == "Windows" then + savewave(TMPDIR+"/_playsnd_.wav", y, rate); + PlaySound(TMPDIR+"/_playsnd_.wav"); + return + else + + // We should use a external C library here + if aplay <> "/dev/audio" then + savewave(TMPDIR+"/_playsnd_.wav", y, rate); + cmd = msprintf("%s %s > /dev/null 2>&1", aplay, TMPDIR + "/_playsnd_.wav"); + [res, stat, stderr] = unix_g(cmd); + if (stat <> 0) then + error(msprintf(_("%s: Failed to play the sound with command: %s.\n"), "playsnd", cmd)); + end + + else + [fp, www] = mopen("/dev/audio","wb", 0); + if www < 0 then + fp = -1; + end + + if fp == (-1) then + warning(msprintf(_("%s: Audio capabilities not available.\n"),"playsnd")); + return + end + + mput(lin2mu(y),"uc",fp); + mclose(fp); + + end + end + +endfunction diff --git a/modules/sound/macros/savewave.bin b/modules/sound/macros/savewave.bin Binary files differnew file mode 100755 index 000000000..921e64eff --- /dev/null +++ b/modules/sound/macros/savewave.bin diff --git a/modules/sound/macros/savewave.sci b/modules/sound/macros/savewave.sci new file mode 100755 index 000000000..ef951d31e --- /dev/null +++ b/modules/sound/macros/savewave.sci @@ -0,0 +1,257 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +// ============================================================================= +// WAVE Audio File Format +// http://ccrma.stanford.edu/courses/422/projects/WaveFormat/ +// http://www.digitalpreservation.gov/formats/fdd/fdd000001.shtml +// ============================================================================= +function savewave(filename,x,rate,nbits) + + // create_wavheader, write_ckinfo, write_wavedat functions only defined in savewave.sci + + function [x,fmt] = create_wavheader(x,rate,nbits) + + [channels, samples] = size(x); + if (samples == 1) then + x = x'; + [channels, samples] = size(x); + end + + // Clip data to normalized range [-1,+1]: + i = matrix(find(abs(x)>1),1,-1); + if ~(i == []) then + // Data clipped during write to file. + x(i) = sign(x(i)); + end + + // # bytes per sample to write + bytes_per_sample = ceil(nbits/8); + total_samples = samples * channels; + total_bytes = total_samples * bytes_per_sample; + + riff_cksize = 36 + total_bytes; + // Don't include 'RIFF' or its size field + fmt_cksize = 16; + // Don't include 'fmt' or its size field + data_cksize = total_bytes; + // Don't include 'data' or its size field + + // Determine pad bytes: + data_pad = data_cksize - fix(data_cksize./2).*2; + riff_cksize = riff_cksize + data_pad; + // + fmt_pad, always 0 + + ck= tlist(["ck","fid","Size","ID"]) ; + // Write RIFF chunk: + ck("fid") = fid; + ck("Size") = riff_cksize; + ck("ID") = "RIFF"; + write_ckinfo(ck); + + // Write WAVE: + ck("ID") = "WAVE"; + write_ckinfo(ck,1); + + // Write <fmt-ck>: + ck("ID") = "fmt "; + ck("Size") = fmt_cksize; + write_ckinfo(ck); + // Write <wave-format>: + fmt = tlist(["fmt","wFormatTag","nChannels","nSamplesPerSec","nAvgBytesPerSec","nBlockAlign","nBitsPerSample"]); + fmt("wFormatTag") = 1; + // Data encoding format = PCM + fmt("nChannels") = channels; + // Number of channels + fmt("nSamplesPerSec") = rate; + // Samples per second + fmt("nAvgBytesPerSec") = channels * bytes_per_sample * rate; + // Avg transfer rate + fmt("nBlockAlign") = channels * bytes_per_sample; + // Block alignment + fmt("nBitsPerSample") = nbits; + + // standard <PCM-format-specific> info + status = write_wavefmt(fid,fmt); + + // Write <data-ck>: + ck("ID") = "data"; + ck("Size") = data_cksize; + write_ckinfo(ck); + + endfunction + // ============================================================================= + function write_ckinfo(ck,sflg) + [nargout,nargin] = argn(0) + // WRITE_CKINFO: Writes next RIFF chunk, but not the chunk data. + // If optional sflg is set to nonzero, write SUBchunk info instead. + // Expects an open FID pointing to first byte of chunk header, + // and a chunk structure. + // ck.fid, ck.ID, ck.Size, ck.Data + if length(ck("ID"))<>4 then + error(msprintf(gettext("%s: Wrong size for input argument #%d.\n"),"write_ckinfo",1)); + end + + mput(ascii(ck("ID")),"c",ck("fid")); + + // Error condition + if (nargin == 1) then + // Write chunk size (skip if subchunk): + mput(ck("Size"),"ui",ck("fid")); + end + endfunction + // ============================================================================= + function [status] = write_wavedat(fid,fmt,data) + status = []; + // WRITE_WAVEDAT: Write WAVE data chunk + // Assumes fid points to the wave-data chunk + // Requires <wave-format> structure to be passed. + + status = 0; + + if fmt("wFormatTag") == 1 then + // PCM Format: + // Determine # bytes/sample - format requires rounding + // to next integer number of bytes: + BytesPerSample = ceil(fmt("nBitsPerSample")/8); + + select BytesPerSample + case 1 then + dtype = "uc"; // unsigned 8-bit + // Scale data according to bits/samples: [-1,+1] -> [0,255] + data = round((data+1)*255/2); + case 2 then + dtype = "s"; + // signed 16-bit + // Scale data according to bits/samples: [-1,+1] -> [-32768,+32767] + data = round((data+1)*65535/2)-32768; + case 3 then + dtype="c" + // signed 24-bit + // Scale data according to bits/samples: [-1,+1] -> [-8 388 608,+8 388 607] + data = round((data+1)*(2^24-1)/2)-(2^23); + case 4 then + dtype="i" + // signed 32-bit + // Scale data according to bits/samples: [-1,+1] -> [-2 147 483 648,+2 147 483 647] + data = round((data+1)*(2^32-1)/2)-(2^31); + + else + error(msprintf(gettext("%s: An error occurred: %s\n"),"savewave",gettext("only 8/16/24/32 bits for the encoding."))); + end + + // Write data, one row at a time (one sample from each channel): + [channels,samples] = size(data); + total_samples = samples * channels; + + //24-bits needs special treatment + if (BytesPerSample == 3) then + oct3 = (floor((data)/(2^16)));//msb + oct2 = (floor((data-(oct3*2^16))/(2^8))); + oct1 = (floor(data-(oct3*2^16)-(oct2*2^8)));//lsb + data_line = zeros(3*total_samples,1); + select channels + case 1 + data_line(1:3:$) = oct1(1,:)'; + data_line(2:3:$) = oct2(1,:)'; + data_line(3:3:$) = oct3(1,:)'; + case 2 + data_line(1:6:$) = oct1(1,:)'; + data_line(2:6:$) = oct2(1,:)'; + data_line(3:6:$) = oct3(1,:)'; + data_line(4:6:$) = oct1(2,:)'; + data_line(5:6:$) = oct2(2,:)'; + data_line(6:6:$) = oct3(2,:)'; + end + data_line = data_line'; + else + data_line = data; + end + + + try + mput(data_line,dtype,fid); + catch + status = -1; + return + end + // Error condition + // Determine if a pad-byte is appended to data chunk: + %v2_1$1 = total_samples * BytesPerSample; + if ( %v2_1$1 - fix(%v2_1$1./2).*2 ) then + mput(0,"uc",fid); + end + else + // Unknown wave-format for data. + error(msprintf(gettext("%s: An error occurred: %s\n"),"write_wavedat",gettext("Unknown data format."))); + end + return + endfunction + // ============================================================================= + function [status]=write_wavefmt(fid,fmt) + status = 0; + // WRITE_WAVEFMT: Write WAVE format chunk. + // Assumes fid points to the wave-format subchunk. + // Requires chunk structure to be passed, indicating + // the length of the chunk. + + // Create <wave-format> data: + + mput(fmt("wFormatTag"),"us",fid); + mput(fmt("nChannels"),"us",fid); + mput(fmt("nSamplesPerSec"),"ui",fid); + mput(fmt("nAvgBytesPerSec"),"ui",fid); + mput(fmt("nBlockAlign"),"us",fid); + + // Write format-specific info: + if ( fmt("wFormatTag") == 1 ) then + // Write standard <PCM-format-specific> info: + mput(fmt("nBitsPerSample"),"us",fid) + else + error("Unknown data format."); + end + endfunction + // ============================================================================= + + // savewave main + lhs = argn(1); + rhs = argn(2); + + if (rhs < 4) then + nbits = 16; + end; + + if (rhs < 3) then + rate = 22050; + end; + + if ~(type(filename) == 10) then + error(msprintf(gettext("%s: Wrong type for input argument #%d: A string expected.\n" ),"savewave",1)); + end + + if strindex(filename,".")==[] then + filename = filename+".wav"; + end + + [fid,%v] = mopen(filename,"wb",1); + + if (%v < 0) then + fid = -1; + end + + if ( fid == (-1) ) then + error(msprintf(gettext("%s: Cannot open file %s.\n"),"savewave",filename)); + end + + [x,fmt] = create_wavheader(x,rate,nbits); + status = write_wavedat(fid,fmt,x); + mclose(fid); + +endfunction +// ============================================================================= diff --git a/modules/sound/macros/sound.bin b/modules/sound/macros/sound.bin Binary files differnew file mode 100755 index 000000000..41708acfd --- /dev/null +++ b/modules/sound/macros/sound.bin diff --git a/modules/sound/macros/sound.sci b/modules/sound/macros/sound.sci new file mode 100755 index 000000000..eab057500 --- /dev/null +++ b/modules/sound/macros/sound.sci @@ -0,0 +1,44 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ???? - INRIA - Scilab +// Copyright (C) ???? - ENPC +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +function []=sound(y,fs,bits,aplay) + //SOUND Play vector as sound. + // SOUND(Y,FS) sends the signal in vector Y (with sample frequency + // FS) out to the speaker on platforms that support sound. Values in + // Y are assumed to be in the range -1.0 <= y <= 1.0. Values outside + // that range are clipped. Stereo sounds are played, on platforms + // that support it, when Y is an N-by-2 matrix. + // + // SOUND(Y) plays the sound at the default sample rate of 22050 Hz. + // + // SOUND(Y,FS,BITS) plays the sound using BITS bits/sample if + // possible. Most platforms support BITS=8 or 16. + // + // See also SOUNDSC. + [nargout,nargin] = argn(0) + if nargin<1 then + error(msprintf(gettext("%s: Wrong number of input argument(s): At least %d expected.\n"),"sound",1)); + end + if nargin<2 then + fs = 22050; + end + if nargin<3 then + bits = 16; + end + if nargin < 4 aplay="aplay"; end + // Make sure y is in the range +/- 1 + y = max(-1,min(y,1)); + // Make sure that there's one column + // per channel. + if length(size(y)) > 2 then + error(msprintf(gettext("%s: An error occurred: %s\n"),"sound",gettext("Requires 2-D values only."))); + end + playsnd(y,fs,bits,aplay); +endfunction diff --git a/modules/sound/macros/soundsec.bin b/modules/sound/macros/soundsec.bin Binary files differnew file mode 100755 index 000000000..daa44bbde --- /dev/null +++ b/modules/sound/macros/soundsec.bin diff --git a/modules/sound/macros/soundsec.sci b/modules/sound/macros/soundsec.sci new file mode 100755 index 000000000..77aa5ca76 --- /dev/null +++ b/modules/sound/macros/soundsec.sci @@ -0,0 +1,74 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ???? - INRIA - Scilab +// Copyright (C) ???? - ENPC +// Copyright (C) 2014 - Scilab Enterprises - Pierre-Aimé AGNEL +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +function [t]=soundsec (n,rate) + // Return [0,n) seconds of t parameter at frequency = rate (sample/sec) + // Always excludes the last sample if it arrives exactly at n seconds + [lhs,rhs]=argn(0); + + //set rate if not defined + if rhs <=1 ; rate=22050; end; + + //============================================================================== + // Format testing of the parameters + + //n must be a real positive scalar + if typeof(n)=="constant" + if isreal(n) + if ~isscalar(n) + //n is not a real positive scalar + error(999, msprintf(_("%s: Wrong size for input argument #%d: %d-by-%d matrix expected.\n"),"soundsec",1,1,1)); + end + else //n is not real + error(999, msprintf(_("%s: Wrong type for argument #%d: Real matrix expected.\n"),"soundsec",1)); + end + else //n is not a constant matrix + error(999, msprintf(_("%s: Wrong type for argument #%d: Real matrix expected.\n"),"soundsec",1)); + end + + //rate must be a real strictly positive scalar + if typeof(rate)=="constant" + if isreal(rate) + if ~isscalar(rate) + //rate is not a real positive scalar + error(999, msprintf(_("%s: Wrong size for input argument #%d: %d-by-%d matrix expected.\n"),"soundsec",2,1,1)); + end + else //rate is not real + error(999, msprintf(_("%s: Wrong type for argument #%d: Real matrix expected.\n"),"soundsec",2)); + end + else //rate is not a constant matrix + error(999, msprintf(_("%s: Wrong type for argument #%d: Real matrix expected.\n"),"soundsec",2)); + end + + //n and rate must be positive + if n<0 + error(999, msprintf(_("%s: Wrong value for input argument #%d: Must be >= %d.\n"),"soundsec",1,0)); + end + + if rate<0 + error(999, msprintf(_("%s: Wrong value for input argument #%d: Must be >= %d.\n"),"soundsec",2,0)); + end + //Format test end + //============================================================================== + + max_sample = floor(n*rate); + if (max_sample==n*rate) + //Remove the last sample if it falls exactly at the n-th seconds + max_sample = max_sample-1 + end + + if rate==0 + //avoid dividing by 0, if rate is 0 the result will be the empty set + rate=1; + end + + t = (0:max_sample)/rate; +endfunction diff --git a/modules/sound/macros/wavread.bin b/modules/sound/macros/wavread.bin Binary files differnew file mode 100755 index 000000000..39c698f73 --- /dev/null +++ b/modules/sound/macros/wavread.bin diff --git a/modules/sound/macros/wavread.sci b/modules/sound/macros/wavread.sci new file mode 100755 index 000000000..f6ab9ca0c --- /dev/null +++ b/modules/sound/macros/wavread.sci @@ -0,0 +1,351 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ???? - INRIA - Scilab +// Copyright (C) ???? - ENPC +// Copyright (C) 2008-2011 - DIGITEO - Allan CORNET +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +// ============================================================================= +function [y, Fs, bits] = wavread(wavfile, ext) + + y = []; + Fs = []; + bits = []; + + // Read Microsoft .wav sound file. + // y=wavread(wavfile) reads a .wav file specified by the string wavfile, + // returning the sampled data in y. The .wav extension is appended + // if no extension is given. + // Amplitude values are in the range [-1,+1]. + // [y,fs,bits]=wavread(wavfile) returns the sample rate (fs) in Hertz + // and the number of bits per sample (bits) used to encode the + // data in the file. + // [...]=wavread(wavfile,n) returns only the first n samples from each + // channel in the file. + // [...]=wavread(wavfile,[n1 n2]) returns only samples n1 through n2 from + // each channel in the file. + // siz=wavread(wavfile,"size") returns the size of the audio data contained + // in the file in place of the actual audio data, returning the + // vector siz=[samples channels]. + // infos=wavread(wavfile,"size") returns a vector with the information about actual + // audio data. + // vector infos = [wFormatTag, nChannels, nSamplesPerSec, + // nAvgBytesPerSec, nBlockAlign, + // nBitsPerSample, cbSize, nChannels, samples] + + + // Append .wav extension if necessary + if ( strindex(wavfile, ".") == [] ) then + wavfile = wavfile + ".wav"; + end + + // Open the file + [fid, err] = mopen(wavfile, "rb", 1); // Little-endian + if (err < 0) then + error(msprintf(gettext("%s: Cannot open file %s.\n"), "wavread", wavfile)); + end + + // Handle ext optional argument + if (argn(2) < 2) then + ext = []; + end + + if (type(ext) == 10) then + ext = convstr(ext); + if (ext <> "size") & (ext <> "info") then + error(msprintf(gettext("%s: Wrong value for input argument #%d: Must be ""%s"" or ""%s"", an integer or a vector of %d integers.\n"), "wavread", 2, "size", "info", 2)); + end + elseif (type(ext) == 1) then + exts = size(ext, "*"); + if (exts > 2) then + error(msprintf(gettext("%s: Wrong value for input argument: Index range must be specified as a scalar or %d-element vector.\n"), "wavread", 2)); + end + if (exts == 1) then + if (ext == 0) then + ext = "size"; // synonym for size + else + ext = [1, ext]; + end + end + else + error(msprintf(gettext("%s: Wrong value for input argument #%d: Must be ""%s"" or ""%s"", an integer or a vector of %d integers.\n"), "wavread", 2, "size", "info", 2)); + end + + Data = []; + ID = stripblanks(ascii(mget(4, "c", fid))); + Size = mget(1, "ui", fid); + if (convstr(ID) ~= "riff") then + error(msprintf(gettext("%s: An error occurred: %s\n"), "wavread", gettext(".wav file does not contain the RIFF identifier."))); + end + rifftype = mget(4, "c", fid); + dtype = convstr(ascii(rifftype)'); + if (dtype ~= "wave") then + error(msprintf(gettext("%s: An error occurred: %s\n"), "wavread", gettext(".wav file does not contain the wave identifier."))); + end + + // Find optional chunks + found_fmt = 0; + found_data = 0; + while ~found_data then + [ID, Size] = find_cktype(fid); + select ID + case "fact" then + total_bytes = Size; + orig_pos = mtell(fid); + nbytes = 4; + // # of required bytes in <fact-ck> header + if total_bytes < nbytes then + error(msprintf(gettext("%s: An error occurred: %s\n"), "wavread", gettext("Error reading .wav file."))); + end + factdata = mget(1, "ui", fid); // Samples per second + rbytes = total_bytes - (mtell(fid) - orig_pos); + if rbytes then + mseek(rbytes, fid, "cur"); + if (merror(fid) <> 0) then + error(msprintf(gettext("%s: An error occurred: %s\n"), "wavread", gettext("Error reading <fact-ck> chunk."))); + end + end + + // bug 4037 + case "bext" then + error(msprintf(gettext("%s: An error occurred: %s is not supported.\n"), "wavread", "Broadcast Wave Format")); + return + + // bug 4832 - Sampler Chunk + case "smpl" then + error(msprintf(gettext("%s: An error occurred: invalid file format. Error reading <%s> chunk.\n"), "wavread", ID)); + return + + case "fmt" then + found_fmt = 1; + [wFormatTag, nChannels, nSamplesPerSec, nAvgBytesPerSec, nBlockAlign, nBitsPerSample, cbSize] = read_wavefmt(fid, Size); + + case "data" then + + found_data = 1; + if ~found_fmt then + error(msprintf(gettext("%s: An error occurred: %s\n"), "wavread", gettext("Invalid .wav file: found data before format information."))); + end + if (ext == "size") | (ext == "info") | (~(ext == [])) & and(ext == 0) then + // Caller just wants data size: + samples = read_wavedat(fid, Size ,wFormatTag, nChannels, nBitsPerSample, -1); + mclose(fid); + if (ext == "info") then + y = [wFormatTag, nChannels, nSamplesPerSec, nAvgBytesPerSec, nBlockAlign, nBitsPerSample, cbSize, nChannels, samples]; + else // "size" + y = [nChannels, samples]; + end + else + y = read_wavedat(fid, Size ,wFormatTag, nChannels, nBitsPerSample, ext); + mclose(fid); + end + + else + mseek(Size, fid, "cur") + if (merror(fid) <> 0) then + error(msprintf(gettext("%s: An error occurred: %s\n"), "wavread", gettext("Incorrect chunk size information in RIFF file."))) + end + end + end + Fs = nSamplesPerSec; + if ( wFormatTag == 1 | wFormatTag == 3) then + bits = (nBlockAlign / nChannels) * 8; + else + // unknown + bits = []; + end +endfunction +// ============================================================================= +function [ID, Size] = find_cktype(fid) + ID = stripblanks(ascii(mget(4, "c", fid))); + Size = mget(1, "ui", fid); +endfunction +// ============================================================================= +function [wFormatTag, nChannels, nSamplesPerSec, nAvgBytesPerSec, nBlockAlign, nBitsPerSample, cbSize] = read_wavefmt(fid, total_bytes) + orig_pos = mtell(fid); + nbytes = 14; // # of required bytes in header + + if total_bytes < nbytes then + error(msprintf(gettext("%s: An error occurred: %s\n"), "read_wavefmt", gettext("Error reading .wav file."))); + end + + // Read wav data: + wFormatTag = mget(1, "us", fid); // Data encoding format + nChannels = mget(1, "us", fid); // Number of channels + nSamplesPerSec = mget(1, "ui", fid); // Samples per second + nAvgBytesPerSec = mget(1, "ui", fid); // Avg transfer rate + nBlockAlign = mget(1, "us", fid); // Block alignment + if (and(wFormatTag ~= [1 3])) then + error(msprintf(gettext("%s: An error occurred: %s\n"), "find_cktype", gettext("Invalid wav format."))); + else + [cbSize, nBitsPerSample] = read_fmt_pcm(fid, total_bytes); + end + + rbytes = total_bytes - (mtell(fid) - orig_pos); + if rbytes then + mseek(rbytes, fid, "cur") + if (merror(fid) <> 0) then + error(msprintf(gettext("%s: An error occurred: %s\n"), "read_wavefmt", gettext("Error reading .wav file."))); + end + end +endfunction +// ============================================================================= +function [cbSize, nBitsPerSample] = read_fmt_pcm(fid, total_bytes) + nbytes = 14; + cbSize = []; + nBitsPerSample = []; + // # of bytes already read + if (total_bytes < nbytes + 2) then + error(msprintf(gettext("%s: An error occurred: %s\n"), "find_cktype", gettext("Error reading wav file."))); + end + nBitsPerSample = mget(1, "us", fid); + nbytes = nbytes + 2; + if (total_bytes > nbytes) then + if (total_bytes >= nbytes + 2) then + cbSize = mget(1, "us", fid); + nbytes = nbytes + 2; + end + if (total_bytes > nbytes) then + mseek(total_bytes - nbytes, fid, "cur") + if (merror(fid) <> 0) then + error(msprintf(gettext("%s: An error occurred: %s\n"), "find_cktype", gettext("Error reading wav file."))); + end + end + end +endfunction +// ============================================================================= +function Data = read_wavedat(fid, Size, wFormatTag, nChannels, nBitsPerSample, ext) + fmt_msg = []; + select wFormatTag + case 1 then + // PCM Format: + Data = read_dat_pcm(fid, Size, nChannels, nBitsPerSample, ext, wFormatTag); + case 2 then + fmt_msg = "Microsoft ADPCM"; + case 3 then + // normalized floating-point + Data = read_dat_pcm(fid, Size, nChannels, nBitsPerSample, ext, wFormatTag); + case 6 then + fmt_msg = "CCITT a-law"; + case 7 then + fmt_msg = "CCITT mu-law"; + case 17 then + fmt_msg = "IMA ADPCM"; + case 34 then + fmt_msg = "DSP Group TrueSpeech TM"; + case 49 then + fmt_msg = "GSM 6.10"; + case 50 then + fmt_msg = "MSN Audio"; + case 257 then + fmt_msg = "IBM Mu-law"; + case 258 then + fmt_msg = "IBM A-law"; + case 259 then + fmt_msg = "IBM AVC Adaptive Differential"; + else + fmt_msg = "Format #" + string(wFormatTag); + end + if ~(fmt_msg == []) then + error(msprintf(gettext("%s: An error occurred: Data compression format %s is not supported.\n"), "read_wavedat", fmt_msg)); + end +endfunction +// ============================================================================= +function Data = read_dat_pcm(fid,total_bytes , nChannels, nBitsPerSample, ext, wFormatTag) + // Determine # bytes/sample - format requires rounding + // to next integer number of bytes: + BytesPerSample = ceil(nBitsPerSample / 8); + + select BytesPerSample + case 1 then // unsigned 8-bit + dtype = "uc"; + case 2 then // signed 16-bit + dtype = "s"; + case 3 then // signed 24-bit + dtype = "c"; + case 4 then // signed 32-bit (long) + if wFormatTag == 3 then + dtype = "f"; + else + dtype = "i"; + end + else + error(msprintf(gettext("%s: An error occurred: %s\n"), "read_dat_pcm", gettext("Cannot read .wav file with more than 16 bits per sample."))); + end// select BytesPerSample + + // # bytes in this chunk + total_samples = total_bytes / BytesPerSample; + SamplesPerChannel = total_samples / nChannels; + if ((~(ext == [])) & (ext == -1)) then + // Just return the samples per channel, and seek past data: + Data = SamplesPerChannel; + mseek(total_bytes, fid, "cur"); + return + end + if (ext == []) then + ext = [1, SamplesPerChannel]; + else + if (prod(size(ext)) ~= 2) then + error(msprintf(gettext("%s: An error occurred: %s\n"), "read_dat_pcm", gettext("Sample limit vector must have 2 entries."))); + return + end + if (ext(1) < 1) | (ext(2) > SamplesPerChannel) then + error(msprintf(gettext("%s: An error occurred: %s\n"), "read_dat_pcm", gettext("Sample limits out of range."))); + end + if (ext(1) > ext(2)) then + error(msprintf(gettext("%s: An error occurred: %s\n"), "read_dat_pcm", gettext("Invalid sample limits (use ascending order)."))); + end + end + + if (ext(1) > 1) then + // Skip if specified: + mseek(BytesPerSample * (ext(1) - 1) * nChannels, fid, "cur"); + end + + // Read data: + nSPCext = ext(2) - ext(1) + 1; + // # samples per channel in extraction range + extSamples = nChannels * nSPCext; + + //24-bits files need special treatment + if ( BytesPerSample == 3 ) then + Data_tmp = []; + Data_tmp = (mget(3 * nChannels * nSPCext, dtype, fid)); + oct1 = uint8(Data_tmp(1:3:$-1)); + oct2 = uint8(Data_tmp(2:3:$)); + oct3 = Data_tmp(3:3:$); + Data_tmp2 = (double(oct1) * (2^0) + double(oct2) * (2^8) + double(oct3) * (2^16)); + Data = matrix(Data_tmp2, [nChannels, nSPCext]); + else + Data = matrix(mget(nChannels * nSPCext, dtype, fid), [nChannels, nSPCext]); + end; + + // Skip trailing samples: + + mseek(BytesPerSample * (SamplesPerChannel - ext(2)) * nChannels, fid, "cur"); + + // Determine if a pad-byte is appended and skip if present: + junk = Size; + if ( junk - fix(junk./2).*2 ) then + mseek(1, fid, "cur"); + end + // Normalize data range in [-1 1] (min will hit -1) + select BytesPerSample + case 1 then + Data = (Data - 128) / 128; + case 2 then + Data = Data / 32768; + case 3 then + Data = Data / (2^23); + case 4 then + // wFormatTag == 3 already normalized + if wFormatTag <> 3 then + Data = Data / (2^31); + end + end; //normalization in range [-1 +1] +endfunction +// ============================================================================= diff --git a/modules/sound/macros/wavwrite.bin b/modules/sound/macros/wavwrite.bin Binary files differnew file mode 100755 index 000000000..692397af7 --- /dev/null +++ b/modules/sound/macros/wavwrite.bin diff --git a/modules/sound/macros/wavwrite.sci b/modules/sound/macros/wavwrite.sci new file mode 100755 index 000000000..904ee4905 --- /dev/null +++ b/modules/sound/macros/wavwrite.sci @@ -0,0 +1,33 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2005 - INRIA - Allan CORNET +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +// ========================================================================== +function [] = wavwrite(y,Fs,nbits,wavefile) + lhs = argn(1); + rhs = argn(2); + + Fs_pref = 22050; + nbits_pref = 16; + + // Parse inputs: + if ( (rhs < 2)| (rhs > 4) ) then + error(msprintf(gettext("%s: Wrong number of input arguments: %d to %d expected.\n"),"wavwrite",2,3)); + elseif ( rhs < 3 ) then + wavefile = Fs; + Fs = Fs_pref; + nbits = nbits_pref; + elseif ( rhs < 4 ) then + wavefile = nbits; + nbits = nbits_pref; + end + + savewave(wavefile,y,Fs,nbits); + +endfunction +// ========================================================================== diff --git a/modules/sound/sci_gateway/c/.deps/.dirstamp b/modules/sound/sci_gateway/c/.deps/.dirstamp new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/modules/sound/sci_gateway/c/.deps/.dirstamp diff --git a/modules/sound/sci_gateway/c/.deps/libscisound_la-gw_sound.Plo b/modules/sound/sci_gateway/c/.deps/libscisound_la-gw_sound.Plo new file mode 100755 index 000000000..63d517b50 --- /dev/null +++ b/modules/sound/sci_gateway/c/.deps/libscisound_la-gw_sound.Plo @@ -0,0 +1,273 @@ +sci_gateway/c/libscisound_la-gw_sound.lo: sci_gateway/c/gw_sound.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h includes/gw_sound.h \ + includes/dynlib_sound.h ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/api_scilab/includes/api_common.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/api_scilab/includes/api_double.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/api_scilab/includes/api_string.h /usr/include/wchar.h \ + /usr/include/stdio.h /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/api_scilab/includes/api_int.h \ + ../../modules/api_scilab/includes/api_poly.h \ + ../../modules/api_scilab/includes/api_sparse.h \ + ../../modules/api_scilab/includes/api_boolean.h \ + ../../modules/api_scilab/includes/api_boolean_sparse.h \ + ../../modules/api_scilab/includes/api_pointer.h \ + ../../modules/api_scilab/includes/api_list.h \ + ../../modules/api_scilab/includes/api_error.h \ + ../../modules/api_scilab/includes/api_handle.h \ + ../../modules/api_scilab/includes/api_optional.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/api_scilab/includes/api_hypermat.h \ + ../../modules/core/includes/core_math.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/callFunctionFromGateway.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +includes/gw_sound.h: + +includes/dynlib_sound.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/api_scilab/includes/api_common.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/api_scilab/includes/api_double.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/api_scilab/includes/api_string.h: + +/usr/include/wchar.h: + +/usr/include/stdio.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/api_scilab/includes/api_int.h: + +../../modules/api_scilab/includes/api_poly.h: + +../../modules/api_scilab/includes/api_sparse.h: + +../../modules/api_scilab/includes/api_boolean.h: + +../../modules/api_scilab/includes/api_boolean_sparse.h: + +../../modules/api_scilab/includes/api_pointer.h: + +../../modules/api_scilab/includes/api_list.h: + +../../modules/api_scilab/includes/api_error.h: + +../../modules/api_scilab/includes/api_handle.h: + +../../modules/api_scilab/includes/api_optional.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/api_scilab/includes/api_hypermat.h: + +../../modules/core/includes/core_math.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/callFunctionFromGateway.h: diff --git a/modules/sound/sci_gateway/c/.deps/libscisound_la-sci_PlaySound.Plo b/modules/sound/sci_gateway/c/.deps/libscisound_la-sci_PlaySound.Plo new file mode 100755 index 000000000..663d15d31 --- /dev/null +++ b/modules/sound/sci_gateway/c/.deps/libscisound_la-sci_PlaySound.Plo @@ -0,0 +1,319 @@ +sci_gateway/c/libscisound_la-sci_PlaySound.lo: \ + sci_gateway/c/sci_PlaySound.c /usr/include/stdc-predef.h \ + /usr/include/wchar.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h /usr/include/stdio.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h /usr/include/libio.h \ + /usr/include/_G_config.h /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h includes/gw_sound.h \ + includes/dynlib_sound.h \ + ../../modules/fileio/includes/expandPathVariable.h \ + ../../modules/fileio/includes/dynlib_fileio.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/machine.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/core/includes/stack-c.h /usr/include/string.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h /usr/include/values.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/float.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/api_scilab/includes/api_common.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/api_scilab/includes/api_double.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/api_scilab/includes/api_string.h \ + ../../modules/api_scilab/includes/api_int.h \ + ../../modules/api_scilab/includes/api_poly.h \ + ../../modules/api_scilab/includes/api_sparse.h \ + ../../modules/api_scilab/includes/api_boolean.h \ + ../../modules/api_scilab/includes/api_boolean_sparse.h \ + ../../modules/api_scilab/includes/api_pointer.h \ + ../../modules/api_scilab/includes/api_list.h \ + ../../modules/api_scilab/includes/api_error.h \ + ../../modules/api_scilab/includes/api_handle.h \ + ../../modules/api_scilab/includes/api_optional.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/api_scilab/includes/api_hypermat.h \ + ../../modules/core/includes/core_math.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h + +/usr/include/stdc-predef.h: + +/usr/include/wchar.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/include/stdio.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +includes/gw_sound.h: + +includes/dynlib_sound.h: + +../../modules/fileio/includes/expandPathVariable.h: + +../../modules/fileio/includes/dynlib_fileio.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/machine.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/core/includes/stack-c.h: + +/usr/include/string.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +/usr/include/values.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/float.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/api_scilab/includes/api_common.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/api_scilab/includes/api_double.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/api_scilab/includes/api_string.h: + +../../modules/api_scilab/includes/api_int.h: + +../../modules/api_scilab/includes/api_poly.h: + +../../modules/api_scilab/includes/api_sparse.h: + +../../modules/api_scilab/includes/api_boolean.h: + +../../modules/api_scilab/includes/api_boolean_sparse.h: + +../../modules/api_scilab/includes/api_pointer.h: + +../../modules/api_scilab/includes/api_list.h: + +../../modules/api_scilab/includes/api_error.h: + +../../modules/api_scilab/includes/api_handle.h: + +../../modules/api_scilab/includes/api_optional.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/api_scilab/includes/api_hypermat.h: + +../../modules/core/includes/core_math.h: + +../../modules/core/includes/sci_types.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: diff --git a/modules/sound/sci_gateway/c/.deps/libscisound_la-sci_beep.Plo b/modules/sound/sci_gateway/c/.deps/libscisound_la-sci_beep.Plo new file mode 100755 index 000000000..1659cb302 --- /dev/null +++ b/modules/sound/sci_gateway/c/.deps/libscisound_la-sci_beep.Plo @@ -0,0 +1,315 @@ +sci_gateway/c/libscisound_la-sci_beep.lo: sci_gateway/c/sci_beep.c \ + /usr/include/stdc-predef.h /usr/include/stdio.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h /usr/include/libio.h \ + /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/string.h \ + /usr/include/xlocale.h /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h includes/gw_sound.h \ + includes/dynlib_sound.h ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/machine.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h /usr/include/values.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/float.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/api_scilab/includes/api_common.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/api_scilab/includes/api_double.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/api_scilab/includes/api_string.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/api_scilab/includes/api_int.h \ + ../../modules/api_scilab/includes/api_poly.h \ + ../../modules/api_scilab/includes/api_sparse.h \ + ../../modules/api_scilab/includes/api_boolean.h \ + ../../modules/api_scilab/includes/api_boolean_sparse.h \ + ../../modules/api_scilab/includes/api_pointer.h \ + ../../modules/api_scilab/includes/api_list.h \ + ../../modules/api_scilab/includes/api_error.h \ + ../../modules/api_scilab/includes/api_handle.h \ + ../../modules/api_scilab/includes/api_optional.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/api_scilab/includes/api_hypermat.h \ + ../../modules/core/includes/core_math.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/BOOL.h + +/usr/include/stdc-predef.h: + +/usr/include/stdio.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/string.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +includes/gw_sound.h: + +includes/dynlib_sound.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/machine.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/values.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/float.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/api_scilab/includes/api_common.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/api_scilab/includes/api_double.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/api_scilab/includes/api_string.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/api_scilab/includes/api_int.h: + +../../modules/api_scilab/includes/api_poly.h: + +../../modules/api_scilab/includes/api_sparse.h: + +../../modules/api_scilab/includes/api_boolean.h: + +../../modules/api_scilab/includes/api_boolean_sparse.h: + +../../modules/api_scilab/includes/api_pointer.h: + +../../modules/api_scilab/includes/api_list.h: + +../../modules/api_scilab/includes/api_error.h: + +../../modules/api_scilab/includes/api_handle.h: + +../../modules/api_scilab/includes/api_optional.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/api_scilab/includes/api_hypermat.h: + +../../modules/core/includes/core_math.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/BOOL.h: diff --git a/modules/sound/sci_gateway/c/.dirstamp b/modules/sound/sci_gateway/c/.dirstamp new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/modules/sound/sci_gateway/c/.dirstamp diff --git a/modules/sound/sci_gateway/c/.libs/libscisound_la-gw_sound.o b/modules/sound/sci_gateway/c/.libs/libscisound_la-gw_sound.o Binary files differnew file mode 100755 index 000000000..a0614f5e7 --- /dev/null +++ b/modules/sound/sci_gateway/c/.libs/libscisound_la-gw_sound.o diff --git a/modules/sound/sci_gateway/c/.libs/libscisound_la-sci_PlaySound.o b/modules/sound/sci_gateway/c/.libs/libscisound_la-sci_PlaySound.o Binary files differnew file mode 100755 index 000000000..37822e793 --- /dev/null +++ b/modules/sound/sci_gateway/c/.libs/libscisound_la-sci_PlaySound.o diff --git a/modules/sound/sci_gateway/c/.libs/libscisound_la-sci_beep.o b/modules/sound/sci_gateway/c/.libs/libscisound_la-sci_beep.o Binary files differnew file mode 100755 index 000000000..107860b1a --- /dev/null +++ b/modules/sound/sci_gateway/c/.libs/libscisound_la-sci_beep.o diff --git a/modules/sound/sci_gateway/c/gw_sound.c b/modules/sound/sci_gateway/c/gw_sound.c new file mode 100755 index 000000000..884f55b7d --- /dev/null +++ b/modules/sound/sci_gateway/c/gw_sound.c @@ -0,0 +1,39 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2006 - INRIA - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ + +/*--------------------------------------------------------------------------*/ +#include <string.h> +#include "gw_sound.h" +#include "MALLOC.h" +#include "api_scilab.h" +#include "callFunctionFromGateway.h" +/*--------------------------------------------------------------------------*/ +static gw_generic_table Tab[] = +{ + { sci_Playsound, "PlaySound"}, + { sci_beep, "beep"} +}; +/*--------------------------------------------------------------------------*/ +int gw_sound(void) +{ + Rhs = Max(0, Rhs); + + if (pvApiCtx == NULL) + { + pvApiCtx = (StrCtx*)MALLOC(sizeof(StrCtx)); + } + + pvApiCtx->pstName = (char*)Tab[Fin - 1].name; + callFunctionFromGateway(Tab, SIZE_CURRENT_GENERIC_TABLE(Tab)); + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/sound/sci_gateway/c/libscisound_la-gw_sound.lo b/modules/sound/sci_gateway/c/libscisound_la-gw_sound.lo new file mode 100755 index 000000000..cf02df899 --- /dev/null +++ b/modules/sound/sci_gateway/c/libscisound_la-gw_sound.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscisound_la-gw_sound.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscisound_la-gw_sound.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/sound/sci_gateway/c/libscisound_la-sci_PlaySound.lo b/modules/sound/sci_gateway/c/libscisound_la-sci_PlaySound.lo new file mode 100755 index 000000000..2f49ff5b8 --- /dev/null +++ b/modules/sound/sci_gateway/c/libscisound_la-sci_PlaySound.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscisound_la-sci_PlaySound.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscisound_la-sci_PlaySound.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/sound/sci_gateway/c/libscisound_la-sci_beep.lo b/modules/sound/sci_gateway/c/libscisound_la-sci_beep.lo new file mode 100755 index 000000000..602204b42 --- /dev/null +++ b/modules/sound/sci_gateway/c/libscisound_la-sci_beep.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscisound_la-sci_beep.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscisound_la-sci_beep.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/sound/sci_gateway/c/sci_PlaySound.c b/modules/sound/sci_gateway/c/sci_PlaySound.c new file mode 100755 index 000000000..fc9b30de3 --- /dev/null +++ b/modules/sound/sci_gateway/c/sci_PlaySound.c @@ -0,0 +1,147 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2006-2007 - INRIA - Scilab + * Copyright (C) 2009 - DIGITEO - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ +/*--------------------------------------------------------------------------*/ +#include <wchar.h> +#include <stdio.h> +#ifdef _MSC_VER +#include <Windows.h> +#pragma comment(lib, "winmm.lib") +#endif +#include "gw_sound.h" +#include "expandPathVariable.h" +#include "Scierror.h" +#include "api_scilab.h" +#include "localization.h" +#include "MALLOC.h" +/*--------------------------------------------------------------------------*/ +static int playsound(wchar_t *wcFilename); +/*--------------------------------------------------------------------------*/ +/* private function called by playsnd */ +/*--------------------------------------------------------------------------*/ +int sci_Playsound (char *fname, unsigned long fname_len) +{ + SciErr sciErr; + int *piAddressVarOne = NULL; + wchar_t *pStVarOne = NULL; + int iType1 = 0; + int lenStVarOne = 0; + int m1 = 0, n1 = 0; + wchar_t *expandedPath = NULL; + + CheckInputArgument(pvApiCtx, 1, 1); + CheckOutputArgument(pvApiCtx, 0, 1); + + sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddressVarOne); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 1; + } + + sciErr = getVarType(pvApiCtx, piAddressVarOne, &iType1); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 1; + } + + if (iType1 != sci_strings ) + { + Scierror(999, _("%s: Wrong type for input argument #%d: A string expected.\n"), fname, 1); + return 1; + } + + if (getAllocatedSingleWideString(pvApiCtx, piAddressVarOne, &pStVarOne)) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 1; + } + + // if ( (m1 != n1) && (n1 != 1) ) + // { + // Scierror(999, _("%s: Wrong size for input argument #%d: A string expected.\n"), fname, 1); + // return 1; + // } + // + // sciErr = getMatrixOfWideString(pvApiCtx, piAddressVarOne, &m1, &n1, &lenStVarOne, &pStVarOne); + // if (sciErr.iErr) + // { + // printError(&sciErr, 0); + // Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + // return 1; + // } + // + // pStVarOne = (wchar_t*)MALLOC(sizeof(wchar_t) * (lenStVarOne + 1)); + // if (pStVarOne == NULL) + // { + // Scierror(999, _("%s: Memory allocation error.\n"), fname); + // return 1; + // } + // + // sciErr = getMatrixOfWideString(pvApiCtx, piAddressVarOne, &m1, &n1, &lenStVarOne, &pStVarOne); + // if (sciErr.iErr) + // { + // printError(&sciErr, 0); + // Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + // return 1; + // } + + expandedPath = expandPathVariableW(pStVarOne); + if (pStVarOne) + { + FREE(pStVarOne); + pStVarOne = NULL; + } + +#ifdef _MSC_VER + { + if (expandedPath) + { + playsound(expandedPath); + FREE(expandedPath); + expandedPath = NULL; + } + + AssignOutputVariable(pvApiCtx, 1) = 0; + ReturnArguments(pvApiCtx); + } +#else + { + if (expandedPath) + { + FREE(expandedPath); + expandedPath = NULL; + } + Scierror(999, _("%s: An error occurred: %s\n"), fname, _("Cannot play file.") ); + } +#endif + return 0; +} +/*--------------------------------------------------------------------------*/ +static int playsound(wchar_t *wcFilename) +{ +#ifdef _MSC_VER + if (wcFilename) + { + /* Stop Playing*/ + PlaySoundW(NULL, NULL, SND_PURGE); + PlaySoundW(wcFilename, NULL, SND_ASYNC | SND_FILENAME); + } +#endif + return 0; +} +/*--------------------------------------------------------------------------*/ + diff --git a/modules/sound/sci_gateway/c/sci_beep.c b/modules/sound/sci_gateway/c/sci_beep.c new file mode 100755 index 000000000..4f01756b0 --- /dev/null +++ b/modules/sound/sci_gateway/c/sci_beep.c @@ -0,0 +1,168 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2006 - INRIA - Allan CORNET + * Copyright (C) 2009 - DIGITEO - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ +/*--------------------------------------------------------------------------*/ +#include <stdio.h> +#include <string.h> +#if _MSC_VER +#include <windows.h> +#endif +#include "gw_sound.h" +#include "MALLOC.h" +#include "Scierror.h" +#include "localization.h" +#include "api_scilab.h" +#include "BOOL.h" +/*--------------------------------------------------------------------------*/ +#define BEEP_ON "on" +#define BEEP_OFF "off" +/*--------------------------------------------------------------------------*/ +static BOOL beepON = TRUE; +/*--------------------------------------------------------------------------*/ +void doBeep(void); +/*--------------------------------------------------------------------------*/ +int sci_beep(char *fname, unsigned long fname_len) +{ + SciErr sciErr; + char *output = NULL; + int m_out = 1, n_out = 1; + + CheckInputArgument(pvApiCtx, 0, 1); + CheckOutputArgument(pvApiCtx, 0, 1); + + if (nbInputArgument(pvApiCtx) == 0) + { + if (beepON) + { + doBeep(); + } + } + else + { + int *piAddressVarOne = NULL; + char *pStVarOne = NULL; + int iType1 = 0; + int lenStVarOne = 0; + int m1 = 0, n1 = 0; + + sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddressVarOne); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 1; + } + + sciErr = getVarType(pvApiCtx, piAddressVarOne, &iType1); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 1; + } + + if (iType1 != sci_strings ) + { + Scierror(999, _("%s: Wrong type for input argument #%d: A string expected.\n"), fname, 1); + return 1; + } + + sciErr = getMatrixOfString(pvApiCtx, piAddressVarOne, &m1, &n1, &lenStVarOne, &pStVarOne); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 1; + } + + if ( (m1 != n1) && (n1 != 1) ) + { + Scierror(999, _("%s: Wrong size for input argument #%d: A string expected.\n"), fname, 1); + return 1; + } + + pStVarOne = (char*)MALLOC(sizeof(char) * (lenStVarOne + 1)); + if (pStVarOne == NULL) + { + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 1; + } + + sciErr = getMatrixOfString(pvApiCtx, piAddressVarOne, &m1, &n1, &lenStVarOne, &pStVarOne); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 1; + } + + if ( (strcmp(pStVarOne, BEEP_ON) == 0) || (strcmp(pStVarOne, BEEP_OFF) == 0) ) + { + if ( strcmp(pStVarOne, BEEP_ON) == 0 ) + { + beepON = TRUE; + } + else + { + beepON = FALSE; + } + + FREE(pStVarOne); + pStVarOne = NULL; + } + else + { + FREE(pStVarOne); + pStVarOne = NULL; + Scierror(999, _("%s: Wrong input argument #%d: '%s' or '%s' expected.\n"), fname, 1, BEEP_ON, BEEP_OFF); + return 1; + } + } + + if (beepON) + { + output = strdup(BEEP_ON); + } + else + { + output = strdup(BEEP_OFF); + } + + sciErr = createMatrixOfString(pvApiCtx, nbInputArgument(pvApiCtx) + 1, m_out, n_out, &output); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 1; + } + + if (output) + { + FREE(output); + output = NULL; + } + + AssignOutputVariable(pvApiCtx, 1) = nbInputArgument(pvApiCtx) + 1; + ReturnArguments(pvApiCtx); + + return 0; +} +/*--------------------------------------------------------------------------*/ +void doBeep(void) +{ +#ifdef _MSC_VER + MessageBeep(0xFFFFFFFF); +#else + puts("\a"); +#endif +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/sound/sci_gateway/sound_gateway.xml b/modules/sound/sci_gateway/sound_gateway.xml new file mode 100755 index 000000000..6b8d61561 --- /dev/null +++ b/modules/sound/sci_gateway/sound_gateway.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2007 - INRIA - Allan CORNET + * Copyright (C) 2007 - INRIA - Sylvestre LEDRU + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<!DOCTYPE GATEWAY SYSTEM "../../functions/xml/gateway.dtd"> +<GATEWAY name="sound"> + <!-- =================== --> + <!-- + Scilab + Interface description. In this file, we define the list of the function which + will be available into Scilab and the link to the "native" function. + + gatewayId is the position in the hashtable 'Interfaces' defined in the + file SCI/modules/core/src/c/callinterf.h + + primitiveId is the position in the hashtable '<module>Table Tab[]' defined + in the file modules/<module>/sci_gateway/c/gw_<module>.c + + primitiveName is the name of the Scilab function + =================== + Don't touch if you do not know what you are doing +--> + <!-- =================== --> + <PRIMITIVE gatewayId="49" primitiveId="1" primitiveName="PlaySound" /> + <PRIMITIVE gatewayId="49" primitiveId="2" primitiveName="beep" /> +</GATEWAY> diff --git a/modules/sound/scilab_windows_Import.def b/modules/sound/scilab_windows_Import.def new file mode 100755 index 000000000..05c63be9f --- /dev/null +++ b/modules/sound/scilab_windows_Import.def @@ -0,0 +1,8 @@ +LIBRARY scilab_windows.dll + + +EXPORTS +; --------------------------------------- +; scilab_windows +; --------------------------------------- + strdup_windows diff --git a/modules/sound/sound.iss b/modules/sound/sound.iss new file mode 100755 index 000000000..fdc0b4545 --- /dev/null +++ b/modules/sound/sound.iss @@ -0,0 +1,44 @@ +; +; Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +; Copyright (C) INRIA - Allan CORNET +; Copyright (C) DIGITEO - 2010 - Allan CORNET +; +; This file must be used under the terms of the CeCILL. +; This source file is licensed as described in the file COPYING, which +; you should have received as part of this distribution. The terms +; are also available at +; http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +; +;-------------------------------------------------------------------------------------------------------------- +; Inno Setup Script (5.3 and more) for Scilab (UNICODE version required) +; +;-------------------------------------------------------------------------------------------------------------- +; sound module +;-------------------------------------------------------------------------------------------------------------- +; +#define SOUND "sound" +; +Source: bin\sound.dll; DestDir: {app}\bin; Components: {#COMPN_SCILAB} +; +Source: modules\{#SOUND}\license.txt; DestDir: {app}\modules\{#SOUND}; Components: {#COMPN_SCILAB} +; +Source: modules\{#SOUND}\sci_gateway\{#SOUND}_gateway.xml; DestDir: {app}\modules\{#SOUND}\sci_gateway; Components: {#COMPN_SCILAB} +; +;Source: modules\{#SOUND}\includes\*.h; DestDir: {app}\modules\{#SOUND}\includes; Components: {#COMPN_SCILAB} +; +Source: modules\{#SOUND}\etc\{#SOUND}.quit; DestDir: {app}\modules\{#SOUND}\etc; Components: {#COMPN_SCILAB} +Source: modules\{#SOUND}\etc\{#SOUND}.start; DestDir: {app}\modules\{#SOUND}\etc; Components: {#COMPN_SCILAB} +; +Source: modules\{#SOUND}\macros\buildmacros.sce; DestDir: {app}\modules\{#SOUND}\macros; Components: {#COMPN_SCILAB} +Source: modules\{#SOUND}\macros\buildmacros.bat; DestDir: {app}\modules\{#SOUND}\macros; Components: {#COMPN_SCILAB} +Source: modules\{#SOUND}\macros\cleanmacros.bat; DestDir: {app}\modules\{#SOUND}\macros; Components: {#COMPN_SCILAB} +Source: modules\{#SOUND}\macros\*.bin; DestDir: {app}\modules\{#SOUND}\macros; Components: {#COMPN_SCILAB} +Source: modules\{#SOUND}\macros\*.sci; DestDir: {app}\modules\{#SOUND}\macros; Components: {#COMPN_SCILAB} +Source: modules\{#SOUND}\macros\lib; DestDir: {app}\modules\{#SOUND}\macros; Components: {#COMPN_SCILAB} +Source: modules\{#SOUND}\macros\names; DestDir: {app}\modules\{#SOUND}\macros; Components: {#COMPN_SCILAB} +; +Source: modules\{#SOUND}\demos\*.*; DestDir: {app}\modules\{#SOUND}\demos; Flags: recursesubdirs; Components: {#COMPN_SCILAB} +; +Source: modules\{#SOUND}\tests\*.*; DestDir: {app}\modules\{#SOUND}\tests; Flags: recursesubdirs; Components: {#COMPN_SCILAB} and {#COMPN_TESTS} +; +;-------------------------------------------------------------------------------------------------------------- diff --git a/modules/sound/sound.vcxproj b/modules/sound/sound.vcxproj new file mode 100755 index 000000000..5e6935d5c --- /dev/null +++ b/modules/sound/sound.vcxproj @@ -0,0 +1,244 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup Label="ProjectConfigurations"> + <ProjectConfiguration Include="Debug|Win32"> + <Configuration>Debug</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Debug|x64"> + <Configuration>Debug</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|Win32"> + <Configuration>Release</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|x64"> + <Configuration>Release</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + </ItemGroup> + <PropertyGroup Label="Globals"> + <ProjectGuid>{03773159-155A-48E0-9B26-119D0BF35B2B}</ProjectGuid> + <RootNamespace>sound</RootNamespace> + <Keyword>Win32Proj</Keyword> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + <WholeProgramOptimization>false</WholeProgramOptimization> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + <WholeProgramOptimization>false</WholeProgramOptimization> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> + <ImportGroup Label="ExtensionSettings"> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <PropertyGroup Label="UserMacros" /> + <PropertyGroup> + <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)bin\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(ProjectDir)$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)bin\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(ProjectDir)$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)bin\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(ProjectDir)$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)bin\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(ProjectDir)$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental> + </PropertyGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> + <ClCompile> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>includes;src/c;../core/includes;../fileio/includes;../windows_tools/includes;../output_stream/includes;../localization/includes;../../libs/intl;../api_scilab/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>FORDLL;_DEBUG;_WINDOWS;_USRDLL;SOUND_EXPORTS;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> + <WarningLevel>Level3</WarningLevel> + </ClCompile> + <PreLinkEvent> + <Message>Make dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)Scilab_Windows_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)Scilab_Windows.lib" 1>NUL 2>NUL +</Command> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;scilab_windows.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX86</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>includes;src/c;../core/includes;../fileio/includes;../windows_tools/includes;../output_stream/includes;../localization/includes;../../libs/intl;../api_scilab/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>FORDLL;_DEBUG;_WINDOWS;_USRDLL;SOUND_EXPORTS;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> + <WarningLevel>Level3</WarningLevel> + </ClCompile> + <PreLinkEvent> + <Message>Make dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)Scilab_Windows_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)Scilab_Windows.lib" 1>NUL 2>NUL +</Command> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;scilab_windows.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX64</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <ClCompile> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <WholeProgramOptimization>false</WholeProgramOptimization> + <AdditionalIncludeDirectories>includes;src/c;../core/includes;../fileio/includes;../windows_tools/includes;../output_stream/includes;../localization/includes;../../libs/intl;../api_scilab/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>FORDLL;NDEBUG;_WINDOWS;_USRDLL;SOUND_EXPORTS;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <StringPooling>true</StringPooling> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <FunctionLevelLinking>true</FunctionLevelLinking> + <WarningLevel>Level3</WarningLevel> + <MultiProcessorCompilation>true</MultiProcessorCompilation> + </ClCompile> + <PreLinkEvent> + <Message>Make dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)Scilab_Windows_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)Scilab_Windows.lib" 1>NUL 2>NUL +</Command> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;scilab_windows.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <GenerateDebugInformation>false</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <OptimizeReferences>true</OptimizeReferences> + <EnableCOMDATFolding>true</EnableCOMDATFolding> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX86</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <WholeProgramOptimization>false</WholeProgramOptimization> + <AdditionalIncludeDirectories>includes;src/c;../core/includes;../fileio/includes;../windows_tools/includes;../output_stream/includes;../localization/includes;../../libs/intl;../api_scilab/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>FORDLL;NDEBUG;_WINDOWS;_USRDLL;SOUND_EXPORTS;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <StringPooling>true</StringPooling> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <FunctionLevelLinking>true</FunctionLevelLinking> + <WarningLevel>Level3</WarningLevel> + <MultiProcessorCompilation>true</MultiProcessorCompilation> + </ClCompile> + <PreLinkEvent> + <Message>Make dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)Scilab_Windows_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)Scilab_Windows.lib" 1>NUL 2>NUL +</Command> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;scilab_windows.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <GenerateDebugInformation>false</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <OptimizeReferences>true</OptimizeReferences> + <EnableCOMDATFolding>true</EnableCOMDATFolding> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX64</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + </Link> + </ItemDefinitionGroup> + <ItemGroup> + <ClCompile Include="src\c\DllmainSound.c" /> + <ClCompile Include="sci_gateway\c\gw_sound.c" /> + <ClCompile Include="sci_gateway\c\sci_beep.c" /> + <ClCompile Include="sci_gateway\c\sci_PlaySound.c" /> + </ItemGroup> + <ItemGroup> + <ClInclude Include="includes\dynlib_sound.h" /> + <ClInclude Include="includes\gw_sound.h" /> + </ItemGroup> + <ItemGroup> + <ResourceCompile Include="src\c\sound.rc" /> + </ItemGroup> + <ItemGroup> + <None Include="core_import.def" /> + <None Include="locales\sound.pot" /> + <None Include="scilab_windows_Import.def" /> + <None Include="Makefile.am" /> + <None Include="sound.iss" /> + <None Include="sci_gateway\sound_gateway.xml" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\..\tools\Dumpexts\Dumpexts.vcxproj"> + <Project>{3170e4c2-1173-4264-a222-7ee8ccb3ddf7}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + <ProjectReference Include="..\api_scilab\api_scilab.vcxproj"> + <Project>{43c5bab1-1dca-4743-a183-77e0d42fe7d0}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + <ProjectReference Include="..\fileio\fileio.vcxproj"> + <Project>{4fc72d4a-80ee-4b1a-8724-0201c1a35621}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + <ProjectReference Include="..\localization\src\localization.vcxproj"> + <Project>{ecffeb0c-1eda-45ee-9a10-b18143852e17}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + <ProjectReference Include="..\output_stream\src\c\output_stream.vcxproj"> + <Project>{a5911cd7-f8e8-440c-a23e-4843a0636f3a}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + </ItemGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> + <ImportGroup Label="ExtensionTargets"> + </ImportGroup> +</Project>
\ No newline at end of file diff --git a/modules/sound/sound.vcxproj.filters b/modules/sound/sound.vcxproj.filters new file mode 100755 index 000000000..f1d4af649 --- /dev/null +++ b/modules/sound/sound.vcxproj.filters @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup> + <Filter Include="Source Files"> + <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> + <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions> + </Filter> + <Filter Include="Header Files"> + <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> + <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions> + </Filter> + <Filter Include="Resource Files"> + <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> + <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions> + </Filter> + <Filter Include="localization"> + <UniqueIdentifier>{d188dca4-be45-4bb9-bbc7-d266571d8029}</UniqueIdentifier> + </Filter> + <Filter Include="Libraries Dependencies"> + <UniqueIdentifier>{c7aed667-a8d6-494d-973e-957f7dd98ab4}</UniqueIdentifier> + </Filter> + <Filter Include="Libraries Dependencies\Imports"> + <UniqueIdentifier>{bc8f77dd-a806-4fde-8b3b-87ac7306c242}</UniqueIdentifier> + </Filter> + </ItemGroup> + <ItemGroup> + <ClCompile Include="src\c\DllmainSound.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="sci_gateway\c\gw_sound.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="sci_gateway\c\sci_beep.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="sci_gateway\c\sci_PlaySound.c"> + <Filter>Source Files</Filter> + </ClCompile> + </ItemGroup> + <ItemGroup> + <ClInclude Include="includes\dynlib_sound.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="includes\gw_sound.h"> + <Filter>Header Files</Filter> + </ClInclude> + </ItemGroup> + <ItemGroup> + <ResourceCompile Include="src\c\sound.rc"> + <Filter>Resource Files</Filter> + </ResourceCompile> + </ItemGroup> + <ItemGroup> + <None Include="core_import.def"> + <Filter>Libraries Dependencies\Imports</Filter> + </None> + <None Include="scilab_windows_Import.def"> + <Filter>Libraries Dependencies\Imports</Filter> + </None> + <None Include="Makefile.am" /> + <None Include="sound.iss" /> + <None Include="sci_gateway\sound_gateway.xml" /> + <None Include="locales\sound.pot"> + <Filter>localization</Filter> + </None> + </ItemGroup> +</Project>
\ No newline at end of file diff --git a/modules/sound/src/c/DllmainSound.c b/modules/sound/src/c/DllmainSound.c new file mode 100755 index 000000000..65d317a20 --- /dev/null +++ b/modules/sound/src/c/DllmainSound.c @@ -0,0 +1,33 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2006 - INRIA - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ +/*--------------------------------------------------------------------------*/ +#include <windows.h> +/*--------------------------------------------------------------------------*/ +#pragma comment(lib,"../../bin/libintl.lib") +/*--------------------------------------------------------------------------*/ +int WINAPI DllMain (HINSTANCE hInstance , DWORD reason, PVOID pvReserved) +{ + switch (reason) + { + case DLL_PROCESS_ATTACH: + break; + case DLL_PROCESS_DETACH: + break; + case DLL_THREAD_ATTACH: + break; + case DLL_THREAD_DETACH: + break; + } + return 1; +} +/*--------------------------------------------------------------------------*/ + diff --git a/modules/sound/src/c/sound.rc b/modules/sound/src/c/sound.rc new file mode 100755 index 000000000..4a5fb168d --- /dev/null +++ b/modules/sound/src/c/sound.rc @@ -0,0 +1,97 @@ +// Microsoft Visual C++ generated resource script. +// + + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +//#include "afxres.h" +#define APSTUDIO_HIDDEN_SYMBOLS +#include "windows.h" +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// French (France) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA) +#ifdef _WIN32 +LANGUAGE LANG_FRENCH, SUBLANG_FRENCH +#pragma code_page(1252) +#endif //_WIN32 + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +VS_VERSION_INFO VERSIONINFO + FILEVERSION 5,5,2,0 + PRODUCTVERSION 5,5,2,0 + FILEFLAGSMASK 0x17L +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x0L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040c04b0" + BEGIN + VALUE "CompanyName", "Scilab" + VALUE "FileDescription", "sound module" + VALUE "FileVersion", "5, 5, 2, 0" + VALUE "InternalName", "sound" + VALUE "LegalCopyright", "Copyright (C) 2017" + VALUE "OriginalFilename", "sound.rc" + VALUE "ProductName", " sound" + VALUE "ProductVersion", "5, 5, 2, 0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x40c, 1200 + END +END + +#endif // French (France) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + diff --git a/modules/sound/src/nosound/nosound.c b/modules/sound/src/nosound/nosound.c new file mode 100755 index 000000000..f9b24ba68 --- /dev/null +++ b/modules/sound/src/nosound/nosound.c @@ -0,0 +1,23 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2006 - INRIA - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ + +/*--------------------------------------------------------------------------*/ +#include "gw_sound.h" +#include "localization.h" +#include "Scierror.h" +/*--------------------------------------------------------------------------*/ +int gw_sound(void) +{ + Scierror(999, _("Scilab sound module not installed.\n")); + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/sound/src/nosound/nosound.rc b/modules/sound/src/nosound/nosound.rc new file mode 100755 index 000000000..313f3d30c --- /dev/null +++ b/modules/sound/src/nosound/nosound.rc @@ -0,0 +1,97 @@ +// Microsoft Visual C++ generated resource script. +// + + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +//#include "afxres.h" +#define APSTUDIO_HIDDEN_SYMBOLS +#include "windows.h" +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// French (France) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA) +#ifdef _WIN32 +LANGUAGE LANG_FRENCH, SUBLANG_FRENCH +#pragma code_page(1252) +#endif //_WIN32 + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +VS_VERSION_INFO VERSIONINFO + FILEVERSION 5,5,2,0 + PRODUCTVERSION 5,5,2,0 + FILEFLAGSMASK 0x17L +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x0L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040c04b0" + BEGIN + VALUE "FileDescription", "nosound module" + VALUE "FileVersion", "5, 5, 2, 0" + VALUE "InternalName", "nosound module" + VALUE "LegalCopyright", "Copyright (C) 2017" + VALUE "OriginalFilename", "nosound.dll" + VALUE "ProductName", " nosound" + VALUE "ProductVersion", "5, 5, 2, 0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x40c, 1200 + END +END + +#endif // French (France) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + diff --git a/modules/sound/src/nosound/nosound.vcxproj b/modules/sound/src/nosound/nosound.vcxproj new file mode 100755 index 000000000..bbf901306 --- /dev/null +++ b/modules/sound/src/nosound/nosound.vcxproj @@ -0,0 +1,195 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup Label="ProjectConfigurations"> + <ProjectConfiguration Include="Debug|Win32"> + <Configuration>Debug</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Debug|x64"> + <Configuration>Debug</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|Win32"> + <Configuration>Release</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|x64"> + <Configuration>Release</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + </ItemGroup> + <PropertyGroup Label="Globals"> + <ProjectGuid>{B2A7F55B-8449-47FE-A1BB-5E77EC18DE43}</ProjectGuid> + <RootNamespace>nosound</RootNamespace> + <Keyword>Win32Proj</Keyword> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + <WholeProgramOptimization>false</WholeProgramOptimization> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + <WholeProgramOptimization>false</WholeProgramOptimization> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> + <ImportGroup Label="ExtensionSettings"> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <PropertyGroup Label="UserMacros" /> + <PropertyGroup> + <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)bin\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(ProjectDir)$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)bin\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(ProjectDir)$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)bin\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(ProjectDir)$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)bin\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(ProjectDir)$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental> + </PropertyGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> + <ClCompile> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>../../../core/includes;../../../output_stream/includes;../../../localization/includes;../../../../libs/intl;../../../api_scilab/includes;../../includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;FORDLL;_DEBUG;_WINDOWS;_USRDLL;SOUND_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> + <WarningLevel>Level3</WarningLevel> + </ClCompile> + <Link> + <AdditionalDependencies>../../../../bin/libintl.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX86</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>../../../core/includes;../../../output_stream/includes;../../../localization/includes;../../../../libs/intl;../../../api_scilab/includes;../../includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;FORDLL;_DEBUG;_WINDOWS;_USRDLL;SOUND_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> + <WarningLevel>Level3</WarningLevel> + </ClCompile> + <Link> + <AdditionalDependencies>../../../../bin/libintl.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX64</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <ClCompile> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <WholeProgramOptimization>false</WholeProgramOptimization> + <AdditionalIncludeDirectories>../../../core/includes;../../../output_stream/includes;../../../localization/includes;../../../../libs/intl;../../../api_scilab/includes;../../includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;FORDLL;NDEBUG;_WINDOWS;_USRDLL;SOUND_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <StringPooling>true</StringPooling> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <WarningLevel>Level3</WarningLevel> + <MultiProcessorCompilation>true</MultiProcessorCompilation> + </ClCompile> + <Link> + <AdditionalDependencies>../../../../bin/libintl.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <GenerateDebugInformation>false</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <OptimizeReferences>true</OptimizeReferences> + <EnableCOMDATFolding>true</EnableCOMDATFolding> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX86</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <WholeProgramOptimization>false</WholeProgramOptimization> + <AdditionalIncludeDirectories>../../../core/includes;../../../output_stream/includes;../../../localization/includes;../../../../libs/intl;../../../api_scilab/includes;../../includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;FORDLL;NDEBUG;_WINDOWS;_USRDLL;SOUND_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <StringPooling>true</StringPooling> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <WarningLevel>Level3</WarningLevel> + <MultiProcessorCompilation>true</MultiProcessorCompilation> + </ClCompile> + <Link> + <AdditionalDependencies>../../../../bin/libintl.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <GenerateDebugInformation>false</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <OptimizeReferences>true</OptimizeReferences> + <EnableCOMDATFolding>true</EnableCOMDATFolding> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX64</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + </Link> + </ItemDefinitionGroup> + <ItemGroup> + <ClCompile Include="nosound.c" /> + </ItemGroup> + <ItemGroup> + <ResourceCompile Include="nosound.rc" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\..\..\..\tools\Dumpexts\Dumpexts.vcxproj"> + <Project>{3170e4c2-1173-4264-a222-7ee8ccb3ddf7}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + <ProjectReference Include="..\..\..\localization\src\localization.vcxproj"> + <Project>{ecffeb0c-1eda-45ee-9a10-b18143852e17}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + <ProjectReference Include="..\..\..\output_stream\src\c\output_stream.vcxproj"> + <Project>{a5911cd7-f8e8-440c-a23e-4843a0636f3a}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + </ItemGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> + <ImportGroup Label="ExtensionTargets"> + </ImportGroup> +</Project>
\ No newline at end of file diff --git a/modules/sound/src/nosound/nosound.vcxproj.filters b/modules/sound/src/nosound/nosound.vcxproj.filters new file mode 100755 index 000000000..66c644b4c --- /dev/null +++ b/modules/sound/src/nosound/nosound.vcxproj.filters @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup> + <Filter Include="Source Files"> + <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> + <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions> + </Filter> + <Filter Include="Header Files"> + <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> + <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions> + </Filter> + <Filter Include="Resource Files"> + <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> + <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions> + </Filter> + <Filter Include="Libraries Dependencies"> + <UniqueIdentifier>{ef3ab8de-c345-414d-805e-058bef85a0bc}</UniqueIdentifier> + </Filter> + </ItemGroup> + <ItemGroup> + <ClCompile Include="nosound.c"> + <Filter>Source Files</Filter> + </ClCompile> + </ItemGroup> + <ItemGroup> + <ResourceCompile Include="nosound.rc"> + <Filter>Resource Files</Filter> + </ResourceCompile> + </ItemGroup> +</Project>
\ No newline at end of file diff --git a/modules/sound/tests/nonreg_tests/bug_10942.dia.ref b/modules/sound/tests/nonreg_tests/bug_10942.dia.ref new file mode 100755 index 000000000..0682daa78 --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_10942.dia.ref @@ -0,0 +1,2 @@ +t=[0:1:0.001*8000-1]/8000; +assert_checkequal(soundsec(0.001,8000),t); diff --git a/modules/sound/tests/nonreg_tests/bug_10942.tst b/modules/sound/tests/nonreg_tests/bug_10942.tst new file mode 100755 index 000000000..7ea9fb16e --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_10942.tst @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2014 - Scilab Enterprises - Pierre-Aime Agnel +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 10942 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=10492 +// +// <-- Short Description --> +// soundsec does not sample at the given frequency and is one element too long +// + +t=[0:1:0.001*8000-1]/8000; +assert_checkequal(soundsec(0.001,8000),t); diff --git a/modules/sound/tests/nonreg_tests/bug_11860.dia.ref b/modules/sound/tests/nonreg_tests/bug_11860.dia.ref new file mode 100755 index 000000000..9f58fc39c --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_11860.dia.ref @@ -0,0 +1,45 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Charlotte HECQUET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 11860 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=11860 +// +// <-- Short Description --> +// wavwrite failed for 24 bits files (error in savewave function) +// +// For two channels +filename=SCI +'/modules/sound/tests/nonreg_tests/bug_11860.wav'; +[y_ref,Fs_ref,nbits_ref]=wavread(filename); +wavwrite(y_ref,Fs_ref,nbits_ref,TMPDIR + '/bug_11860_written.wav'); +filename_written=TMPDIR + '/bug_11860_written.wav'; +// Check +[y,Fs,nbits]=wavread(filename_written); +assert_checktrue(abs(y_ref-y)<1e-6); +assert_checkalmostequal(Fs,Fs_ref); +assert_checkalmostequal(nbits,nbits_ref); +mdelete(filename_written); +// For 1 channel +filepath= TMPDIR + '/bug_11860_mono.wav'; +Fs_ref = 44100; +nbits_ref = 24; +recordLength=1; +t= soundsec(recordLength,Fs_ref); +// Signal +frequency = 1000; +y_ref = 0.5*sin(2*%pi* frequency *t); +// Output +wavwrite(y_ref, Fs_ref, nbits_ref, filepath); +// Check +[y,Fs,nbits]=wavread(filepath); +assert_checktrue(abs(y_ref-y)<1e-6); +assert_checkalmostequal(Fs,Fs_ref); +assert_checkalmostequal(nbits,nbits_ref); +mdelete(filepath); diff --git a/modules/sound/tests/nonreg_tests/bug_11860.tst b/modules/sound/tests/nonreg_tests/bug_11860.tst new file mode 100755 index 000000000..ced3e3867 --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_11860.tst @@ -0,0 +1,46 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Charlotte HECQUET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 11860 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=11860 +// +// <-- Short Description --> +// wavwrite failed for 24 bits files (error in savewave function) +// +// For two channels +filename=SCI +'/modules/sound/tests/nonreg_tests/bug_11860.wav'; +[y_ref,Fs_ref,nbits_ref]=wavread(filename); +wavwrite(y_ref,Fs_ref,nbits_ref,TMPDIR + '/bug_11860_written.wav'); +filename_written=TMPDIR + '/bug_11860_written.wav'; +// Check +[y,Fs,nbits]=wavread(filename_written); +assert_checktrue(abs(y_ref-y)<1e-6); +assert_checkalmostequal(Fs,Fs_ref); +assert_checkalmostequal(nbits,nbits_ref); +mdelete(filename_written); + +// For 1 channel +filepath= TMPDIR + '/bug_11860_mono.wav'; +Fs_ref = 44100; +nbits_ref = 24; +recordLength=1; +t= soundsec(recordLength,Fs_ref); +// Signal +frequency = 1000; +y_ref = 0.5*sin(2*%pi* frequency *t); +// Output +wavwrite(y_ref, Fs_ref, nbits_ref, filepath); +// Check +[y,Fs,nbits]=wavread(filepath); +assert_checktrue(abs(y_ref-y)<1e-6); +assert_checkalmostequal(Fs,Fs_ref); +assert_checkalmostequal(nbits,nbits_ref); +mdelete(filepath); diff --git a/modules/sound/tests/nonreg_tests/bug_11860.wav b/modules/sound/tests/nonreg_tests/bug_11860.wav Binary files differnew file mode 100755 index 000000000..7d528114e --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_11860.wav diff --git a/modules/sound/tests/nonreg_tests/bug_12779.dia.ref b/modules/sound/tests/nonreg_tests/bug_12779.dia.ref new file mode 100755 index 000000000..804e92a03 --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_12779.dia.ref @@ -0,0 +1,23 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Charlotte HECQUET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 12779 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=12779 +// +// <-- Short Description --> +// Function "savewave" has a miscoding in the internal function "write_wavedat" +// +t=soundsec(0.5); +s=sin(2*%pi*440*t)+sin(2*%pi*220*t)/2+sin(2*%pi*880*t)/2; +t(11026)=0.500001; +nc=size(t,2); +nc=nc+1; +assert_checktrue(execstr("savewave(TMPDIR+''/bug_12779.wav'',s, 22050, 2);", "errcatch")==0); diff --git a/modules/sound/tests/nonreg_tests/bug_12779.tst b/modules/sound/tests/nonreg_tests/bug_12779.tst new file mode 100755 index 000000000..d61f23820 --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_12779.tst @@ -0,0 +1,24 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Charlotte HECQUET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 12779 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=12779 +// +// <-- Short Description --> +// Function "savewave" has a miscoding in the internal function "write_wavedat" +// +t=soundsec(0.5); +s=sin(2*%pi*440*t)+sin(2*%pi*220*t)/2+sin(2*%pi*880*t)/2; +t(11026)=0.500001; +nc=size(t,2); +nc=nc+1; + +assert_checktrue(execstr("savewave(TMPDIR+''/bug_12779.wav'',s, 22050, 2);", "errcatch")==0); diff --git a/modules/sound/tests/nonreg_tests/bug_141.dia.ref b/modules/sound/tests/nonreg_tests/bug_141.dia.ref new file mode 100755 index 000000000..5ce93cce3 --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_141.dia.ref @@ -0,0 +1,14 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- Non-regression test for bug 141 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=141 +// +// <-- Short Description --> +// savewave crashes my machine +if execstr("savewave(TMPDIR+""/toto.WAV"", rand(1:10000), 11025);", "errcatch")<>0 then bugmes();quit;end diff --git a/modules/sound/tests/nonreg_tests/bug_141.tst b/modules/sound/tests/nonreg_tests/bug_141.tst new file mode 100755 index 000000000..44a34ba1d --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_141.tst @@ -0,0 +1,18 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- Non-regression test for bug 141 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=141 +// +// <-- Short Description --> +// savewave crashes my machine + + +if execstr("savewave(TMPDIR+""/toto.WAV"", rand(1:10000), 11025);", "errcatch")<>0 then pause; end + diff --git a/modules/sound/tests/nonreg_tests/bug_1609.dia.ref b/modules/sound/tests/nonreg_tests/bug_1609.dia.ref new file mode 100755 index 000000000..128308e3c --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_1609.dia.ref @@ -0,0 +1,17 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- ENGLISH IMPOSED --> +// <-- Non-regression test for bug 1609 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=1609 +// +// <-- Short Description --> +// I can't freely choose "fs" parameter in the following example with 'sound' +y=loadwave("SCI/modules/sound/demos/chimes.wav"); +sound(y,44100); +sound(y,22500); diff --git a/modules/sound/tests/nonreg_tests/bug_1609.tst b/modules/sound/tests/nonreg_tests/bug_1609.tst new file mode 100755 index 000000000..0f7415b9e --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_1609.tst @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- ENGLISH IMPOSED --> + +// <-- Non-regression test for bug 1609 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=1609 +// +// <-- Short Description --> +// I can't freely choose "fs" parameter in the following example with 'sound' + +y=loadwave("SCI/modules/sound/demos/chimes.wav"); +sound(y,44100); +sound(y,22500); diff --git a/modules/sound/tests/nonreg_tests/bug_1926.dia.ref b/modules/sound/tests/nonreg_tests/bug_1926.dia.ref new file mode 100755 index 000000000..6990757aa --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_1926.dia.ref @@ -0,0 +1,40 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- Non-regression test for bug 1926 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=1926 +// +// <-- Short Description --> +// wavwrite does not work properly in Scilab 4.0, final version. The same +//instructions create a correct file in Scilab 3.0. When the .wav file is written +//for a single channel, from a 1 column vector, the scilab message indicates +//thousands of channels (but still a small fraction of the number of samples, so +//it's not simply one-deep by many channels). +//===================================================================== +r = wavread("SCI/modules/sound/demos/chimes.wav","size"); +if r <> [2 13921] then bugmes();quit;end +[yref,FsRef,bitsRef]= wavread("SCI/modules/sound/demos/chimes.wav"); +wavwrite(yref,FsRef,TMPDIR+'/chimes.wav'); +r = wavread(TMPDIR+'/chimes.wav',"size"); +if r <> [2 13921] then bugmes();quit;end +[y,Fs,bits]= wavread(TMPDIR+'/chimes.wav'); +if yref <> y then bugmes();quit;end; +if FsRef <> Fs then bugmes();quit;end; +if bitsRef <> bits then bugmes();quit;end; +//===================================================================== +r = wavread("SCI/modules/sound/tests/nonreg_tests/bug_1926.wav","size"); +if r <> [2 11026] then bugmes();quit;end +[yref,FsRef,bitsRef]= wavread("SCI/modules/sound/tests/nonreg_tests/bug_1926.wav"); +wavwrite(yref,FsRef,TMPDIR+'/bug_1926.wav'); +r = wavread(TMPDIR+'/bug_1926.wav',"size"); +if r <> [2 11026] then bugmes();quit;end +[y,Fs,bits]= wavread(TMPDIR+'/bug_1926.wav'); +if yref <> y then bugmes();quit;end; +if FsRef <> Fs then bugmes();quit;end; +if bitsRef <> bits then bugmes();quit;end; +//===================================================================== diff --git a/modules/sound/tests/nonreg_tests/bug_1926.tst b/modules/sound/tests/nonreg_tests/bug_1926.tst new file mode 100755 index 000000000..294c4dc01 --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_1926.tst @@ -0,0 +1,49 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- Non-regression test for bug 1926 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=1926 +// +// <-- Short Description --> +// wavwrite does not work properly in Scilab 4.0, final version. The same +//instructions create a correct file in Scilab 3.0. When the .wav file is written +//for a single channel, from a 1 column vector, the scilab message indicates +//thousands of channels (but still a small fraction of the number of samples, so +//it's not simply one-deep by many channels). + + +//===================================================================== +r = wavread("SCI/modules/sound/demos/chimes.wav","size"); +if r <> [2 13921] then pause,end + +[yref,FsRef,bitsRef]= wavread("SCI/modules/sound/demos/chimes.wav"); +wavwrite(yref,FsRef,TMPDIR+'/chimes.wav'); + +r = wavread(TMPDIR+'/chimes.wav',"size"); +if r <> [2 13921] then pause,end + +[y,Fs,bits]= wavread(TMPDIR+'/chimes.wav'); +if yref <> y then pause,end; +if FsRef <> Fs then pause,end; +if bitsRef <> bits then pause,end; +//===================================================================== +r = wavread("SCI/modules/sound/tests/nonreg_tests/bug_1926.wav","size"); +if r <> [2 11026] then pause,end + +[yref,FsRef,bitsRef]= wavread("SCI/modules/sound/tests/nonreg_tests/bug_1926.wav"); +wavwrite(yref,FsRef,TMPDIR+'/bug_1926.wav'); + +r = wavread(TMPDIR+'/bug_1926.wav',"size"); +if r <> [2 11026] then pause,end + +[y,Fs,bits]= wavread(TMPDIR+'/bug_1926.wav'); +if yref <> y then pause,end; +if FsRef <> Fs then pause,end; +if bitsRef <> bits then pause,end; +//===================================================================== diff --git a/modules/sound/tests/nonreg_tests/bug_1926.wav b/modules/sound/tests/nonreg_tests/bug_1926.wav Binary files differnew file mode 100755 index 000000000..dbdaf413a --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_1926.wav diff --git a/modules/sound/tests/nonreg_tests/bug_4037.tst b/modules/sound/tests/nonreg_tests/bug_4037.tst new file mode 100755 index 000000000..bd31b0ecb --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_4037.tst @@ -0,0 +1,24 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- Non-regression test for bug 4037 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4037 +// +// <-- Short Description --> +// waveread can not read broadcast wave format +// a error is returned + +// <-- INTERACTIVE TEST --> + +// create or download a bfw file +// try to load wavread + +namebfw = "bfw.wav" +ierr = execstr('wavread(namebfw)','errcatch'); +if ierr<> 999 then pause,end diff --git a/modules/sound/tests/nonreg_tests/bug_467.dia.ref b/modules/sound/tests/nonreg_tests/bug_467.dia.ref new file mode 100755 index 000000000..0948e1656 --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_467.dia.ref @@ -0,0 +1,38 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ????-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- Non-regression test for bug 467 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=467 +// +// <-- Short Description --> +// Bug Report Id: 12022200362265140 +// If you don't mind, where are read_dat_pcm or read_wavedat? +// +// +// +// On Scilab 2-7 with " wavread " function +// The Error Messages are: +// !--error 4 +// undefined variable : erro +// at line 26 of function read_dat_pcm called by : +// line 6 of function read_wavedat called by : +// line 93 of function wavread called by : +// [x,y] = wavread('c:\b.wav','size'); +// +// +// !--error 246 +// function not defined for given argument type(s) +// Check arguments or define function %s_convstr for overloading +// at line 28 of function wavread called by : +// z = wavread('c:\b.wav',100000); +// ... +result = execstr("[x,y] = wavread(SCI+''/modules/sound/tests/nonreg_tests/bug_467.wav'',''size'')","errcatch","n"); +if result <> 0 then bugmes();quit;end +if result == 0 then + if execstr("z = wavread(SCI+""/modules/sound/tests/nonreg_tests/bug_467.wav"",10)","errcatch","n") <> 0 then bugmes();quit;end +end diff --git a/modules/sound/tests/nonreg_tests/bug_467.tst b/modules/sound/tests/nonreg_tests/bug_467.tst new file mode 100755 index 000000000..d1673f39f --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_467.tst @@ -0,0 +1,42 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ????-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- Non-regression test for bug 467 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=467 +// +// <-- Short Description --> +// Bug Report Id: 12022200362265140 +// If you don't mind, where are read_dat_pcm or read_wavedat? +// +// +// +// On Scilab 2-7 with " wavread " function +// The Error Messages are: +// !--error 4 +// undefined variable : erro +// at line 26 of function read_dat_pcm called by : +// line 6 of function read_wavedat called by : +// line 93 of function wavread called by : +// [x,y] = wavread('c:\b.wav','size'); +// +// +// !--error 246 +// function not defined for given argument type(s) +// Check arguments or define function %s_convstr for overloading +// at line 28 of function wavread called by : +// z = wavread('c:\b.wav',100000); +// ... + +result = execstr("[x,y] = wavread(SCI+''/modules/sound/tests/nonreg_tests/bug_467.wav'',''size'')","errcatch","n"); + +if result <> 0 then pause,end + +if result == 0 then + if execstr("z = wavread(SCI+""/modules/sound/tests/nonreg_tests/bug_467.wav"",10)","errcatch","n") <> 0 then pause,end +end diff --git a/modules/sound/tests/nonreg_tests/bug_467.wav b/modules/sound/tests/nonreg_tests/bug_467.wav Binary files differnew file mode 100755 index 000000000..a8b529ec7 --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_467.wav diff --git a/modules/sound/tests/nonreg_tests/bug_4832.dia.ref b/modules/sound/tests/nonreg_tests/bug_4832.dia.ref new file mode 100755 index 000000000..1a17e1081 --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_4832.dia.ref @@ -0,0 +1,17 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- Non-regression test for bug 4832 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4832 +// +// <-- Short Description --> +// waveread can not detect RIFF with smpl chunck +// a non explicit error is returned +filename = SCI + '/modules/sound/tests/nonreg_tests/bug_4832.wav'; +ierr = execstr('wavread(filename)','errcatch'); +if ierr<> 10000 then bugmes();quit;end diff --git a/modules/sound/tests/nonreg_tests/bug_4832.tst b/modules/sound/tests/nonreg_tests/bug_4832.tst new file mode 100755 index 000000000..64735bd21 --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_4832.tst @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- Non-regression test for bug 4832 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4832 +// +// <-- Short Description --> +// waveread can not detect RIFF with smpl chunck +// a non explicit error is returned + +filename = SCI + '/modules/sound/tests/nonreg_tests/bug_4832.wav'; +ierr = execstr('wavread(filename)','errcatch'); +if ierr<> 10000 then pause,end + diff --git a/modules/sound/tests/nonreg_tests/bug_4832.wav b/modules/sound/tests/nonreg_tests/bug_4832.wav Binary files differnew file mode 100755 index 000000000..fbdf657f3 --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_4832.wav diff --git a/modules/sound/tests/nonreg_tests/bug_600.tst b/modules/sound/tests/nonreg_tests/bug_600.tst new file mode 100755 index 000000000..83844739e --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_600.tst @@ -0,0 +1,29 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ????-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- INTERACTIVE TEST --> +// +// <-- Non-regression test for bug 600 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=600 +// +// <-- Short Description --> +// I am not able to hear the sounds using either the 'Sound' +// or 'playsnd' functions. +// +// The sound card is working properly with all other +// software. All other wave functions are working such as +// wavread loadwave etc... + +disp("activate your sound card, and run this file"); +disp("if you hear something, that means the playsnd & PlaySnd work"); + +y=wavread('SCI/modules/sound/demos/chimes.wav'); +playsnd(y); + +PlaySound('SCI/modules/sound/demos/chimes.wav'); diff --git a/modules/sound/tests/nonreg_tests/bug_629.dia.ref b/modules/sound/tests/nonreg_tests/bug_629.dia.ref new file mode 100755 index 000000000..5446ca10f --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_629.dia.ref @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ????-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- Non-regression test for bug 629 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=629 +// +// <-- Short Description --> +// When trying to use the wavread function I get these errors +// that make this function totally unuseful, either calling it +// with ONE parameter (a) or calling it with two parameters. +// I made myself sure that the parameters would be of the form +// indicated by help on line. +// exec("e:\testNonReg\629.sce"); +// iReturnCode=execstr("[x,fs,bits] = wavread("e:\testNonReg\t1.wav")','errcatch'); +if execstr("wavread(SCI+''/modules/sound/tests/nonreg_tests/bug_629.wav'')","errcatch") <> 0 then bugmes();quit;end diff --git a/modules/sound/tests/nonreg_tests/bug_629.tst b/modules/sound/tests/nonreg_tests/bug_629.tst new file mode 100755 index 000000000..44f7d2b5d --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_629.tst @@ -0,0 +1,24 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ????-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- Non-regression test for bug 629 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=629 +// +// <-- Short Description --> +// When trying to use the wavread function I get these errors +// that make this function totally unuseful, either calling it +// with ONE parameter (a) or calling it with two parameters. +// I made myself sure that the parameters would be of the form +// indicated by help on line. + + +// exec("e:\testNonReg\629.sce"); +// iReturnCode=execstr("[x,fs,bits] = wavread("e:\testNonReg\t1.wav")','errcatch'); + +if execstr("wavread(SCI+''/modules/sound/tests/nonreg_tests/bug_629.wav'')","errcatch") <> 0 then pause,end diff --git a/modules/sound/tests/nonreg_tests/bug_629.wav b/modules/sound/tests/nonreg_tests/bug_629.wav Binary files differnew file mode 100755 index 000000000..dbdaf413a --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_629.wav diff --git a/modules/sound/tests/nonreg_tests/bug_7161.dia.ref b/modules/sound/tests/nonreg_tests/bug_7161.dia.ref new file mode 100755 index 000000000..9b7b52b31 --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_7161.dia.ref @@ -0,0 +1,21 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- Non-regression test for bug 7161 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7161 +// +// <-- Short Description --> +// wavread failed to load some .wav files with error 44 +filename = SCI + '/modules/sound/tests/nonreg_tests/bug_7161.wav'; +ierr = execstr('[Ip, Fs, bits] = wavread(filename);', 'errcatch'); +if ierr <> 0 then bugmes();quit;end +sIp = size(Ip); +if sIp(1) <> 1 then bugmes();quit;end +if sIp(2) <> 65536 then bugmes();quit;end +if Fs <> 8000 then bugmes();quit;end +if bits <> 16 then bugmes();quit;end diff --git a/modules/sound/tests/nonreg_tests/bug_7161.tst b/modules/sound/tests/nonreg_tests/bug_7161.tst new file mode 100755 index 000000000..3c7a2ee24 --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_7161.tst @@ -0,0 +1,23 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- Non-regression test for bug 7161 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7161 +// +// <-- Short Description --> +// wavread failed to load some .wav files with error 44 + +filename = SCI + '/modules/sound/tests/nonreg_tests/bug_7161.wav'; +ierr = execstr('[Ip, Fs, bits] = wavread(filename);', 'errcatch'); +if ierr <> 0 then pause, end +sIp = size(Ip); +if sIp(1) <> 1 then pause, end +if sIp(2) <> 65536 then pause, end +if Fs <> 8000 then pause, end +if bits <> 16 then pause, end diff --git a/modules/sound/tests/nonreg_tests/bug_7161.wav b/modules/sound/tests/nonreg_tests/bug_7161.wav Binary files differnew file mode 100755 index 000000000..24d20c8ed --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_7161.wav diff --git a/modules/sound/tests/nonreg_tests/bug_9280.dia.ref b/modules/sound/tests/nonreg_tests/bug_9280.dia.ref new file mode 100755 index 000000000..a861257d3 --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_9280.dia.ref @@ -0,0 +1,21 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- Non-regression test for bug 9280 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=9280 +// +// <-- Short Description --> +// wavread failed to read PCM 32 bit float file format. +filename = SCI + '/modules/sound/tests/nonreg_tests/bug_9280.wav'; +ierr = execstr('[Ip, Fs, bits] = wavread(filename);', 'errcatch'); +if ierr <> 0 then bugmes();quit;end +sIp = size(Ip); +if sIp(1) <> 1 then bugmes();quit;end +if sIp(2) <> 1000 then bugmes();quit;end +if Fs <> 96000 then bugmes();quit;end +if bits <> 32 then bugmes();quit;end diff --git a/modules/sound/tests/nonreg_tests/bug_9280.tst b/modules/sound/tests/nonreg_tests/bug_9280.tst new file mode 100755 index 000000000..a1e3e191e --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_9280.tst @@ -0,0 +1,23 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- Non-regression test for bug 9280 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=9280 +// +// <-- Short Description --> +// wavread failed to read PCM 32 bit float file format. + +filename = SCI + '/modules/sound/tests/nonreg_tests/bug_9280.wav'; +ierr = execstr('[Ip, Fs, bits] = wavread(filename);', 'errcatch'); +if ierr <> 0 then pause, end +sIp = size(Ip); +if sIp(1) <> 1 then pause, end +if sIp(2) <> 1000 then pause, end +if Fs <> 96000 then pause, end +if bits <> 32 then pause, end diff --git a/modules/sound/tests/nonreg_tests/bug_9280.wav b/modules/sound/tests/nonreg_tests/bug_9280.wav Binary files differnew file mode 100755 index 000000000..875c31d9e --- /dev/null +++ b/modules/sound/tests/nonreg_tests/bug_9280.wav diff --git a/modules/sound/tests/unit_tests/beep.dia.ref b/modules/sound/tests/unit_tests/beep.dia.ref new file mode 100755 index 000000000..6acf8ed54 --- /dev/null +++ b/modules/sound/tests/unit_tests/beep.dia.ref @@ -0,0 +1,5 @@ +old = beep(); +if beep('on') <> 'on' then bugmes();quit;end; +if beep('off') <> 'off' then bugmes();quit;end; +if beep() <> 'off' then bugmes();quit;end; +beep(old); diff --git a/modules/sound/tests/unit_tests/beep.tst b/modules/sound/tests/unit_tests/beep.tst new file mode 100755 index 000000000..8fcd3c927 --- /dev/null +++ b/modules/sound/tests/unit_tests/beep.tst @@ -0,0 +1,12 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ????-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +old = beep(); +if beep('on') <> 'on' then pause,end; +if beep('off') <> 'off' then pause,end; +if beep() <> 'off' then pause,end; +beep(old); diff --git a/modules/sound/tests/unit_tests/mapsound.dia.ref b/modules/sound/tests/unit_tests/mapsound.dia.ref new file mode 100755 index 000000000..03f8b42ff --- /dev/null +++ b/modules/sound/tests/unit_tests/mapsound.dia.ref @@ -0,0 +1,7 @@ +// At first we create 0.5 seconds of sound parameters. +t=soundsec(0.5); +// Then we generate the sound. +s=sin(440*t)+sin(220*t)/2+sin(880*t)/2; +[nr,nc]=size(t); +s(nc/2:nc)=sin(330*t(nc/2:nc)); +mapsound(s); diff --git a/modules/sound/tests/unit_tests/mapsound.tst b/modules/sound/tests/unit_tests/mapsound.tst new file mode 100755 index 000000000..374c7d77e --- /dev/null +++ b/modules/sound/tests/unit_tests/mapsound.tst @@ -0,0 +1,14 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ????-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// At first we create 0.5 seconds of sound parameters. +t=soundsec(0.5); +// Then we generate the sound. +s=sin(440*t)+sin(220*t)/2+sin(880*t)/2; +[nr,nc]=size(t); +s(nc/2:nc)=sin(330*t(nc/2:nc)); +mapsound(s); diff --git a/modules/sound/tests/unit_tests/playsnd.dia.ref b/modules/sound/tests/unit_tests/playsnd.dia.ref new file mode 100755 index 000000000..14f96b452 --- /dev/null +++ b/modules/sound/tests/unit_tests/playsnd.dia.ref @@ -0,0 +1,23 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ????-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +y = wavread('SCI/modules/sound/demos/chimes.wav'); +playsnd(y); +tab_ref = [ +"世界您好", +"азеазея", +"ハロー・ワールド", +"เฮลโลเวิลด์", +"حريات وحقوق", +"תוכנית"]; +for i = 1 : size(tab_ref,'*') + mkdir(TMPDIR + filesep() + tab_ref(i)); + copyfile(SCI+'/modules/sound/demos/chimes.wav',TMPDIR + filesep() + tab_ref(i) + filesep() + tab_ref(i) +'.wav'); + y = wavread(TMPDIR + filesep() + tab_ref(i) + filesep() + tab_ref(i) +'.wav'); + playsnd(y); + mdelete(TMPDIR + filesep() + tab_ref(i) + filesep() + tab_ref(i) +'.wav'); + rmdir(TMPDIR + filesep() + tab_ref(i)); +end diff --git a/modules/sound/tests/unit_tests/playsnd.tst b/modules/sound/tests/unit_tests/playsnd.tst new file mode 100755 index 000000000..90a1cbe29 --- /dev/null +++ b/modules/sound/tests/unit_tests/playsnd.tst @@ -0,0 +1,26 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ????-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +y = wavread('SCI/modules/sound/demos/chimes.wav'); +playsnd(y); + +tab_ref = [ +"世界您好", +"азеазея", +"ハロー・ワールド", +"เฮลโลเวิลด์", +"حريات وحقوق", +"תוכנית"]; + +for i = 1 : size(tab_ref,'*') + mkdir(TMPDIR + filesep() + tab_ref(i)); + copyfile(SCI+'/modules/sound/demos/chimes.wav',TMPDIR + filesep() + tab_ref(i) + filesep() + tab_ref(i) +'.wav'); + y = wavread(TMPDIR + filesep() + tab_ref(i) + filesep() + tab_ref(i) +'.wav'); + playsnd(y); + mdelete(TMPDIR + filesep() + tab_ref(i) + filesep() + tab_ref(i) +'.wav'); + rmdir(TMPDIR + filesep() + tab_ref(i)); +end diff --git a/modules/sound/tests/unit_tests/savewave.dia.ref b/modules/sound/tests/unit_tests/savewave.dia.ref new file mode 100755 index 000000000..ed91e4d83 --- /dev/null +++ b/modules/sound/tests/unit_tests/savewave.dia.ref @@ -0,0 +1,13 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ????-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// At first we create 0.5 seconds of sound parameters. +t=soundsec(0.5); +// Then we generate the sound. +s=sin(440*t)+sin(220*t)/2+sin(880*t)/2; +[nr,nc]=size(t); +s(nc/2:nc)=sin(330*t(nc/2:nc)); +savewave(TMPDIR+'/foo.wav',s); diff --git a/modules/sound/tests/unit_tests/savewave.tst b/modules/sound/tests/unit_tests/savewave.tst new file mode 100755 index 000000000..8cd307907 --- /dev/null +++ b/modules/sound/tests/unit_tests/savewave.tst @@ -0,0 +1,15 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ????-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// At first we create 0.5 seconds of sound parameters. +t=soundsec(0.5); +// Then we generate the sound. +s=sin(440*t)+sin(220*t)/2+sin(880*t)/2; +[nr,nc]=size(t); +s(nc/2:nc)=sin(330*t(nc/2:nc)); +savewave(TMPDIR+'/foo.wav',s); +
\ No newline at end of file diff --git a/modules/sound/tests/unit_tests/sound.dia.ref b/modules/sound/tests/unit_tests/sound.dia.ref new file mode 100755 index 000000000..b6d3fb131 --- /dev/null +++ b/modules/sound/tests/unit_tests/sound.dia.ref @@ -0,0 +1,19 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ????-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// At first we create 0.5 seconds of sound parameters. +t=soundsec(0.5); +// Then we generate the sound. +s=sin(440*t)+sin(220*t)/2+sin(880*t)/2; +[nr,nc]=size(t); +s(nc/2:nc)=sin(330*t(nc/2:nc)); +// Save the file in WAV format. +// we renormalize s in order to check that save+load is invariant +s=s-sum(s)/prod(size(s)); s=s/max(abs(s)); +savewave(TMPDIR+"/test.wav",s); +// Load it back. +s1=loadwave(TMPDIR+"/test.wav"); +if max(abs(s1-s)) > 1.e-4 then bugmes();quit;end; diff --git a/modules/sound/tests/unit_tests/sound.tst b/modules/sound/tests/unit_tests/sound.tst new file mode 100755 index 000000000..b399eff11 --- /dev/null +++ b/modules/sound/tests/unit_tests/sound.tst @@ -0,0 +1,21 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ????-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// At first we create 0.5 seconds of sound parameters. +t=soundsec(0.5); +// Then we generate the sound. +s=sin(440*t)+sin(220*t)/2+sin(880*t)/2; +[nr,nc]=size(t); +s(nc/2:nc)=sin(330*t(nc/2:nc)); +// Save the file in WAV format. +// we renormalize s in order to check that save+load is invariant +s=s-sum(s)/prod(size(s)); s=s/max(abs(s)); +savewave(TMPDIR+"/test.wav",s); +// Load it back. +s1=loadwave(TMPDIR+"/test.wav"); +if max(abs(s1-s)) > 1.e-4 then pause,end; + diff --git a/modules/sound/tests/unit_tests/soundsec.dia.ref b/modules/sound/tests/unit_tests/soundsec.dia.ref new file mode 100755 index 000000000..f2211f8f9 --- /dev/null +++ b/modules/sound/tests/unit_tests/soundsec.dia.ref @@ -0,0 +1,50 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2014 - Scilab Enterprises - Pierre-Aime Agnel +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Unit tests for macro soundsec.sci --> +//============================================================================== +//Check abnormal entries +non_real_time = msprintf(_("%s: Wrong type for argument #%d: Real matrix expected.\n"),"soundsec",1); +non_real_freq = msprintf(_("%s: Wrong type for argument #%d: Real matrix expected.\n"),"soundsec",2); +non_positive_time=msprintf(_("%s: Wrong value for input argument #%d: Must be >= %d.\n"),"soundsec",1,0); +non_positive_freq=msprintf(_("%s: Wrong value for input argument #%d: Must be >= %d.\n"),"soundsec",2,0); +non_scalar_time=msprintf(_("%s: Wrong size for input argument #%d: %d-by-%d matrix expected.\n"),"soundsec",1,1,1); +non_scalar_freq=msprintf(_("%s: Wrong size for input argument #%d: %d-by-%d matrix expected.\n"),"soundsec",2,1,1); +//Soundsec must be called with real scalar values +assert_checkerror("soundsec(""test"",1)",non_real_time); +assert_checkerror("soundsec(%i,1)",non_real_time); +assert_checkerror("soundsec(1,""test"")",non_real_freq); +assert_checkerror("soundsec(1,%i)",non_real_freq); +assert_checkerror("soundsec(0:10,1)",non_scalar_time); +assert_checkerror("soundsec(1,0:10)",non_scalar_freq); +//Soundsec must be called with positive parameters +assert_checkerror("soundsec(-1,10)",non_positive_time); +assert_checkerror("soundsec(1,-1)",non_positive_freq); +//============================================================================== +//Check behaviour +//Soundsec returns empty value for a 0 sec sample +assert_checkequal(soundsec(0, 100), []); +//Soundsec returns empty value for a 0 frequency sample +assert_checkequal(soundsec(100, 0), []); +//Checks default behaviour for rate +assert_checkalmostequal( soundsec(10/22050), [0:9]./22050); +//Check 1s of samples at 10hz excluding the last is [0:9] +samples_t = soundsec(1, 10); +assert_checkalmostequal(samples_t, (0:9)/10); +//Check call on non integer time +samples_t = soundsec(0.11, 100); //eleven samples 0 0.01 ... 0.09 0.1 +assert_checkalmostequal(samples_t, (0:10)/100); +//Check call on non integer frequency +samples_t = soundsec(1,5.2); //samples 0 1/5.2 2/5.2 ... 5/5.2 +assert_checkalmostequal(samples_t, (0:5)/5.2); +//Check call on non integer frequency and time +samples_t = soundsec(1.2324,50.75); +//samples 0 1/50.75 ... 50/50.75 51/51.75 ... 62/50.75 +//note that 1.2324 > 62/50.75 and 1.2324 <= 63/50.75 +assert_checkalmostequal(samples_t, (0:62)/50.75); diff --git a/modules/sound/tests/unit_tests/soundsec.tst b/modules/sound/tests/unit_tests/soundsec.tst new file mode 100755 index 000000000..ceca9613d --- /dev/null +++ b/modules/sound/tests/unit_tests/soundsec.tst @@ -0,0 +1,69 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2014 - Scilab Enterprises - Pierre-Aime Agnel +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Unit tests for macro soundsec.sci --> + +//============================================================================== +//Check abnormal entries +non_real_time = msprintf(_("%s: Wrong type for argument #%d: Real matrix expected.\n"),"soundsec",1); +non_real_freq = msprintf(_("%s: Wrong type for argument #%d: Real matrix expected.\n"),"soundsec",2); + +non_positive_time=msprintf(_("%s: Wrong value for input argument #%d: Must be >= %d.\n"),"soundsec",1,0); +non_positive_freq=msprintf(_("%s: Wrong value for input argument #%d: Must be >= %d.\n"),"soundsec",2,0); + +non_scalar_time=msprintf(_("%s: Wrong size for input argument #%d: %d-by-%d matrix expected.\n"),"soundsec",1,1,1); +non_scalar_freq=msprintf(_("%s: Wrong size for input argument #%d: %d-by-%d matrix expected.\n"),"soundsec",2,1,1); + + +//Soundsec must be called with real scalar values +assert_checkerror("soundsec(""test"",1)",non_real_time); +assert_checkerror("soundsec(%i,1)",non_real_time); +assert_checkerror("soundsec(1,""test"")",non_real_freq); +assert_checkerror("soundsec(1,%i)",non_real_freq); + +assert_checkerror("soundsec(0:10,1)",non_scalar_time); +assert_checkerror("soundsec(1,0:10)",non_scalar_freq); + +//Soundsec must be called with positive parameters +assert_checkerror("soundsec(-1,10)",non_positive_time); +assert_checkerror("soundsec(1,-1)",non_positive_freq); + + +//============================================================================== +//Check behaviour + +//Soundsec returns empty value for a 0 sec sample +assert_checkequal(soundsec(0, 100), []); +//Soundsec returns empty value for a 0 frequency sample +assert_checkequal(soundsec(100, 0), []); + +//Checks default behaviour for rate +assert_checkalmostequal( soundsec(10/22050), [0:9]./22050); + +//Check 1s of samples at 10hz excluding the last is [0:9] +samples_t = soundsec(1, 10); +assert_checkalmostequal(samples_t, (0:9)/10); + +//Check call on non integer time +samples_t = soundsec(0.11, 100); //eleven samples 0 0.01 ... 0.09 0.1 +assert_checkalmostequal(samples_t, (0:10)/100); + +//Check call on non integer frequency +samples_t = soundsec(1,5.2); //samples 0 1/5.2 2/5.2 ... 5/5.2 +assert_checkalmostequal(samples_t, (0:5)/5.2); + + +//Check call on non integer frequency and time +samples_t = soundsec(1.2324,50.75); +//samples 0 1/50.75 ... 50/50.75 51/51.75 ... 62/50.75 +//note that 1.2324 > 62/50.75 and 1.2324 <= 63/50.75 +assert_checkalmostequal(samples_t, (0:62)/50.75); + + + diff --git a/modules/sound/tests/unit_tests/wavread.dia.ref b/modules/sound/tests/unit_tests/wavread.dia.ref new file mode 100755 index 000000000..edb088dfc --- /dev/null +++ b/modules/sound/tests/unit_tests/wavread.dia.ref @@ -0,0 +1,24 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ????-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + a = wavread('SCI/modules/sound/demos/chimes.wav','size'); + if size(a) <> [ 1 2] then bugmes();quit;end + if a <> [ 2 13921] then bugmes();quit;end + [y,Fs,bits]=wavread('SCI/modules/sound/demos/chimes.wav'); + if Fs <> 22050 then bugmes();quit;end + if bits <> 16 then bugmes();quit;end + if size(y) <> [ 2 13921] then bugmes();quit;end + //subplot(2,1,1) + //plot2d(y(:,1)) + //subplot(2,1,2) + //plot2d(y(:,2)) + //xdel(winsid()); + y=wavread('SCI/modules/sound/demos/chimes.wav',[1 5]) //the first five samples + y = + + 0.0000610 0.0002747 0.0002136 0.0001526 0.0000916 + 0.0000916 0.0001831 0.0000610 0. 0.0000916 + if size(y) <> [2 5] then bugmes();quit;end diff --git a/modules/sound/tests/unit_tests/wavread.tst b/modules/sound/tests/unit_tests/wavread.tst new file mode 100755 index 000000000..b64231ba6 --- /dev/null +++ b/modules/sound/tests/unit_tests/wavread.tst @@ -0,0 +1,23 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ????-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + + a = wavread('SCI/modules/sound/demos/chimes.wav','size'); + if size(a) <> [ 1 2] then pause,end + if a <> [ 2 13921] then pause,end + + [y,Fs,bits]=wavread('SCI/modules/sound/demos/chimes.wav'); + if Fs <> 22050 then pause,end + if bits <> 16 then pause,end + if size(y) <> [ 2 13921] then pause,end + //subplot(2,1,1) + //plot2d(y(:,1)) + //subplot(2,1,2) + //plot2d(y(:,2)) + //xdel(winsid()); + + y=wavread('SCI/modules/sound/demos/chimes.wav',[1 5]) //the first five samples + if size(y) <> [2 5] then pause,end diff --git a/modules/sound/tests/unit_tests/wavwrite.dia.ref b/modules/sound/tests/unit_tests/wavwrite.dia.ref new file mode 100755 index 000000000..4e4123b91 --- /dev/null +++ b/modules/sound/tests/unit_tests/wavwrite.dia.ref @@ -0,0 +1,10 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + A = matrix(1:6,2,3); + wavwrite(A/6,TMPDIR+'/foo.wav'); + B = wavread(TMPDIR+'/foo.wav'); + if max(abs(A- round(B*6))) <> 0 then bugmes();quit;end diff --git a/modules/sound/tests/unit_tests/wavwrite.tst b/modules/sound/tests/unit_tests/wavwrite.tst new file mode 100755 index 000000000..eb5cd290c --- /dev/null +++ b/modules/sound/tests/unit_tests/wavwrite.tst @@ -0,0 +1,11 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + + A = matrix(1:6,2,3); + wavwrite(A/6,TMPDIR+'/foo.wav'); + B = wavread(TMPDIR+'/foo.wav'); + if max(abs(A- round(B*6))) <> 0 then pause,end |