Re: Sound from second sound card -- HOW?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/03/13 19:30, alsa-user-request@xxxxxxxxxxxxxxxxxxxxx wrote:
> Sid Boyce wrote:
>> >On 04/03/13 13:19,alsa-user-request@xxxxxxxxxxxxxxxxxxxxx  wrote:
>>> >>Sid Boyce wrote:
>>>>> >>>>"aplay -Dplughw:1 /jet.wav" works.
>>> >>
>>> >>It plays on the correct sound device?
>> >
>> >It definitely plays on sound card 1 when addressed as "-Dplughw:1".
>> >Nothing else seems to work for card 1 using aplay or paplay.
> If you use "hw", you bypass the automatic format conversion and
> resampling.  So why do you want to use "hw"?
>
>
> Regards,
> Clemens
Well, quisk is the program largely written in python and the typical 
configuration options are as shown.
I have never been aware nor perhaps the author that "hw" imposed any 
restrictions.
However, "hw:0" and "hw:1" have always worked.

# "surround41".  In Quisk, all PortAudio device names start with 
"portaudio".
# A device name like "portaudio#6" directly specifies the index.  A name 
like
# "portaudio:text" means to search for "text" in all available devices.  And
# there is a default device "portaudiodefault".  So these portaudio 
names are useful:
#name_of_sound_capt = "portaudio:(hw:0,0)"              # First sound card
#name_of_sound_capt = "portaudio:(hw:1,0)"              # Second sound 
card, etc.
#name_of_sound_capt = "portaudio#1"                             # 
Directly specified index
#name_of_sound_capt = "portaudiodefault"                # May give poor 
performance on capture

# In ALSA, soundcards have these names.  The "hw" devices are the raw
# hardware devices, and should be used for soundcard capture.
#name_of_sound_capt = "hw:0"                                    # First 
sound card
name_of_sound_capt = "hw:1"                                     # Second 
sound card, etc.
#name_of_sound_capt = "plughw"
#name_of_sound_capt = "plughw:1"
#name_of_sound_capt = "default"

sample_rate = 192000
name_of_sound_play = "hw:0"                     # Panadapter: Do not play
channel_i = 1                                           # Soundcard 
index of in-phase channel:  0, 1, 2, ...
channel_q = 0                                           # Soundcard 
index of quadrature channel:  0, 1, 2, ...
microphone_name = "hw:0"                # Name of microphone capture 
device (or "hw:1")
mic_sample_rate = 48000         # Microphone capture sample rate in 
Hertz, must be 48000 or 8000
mic_channel_I = 0               # Soundcard index of mic capture audio 
channel
mic_channel_Q = 0               # Soundcard index of ignored capture channel
# Microphone samples sent to soundcard:
name_of_mic_play = "hw:1"               # Name of play device if mic I/Q 
is sent to a sound card
mic_playback_rate = 48000       # Playback rate must be a multiple 1, 2, 
... of mic_sample_rate
mic_play_chan_I = 0             # Soundcard index of mic I play channel
mic_play_chan_Q = 1             # Soundcard index of mic Q play channel
mic_out_volume = 0.7            # Microphone output volume (after all 
processing) as a fraction 0.0 to 0.7
Regards
Sid.

-- 
Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support
Senior Staff Specialist, Cricket Coach
Microsoft Windows Free Zone - Linux used for all Computing Tasks


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux