Re: record off of uaudio device (help?)

2012-02-19 Thread Remco
patrick keshishian wrote:

 I should have been more specific with my question and subject line: I
 don't see where aucat's -f device values are documented.
 
I suppose you overlooked sndio(7).

 Googling finds old (google-cached) current.html pages, circa 2009,
 suggesting using 'aucat -f sun:1' for /dev/audio1. However, this at
 first failed:
 
 $ aucat -f sun:1 -m rec -o /tmp/test.wav
 sio(sun:1|): busy loop, disconnecting
 
This should work, unfortunately (according to ratchov@) there's possibly a
bug in the (obscure) buffering of USB audio devices which makes this fail
for some devices. (Mine happens to be 2-ch, 24-bit @ 44100 Hz, in case that
matters)

 A bit more googling finds this post[1] suggesting addition of -z 256
 to aucat, which seems to make things work.
 
 $ aucat -z 256 -f sun:1 -o /tmp/test.wav
 ^C
 
So, yes, in this case it's necessary to specify a buffer size. (in my
experience many buffer sizes will work, the one aucat calculates just
doesn't)



Re: record off of uaudio device (help?)

2012-02-19 Thread patrick keshishian
On Sun, Feb 19, 2012 at 12:54 AM, Remco re...@d-compu.dyndns.org wrote:
 patrick keshishian wrote:

 I should have been more specific with my question and subject line: I
 don't see where aucat's -f device values are documented.

 I suppose you overlooked sndio(7).

Nope, I read that page. There is no mention of 'sun:x' in that page.
There is, however, a reference to 'rsnd/0' being 'First hardware audio
device', but trying it and having it fail (before learning of '-z
nframes' option) brought me to misc@. I think this can be documented
better in aucat(1) with a concrete example or two.

--patrick


 Googling finds old (google-cached) current.html pages, circa 2009,
 suggesting using 'aucat -f sun:1' for /dev/audio1. However, this at
 first failed:

 $ aucat -f sun:1 -m rec -o /tmp/test.wav
 sio(sun:1|): busy loop, disconnecting

 This should work, unfortunately (according to ratchov@) there's possibly a
 bug in the (obscure) buffering of USB audio devices which makes this fail
 for some devices. (Mine happens to be 2-ch, 24-bit @ 44100 Hz, in case that
 matters)

 A bit more googling finds this post[1] suggesting addition of -z 256
 to aucat, which seems to make things work.

 $ aucat -z 256 -f sun:1 -o /tmp/test.wav
 ^C

 So, yes, in this case it's necessary to specify a buffer size. (in my
 experience many buffer sizes will work, the one aucat calculates just
 doesn't)



Re: record off of uaudio device (help?)

2012-02-19 Thread Remco
On Sunday 19 February 2012 11:32:25 you wrote:
 On Sun, Feb 19, 2012 at 12:54 AM, Remco re...@d-compu.dyndns.org wrote:
  patrick keshishian wrote:
  I should have been more specific with my question and subject line: I
  don't see where aucat's -f device values are documented.
 
  I suppose you overlooked sndio(7).

 Nope, I read that page. There is no mention of 'sun:x' in that page.
 There is, however, a reference to 'rsnd/0' being 'First hardware audio
 device', but trying it and having it fail (before learning of '-z
 nframes' option) brought me to misc@. I think this can be documented
 better in aucat(1) with a concrete example or two.

 --patrick

I missed that you're running CURRENT (I was referring to 5.0). AFAICT the 
sun:x names are deprecated in CURRENT though they may still work. I think you 
should be able to access the device by the 'rsnd/1' name, albeit specifying 
the buffer size would still be a necessity.



Re: record off of uaudio device (help?)

2012-02-19 Thread Jan Stary
On Feb 18 16:59:32, patrick keshishian wrote:
 Can someone point me to some docs explaining how I can record off of a
 uaudio device I plugged in?

Same as with any other device:
http://www.openbsd.org/faq/faq13.html#recordaudio

 [after plugging in uaudio device]
 uaudio0 at uhub0 port 3 configuration 1 interface 0 E-MU Systems,
 Inc. E-MU 0202 | USB rev 2.00/1.00 addr 3
 uaudio0: audio rev 1.00, 3 mixer controls
 audio1 at uaudio0
 
 now what?

man aucat
man sndio, see DEVICE NAMES
aucat -f snd/1 -o /tmp/rec.wav

On Feb 18 22:36:45, patrick keshishian wrote:
 I should have been more specific with my question and subject line: I
 don't see where aucat's -f device values are documented.

In man sndio(7), which man aucat(1) tells you to read.

 Googling finds old (google-cached) current.html pages, circa 2009,

Howls of derisive laughter, Bruce!

 A bit more googling finds this post[1] suggesting addition of -z 256
 [1] http://old.nabble.com/aucat-bug-in-4.8-beta-i386---td29333138.html
 to aucat, which seems to make things work.
 $ aucat -z 256 -f sun:1 -o /tmp/test.wav

-z specifies the blocksize;
that alone doesn't make the audio device record or not.

Also, a lot has changed in sndio since 4.8 beta.
Don't google around, just read the FM.



record off of uaudio device (help?)

2012-02-18 Thread patrick keshishian
Can someone point me to some docs explaining how I can record off of a
uaudio device I plugged in?

[after plugging in uaudio device]
uaudio0 at uhub0 port 3 configuration 1 interface 0 E-MU Systems,
Inc. E-MU 0202 | USB rev 2.00/1.00 addr 3
uaudio0: audio rev 1.00, 3 mixer controls
audio1 at uaudio0

now what?

$ audioctl -f /dev/audioctl1
name=USB audio
version=
config=uaudio
encodings=slinear_le:24:3:1
properties=full_duplex
full_duplex=0
fullduplex=0
blocksize=13216
hiwat=4
lowat=1
output_muted=0
monitor_gain=0
mode=
play.rate=44100
play.sample_rate=44100
play.channels=2
play.precision=24
play.bps=3
play.msb=1
play.encoding=slinear_le
play.gain=255
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=0
play.samples=0
play.eof=0
play.pause=0
play.error=0
play.waiting=0
play.open=0
play.active=0
play.buffer_size=65536
play.block_size=13216
play.errors=0
record.rate=44100
record.sample_rate=44100
record.channels=2
record.precision=24
record.bps=3
record.msb=1
record.encoding=slinear_le
record.gain=127
record.balance=32
record.port=0x0
record.avail_ports=0x0
record.seek=0
record.samples=0
record.eof=0
record.pause=1
record.error=0
record.waiting=0
record.open=0
record.active=0
record.buffer_size=65536
record.block_size=17632
record.errors=0

$ mixerctl -v -f /dev/mixer1
inputs.dac.mute=off  [ off on ]
inputs.dac=255,255 volume
outputs.ext12-enable=off  [ off on ]

$ sysctl kern.version
kern.version=OpenBSD 5.0-current (GENERIC) #121: Mon Nov 28 16:00:51 MST 2011
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC



Re: record off of uaudio device (help?)

2012-02-18 Thread Tomas Bodzar
On Sun, Feb 19, 2012 at 1:59 AM, patrick keshishian pkesh...@gmail.com
wrote:
 Can someone point me to some docs explaining how I can record off of a
 uaudio device I plugged in?

 [after plugging in uaudio device]
 uaudio0 at uhub0 port 3 configuration 1 interface 0 E-MU Systems,
 Inc. E-MU 0202 | USB rev 2.00/1.00 addr 3
 uaudio0: audio rev 1.00, 3 mixer controls
 audio1 at uaudio0

 now what?

http://www.openbsd.org/faq/faq13.html#recordaudio

don't specify -f for your commands so we can't see what inputs/outputs
are in use by system


 $ audioctl -f /dev/audioctl1
 name=USB audio
 version=
 config=uaudio
 encodings=slinear_le:24:3:1
 properties=full_duplex
 full_duplex=0
 fullduplex=0
 blocksize=13216
 hiwat=4
 lowat=1
 output_muted=0
 monitor_gain=0
 mode=
 play.rate=44100
 play.sample_rate=44100
 play.channels=2
 play.precision=24
 play.bps=3
 play.msb=1
 play.encoding=slinear_le
 play.gain=255
 play.balance=32
 play.port=0x0
 play.avail_ports=0x0
 play.seek=0
 play.samples=0
 play.eof=0
 play.pause=0
 play.error=0
 play.waiting=0
 play.open=0
 play.active=0
 play.buffer_size=65536
 play.block_size=13216
 play.errors=0
 record.rate=44100
 record.sample_rate=44100
 record.channels=2
 record.precision=24
 record.bps=3
 record.msb=1
 record.encoding=slinear_le
 record.gain=127
 record.balance=32
 record.port=0x0
 record.avail_ports=0x0
 record.seek=0
 record.samples=0
 record.eof=0
 record.pause=1
 record.error=0
 record.waiting=0
 record.open=0
 record.active=0
 record.buffer_size=65536
 record.block_size=17632
 record.errors=0

 $ mixerctl -v -f /dev/mixer1
 inputs.dac.mute=off B [ off on ]
 inputs.dac=255,255 volume
 outputs.ext12-enable=off B [ off on ]

 $ sysctl kern.version
 kern.version=OpenBSD 5.0-current (GENERIC) #121: Mon Nov 28 16:00:51 MST
2011
 B  B dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC



Re: record off of uaudio device (help?)

2012-02-18 Thread patrick keshishian
I should have been more specific with my question and subject line: I
don't see where aucat's -f device values are documented.

Googling finds old (google-cached) current.html pages, circa 2009,
suggesting using 'aucat -f sun:1' for /dev/audio1. However, this at
first failed:

$ aucat -f sun:1 -m rec -o /tmp/test.wav
sio(sun:1|): busy loop, disconnecting

A bit more googling finds this post[1] suggesting addition of -z 256
to aucat, which seems to make things work.

$ aucat -z 256 -f sun:1 -o /tmp/test.wav
^C

--patrick

[1] http://old.nabble.com/aucat-bug-in-4.8-beta-i386---td29333138.html

On Sat, Feb 18, 2012 at 4:59 PM, patrick keshishian pkesh...@gmail.com
wrote:
 Can someone point me to some docs explaining how I can record off of a
 uaudio device I plugged in?

 [after plugging in uaudio device]
 uaudio0 at uhub0 port 3 configuration 1 interface 0 E-MU Systems,
 Inc. E-MU 0202 | USB rev 2.00/1.00 addr 3
 uaudio0: audio rev 1.00, 3 mixer controls
 audio1 at uaudio0

 now what?

 $ audioctl -f /dev/audioctl1
 name=USB audio
 version=
 config=uaudio
 encodings=slinear_le:24:3:1
 properties=full_duplex
 full_duplex=0
 fullduplex=0
 blocksize=13216
 hiwat=4
 lowat=1
 output_muted=0
 monitor_gain=0
 mode=
 play.rate=44100
 play.sample_rate=44100
 play.channels=2
 play.precision=24
 play.bps=3
 play.msb=1
 play.encoding=slinear_le
 play.gain=255
 play.balance=32
 play.port=0x0
 play.avail_ports=0x0
 play.seek=0
 play.samples=0
 play.eof=0
 play.pause=0
 play.error=0
 play.waiting=0
 play.open=0
 play.active=0
 play.buffer_size=65536
 play.block_size=13216
 play.errors=0
 record.rate=44100
 record.sample_rate=44100
 record.channels=2
 record.precision=24
 record.bps=3
 record.msb=1
 record.encoding=slinear_le
 record.gain=127
 record.balance=32
 record.port=0x0
 record.avail_ports=0x0
 record.seek=0
 record.samples=0
 record.eof=0
 record.pause=1
 record.error=0
 record.waiting=0
 record.open=0
 record.active=0
 record.buffer_size=65536
 record.block_size=17632
 record.errors=0

 $ mixerctl -v -f /dev/mixer1
 inputs.dac.mute=off  [ off on ]
 inputs.dac=255,255 volume
 outputs.ext12-enable=off  [ off on ]

 $ sysctl kern.version
 kern.version=OpenBSD 5.0-current (GENERIC) #121: Mon Nov 28 16:00:51 MST
2011
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC



Re: record off of uaudio device (help?)

2012-02-18 Thread Tomas Bodzar
On Sun, Feb 19, 2012 at 7:36 AM, patrick keshishian pkesh...@gmail.com
wrote:
 I should have been more specific with my question and subject line: I
 don't see where aucat's -f device values are documented.

 Googling finds old (google-cached) current.html pages, circa 2009,
 suggesting using 'aucat -f sun:1' for /dev/audio1. However, this at
 first failed:

No. I mean post output of mixerctl -v and audioctl -v ;-) Don't use
Google for something what is much more better documented inside system
itself
http://www.openbsd.org/cgi-bin/man.cgi?query=aucatapropos=0sektion=0manpat
h=OpenBSD+5.0arch=i386format=html


 $ aucat -f sun:1 -m rec -o /tmp/test.wav
 sio(sun:1|): busy loop, disconnecting

 A bit more googling finds this post[1] suggesting addition of -z 256
 to aucat, which seems to make things work.

 $ aucat -z 256 -f sun:1 -o /tmp/test.wav
 ^C

 --patrick

 [1] http://old.nabble.com/aucat-bug-in-4.8-beta-i386---td29333138.html

 On Sat, Feb 18, 2012 at 4:59 PM, patrick keshishian pkesh...@gmail.com
 wrote:
 Can someone point me to some docs explaining how I can record off of a
 uaudio device I plugged in?

 [after plugging in uaudio device]
 uaudio0 at uhub0 port 3 configuration 1 interface 0 E-MU Systems,
 Inc. E-MU 0202 | USB rev 2.00/1.00 addr 3
 uaudio0: audio rev 1.00, 3 mixer controls
 audio1 at uaudio0

 now what?

 $ audioctl -f /dev/audioctl1
 name=USB audio
 version=
 config=uaudio
 encodings=slinear_le:24:3:1
 properties=full_duplex
 full_duplex=0
 fullduplex=0
 blocksize=13216
 hiwat=4
 lowat=1
 output_muted=0
 monitor_gain=0
 mode=
 play.rate=44100
 play.sample_rate=44100
 play.channels=2
 play.precision=24
 play.bps=3
 play.msb=1
 play.encoding=slinear_le
 play.gain=255
 play.balance=32
 play.port=0x0
 play.avail_ports=0x0
 play.seek=0
 play.samples=0
 play.eof=0
 play.pause=0
 play.error=0
 play.waiting=0
 play.open=0
 play.active=0
 play.buffer_size=65536
 play.block_size=13216
 play.errors=0
 record.rate=44100
 record.sample_rate=44100
 record.channels=2
 record.precision=24
 record.bps=3
 record.msb=1
 record.encoding=slinear_le
 record.gain=127
 record.balance=32
 record.port=0x0
 record.avail_ports=0x0
 record.seek=0
 record.samples=0
 record.eof=0
 record.pause=1
 record.error=0
 record.waiting=0
 record.open=0
 record.active=0
 record.buffer_size=65536
 record.block_size=17632
 record.errors=0

 $ mixerctl -v -f /dev/mixer1
 inputs.dac.mute=off B [ off on ]
 inputs.dac=255,255 volume
 outputs.ext12-enable=off B [ off on ]

 $ sysctl kern.version
 kern.version=OpenBSD 5.0-current (GENERIC) #121: Mon Nov 28 16:00:51 MST
 2011
 B  B dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC



Re: record off of uaudio device (help?)

2012-02-18 Thread patrick keshishian
On Sat, Feb 18, 2012 at 10:57 PM, Tomas Bodzar tomas.bod...@gmail.com
wrote:
 On Sun, Feb 19, 2012 at 7:36 AM, patrick keshishian pkesh...@gmail.com
wrote:
 I should have been more specific with my question and subject line: I
 don't see where aucat's -f device values are documented.

 Googling finds old (google-cached) current.html pages, circa 2009,
 suggesting using 'aucat -f sun:1' for /dev/audio1. However, this at
 first failed:

 No. I mean post output of mixerctl -v and audioctl -v ;-) Don't use
 Google for something what is much more better documented inside system
 itself
http://www.openbsd.org/cgi-bin/man.cgi?query=aucatapropos=0sektion=0manpat
h=OpenBSD+5.0arch=i386format=html

are _you_ /certain/ of what you speak?

--patrick



 $ aucat -f sun:1 -m rec -o /tmp/test.wav
 sio(sun:1|): busy loop, disconnecting

 A bit more googling finds this post[1] suggesting addition of -z 256
 to aucat, which seems to make things work.

 $ aucat -z 256 -f sun:1 -o /tmp/test.wav
 ^C

 --patrick

 [1] http://old.nabble.com/aucat-bug-in-4.8-beta-i386---td29333138.html

 On Sat, Feb 18, 2012 at 4:59 PM, patrick keshishian pkesh...@gmail.com
 wrote:
 Can someone point me to some docs explaining how I can record off of a
 uaudio device I plugged in?

 [after plugging in uaudio device]
 uaudio0 at uhub0 port 3 configuration 1 interface 0 E-MU Systems,
 Inc. E-MU 0202 | USB rev 2.00/1.00 addr 3
 uaudio0: audio rev 1.00, 3 mixer controls
 audio1 at uaudio0

 now what?

 $ audioctl -f /dev/audioctl1
 name=USB audio
 version=
 config=uaudio
 encodings=slinear_le:24:3:1
 properties=full_duplex
 full_duplex=0
 fullduplex=0
 blocksize=13216
 hiwat=4
 lowat=1
 output_muted=0
 monitor_gain=0
 mode=
 play.rate=44100
 play.sample_rate=44100
 play.channels=2
 play.precision=24
 play.bps=3
 play.msb=1
 play.encoding=slinear_le
 play.gain=255
 play.balance=32
 play.port=0x0
 play.avail_ports=0x0
 play.seek=0
 play.samples=0
 play.eof=0
 play.pause=0
 play.error=0
 play.waiting=0
 play.open=0
 play.active=0
 play.buffer_size=65536
 play.block_size=13216
 play.errors=0
 record.rate=44100
 record.sample_rate=44100
 record.channels=2
 record.precision=24
 record.bps=3
 record.msb=1
 record.encoding=slinear_le
 record.gain=127
 record.balance=32
 record.port=0x0
 record.avail_ports=0x0
 record.seek=0
 record.samples=0
 record.eof=0
 record.pause=1
 record.error=0
 record.waiting=0
 record.open=0
 record.active=0
 record.buffer_size=65536
 record.block_size=17632
 record.errors=0

 $ mixerctl -v -f /dev/mixer1
 inputs.dac.mute=off  [ off on ]
 inputs.dac=255,255 volume
 outputs.ext12-enable=off  [ off on ]

 $ sysctl kern.version
 kern.version=OpenBSD 5.0-current (GENERIC) #121: Mon Nov 28 16:00:51 MST
 2011
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC