Skip to content

Commit

Permalink
Document errors and warnings in help text.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcecj committed Oct 30, 2012
1 parent 7b06f0d commit 9babfba
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/+msndfile/blockread.m
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,31 @@
% LITTLE Force little endian-ness.
% BIG Force big endian-ness.
% CPU Force CPU endian-ness.
%
% Errors and warnings
% -------------------
%
% Under certain conditions, MSNDFILE.BLOCKREAD() will raise a warning or error.
%
% The errors specific to MSNDFILE.BLOCKREAD() are:
%
% - msndfile:blockread:filenotopen
%
% An operation on an unopened file was attempted. Open the file first.
%
% - msndfile:blockread:fileopen
%
% An attempt was made to open an already opened file.
%
% Generic errors used throughout msndfile:
%
% - msndfile:argerror Too few or incorrect arguments were passed.
% - msndfile:sndfile A call to libsndfile failed fatally.
% - msndfile:system A system error (e.g., a failed memory allocation).
%
% Generic warnings used throughout msndfile:
%
% - msndfile:sndfile A call to libsndfile failed non-fatally.

% (c) Marc Joliet <marcec@gmx.de>
%
Expand Down
30 changes: 30 additions & 0 deletions src/+msndfile/read.m
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,36 @@
% LITTLE Force little endian-ness.
% BIG Force big endian-ness.
% CPU Force CPU endian-ness.
%
% Errors and warnings
% -------------------
%
% Under certain conditions, MSNDFILE.READ() will raise a warning or error.
%
% The errors specific to MSNDFILE.READ() are:
%
% - msndfile:read:ambiguousname
%
% The file name (sans suffix) is ambiguous and no WAV file was found among the
% files found. You should pass the full file name.
%
% The warnings specific to MSNDFILE.READ() are:
%
% - msndfile:read:ambiguousname
%
% The file name (sans suffix) is ambiguous, but there was a WAV file among the
% files found.
%
% Generic errors used throughout msndfile:
%
% - msndfile:argerror Too few or incorrect arguments were passed.
% - msndfile:sndfile A call to libsndfile failed fatally.
% - msndfile:system A system error (e.g., a failed memory allocation).
%
% Generic warnings used throughout msndfile:
%
% - msndfile:sndfile A call to libsndfile failed non-fatally.


% (c) Marc Joliet <marcec@gmx.de>
%
Expand Down

0 comments on commit 9babfba

Please sign in to comment.