Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
toolbox
Commits
bf1c67fb
Commit
bf1c67fb
authored
Aug 09, 2017
by
Jan-Gerrit Richter
Browse files
added core audio format to ita_read
parent
7987fe99
Changes
1
Hide whitespace changes
Inline
Side-by-side
kernel/DataAudio_IO/ita_read/ita_read_caf.m
0 → 100644
View file @
bf1c67fb
function
result
=
ita
_
read
_
caf
(
filename
,
varargin
)
%
ITA
_
READ
_
FLAC
-
Read
Free
Lossless
Audio
Codec
Files
%
This
function
is
completely
based
on
the
MATLAB
audioread
.
%
%
It
returns
a
itaAudio
object
containing
the
files
data
and
metadata
.
%
%
See
also
ita
_
read
,
ita
_
write
,
audioread
.
%
<
ITA
-
Toolbox
>
%
This
file
is
part
of
the
ITA
-
Toolbox
.
Some
rights
reserved
.
%
You
can
find
the
license
for
this
m
-
file
in
the
license
.
txt
file
in
the
ITA
-
Toolbox
folder
.
%
</
ITA
-
Toolbox
>
%%
Return
type
of
data
this
function
can
read
if
nargin
==
0
result
{
1
}
.
extension
=
'.
caf
';
result
{
1
}
.
comment
=
'
Core
Audio
Format
Files
(*.caf)';
return
end
if ~exist(filename,'file')
error('ITA_READ_CAF: File does not exist');
end
try
[data,fs] = audioread(filename);
result = itaAudio;
result.samplingRate = fs;
result.timeData = data;
catch
error('ITA_READ_CAF: Something went wrong');
end
end
Jan-Gerrit Richter
@jan.richter
mentioned in issue
#16 (closed)
·
Aug 09, 2017
mentioned in issue
#16 (closed)
mentioned in issue #16
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment