Skip to content

Commit

Permalink
DEBUG: check for mono soundfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jpeelle committed Feb 6, 2019
1 parent 333dc56 commit ac5a0a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jp_vocode.m
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@
% From https://github.com/jpeelle/jp_matlab

% error checking
if num_channels < 1; error('Must have at least 1 channel.'); end

assert(min(size(soundfile))==1, 'Sound file must be mono.');
assert(num_channels > 0, 'Must have at least 1 channel.');

[pathstr, filename, fileext] = fileparts(soundfile);

Expand Down

0 comments on commit ac5a0a4

Please sign in to comment.