Hello, I have dac light with upgraded preconfigured image (kernel 4).
The command
aplay /usr/share/sounds/alsa/Front_Left.wav -Dpulse
plays the sound, but the beginning is cut.
-Thomas
Hello, I have dac light with upgraded preconfigured image (kernel 4).
The command
aplay /usr/share/sounds/alsa/Front_Left.wav -Dpulse
plays the sound, but the beginning is cut.
-Thomas
This is an application problem. Why are you using Pulseaudio?
Best regards,
Daniel
because I have 2 services running on the pi : shairport-sync and gmediarenderer, and I'd like to be able to stream audio via bluetooth and pulse sink from other computers.
Here is the error when I use sysdefault :
$ aplay /usr/share/sounds/alsa/Front_Left.wav -Dsysdefault
Lecture WAVE '/usr/share/sounds/alsa/Front_Left.wav' : Signed 16 bit Little Endian, Fréquence 48000 Hz, Mono
aplay: set_params:1145: Les paramètres matériel n'ont pas pu être installés:
ACCESS: RW_INTERLEAVED
FORMAT: S16_LE
SUBFORMAT: STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 48000
PERIOD_TIME: 125000
PERIOD_SIZE: 6000
PERIOD_BYTES: 12000
PERIODS: 4
BUFFER_TIME: 500000
BUFFER_SIZE: 24000
BUFFER_BYTES: 48000
TICK_TIME: 0
in english : "Les paramètres matériel n'ont pas pu être installés" => "hardware parameters could not be installed"
~ $ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
pulse
Playback/recording through the PulseAudio sound server
sysdefault:CARD=sndrpihifiberry
snd_rpi_hifiberry_dac,
Default Audio Device
aplay is not a good tool for media playback. It just tells you that it can't playback a mono file as the sound card is a 2 channel sound card. I recommend using mplayer instead as it automatically detects what formats/sample rates are supported and uses these instead of just giving an error message.
Best regards,
Daniel
ok, same pb : sound cut with alsa
$ mplayer -ao alsa /usr/share/sounds/alsa/Front_Left.wav
In this case I would guess that the file itself it corrupted.
Best regards,
Daniel
I've downloaded the file, it plays correctly on my mac...
Unfortunately I can't say why it doesn't on your Raspberry Pi.
Best regards
Daniel
OK... thanks anyway