help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: audio check?


From: Jim Langston
Subject: Re: audio check?
Date: Tue, 04 Sep 2007 13:59:23 -0400
User-agent: Thunderbird 1.5.0.8 (X11/20061204)

Thanks John,

octave:1> A = [1:10; 1:10]/10;
octave:2> wavwrite("a.wav", A);
octave:3> [B, samples_per_sec, bits_per_sample] = wavread("a.wav");
^C^CPress Control-C again to abort.
^Cpanic: Interrupt -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete

bash-3.00$
bash-3.00$ ls -l a.wav
-rw-r--r--   1 langston langston      84 Sep  4 13:44 a.wav
bash-3.00$ file a.wav
a.wav:          audio data: 16-bit linear PCM,
bash-3.00$


In the directory, I have a a.wav file, but it doesn't get past the wavread

In dbx:

octave:1> A = [1:10; 1:10]/10;
octave:2> wavwrite("a.wav", A);
octave:3> [B, samples_per_sec, bits_per_sample] = wavread("a.wav");
^Cdbx: warning: Interrupt ignored but forwarded to child.
address@hidden (address@hidden) signal INT (Interrupt) in 
c_file_ptr_buf::underflow at 0xfe273724
0xfe273724: underflow+0x0020:   addl     $0x00000014,%esp
(dbx) where
current thread: address@hidden
=>[1] c_file_ptr_buf::underflow(0x87ad7a0), at 0xfe273724
[2] std::basic_istream<char,std::char_traits<char> >::read(0x87ad730, 0x8045827, 0x1, 0xfe3e3985), at 0xfbf7aaa7 [3] do_read<NDArray,unsigned char>(0x8045918, 0x8045ab0, 0x4, 0x1, 0x1, 0x0, 0x0, 0x1, 0x8045ae4, 0x9, 0xc, 0xfe39705d), at 0xfe3e3a66 [4] octave_stream::read(0x8045a1c, 0x8045ab0, 0x8045a20, 0x1, 0xc, 0x9, 0x0, 0x1, 0x8045ae4, 0x87883c4, 0x0, 0x8045a14), at 0xfe3984b0 [5] do_fread(0x8045ae8, 0x8045ab0, 0x8045ac0, 0x8045ac4, 0x8045ac8, 0x8045acc, 0x8045ae4, 0xfe2c2ea1), at 0xfe2c280f
 [6] Ffread(0x8045c00, 0x87ad5dc, 0x1, 0x8045bbc), at 0xfe2c32ba
[7] octave_builtin::do_multi_index_op(0x8045cb0, 0x8254ae8, 0x1, 0x87ad5dc), at 0xfe626c01 [8] octave_builtin::subsref(0x8045f30, 0x8254ae8, 0x87ccf30, 0x8045e50, 0x1, 0xfc3f06e0, 0xfedaf150, 0xfe58215e), at 0xfe62665e [9] octave_value::subsref(0x8045f30, 0x8045dd8, 0x87ccf30, 0x8045e50, 0x1, 0x87ca8f0, 0x87ca8f0, 0x8045ea0), at 0xfe582290 [10] tree_index_expression::rvalue(0x8045fa0, 0x87ccef8, 0x1, 0xfe76222a), at 0xfe761f6e [11] tree_index_expression::rvalue(0x8046050, 0x87ccef8, 0x1f7f137f, 0xfe74a8f1), at 0xfe76225a [12] tree_argument_list::convert_to_const_vector(0x8046160, 0x87ca410, 0x80461fc, 0xfe76358e), at 0xfe74ab8e [13] make_value_list(0x80462c0, 0x87ca410, 0x87ccdb4, 0x80461fc), at 0xfe76365d [14] tree_index_expression::rvalue(0x80463c0, 0x87ccd10, 0x1, 0xfe76222a), at 0xfe761a43 [15] tree_index_expression::rvalue(0x8046454, 0x87ccd10, 0x8046558, 0xfe78b5df), at 0xfe76225a [16] tree_postfix_expression::rvalue(0x8046580, 0x87ca438, 0x8046678, 0xfe74ced1), at 0xfe78bdc2 [17] tree_simple_assignment::rvalue(0x804665c, 0x87cd228, 0x8046788, 0xfe74c6c4), at 0xfe74cf25 [18] tree_simple_assignment::rvalue(0x80467f0, 0x87cd228, 0x0, 0xfe788a99), at 0xfe74cdf1 [19] tree_statement::eval(0x80468b0, 0x87cbef0, 0x0, 0x0, 0x1, 0xfeddf5f8, 0x87ca8c8, 0xfe788f6d), at 0xfe788cba [20] tree_statement_list::eval(0x8046a20, 0x87c9d58, 0x0, 0x0), at 0xfe78914a [21] octave_user_function::do_multi_index_op(0x8046b90, 0x825ba88, 0x3, 0x8427edc), at 0xfe6352a4 [22] octave_user_function::subsref(0x8046e10, 0x825ba88, 0x878a158, 0x8046d30, 0x3, 0xfc3f06e0, 0xfedaf150, 0xfe58215e), at 0xfe6347f6 [23] octave_value::subsref(0x8046e10, 0x8046cb8, 0x878a158, 0x8046d30, 0x3, 0x87ab45c, 0x87ab45c, 0x8046d80), at 0xfe582290 [24] tree_index_expression::rvalue(0x8046f70, 0x878a120, 0x3, 0xfe74da31), at 0xfe761f6e [25] tree_multi_assignment::rvalue(0x8047080, 0x83fd768, 0x0, 0xfe788a99), at 0xfe74dc76 [26] tree_statement::eval(0x8047140, 0x84b8f00, 0x0, 0x0, 0x0, 0x0, 0x1f7f137f, 0xfe788f6d), at 0xfe788cba [27] tree_statement_list::eval(0x80471f0, 0x87bd5e8, 0x0, 0x0), at 0xfe78914a [28] main_loop(0xfefd3dcd, 0xfe05d2a4, 0x8047240, 0xfedb0e37, 0x1, 0xfedb5ffc), at 0xfe490ea0 [29] octave_main(0x1, 0x8047354, 0x0, 0xfeffa7c0, 0x8047310, 0x8047454), at 0xfe40b594
 [30] main(0x1, 0x8047354, 0x804735c, 0x80509f0), at 0x8050b1f
(dbx)


Any ideas? before I recompile with debug info turned on

Jim

///////////////////////



John W. Eaton wrote:
On  4-Sep-2007, Jim Langston wrote:

| Hi all,
| | What is the audio check doing when running it ?
| I'm getting do that point when running make check,
| but it spins my cpu up and never completes, I need
| to <ctl> c and kill the check.
| | Integrated test scripts: | | src/DLD-FUNCTIONS/cellfun.cc ........................... PASS 31/31 | src/DLD-FUNCTIONS/conv2.cc ............................. PASS 1/1 | src/DLD-FUNCTIONS/dispatch.cc .......................... PASS 13/13 | src/DLD-FUNCTIONS/fft.cc ............................... PASS 9/9 | src/DLD-FUNCTIONS/luinc.cc ............................. PASS | 0/2 FAIL 2 | src/DLD-FUNCTIONS/matrix_type.cc ....................... PASS 51/51 | src/DLD-FUNCTIONS/rand.cc .............................. PASS 57/57 | src/DLD-FUNCTIONS/regexp.cc ............................ PASS 81/81 | src/DLD-FUNCTIONS/spkron.cc ............................ PASS 2/2 | src/DLD-FUNCTIONS/spqr.cc .............................. PASS | 2/14 FAIL 12 | src/ov-fcn-handle.cc ................................... PASS 3/3 | src/ov-struct.cc ....................................... PASS 15/15 | src/strfns.cc .......................................... PASS 22/22 | src/syscalls.cc ........................................ PASS 1/1 | liboctave/CMatrix.cc ................................... PASS 6/6 | liboctave/dMatrix.cc ................................... PASS 6/6 | scripts/audio/wavwrite.m ...............................^Cgmake[2]: | *** [check] Error 1
| gmake[1]: *** [check] Interrupt
| gmake: *** [check] Interrupt

These tests are embedded in the sources, so you can look in
scripts/audio/wavwrite.m to see what commands it runs.  Here is what
is in the current CVS sources for that file:

%!test
%! A = [1:10; 1:10]/10;
%! wavwrite("a.wav", A);
%! [B, samples_per_sec, bits_per_sample] = wavread("a.wav");
%! assert(A,B, 10^(-4));
%! assert(samples_per_sec, 8000);
%! assert(bits_per_sample, 16);
%
%!test
%! A=[1:10; 1:10] / 10;
%! wavwrite("a.wav", A, 4000);
%! [B, samples_per_sec, bits_per_sample] = wavread("a.wav");
%! assert(A,B, 10^(-4));
%! assert(samples_per_sec, 4000);
%! assert(bits_per_sample, 16);
%
%!test
%! A=[1:10; 1:10] / 10;
%! wavwrite("a.wav", A, 4000, 8);
%! [B, samples_per_sec, bits_per_sample] = wavread("a.wav");
%! assert(A,B, 10^(-2));
%! assert(samples_per_sec, 4000);
%! assert(bits_per_sample, 8);


You can extract these commands (omitting the leading comment markers
and the "%!test" lines) and run them by hand, or you can run Octave
and then type

  test wavwrite

In your case it would probably be more helpful to run them one at a
time by hand to see precisely what is hanging.  Beyond that, I guess
you might need to run Octave under a debugger and see where it is
really hanging.

jwe


--
/////////////////////////////////////////////

Jim Langston
Sun Microsystems, Inc.

(877) 854-5583 (AccessLine)
AIM: jl9594
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]