Hiya folks,

I'm a linux guy, but a newbie to the sound/multimedia
stuff. I'm trying to set up a timeshifting FM radio 
kinda thing. 

Here's my setup ...

. redhat 8.0 running 2.4.20-19.7
. alsa-0.9.6
. the motherboard has on-board audio, 
  but i've been using a Turtle Santa Cruz Card.
. d-link DSB-R100 usb fm tuner

I've been able to tune the radio and play it through
the speakers, but not record from it. Or, rather, I
don't hear anything when I try to replay the mp3, so
it could be the capture or the encoding that fails.

The fm timeshifting pages recommend using sox to
capture audio and lame/notlame to encode it. I 
gather that alsa might be something of an overkill
for this. I was mainly just trying to adopt something
current with an active user base. 

So ... questions:

. I'm still a little unclear on the relationship
  between sound drivers and applications. Now that
  I've loaded alsa, do I need to limit myslef to
  alsa-aware capture, encoding, and playback apps?

. If so, can arecoord capture from /dev/radio, or 
  is that governed by the USB drivers?

. Any reason that sox to capture and notlame to encode
  shouldn't work? I've been doing this:

  # unmute and tune the radio
  $ rtune -m 1 -s 106100 /dev/radio 

  # capture audio and pipe to coder
  $ sox -t ossdsp /dev/dsp -w -r 44100 -t cdr - | \
    notlame -k -v -S - /tmp/my.mp3

Suggestions, pointers, and even answers are welcome.
Thanks in advance.

- gary


All sorts of system details are below:

$ lsmod
Module                  Size  Used by    Not tainted
snd-seq-midi            5312   0 (autoclean) (unused)
snd-seq-oss            34720   0 (unused)
snd-seq-midi-event      6048   0 [snd-seq-midi
snd-seq-oss]
snd-seq                47280   2 [snd-seq-midi
snd-seq-oss snd-seq-midi-event]
snd-pcm-oss            45284   0
snd-mixer-oss          16408   0 [snd-pcm-oss]
snd-cs46xx             80636   0
snd-rawmidi            18656   0 [snd-seq-midi
snd-cs46xx]
snd-seq-device          6284   0 [snd-seq-midi
snd-seq-oss snd-seq snd-rawmidi]
snd-ac97-codec         50264   0 [snd-cs46xx]
snd-pcm                85344   0 [snd-pcm-oss
snd-cs46xx]
snd-timer              19588   0 [snd-seq snd-pcm]
snd                    43108   0 [snd-seq-midi
snd-seq-oss snd-seq-midi-event snd-seq snd-pcm-oss
snd-mixer-oss snd-cs46xx snd-rawmidi snd-seq-device
snd-ac97-codec snd-pcm snd-timer]
soundcore               6372   8 [snd]
gameport                3440   0 [snd-cs46xx]
snd-page-alloc          9876   0 [snd-cs46xx snd-pcm]
smbfs                  38944   1 (autoclean)
sr_mod                 16344   0 (autoclean)
radeon                112728  10
agpgart                45024   3
autofs                 11588   0 (autoclean) (unused)
3c59x                  28456   1
ipt_REJECT              3936   2 (autoclean)
iptable_nat            21588   0 (autoclean) (unused)
ip_conntrack           25684   1 (autoclean)
[iptable_nat]
iptable_filter          2496   1 (autoclean)
ip_tables              13824   5 [ipt_REJECT
iptable_nat iptable_filter]
ide-scsi               10912   0
scsi_mod              106252   2 [sr_mod ide-scsi]
ide-cd                 32160   0
cdrom                  32096   0 [sr_mod ide-cd]
ohci1394               18688   0 (unused)
ieee1394               44904   0 [ohci1394]
ext3                   65536   4 (autoclean)
jbd                    47148   4 (autoclean) [ext3]
dsbr100                 4960   0
videodev                7904   1 [dsbr100]
mousedev                5120   0 (unused)
keybdev                 2528   0 (unused)
hid                    20896   0 (unused)
input                   5728   0 [mousedev keybdev
hid]
ehci-hcd               18304   0 (unused)
usb-ohci               20480   0 (unused)
usbcore                73472   1 [dsbr100 hid ehci-hcd
usb-ohci]


$ rtune -i /dev/radio

  --- INTERFACE DATA ---
Interface Name: D-Link R-100 USB FM Radio
  Number of Tuner Channels: 1
  Number of Audio Devices: 1
  Capability Flags:
    VID_TYPE_TUNER

    --- TUNER DATA ---
Tuner Name: DSB R-100
  Tuner Number: 0
  Tuner Low Frequency: 87500.0 kHz
  Tuner High Frequency: 108000.0 kHz
  Current Frequency: 106100.0 kHz
  Current Signal Strength: 0 uV
  Current Mode: AUTO or RADIO
  Capability Flags:
    VIDEO_TUNER_LOW

    --- AUDIO DATA ---
Channel Name: Radio
  Channel Number: 0
  Channel Step-size: 1
  Audio is Mutable
  Current Mode: STEREO


sox 12.17.3
notlame 3.92
alsa 0.9.6

$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: CS46xx [Sound Fusion CS46xx], device 0: CS46xx
[CS46xx]
  Subdevices: 1/1
  Subdevice #0: subdevice #0



$ sox -t ossdsp /dev/dsp -w -r 44100 -t cdr - |
notlame -v -k -S - /tmp/my.mp3
Assuming raw pcm input file
LAME version 3.92  (http://www.mp3dev.org/)
polyphase lowpass filter disabled
Encoding <stdin> to /tmp/my.mp3
Encoding as 44.1 kHz VBR(q=4) j-stereo MPEG-1 Layer
III (ca. 9.1x) qval=2



=====
--
Gary Cote
[EMAIL PROTECTED]


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to