summaryrefslogtreecommitdiff
path: root/modules/sound/tests/unit_tests/wavwrite.dia.ref
blob: 4e4123b9175ec2f09c74d321ea5b1ffb1a82246d (plain)
1
2
3
4
5
6
7
8
9
10
// =============================================================================
// 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 bugmes();quit;end