summaryrefslogtreecommitdiff
path: root/modules/sound/tests/unit_tests/wavwrite.tst
blob: eb5cd290c5b8d9f2e2f8500f2eb1c9a84574ab6f (plain)
1
2
3
4
5
6
7
8
9
10
11
// =============================================================================
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2008 - DIGITEO - Allan CORNET
//
//  This file is distributed under the same license as the Scilab package.
// =============================================================================

  A = matrix(1:6,2,3);
  wavwrite(A/6,TMPDIR+'/foo.wav');
  B = wavread(TMPDIR+'/foo.wav');
  if max(abs(A- round(B*6))) <> 0 then pause,end