/dev/dsp not working..

Asked by Nitin

Hii one,
I am using QtOctave on linux 10.04. where when I write command :
 >> record(44100,30);

the following output displays on the screen:-

Please hit ENTER and speak afterwards!

cmd = dd if=/dev/dsp of="/tmp/oct-CDeJ7T" bs=30 count=44100
dd: opening `/dev/dsp': No such device
>>>error: fread: invalid stream number = -1
error: called from:
error: /usr/share/octave/3.2.3/m/audio/record.m at line 60, column 5

wats the problem in this command.
plz provide any help regarding the same...

Thanx..

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu octave3.2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Chris (fabricator4) said :
#1

First, check that you have the device (special file) /dev/dsp. You might also have a secondary device called dsp1.

Check that you can record sound with another program like gnome-sound-recorder which is probably already installed.

If the device exists then the error message may actually be a misleading one, as the most likely causes are either a permissions problem or a device busy problem.

If it's a permissions problem, make sure that your login id is a member of the 'audio' group, and if the device is busy find which process is using the device and close it, or configure the program to use dsp1 instead if it is available.

Chris

Revision history for this message
Chris (fabricator4) said :
#2

BTW, the little I found out about /dev/dsp was from looking at the device in /dev/ and from this programmers primer:
http://www.oreilly.de/catalog/multilinux/excerpt/ch14-05.htm

Chris

Can you help with this problem?

Provide an answer of your own, or ask Nitin for more information if necessary.

To post a message you must log in.