# HG changeset patch # User Mike Miller # Date 1380684997 14400 # Node ID 8bb3995693934ab8b9e3a7d63c38682c2656220b # Parent 9c56d3fafb9e2834641db8e6b1540e19230efc4a Add Octave copyright header block to audio project files * libinterp/dldfcn/__player_audioplayer__.cc, libinterp/dldfcn/__recorder_audiorecorder__.cc, libinterp/dldfcn/audiodevinfo.cc, libinterp/dldfcn/audioinfo.cc, libinterp/dldfcn/audioread.cc, libinterp/dldfcn/audiowrite.cc, libinterp/dldfcn/player_class.cc, libinterp/dldfcn/player_class.h, libinterp/dldfcn/recorder_class.cc, libinterp/dldfcn/recorder_class.h, scripts/audio/@audioplayer/__get_properties__.m, scripts/audio/@audioplayer/audioplayer.m, scripts/audio/@audioplayer/display.m, scripts/audio/@audioplayer/get.m, scripts/audio/@audioplayer/isplaying.m, scripts/audio/@audioplayer/pause.m, scripts/audio/@audioplayer/play.m, scripts/audio/@audioplayer/playblocking.m, scripts/audio/@audioplayer/resume.m, scripts/audio/@audioplayer/set.m, scripts/audio/@audioplayer/stop.m, scripts/audio/@audioplayer/subsasgn.m, scripts/audio/@audioplayer/subsref.m, scripts/audio/@audiorecorder/__get_properties__.m, scripts/audio/@audiorecorder/audiorecorder.m, scripts/audio/@audiorecorder/display.m, scripts/audio/@audiorecorder/get.m, scripts/audio/@audiorecorder/getaudiodata.m, scripts/audio/@audiorecorder/getplayer.m, scripts/audio/@audiorecorder/isrecording.m, scripts/audio/@audiorecorder/pause.m, scripts/audio/@audiorecorder/play.m, scripts/audio/@audiorecorder/record.m, scripts/audio/@audiorecorder/recordblocking.m, scripts/audio/@audiorecorder/resume.m, scripts/audio/@audiorecorder/set.m, scripts/audio/@audiorecorder/stop.m, scripts/audio/@audiorecorder/subsasgn.m, scripts/audio/@audiorecorder/subsref.m: Add Octave copyright header. diff -r 9c56d3fafb9e -r 8bb399569393 libinterp/dldfcn/__player_audioplayer__.cc --- a/libinterp/dldfcn/__player_audioplayer__.cc Mon Sep 23 15:04:27 2013 +0300 +++ b/libinterp/dldfcn/__player_audioplayer__.cc Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,25 @@ +/* + +Copyright (C) 2013 Vytautas Jančauskas + +This file is part of Octave. + +Octave is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 3 of the License, or (at your +option) any later version. + +Octave is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Octave; see the file COPYING. If not, see +. + +*/ + #include "oct.h" #include "ov-struct.h" diff -r 9c56d3fafb9e -r 8bb399569393 libinterp/dldfcn/__recorder_audiorecorder__.cc --- a/libinterp/dldfcn/__recorder_audiorecorder__.cc Mon Sep 23 15:04:27 2013 +0300 +++ b/libinterp/dldfcn/__recorder_audiorecorder__.cc Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,25 @@ +/* + +Copyright (C) 2013 Vytautas Jančauskas + +This file is part of Octave. + +Octave is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 3 of the License, or (at your +option) any later version. + +Octave is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Octave; see the file COPYING. If not, see +. + +*/ + #include "oct.h" #include "ov-struct.h" diff -r 9c56d3fafb9e -r 8bb399569393 libinterp/dldfcn/audiodevinfo.cc --- a/libinterp/dldfcn/audiodevinfo.cc Mon Sep 23 15:04:27 2013 +0300 +++ b/libinterp/dldfcn/audiodevinfo.cc Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,25 @@ +/* + +Copyright (C) 2013 Vytautas Jančauskas + +This file is part of Octave. + +Octave is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 3 of the License, or (at your +option) any later version. + +Octave is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Octave; see the file COPYING. If not, see +. + +*/ + #include "oct.h" #include "ov-struct.h" #include @@ -414,4 +436,4 @@ %! assert(devinfo.('input')(i).('ID') == audiodevinfo(0, devinfo.('input')(i).('Name'))) %! end -*/ \ No newline at end of file +*/ diff -r 9c56d3fafb9e -r 8bb399569393 libinterp/dldfcn/audioinfo.cc --- a/libinterp/dldfcn/audioinfo.cc Mon Sep 23 15:04:27 2013 +0300 +++ b/libinterp/dldfcn/audioinfo.cc Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,25 @@ +/* + +Copyright (C) 2013 Vytautas Jančauskas + +This file is part of Octave. + +Octave is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 3 of the License, or (at your +option) any later version. + +Octave is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Octave; see the file COPYING. If not, see +. + +*/ + #include "oct.h" #include "ov-struct.h" #ifdef HAVE_SNDFILE diff -r 9c56d3fafb9e -r 8bb399569393 libinterp/dldfcn/audioread.cc --- a/libinterp/dldfcn/audioread.cc Mon Sep 23 15:04:27 2013 +0300 +++ b/libinterp/dldfcn/audioread.cc Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,25 @@ +/* + +Copyright (C) 2013 Vytautas Jančauskas + +This file is part of Octave. + +Octave is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 3 of the License, or (at your +option) any later version. + +Octave is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Octave; see the file COPYING. If not, see +. + +*/ + #include "oct.h" #include "ov-struct.h" #ifdef HAVE_SNDFILE diff -r 9c56d3fafb9e -r 8bb399569393 libinterp/dldfcn/audiowrite.cc --- a/libinterp/dldfcn/audiowrite.cc Mon Sep 23 15:04:27 2013 +0300 +++ b/libinterp/dldfcn/audiowrite.cc Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,25 @@ +/* + +Copyright (C) 2013 Vytautas Jančauskas + +This file is part of Octave. + +Octave is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 3 of the License, or (at your +option) any later version. + +Octave is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Octave; see the file COPYING. If not, see +. + +*/ + #include "oct.h" #include "ov-struct.h" #ifdef HAVE_SNDFILE diff -r 9c56d3fafb9e -r 8bb399569393 libinterp/dldfcn/player_class.cc --- a/libinterp/dldfcn/player_class.cc Mon Sep 23 15:04:27 2013 +0300 +++ b/libinterp/dldfcn/player_class.cc Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,25 @@ +/* + +Copyright (C) 2013 Vytautas Jančauskas + +This file is part of Octave. + +Octave is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 3 of the License, or (at your +option) any later version. + +Octave is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Octave; see the file COPYING. If not, see +. + +*/ + #include "oct.h" #include "ov.h" #include "parse.h" @@ -608,4 +630,4 @@ return false; } return bool(err); -} \ No newline at end of file +} diff -r 9c56d3fafb9e -r 8bb399569393 libinterp/dldfcn/player_class.h --- a/libinterp/dldfcn/player_class.h Mon Sep 23 15:04:27 2013 +0300 +++ b/libinterp/dldfcn/player_class.h Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,25 @@ +/* + +Copyright (C) 2013 Vytautas Jančauskas + +This file is part of Octave. + +Octave is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 3 of the License, or (at your +option) any later version. + +Octave is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Octave; see the file COPYING. If not, see +. + +*/ + #ifndef PLAYER_CLASS_H #define PLAYER_CLASS_H diff -r 9c56d3fafb9e -r 8bb399569393 libinterp/dldfcn/recorder_class.cc --- a/libinterp/dldfcn/recorder_class.cc Mon Sep 23 15:04:27 2013 +0300 +++ b/libinterp/dldfcn/recorder_class.cc Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,25 @@ +/* + +Copyright (C) 2013 Vytautas Jančauskas + +This file is part of Octave. + +Octave is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 3 of the License, or (at your +option) any later version. + +Octave is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Octave; see the file COPYING. If not, see +. + +*/ + #include "oct.h" #include "ov.h" #include "parse.h" diff -r 9c56d3fafb9e -r 8bb399569393 libinterp/dldfcn/recorder_class.h --- a/libinterp/dldfcn/recorder_class.h Mon Sep 23 15:04:27 2013 +0300 +++ b/libinterp/dldfcn/recorder_class.h Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,25 @@ +/* + +Copyright (C) 2013 Vytautas Jančauskas + +This file is part of Octave. + +Octave is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 3 of the License, or (at your +option) any later version. + +Octave is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Octave; see the file COPYING. If not, see +. + +*/ + #ifndef RECORDER_CLASS_H #define RECORDER_CLASS_H diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audioplayer/__get_properties__.m --- a/scripts/audio/@audioplayer/__get_properties__.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audioplayer/__get_properties__.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + ## -*- texinfo -*- ## @deftypefn{Function File} @var{Properties} = __get_properties__ (@var{playerObj}) ## For a given audioplayer object this function gathers and returns the current values of all properties. @@ -19,4 +37,4 @@ properties.Tag = __player_get_tag__ (struct (player).player); properties.Type = "audioplayer"; properties.UserData = __player_get_userdata__ (struct (player).player); -endfunction \ No newline at end of file +endfunction diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audioplayer/audioplayer.m --- a/scripts/audio/@audioplayer/audioplayer.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audioplayer/audioplayer.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + ## -*- texinfo -*- ## @deftypefn{Function File} player = audioplayer (@var{Y}, @var{Fs}) ## Create an audioplayer object that will play back data @var{Y} at sample rate @var{Fs}. diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audioplayer/display.m --- a/scripts/audio/@audioplayer/display.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audioplayer/display.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + ## -*- texinfo -*- ## @deftypefn{Function File} display (@var{playerObj}) ## Display an audioplayer object. @@ -5,4 +23,4 @@ function display(player) disp(__get_properties__(player)); -endfunction \ No newline at end of file +endfunction diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audioplayer/get.m --- a/scripts/audio/@audioplayer/get.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audioplayer/get.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + ## -*- texinfo -*- ## @deftypefn{Function File} @var{Value} = get (@var{playerObj}, @var{Name}) ## Returns the @var{Value} of the property identified by @var{Name}. @@ -29,4 +47,4 @@ else error ('audioplayer: wrong number of arguments to the get method'); endif -endfunction \ No newline at end of file +endfunction diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audioplayer/isplaying.m --- a/scripts/audio/@audioplayer/isplaying.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audioplayer/isplaying.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + ## -*- texinfo -*- ## @deftypefn{Function File} isplaying (@var{playerObj}) ## Returns 1 if the audioplayer object is currently playing back audio. @@ -6,4 +24,4 @@ function result = isplaying(player) result = __player_isplaying__(struct(player).player); -endfunction \ No newline at end of file +endfunction diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audioplayer/pause.m --- a/scripts/audio/@audioplayer/pause.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audioplayer/pause.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + ## -*- texinfo -*- ## @deftypefn{Function File} pause (@var{playerObj}) ## Pause the playback with the possibility of resuming it later at the same place. @@ -5,4 +23,4 @@ function pause(player) __player_pause__(struct(player).player); -endfunction \ No newline at end of file +endfunction diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audioplayer/play.m --- a/scripts/audio/@audioplayer/play.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audioplayer/play.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + ## -*- texinfo -*- ## @deftypefn{Function File} play (@var{playerObj}) ## Play back audio stored in an audioplayer object without blocking. @@ -14,4 +32,4 @@ print_usage (); endif __player_play__(struct(varargin{1}).player, varargin{2:end}); -endfunction \ No newline at end of file +endfunction diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audioplayer/playblocking.m --- a/scripts/audio/@audioplayer/playblocking.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audioplayer/playblocking.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + ## -*- texinfo -*- ## @deftypefn{Function File} playblocking (@var{playerObj}) ## Play back audio stored in the audioplayer object with blocking. @@ -14,4 +32,4 @@ print_usage (); endif __player_playblocking__(struct(varargin{1}).player, varargin{2:end}); -endfunction \ No newline at end of file +endfunction diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audioplayer/resume.m --- a/scripts/audio/@audioplayer/resume.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audioplayer/resume.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + ## -*- texinfo -*- ## @deftypefn{Function File} resume (@var{playerObj}) ## Resume playback for a previously paused audioplayer object. @@ -5,4 +23,4 @@ function resume(player) __player_resume__(struct(player).player); -endfunction \ No newline at end of file +endfunction diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audioplayer/set.m --- a/scripts/audio/@audioplayer/set.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audioplayer/set.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + ## -*- texinfo -*- ## @deftypefn{Function File} set (@var{playerObj}, @var{Name}, @var{Value}) ## Set the value of property specified by @var{Name} to a given @var{Value}. @@ -51,4 +69,4 @@ otherwise error ('audioplayer: no such property or the property specified is read-only'); endswitch -endfunction \ No newline at end of file +endfunction diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audioplayer/stop.m --- a/scripts/audio/@audioplayer/stop.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audioplayer/stop.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + ## -*- texinfo -*- ## @deftypefn{Function File} stop (@var{playerObj}) ## Stop the playback and reset the relevant variables to their starting values. @@ -5,4 +23,4 @@ function stop(player) __player_stop__(struct(player).player); -endfunction \ No newline at end of file +endfunction diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audioplayer/subsasgn.m --- a/scripts/audio/@audioplayer/subsasgn.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audioplayer/subsasgn.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + function value = subsasgn(player, idx, rhs) if (isempty (idx)) error ("audioplayer: missing index"); @@ -9,4 +27,4 @@ else error ("audioplayer: invalid subscript type"); endif -endfunction \ No newline at end of file +endfunction diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audioplayer/subsref.m --- a/scripts/audio/@audioplayer/subsref.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audioplayer/subsref.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + function value = subsref(player, idx) if (isempty (idx)) error ("audioplayer: missing index"); @@ -8,4 +26,4 @@ else error ("audioplayer: invalid subscript file") endif -endfunction \ No newline at end of file +endfunction diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audiorecorder/__get_properties__.m --- a/scripts/audio/@audiorecorder/__get_properties__.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audiorecorder/__get_properties__.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + function properties = __get_properties__ (recorder) properties.BitsPerSample = __recorder_get_nbits__ (struct(recorder).recorder); properties.CurrentSample = __recorder_get_sample_number__ (struct(recorder).recorder); @@ -14,4 +32,4 @@ properties.Tag = __recorder_get_tag__ (struct (recorder).recorder); properties.Type = "audiorecorder"; properties.UserData = __recorder_get_userdata__ (struct (recorder).recorder); -endfunction \ No newline at end of file +endfunction diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audiorecorder/audiorecorder.m --- a/scripts/audio/@audiorecorder/audiorecorder.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audiorecorder/audiorecorder.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + ## -*- texinfo -*- ## @deftypefn{Function File} recorder = audiorecorder ## Create an audiorecorder object recording 8 bit mono audio at 8000 Hz sample rate. @@ -115,4 +133,4 @@ #%! sleep (2); #%! stop (recorder); #%! s = stat('record.txt'); -#%! assert (s.size > 0); \ No newline at end of file +#%! assert (s.size > 0); diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audiorecorder/display.m --- a/scripts/audio/@audiorecorder/display.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audiorecorder/display.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + ## -*- texinfo -*- ## @deftypefn{Function File} display (@var{recorderObj}) ## Display an audiorecorder object. @@ -5,4 +23,4 @@ function display(recorder) disp(__get_properties__(recorder)); -endfunction \ No newline at end of file +endfunction diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audiorecorder/get.m --- a/scripts/audio/@audiorecorder/get.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audiorecorder/get.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + ## -*- texinfo -*- ## @deftypefn{Function File} @var{Value} = get (@var{recorderObj}, @var{Name}) ## Returns the @var{Value} of the property identified by @var{Name}. @@ -29,4 +47,4 @@ else error ('audiorecorder: wrong number of arguments to the get method'); endif -endfunction \ No newline at end of file +endfunction diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audiorecorder/getaudiodata.m --- a/scripts/audio/@audiorecorder/getaudiodata.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audiorecorder/getaudiodata.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + ## -*- texinfo -*- ## @deftypefn{Function File} getaudiodata (@var{recorderObj}) ## Returns recorder audio data as a Matrix with values between -1.0 and 1.0 and with as many columns as there are channels in the recorder. @@ -31,4 +49,4 @@ else data = data(1,:)'; endif -endfunction \ No newline at end of file +endfunction diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audiorecorder/getplayer.m --- a/scripts/audio/@audiorecorder/getplayer.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audiorecorder/getplayer.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + ## -*- texinfo -*- ## @deftypefn{Function File} getplayer (@var{recorderObj}) ## Returns an audioplayer object with data recorded by the recorder. @@ -10,4 +28,4 @@ recorder = varargin{1}; data = getaudiodata(recorder); player = audioplayer(data, get(recorder, 'SampleRate'), get(recorder, 'BitsPerSample')); -endfunction \ No newline at end of file +endfunction diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audiorecorder/isrecording.m --- a/scripts/audio/@audiorecorder/isrecording.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audiorecorder/isrecording.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + ## -*- texinfo -*- ## @deftypefn{Function File} isrecording (@var{recorderObj}) ## Returns 1 if the audiorecorder object is currently recording audio. @@ -6,4 +24,4 @@ function result = isrecording(recorder) result = __recorder_isrecording__(struct(recorder).recorder); -endfunction \ No newline at end of file +endfunction diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audiorecorder/pause.m --- a/scripts/audio/@audiorecorder/pause.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audiorecorder/pause.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + ## -*- texinfo -*- ## @deftypefn{Function File} pause (@var{recorderObj}) ## Pause recording with the possibility of resuming it later. @@ -5,4 +23,4 @@ function pause(recorder) __recorder_pause__(struct(recorder).recorder); -endfunction \ No newline at end of file +endfunction diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audiorecorder/play.m --- a/scripts/audio/@audiorecorder/play.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audiorecorder/play.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + ## -*- texinfo -*- ## @deftypefn{Function File} player = play (@var{recorderObj}) ## Play the audio recorded in @var{recorderObj} and return a corresponding audioplayer object. @@ -21,4 +39,4 @@ else play(player, varargin{2}); endif -endfunction \ No newline at end of file +endfunction diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audiorecorder/record.m --- a/scripts/audio/@audiorecorder/record.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audiorecorder/record.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + ## -*- texinfo -*- ## @deftypefn{Function File} record (@var{recorderObj}) ## Record audio without blocking. The recording will continue until you use the stop method on @var{recorderObj}. @@ -11,4 +29,4 @@ print_usage (); endif __recorder_record__(struct(varargin{1}).recorder, varargin{2:end}); -endfunction \ No newline at end of file +endfunction diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audiorecorder/recordblocking.m --- a/scripts/audio/@audiorecorder/recordblocking.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audiorecorder/recordblocking.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + ## -*- texinfo -*- ## @deftypefn{Function File} recordblocking (@var{recorderObj}, @var{length}) ## Record audio with blocking (synchronous I/O). You must specify the number of seconds @@ -9,4 +27,4 @@ print_usage (); endif __recorder_recordblocking__(struct(varargin{1}).recorder, varargin{2}); -endfunction \ No newline at end of file +endfunction diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audiorecorder/resume.m --- a/scripts/audio/@audiorecorder/resume.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audiorecorder/resume.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + ## -*- texinfo -*- ## @deftypefn{Function File} resume (@var{recorderObj}) ## Will resume recording if pause was used before on @var{recorderObj}. @@ -5,4 +23,4 @@ function resume(recorder) __recorder_resume__(struct(recorder).recorder); -endfunction \ No newline at end of file +endfunction diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audiorecorder/set.m --- a/scripts/audio/@audiorecorder/set.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audiorecorder/set.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + ## -*- texinfo -*- ## @deftypefn{Function File} set (@var{recorderObj}, @var{Name}, @var{Value}) ## Set the value of property specified by @var{Name} to a given @var{Value}. @@ -51,4 +69,4 @@ otherwise error ('audiorecorder: no such property or the property specified is read-only'); endswitch -endfunction \ No newline at end of file +endfunction diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audiorecorder/stop.m --- a/scripts/audio/@audiorecorder/stop.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audiorecorder/stop.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + ## -*- texinfo -*- ## @deftypefn{Function File} stop (@var{recorderObj}) ## Will stop recording, clean up any audio streams. @@ -5,4 +23,4 @@ function stop(recorder) __recorder_stop__(struct(recorder).recorder); -endfunction \ No newline at end of file +endfunction diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audiorecorder/subsasgn.m --- a/scripts/audio/@audiorecorder/subsasgn.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audiorecorder/subsasgn.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + function value = subsasgn(recorder, idx, rhs) if (isempty (idx)) error ("audiorecorder: missing index"); @@ -9,4 +27,4 @@ else error ("audiorecorder: invalid subscript type"); endif -endfunction \ No newline at end of file +endfunction diff -r 9c56d3fafb9e -r 8bb399569393 scripts/audio/@audiorecorder/subsref.m --- a/scripts/audio/@audiorecorder/subsref.m Mon Sep 23 15:04:27 2013 +0300 +++ b/scripts/audio/@audiorecorder/subsref.m Tue Oct 01 23:36:37 2013 -0400 @@ -1,3 +1,21 @@ +## Copyright (C) 2013 Vytautas Jančauskas +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3 of the License, or (at +## your option) any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, see +## . + function value = subsref(recorder, idx) if (isempty (idx)) error ("audiorecorder: missing index"); @@ -8,4 +26,4 @@ else error ("audiorecorder: invalid subscript file") endif -endfunction \ No newline at end of file +endfunction