Octave function record() doesn't work anymore

Bug #681646 reported by Rob Frohne
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Octave
Unknown
Unknown
octave (Ubuntu)
Fix Released
Undecided
Unassigned
octave3.2 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: octave3.2

It doesn't seem possible to dd to /dev/dsp anymore in Maverick. When you try to record something in octave using:

octave3.2:1> Y=record(2,8000);
Please hit ENTER and speak afterwards!

dd: opening `/dev/dsp': No such file or directory
cmd = dd if=/dev/dsp of="/tmp/oct-3iR8tF" bs=8000 count=2
error: fread: invalid stream number = -1
error: called from:
error: /usr/share/octave/3.2.4/m/audio/record.m at line 60, column 5
octave3.2:1>

You can see it doesn't work. So since sound uses sox, I decided to use it for recording as well. I am submitting my replacement record.m file. (The original is in /usr/share/octave/3.2.4/m/audio/record.m.)

For those wanting a good work around, you can either replace the original or place my file in your working directory to use it instead of the original.

Tags: patch
Revision history for this message
Rob Frohne (frohro) wrote :
tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in octave3.2 (Ubuntu):
status: New → Confirmed
Mike Miller (mtmiller)
summary: - Octave function record(sec,sample_rate) doesn't work anymore in Maverick
+ Octave function record() doesn't work anymore
Mike Miller (mtmiller)
Changed in octave (Ubuntu):
status: New → Confirmed
Revision history for this message
Mike Miller (mtmiller) wrote :

This should be fixed in Octave 4.0.0 now in the 15.10 development repository.

Changed in octave (Ubuntu):
status: Confirmed → Fix Released
Mike Miller (mtmiller)
Changed in octave3.2 (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.