/usr/share/psychtoolbox-3/PsychSound/psychwavread.m is in psychtoolbox-3-common 3.0.14.20170103+git6-g605ff5c.dfsg1-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | function [y, Fs] = psychwavread(varargin)
% psychwavread - Replacement for wavread().
%
% Replaces the Matlab wavread() function, which was removed
% in Matlab R2015b, by the audioread() function, which was
% introduced in R2012b, to provide basic sanity to the mess
% that is Matlab's way of (not) dealing with "backwards
% compatibility".
%
% This is a least common denominator implementation of
% what both wavread() and audioread() support in a
% compatible fashion. See the help of either one for
% details.
%
% Usage:
%
% [y, Fs] = psychwavread(filename [, samples][, dataType]);
%
% History:
% 02-Feb-2016 mk Created.
if exist('audioread')
[y, Fs] = audioread(varargin{:});
else
[y, Fs] = wavread(varargin{:});
end
|