Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #190146 > unrolled thread
| Started by | Pierre Frenkiel <pierre.frenkiel@gmail.com> |
|---|---|
| First post | 2017-12-22 14:30 +0100 |
| Last post | 2017-12-24 17:10 +0100 |
| Articles | 14 — 4 participants |
Back to article view | Back to linux.debian.user
Re: aplay fails on amd64 laptop Pierre Frenkiel <pierre.frenkiel@gmail.com> - 2017-12-22 14:30 +0100
Re: aplay fails on amd64 laptop <tomas@tuxteam.de> - 2017-12-22 17:40 +0100
Re: aplay fails on amd64 laptop Pierre Frenkiel <pierre.frenkiel@gmail.com> - 2017-12-22 18:10 +0100
Re: aplay fails on amd64 laptop Tom Furie <tom@furie.org.uk> - 2017-12-22 18:30 +0100
Re: aplay fails on amd64 laptop Pierre Frenkiel <pierre.frenkiel@gmail.com> - 2017-12-22 18:40 +0100
Re: aplay fails on amd64 laptop deloptes <deloptes@gmail.com> - 2017-12-23 01:10 +0100
Re: aplay fails on amd64 laptop deloptes <deloptes@gmail.com> - 2017-12-23 01:00 +0100
Re: aplay fails on amd64 laptop Pierre Frenkiel <pierre.frenkiel@gmail.com> - 2017-12-23 10:50 +0100
Re: aplay fails on amd64 laptop deloptes <deloptes@gmail.com> - 2017-12-23 11:10 +0100
Re: aplay fails on amd64 laptop Pierre Frenkiel <pierre.frenkiel@gmail.com> - 2017-12-23 12:40 +0100
Re: aplay fails on amd64 laptop deloptes <deloptes@gmail.com> - 2017-12-23 13:00 +0100
Re: aplay fails on amd64 laptop Pierre Frenkiel <pierre.frenkiel@gmail.com> - 2017-12-23 13:20 +0100
Re: aplay fails on amd64 laptop deloptes <deloptes@gmail.com> - 2017-12-23 21:00 +0100
Re: aplay fails on amd64 laptop Pierre Frenkiel <pierre.frenkiel@gmail.com> - 2017-12-24 17:10 +0100
| From | Pierre Frenkiel <pierre.frenkiel@gmail.com> |
|---|---|
| Date | 2017-12-22 14:30 +0100 |
| Subject | Re: aplay fails on amd64 laptop |
| Message-ID | <uZvyF-1ur-5@gated-at.bofh.it> |
On Thu, 21 Dec 2017, deloptes wrote: > you need to use hw:1.0 > as you target your second card, or configure snd module to initialize the > analog as first card thank you for your reply, but can you be a little more specific: what do you mean exactly by "use hw:1.0" ? where? in a config file, in the aplay command line ...? best regards, -- Pierre Frenkiel
[toc] | [next] | [standalone]
| From | <tomas@tuxteam.de> |
|---|---|
| Date | 2017-12-22 17:40 +0100 |
| Message-ID | <uZywx-3pH-1@gated-at.bofh.it> |
| In reply to | #190146 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, Dec 22, 2017 at 02:21:42PM +0100, Pierre Frenkiel wrote: > On Thu, 21 Dec 2017, deloptes wrote: > > >you need to use hw:1.0 > >as you target your second card, or configure snd module to initialize the > >analog as first card > > thank you for your reply, but can you be a little more specific: > what do you mean exactly by "use hw:1.0" ? > where? in a config file, in the aplay command line ...? Either in the command line (option -D, i.e. "device", cf aplay man page) or in the config file (possibly ~/.asoundrc, don't know off the top of my head how you specify that there, but try http://www.alsa-project.org/main/index.php/Asoundrc) Cheers - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlo9NEUACgkQBcgs9XrR2kZ27ACeP1FgOdrogp8DfnFk0KNb4Pfn sSEAnjGr9q8ht2QznIWDkXfPj7c5q9hg =g3Sc -----END PGP SIGNATURE-----
[toc] | [prev] | [next] | [standalone]
| From | Pierre Frenkiel <pierre.frenkiel@gmail.com> |
|---|---|
| Date | 2017-12-22 18:10 +0100 |
| Message-ID | <uZyZD-3PE-27@gated-at.bofh.it> |
| In reply to | #190148 |
On Fri, 22 Dec 2017, tomas@tuxteam.de wrote:
> Either in the command line (option -D, i.e. "device", cf aplay man
> page) or in the config file (possibly ~/.asoundrc, don't know off
> the top of my head how you specify that there, but try
>
> http://www.alsa-project.org/main/index.php/Asoundrc)
I already did, as reported in my 1st post: aplay -D default file.wav
with the config given in the above link
->aplay -D default file.wav
Playing WAVE 'file.wav' : Unsigned 8 bit, Rate 11025 Hz, Stereo
aplay: set_params:1299: Sample format non available
Available formats:
- S16_LE
- S32_LE
with hw:1:0, same result
->aplay -D hw:1,0 file.wav
Playing WAVE 'file.wav' : Unsigned 8 bit, Rate 11025 Hz, Stereo
aplay: set_params:1299: Sample format non available
Available formats:
- S16_LE
- S32_LE
the given link gives no new information
best regards,
--
Pierre Frenkiel
[toc] | [prev] | [next] | [standalone]
| From | Tom Furie <tom@furie.org.uk> |
|---|---|
| Date | 2017-12-22 18:30 +0100 |
| Message-ID | <uZziX-40w-13@gated-at.bofh.it> |
| In reply to | #190151 |
[Multipart message — attachments visible in raw view] — view raw
On Fri, Dec 22, 2017 at 06:03:22PM +0100, Pierre Frenkiel wrote: > with hw:1:0, same result > ->aplay -D hw:1,0 file.wav > Playing WAVE 'file.wav' : Unsigned 8 bit, Rate 11025 Hz, Stereo > aplay: set_params:1299: Sample format non available > Available formats: > - S16_LE > - S32_LE Are the 1:0 and 1,0 above typos in the mail? If not, they should be 1.0. Cheers, Tom -- And now for something completely different.
[toc] | [prev] | [next] | [standalone]
| From | Pierre Frenkiel <pierre.frenkiel@gmail.com> |
|---|---|
| Date | 2017-12-22 18:40 +0100 |
| Message-ID | <uZzsB-446-3@gated-at.bofh.it> |
| In reply to | #190152 |
On Fri, 22 Dec 2017, Tom Furie wrote:
> Are the 1:0 and 1,0 above typos in the mail? If not, they should be 1.0.
no: look at : http://www.alsa-project.org/main/index.php/Asoundrc
I checked with aplay -D hw:1.0 brahms.wav.
this gives :
Invalid value for card
best regards,
--
Pierre Frenkiel
[toc] | [prev] | [next] | [standalone]
| From | deloptes <deloptes@gmail.com> |
|---|---|
| Date | 2017-12-23 01:10 +0100 |
| Message-ID | <uZFy2-8oN-21@gated-at.bofh.it> |
| In reply to | #190153 |
Pierre Frenkiel wrote: > On Fri, 22 Dec 2017, Tom Furie wrote: > >> Are the 1:0 and 1,0 above typos in the mail? If not, they should be 1.0. > > no: look at : http://www.alsa-project.org/main/index.php/Asoundrc > I checked with aplay -D hw:1.0 brahms.wav. > this gives : > Invalid value for card > > best regards, I think it should be hw:1,0 or plughw:1,0 but are you sure it you have unmuted your channels (alsamixer) also try by disabling HDMI in bios regards
[toc] | [prev] | [next] | [standalone]
| From | deloptes <deloptes@gmail.com> |
|---|---|
| Date | 2017-12-23 01:00 +0100 |
| Message-ID | <uZFol-82T-7@gated-at.bofh.it> |
| In reply to | #190146 |
Pierre Frenkiel wrote: > thank you for your reply, but can you be a little more specific: > what do you mean exactly by "use hw:1.0" ? > where? in a config file, in the aplay command line ...? man aplay aplay -D hw:1,0 or -Dplughw:1,0 look also at alsa docs to understand how sound system in linux works. IMO best is to configure the modules/drivers to have your analog as first card. or disable HDMI (it was workaround in such cases) regards
[toc] | [prev] | [next] | [standalone]
| From | Pierre Frenkiel <pierre.frenkiel@gmail.com> |
|---|---|
| Date | 2017-12-23 10:50 +0100 |
| Message-ID | <uZOBj-60A-5@gated-at.bofh.it> |
| In reply to | #190176 |
On Sat, 23 Dec 2017, deloptes wrote:
> man aplay
the useful information is given by "aplay -L", which lists
19 devices, among which 2 are working:
sysdefault:CARD=Generic
plughw:CARD=Generic,DEV=0
> aplay -D hw:1,0
this also gives
aplay: set_params:1299: Sample format non available
> or -Dplughw:1,0
this works, and also -Dplughw:Generic
Actually, I found the plughw syntax by accident, when trying once
aplay file.wav, which gave:
Playing WAVE 'file.wav' : Signed 16 bit Little Endian, Rate 11025 Hz, Stereo
Warning: rate is not accurate (requested = 11025Hz, got = 44100Hz)
please, try the plug plugin (-Dplug:default)
I appreciate this comment in the alsa doc:
It would be even nicer if the --help and man output of aplay would
define what NAME of "--device=NAME" should be set to. Then people
would not have to search the Internet to find out.
best regards,
--
Pierre Frenkiel
[toc] | [prev] | [next] | [standalone]
| From | deloptes <deloptes@gmail.com> |
|---|---|
| Date | 2017-12-23 11:10 +0100 |
| Message-ID | <uZOUF-6oO-1@gated-at.bofh.it> |
| In reply to | #190184 |
Pierre Frenkiel wrote: >> aplay -D hw:1,0 > this also gives > aplay: set_params:1299: Sample format non available you could also set the sample format ;-) - I was hoping you try to find out the way yourself. regards
[toc] | [prev] | [next] | [standalone]
| From | Pierre Frenkiel <pierre.frenkiel@gmail.com> |
|---|---|
| Date | 2017-12-23 12:40 +0100 |
| Message-ID | <uZQjL-7ef-3@gated-at.bofh.it> |
| In reply to | #190185 |
On Sat, 23 Dec 2017, deloptes wrote:
> Pierre Frenkiel wrote:
>
>>> aplay -D hw:1,0
>> this also gives
>> aplay: set_params:1299: Sample format non available
>
> you could also set the sample format ;-) - I was hoping you try to find out
> the way yourself.
1/ I don't see why I should loose time with hw:1,0, when the
plughw syntax works perfectly
2/ It's a strange way to help people to say them "find yourself"
Generally, when people ask for help, it's that there are, like me,
too stupid to find themselves.
I suggest to avoid useless posts
best regards,
--
Pierre Frenkiel
[toc] | [prev] | [next] | [standalone]
| From | deloptes <deloptes@gmail.com> |
|---|---|
| Date | 2017-12-23 13:00 +0100 |
| Message-ID | <uZQD7-7mA-5@gated-at.bofh.it> |
| In reply to | #190194 |
Pierre Frenkiel wrote: > It's a strange way to help people to say them "find yourself" > Generally, when people ask for help, it's that there are, like me, > too stupid to find themselves. > I suggest to avoid useless posts but I told you also about plughw - no? a brief look into man aplay tells you the -f option could be used example -f cd (I think it was 44100Hz) no idea why you are so resistant to getting the knowledge yourself - the man page is even not that long and you should start reading yourself. you know there are two types of help: feed the hungry or teach them make food themselves - I prefer the 2nd one - you the 1st one - no reason to get personal regards
[toc] | [prev] | [next] | [standalone]
| From | Pierre Frenkiel <pierre.frenkiel@gmail.com> |
|---|---|
| Date | 2017-12-23 13:20 +0100 |
| Message-ID | <uZQWt-7Kc-5@gated-at.bofh.it> |
| In reply to | #190198 |
On Sat, 23 Dec 2017, deloptes wrote:
> you know there are two types of help: feed the hungry or teach them make
> food themselves - I prefer the 2nd one - you the 1st one - no reason to get
> personal
from wikipedia:
A teacher is a person who helps others to acquire knowledge, competences
or values.
do you think that "find yourself" matches this definition?
FYI, I tried all -f options, and no one worked.
[toc] | [prev] | [next] | [standalone]
| From | deloptes <deloptes@gmail.com> |
|---|---|
| Date | 2017-12-23 21:00 +0100 |
| Message-ID | <uZY7D-2P2-5@gated-at.bofh.it> |
| In reply to | #190200 |
Pierre Frenkiel wrote:
> do you think that "find yourself" matches this definition?
It might surprise you but yes :)
If you have read man aplay to the end you would have found following
aplay -c 1 -t raw -r 22050 -f mu_law foobar
will play the raw file "foobar" as a 22050-Hz, mono, 8-bit,
Mu-Law .au file.
Adjusting it a bit to my setup (-Ddefault) produces following with sound
$ aplay -Ddefault -c 1 -t raw -r 22050 -f
mu_law /usr/share/sounds/alsa/Side_Left.wav
Warning: format is changed to S16_LE
Playing WAVE '/usr/share/sounds/alsa/Side_Left.wav' : Signed 16 bit Little
Endian, Rate 48000 Hz, Mono
I use default because pulseaudio is hooked at the alsa device
regards
[toc] | [prev] | [next] | [standalone]
| From | Pierre Frenkiel <pierre.frenkiel@gmail.com> |
|---|---|
| Date | 2017-12-24 17:10 +0100 |
| Message-ID | <v0h0B-7LU-13@gated-at.bofh.it> |
| In reply to | #190198 |
On Sat, 23 Dec 2017, deloptes wrote: > but I told you also about plughw - no? yes, but I told you before that I found it myself by accident, when trying on an other wav file. > no idea why you are so resistant to getting the knowledge yourself - the man > page is even not that long and you should start reading yourself. I read it, but it seems that you didn't unserstand that it gives just an example, and doesn't provide any way to find the right parameters for an other file. None of the parameters I tried worked, until I used the -Dplughw syntax. Anyway, I think useless to continue talking with somebody who can say that "teaching the hungry how to make food" is equivalent to "tell them to find themselves" I hope that the Education Minister will not read that, otherwise he could think that it is useless to pay thousands of teachers, as it is enough to tell the students "find yourself" best regards, -- Pierre Frenkiel
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web