listening to line in through speakers oss_sblive

OSS specific Linux discussion (x86/amd64)

Moderators: cesium, dev, kodachi, hannu

listening to line in through speakers oss_sblive

Postby evilsim » Tue Oct 20, 2009 3:09 pm

i am using a nintendo plugged into a capture card, which is fine, but i would like to hear the sound as well (which i have plugged into the line-in on my Audigy4)

please tell me how i can go about doing this.

i can hear the correct sound (nintendo wii main menu annoying jingles) when i use `ossrecord file` followed by `ossplay file`.

ossxmix is awesome, i cant wait for it to get sexier and less bare-bones. :)
i have only just gotten my hands on OSS and am very impressed with what i.. hear :) id be more than happy to donate some once i get this going (couldnt get it going with also on 8.10)!!


ossinfo output.. (im running Ubuntu karmic (development branch))
Code: Select all
# ossinfo
Version info: OSS 4.2 (b 2000/200909100609) (0x00040100) TRIAL
Platform: Linux/x86_64 2.6.31-14-server #48-Ubuntu SMP Fri Oct 16 15:07:34 UTC 2009 (icebox)


Number of audio devices:   14
Number of audio engines:   22
Number of MIDI devices:      1
Number of mixer devices:   2


Device objects
0: osscore0 OSS core services
1: oss_sblive0 SB Audigy4 interrupts=122360 (122368)
2: oss_hdaudio0 Intel HD Audio interrupts=2825 (533401)
    HD Audio controller Intel HD Audio
    Vendor ID    0x8086293e
    Subvendor ID 0x1043829f
     Codec  0: ALC883 (0x10ec0883/0x1043829f)

MIDI devices (/dev/midi*)
0: Audigy UART (MIDI port 1 of device object 1)

Mixer devices
0: SB Audigy4 (STAC9750) (Mixer 0 of device object 1)
1: High Definition Audio ALC883 (Mixer 0 of device object 2)

Audio devices
SB Audigy4 main                   /dev/oss/oss_sblive0/pcm0  (device index 0)
SB Audigy4 front out              /dev/oss/oss_sblive0/pcm1  (device index 1)
SB Audigy4 side out               /dev/oss/oss_sblive0/pcm2  (device index 2)
SB Audigy4 center/lfe out         /dev/oss/oss_sblive0/pcm3  (device index 3)
SB Audigy4 raw S/PDIF (output only)  /dev/oss/oss_sblive0/pcm4  (device index 4)
SB Audigy4 5.1 output device      /dev/oss/oss_sblive0/pcm5  (device index 5)
HD Audio play front               /dev/oss/oss_hdaudio0/pcm0  (device index 6)
HD Audio play rear                /dev/oss/oss_hdaudio0/pcm1  (device index 7)
HD Audio play center/LFE          /dev/oss/oss_hdaudio0/pcm2  (device index 8)
HD Audio play side                /dev/oss/oss_hdaudio0/pcm3  (device index 9)
HD Audio play pcm4                /dev/oss/oss_hdaudio0/pcm4  (device index 10)
HD Audio play spdif-out           /dev/oss/oss_hdaudio0/spdout0  (device index 11)
HD Audio rec mix                  /dev/oss/oss_hdaudio0/pcmin0  (device index 12)
HD Audio rec mix                  /dev/oss/oss_hdaudio0/pcmin1  (device index 13)

Nodes
  /dev/dsp -> /dev/oss/oss_sblive0/pcm0
  /dev/dsp_in -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_out -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_ac3 -> /dev/oss/oss_hdaudio0/spdout0
  /dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0


....should i download and compile the latest oss from source, or will there not be enough noticeable benefits at this point, for either oss_sblive or for my ' playthrough ' type req... (see ver info above) i am currently just using the .deb's..
thx heaps for any advice.
evilsim
New Member
 
Posts: 3
Joined: Tue Oct 20, 2009 2:55 pm

Re: listening to line in through speakers oss_sblive

Postby cesium » Tue Oct 20, 2009 3:25 pm

Hi,

If I understand correctly, you want to record from line-in? Or passthrough?

For recording, since the card uses an AC97 there's probably an 'igain' (or 'ac97.igain' or something like that) control which you need to raise above 0. You can then do something like "ossrecord -iline" etc. or select 'line' as default recording source in the mixer (turn on rec) and just use any recording program.

For passthrough, I think you need to raise something like 'line' or 'ac97.line' etc. in the mixer.

Btw, there's an "oss_sblive" manpage which might help with these questions...
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: listening to line in through speakers oss_sblive

Postby evilsim » Wed Oct 21, 2009 10:34 am

thanks for the reply. i was trying to get passthrough going. i have checked those settings and they are all +0, but still no sound(is passing through). checked in ossxmix to ensure levels were not at noghting

in ossxmix i can SEE the levels on the record.AC97 bouncing around. if i use ossrecord, i can hear the sound in the .wav file. it is coming in through the line-in on my sound card.

i just need to know how to make the record.AC97 audio come out of the front/rear speakers..

heres my output from ossmix -c (on the oss_sblive device)

root@icebox:~# ossmix -c
!ossmix -d0 line 32:32
!ossmix -d0 line.rec ON
!ossmix -d0 mic 0
!ossmix -d0 mic.rec OFF
!ossmix -d0 cd 75:75
!ossmix -d0 cd.rec OFF
!ossmix -d0 igain 75:75
!ossmix -d0 aux1 32:32
!ossmix -d0 aux1.rec OFF
!ossmix -d0 phone 0:0
!ossmix -d0 phone.rec OFF
!ossmix -d0 autorese ON
!ossmix -d0 spkmode FRONT+SURR
!ossmix -d0 pcm.main 100
!ossmix -d0 vmix0-enable ON
!ossmix -d0 vmix0-src Fast
!ossmix -d0 vmix0-outvol 25.0
!ossmix -d0 vmix0-invol 25.0
!ossmix -d0 vmix0.pcm1 25.0:25.0
!ossmix -d0 vmix0.pcm2 25.0:25.0
!ossmix -d0 vmix0.pcm3 25.0:25.0
!ossmix -d0 vmix0.pcm4 25.0:25.0
!ossmix -d0 pcm2 100:100
!ossmix -d0 vol 75:75
!ossmix -d0 equalizer.prescale 100
!ossmix -d0 equalizer.lo 128
!ossmix -d0 equalizer.mid 128
!ossmix -d0 equalizer.hi 128
!ossmix -d0 equalizer.xhi 128
!ossmix -d0 equalizer.bypass OFF
!ossmix -d0 front.spdif 100
!ossmix -d0 front.digcd 100
!ossmix -d0 front.ac97 0
!ossmix -d0 front.pcm 100
!ossmix -d0 front.aux 100
!ossmix -d0 front.mic 100
!ossmix -d0 front.vol 100:100
!ossmix -d0 surr.spdif 0
!ossmix -d0 surr.digcd 0
!ossmix -d0 surr.ac97 0
!ossmix -d0 surr.pcm 100
!ossmix -d0 surr.aux 0
!ossmix -d0 surr.mic 100
!ossmix -d0 surr.vol 100:100
!ossmix -d0 record.spdif 100
!ossmix -d0 record.digcd 100
!ossmix -d0 record.ac97 100
!ossmix -d0 record.pcm 0
!ossmix -d0 record.aux 100
!ossmix -d0 record.mic 0
!ossmix -d0 record.vol 100:100

[edit]
hooray i somehow now have Audacity 'playthrough' working, but this means i need to be recording the whole time, simply in order to listen to the line-in through my speakers... any better way ?
evilsim
New Member
 
Posts: 3
Joined: Tue Oct 20, 2009 2:55 pm

Re: listening to line in through speakers oss_sblive

Postby cesium » Wed Oct 21, 2009 9:18 pm

I think you need to raise 'front.ac97' for passthrough...
(Btw, it's possible to do 'ossmix -a' in OSS 4.2. I think the output is nicer)
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: listening to line in through speakers oss_sblive

Postby evilsim » Wed Oct 21, 2009 11:05 pm

yay!! solution at last. Thankyou so much for you help.

This fixed it.. thankyou to all who made suggestions.


when using line-in on oss_sblive, the only was to get passthrough going (all the time) is by running :

ossmix -d0 front.ac97 100


NOW ; its odd because i was trying this same command recently and getting 'access denied'... but today its worked a treat!!

also ; yes ossmix -a is nicer.

Code: Select all
root@icebox:~# ossmix -a
Selected mixer 0/SB Audigy4 (STAC9750)
Known controls are:
line [<leftvol>:<rightvol>] (currently 32:32)
line.rec ON|OFF (currently ON)
mic <monovol> (currently 0)
mic.rec ON|OFF (currently OFF)
cd [<leftvol>:<rightvol>] (currently 75:75)
cd.rec ON|OFF (currently OFF)
igain [<leftvol>:<rightvol>] (currently 75:75)
aux1 [<leftvol>:<rightvol>] (currently 32:32)
aux1.rec ON|OFF (currently OFF)
phone [<leftvol>:<rightvol>] (currently 0:0)
phone.rec ON|OFF (currently OFF)
autorese ON|OFF (currently ON)
spkmode <FRONT|SURR|FRONT+SURR|DISCRETE> (currently FRONT+SURR)
pcm.main <monovol> (currently 100)
vmix0-enable ON|OFF (currently ON)
vmix0-rate <decimal value> (currently 48000) (Read-only)
vmix0-src <Fast|High|OFF> (currently Fast)
vmix0-outvol <monovol> (currently 25.0 dB)
vmix0-invol <monovol> (currently 25.0 dB)
vmix0.pcm1 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB) ("totem-plugin-vi")
vmix0.pcm2 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm3 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm4 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
pcm2 [<leftvol>:<rightvol>] (currently 100:100)
vol [<leftvol>:<rightvol>] (currently 75:75)
equalizer.prescale <monovol> (currently 100)
equalizer.lo <monovol> (currently 128)
equalizer.mid <monovol> (currently 128)
equalizer.hi <monovol> (currently 128)
equalizer.xhi <monovol> (currently 128)
equalizer.bypass ON|OFF (currently OFF)
front.spdif <monovol> (currently 100)
front.digcd <monovol> (currently 100)
front.ac97 <monovol> (currently 100)
front.pcm <monovol> (currently 100)
front.aux <monovol> (currently 100)
front.mic <monovol> (currently 100)
front.vol [<leftvol>:<rightvol>] (currently 100:100)
surr.spdif <monovol> (currently 0)
surr.digcd <monovol> (currently 0)
surr.ac97 <monovol> (currently 0)
surr.pcm <monovol> (currently 100)
surr.aux <monovol> (currently 0)
surr.mic <monovol> (currently 100)
surr.vol [<leftvol>:<rightvol>] (currently 100:100)
record.spdif <monovol> (currently 100)
record.digcd <monovol> (currently 100)
record.ac97 <monovol> (currently 100)
record.pcm <monovol> (currently 0)
record.aux <monovol> (currently 100)
record.mic <monovol> (currently 0)
record.vol [<leftvol>:<rightvol>] (currently 100:100)

Selected mixer 1/USB sound device
Known controls are:
rec.mute ON|OFF (currently OFF)
rec.vol <monovol> (currently 0)

Selected mixer 2/USB sound device
Known controls are:
rec.mute ON|OFF (currently OFF)
rec.vol <monovol> (currently 13)
evilsim
New Member
 
Posts: 3
Joined: Tue Oct 20, 2009 2:55 pm


Return to Linux

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron