Go Back   Home > Forums > > >
Home Forums Rules Articles diyAudio Store Blogs Gallery Wiki Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Twisted Pear Superior quality electronic kits

Reply
 
Thread Tools Search this Thread
Old 27th July 2015, 05:19 PM   #21
francolargo is offline francolargo  United States
diyAudio Member
 
Join Date: Mar 2007
Location: Twin Cities, MN
...forgot to include:
Code:
root@botic:/# mpc play
Track4.aif
[paused]  #1/3   0:00/5:03 (0%)
volume:100%   repeat: off   random: off   single: off   consume: off
ERROR: Failed to open audio output
root@botic:/# cat /proc/asound/Botic/pcm0p/sub0/hw_params
closed
root@botic:/# cat /proc/asound/Botic/pcm0p/sub0/sw_params
closed
  Reply With Quote
Old 27th July 2015, 05:41 PM   #22
phofman is online now phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
OK, let's use a different tool to probe for the acceptable params. Aplay is the simpliest wav player with good debug capabilities.

Code:
aplay -v --dump-hw-params  -D default your-44100.wav
Please post output of the command. The -v (verbose) param is very important.
  Reply With Quote
Old 27th July 2015, 06:10 PM   #23
francolargo is offline francolargo  United States
diyAudio Member
 
Join Date: Mar 2007
Location: Twin Cities, MN
I had an 88.2/24 wav immediately available - will try to find a 44.1/16 file and load it...

Code:
root@botic:/# aplay -v --dump-hw-params -D default /data/crazylove.wav
Playing WAVE '/data/crazylove.wav' : Signed 24 bit Little Endian in 3bytes, Rate 88200 Hz, Stereo
HW Params of device "default":
--------------------
ACCESS:  MMAP_INTERLEAVED MMAP_NONINTERLEAVED MMAP_COMPLEX RW_INTERLEAVED RW_NONINTERLEAVED
FORMAT:  S8 U8 S16_LE S16_BE U16_LE U16_BE S24_LE S24_BE U24_LE U24_BE S32_LE S32_BE U32_LE U32_BE FLOAT_LE MU_LAW A_LAW IMA_ADPCM S24_3LE S24_3BE U24_3LE U24_3BE S20_3LE S20_3BE U20_3LE U20_3BE S18_3LE S18_3BE U18_3LE U18_3BE
SUBFORMAT:  STD
SAMPLE_BITS: [4 32]
FRAME_BITS: [4 320000]
CHANNELS: [1 10000]
RATE: [4000 4294967295]
PERIOD_TIME: (0 1024000]
PERIOD_SIZE: (0 4294967295]
PERIOD_BYTES: (0 4294967295]
PERIODS: (0 4294967295]
BUFFER_TIME: [1 4294967295]
BUFFER_SIZE: [1 4294967295]
BUFFER_BYTES: [1 4294967295]
TICK_TIME: ALL
--------------------
aplay: set_params:1297: Unable to install hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  S24_3LE
SUBFORMAT:  STD
SAMPLE_BITS: 24
FRAME_BITS: 48
CHANNELS: 2
RATE: 88200
PERIOD_TIME: (11609 11610)
PERIOD_SIZE: NONE
PERIOD_BYTES: (6138 6144)
PERIODS: NONE
BUFFER_TIME: (46439 46440)
BUFFER_SIZE: 4096
BUFFER_BYTES: 24576
TICK_TIME: 0
  Reply With Quote
Old 27th July 2015, 06:17 PM   #24
francolargo is offline francolargo  United States
diyAudio Member
 
Join Date: Mar 2007
Location: Twin Cities, MN
...and a 44.1/16 run...
Code:
root@botic:/data# aplay -v --dump-hw-params -D default /data/bacteriuria.wav
Playing WAVE '/data/bacteriuria.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
HW Params of device "default":
--------------------
ACCESS:  MMAP_INTERLEAVED MMAP_NONINTERLEAVED MMAP_COMPLEX RW_INTERLEAVED RW_NONINTERLEAVED
FORMAT:  S8 U8 S16_LE S16_BE U16_LE U16_BE S24_LE S24_BE U24_LE U24_BE S32_LE S32_BE U32_LE U32_BE FLOAT_LE MU_LAW A_LAW IMA_ADPCM S24_3LE S24_3BE U24_3LE U24_3BE S20_3LE S20_3BE U20_3LE U20_3BE S18_3LE S18_3BE U18_3LE U18_3BE
SUBFORMAT:  STD
SAMPLE_BITS: [4 32]
FRAME_BITS: [4 320000]
CHANNELS: [1 10000]
RATE: [4000 4294967295]
PERIOD_TIME: (0 1024000]
PERIOD_SIZE: (0 4294967295]
PERIOD_BYTES: (0 4294967295]
PERIODS: (0 4294967295]
BUFFER_TIME: [1 4294967295]
BUFFER_SIZE: [1 4294967295]
BUFFER_BYTES: [1 4294967295]
TICK_TIME: ALL
--------------------
aplay: set_params:1297: Unable to install hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 44100
PERIOD_TIME: (23219 23220)
PERIOD_SIZE: NONE
PERIOD_BYTES: (2046 2048)
PERIODS: NONE
BUFFER_TIME: (92879 92880)
BUFFER_SIZE: 4096
BUFFER_BYTES: 8192
TICK_TIME: 0
  Reply With Quote
Old 27th July 2015, 06:36 PM   #25
phofman is online now phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
Very good. Aplay will make our life much easier. Until aplay works, it makes no sense to struggle with other players.

Is your asound.conf still the same as the one posted at the beginning of this thread? Again, I want to make sure we have current configs.

Are you really sure squeezelite has used your "default" device with ladpsa? If yes, we will play with the input params which can be specified by aplay.

I would like to see a log from working setup. According to Squeezelite troubleshooting - Page 2 : running squeezelite with -d all=debug -f ~/squeezelite.log Please post the log of working squeezelite, if we can see some useful info. Hopefully it will provide information similar to MPD. Thanks.
  Reply With Quote
Old 27th July 2015, 06:57 PM   #26
francolargo is offline francolargo  United States
diyAudio Member
 
Join Date: Mar 2007
Location: Twin Cities, MN
With squeezelite I typically use '-o default' though I have tested and the filters work with just 'squeezelite' and no output specified.

Code:
squeezelite -o default -d all=debug -f /root/squeezelite.log
[18:50:37.607626] stream_init:290 init stream
[18:50:37.608361] stream_init:291 streambuf size: 2097152
[18:50:37.615361] output_init_alsa:817 init output
[18:50:37.615475] output_init_alsa:846 requested alsa_buffer: 40 alsa_period: 4 format: any mmap: 1
[18:50:37.615531] output_init_common:346 outputbuf size: 3528000
[18:50:37.615745] output_init_common:370 idle timeout: 0
[18:50:37.654224] output_init_common:410 supported rates: 384000 352800 192000 176400 96000 88200 48000 44100 32000 24000 22500 16000 12000 11025 8000
[18:50:37.672931] output_init_alsa:862 memory locked
[18:50:37.673753] output_thread:638 open output device: default
[18:50:37.673875] alsa_open:355 opening device at: 44100
[18:50:37.692430] alsa_open:406 opened device default using format: S32_LE sample rate: 44100 mmap: 1
[18:50:37.699346] alsa_open:485 buffer: 40 period: 4 -> buffer size: 1764 period size: 441
[18:50:37.729639] output_init_alsa:885 set output sched fifo rt: 45
[18:50:37.729855] decode_init:129 init decode, include codecs:  exclude codecs:
[18:50:37.730454] register_dsd:624 using dsd to decode dsf,dff
[18:50:37.865047] load_ff:621 loaded libavcodec.so.55 (55.34.1)
[18:50:37.865270] load_ff:638 loaded libavformat.so.55 (55.12.0)
[18:50:37.865344] load_ff:652 loaded libavutil.so.53 (53.3.0)
[18:50:37.879054] register_ff:731 using ffmpeg to decode alc
[18:50:37.891745] register_ff:715 using ffmpeg to decode wma,wmap,wmal
[18:50:37.893123] load_faad:610 loaded libfaad.so.2
[18:50:37.893268] register_faad:640 using faad to decode aac
[18:50:37.894213] load_vorbis:300 loaded libvorbisfile.so.3
[18:50:37.894312] register_vorbis:329 using vorbis to decode ogg
[18:50:37.896187] load_flac:258 loaded libFLAC.so.8
[18:50:37.896295] register_flac:286 using flac to decode flc
[18:50:37.896336] register_pcm:384 using pcm to decode aif,pcm
[18:50:37.897033] load_mad:383 loaded libmad.so.0
[18:50:37.897115] register_mad:412 using mad to decode mp3
[18:50:37.897895] discover_server:756 sending discovery
[18:50:37.898685] discover_server:767 got response from: 10.0.1.19:3483
[18:50:37.898883] slimproto:848 connecting to 10.0.1.19:3483
[18:50:37.900935] slimproto:881 connected
[18:50:37.901091] sendHELO:124 mac: 6c:ec:eb:67:6f:9f
[18:50:37.901144] sendHELO:126 cap: Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Firmware=v1.8,ModelName=SqueezeLite,MaxSampleRate=384000,dsf,dff,alc,wma,wmap,wmal,aac,ogg,flc,aif,pcm,mp3
[18:50:37.924883] process:494 strm
[18:50:37.925060] process_strm:256 strm command q
[18:50:37.925110] decode_flush:190 decode flush
[18:50:37.925148] output_flush:423 flush output buffer
[18:50:37.925193] sendSTAT:171 STAT: STMf
[18:50:37.925400] process:494 strm
[18:50:37.925464] process_strm:256 strm command q
[18:50:37.925597] decode_flush:190 decode flush
[18:50:37.925644] output_flush:423 flush output buffer
[18:50:37.925686] sendSTAT:171 STAT: STMf
[18:50:37.925807] process:494 setd
[18:50:37.925871] process:494 setd
[18:50:37.925926] process:494 aude
[18:50:37.926019] process_aude:395 enable spdif: 1 dac: 1
[18:50:37.926089] process:494 audg
[18:50:37.926130] process_audg:413 audg gainL: 49408 gainR: 49408 adjust: 1
[18:50:37.926171] set_volume:246 setting internal gain left: 49408 right: 49408
[18:50:38.281540] process:494 strm
[18:50:38.281747] process_strm:256 strm command t
[18:50:38.281801] sendSTAT:171 STAT: STMt
[18:50:43.279159] process:494 strm
[18:50:43.279379] process_strm:256 strm command t
[18:50:43.279437] sendSTAT:171 STAT: STMt
[18:50:48.277856] process:494 strm
[18:50:48.278074] process_strm:256 strm command t
[18:50:48.278132] sendSTAT:171 STAT: STMt
[18:50:53.281293] process:494 strm
[18:50:53.281503] process_strm:256 strm command t
[18:50:53.281559] sendSTAT:171 STAT: STMt
[18:50:56.328064] slimproto_stop:919 slimproto stop
[18:50:56.428589] decode_close:175 close decode
[18:50:56.522421] stream_close:322 close stream
[18:50:56.623680] output_close_alsa:890 close output
  Reply With Quote
Old 27th July 2015, 07:02 PM   #27
francolargo is offline francolargo  United States
diyAudio Member
 
Join Date: Mar 2007
Location: Twin Cities, MN
Oh yes, same mpd.conf...
  Reply With Quote
Old 27th July 2015, 07:29 PM   #28
phofman is online now phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
OK, the difference between aplay and squeezelite is the mmap access. Let's try

aplay -v --mmap your.wav

The -D default is not needed as it is the default name anyway.
  Reply With Quote
Old 27th July 2015, 07:44 PM   #29
phofman is online now phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
Actually, let's make it exactly the same as squeezelite:

Code:
aplay -v --mmap --buffer-size=1764 --period-size=441 --format=S32_LE your-441.wav
  Reply With Quote
Old 27th July 2015, 07:57 PM   #30
francolargo is offline francolargo  United States
diyAudio Member
 
Join Date: Mar 2007
Location: Twin Cities, MN
Just a reminder that 'aplay' did previously use the alsa filters correctly... Now it just dumps this same error, though 'speaker-test' still works correctly.

For now:
Code:
root@botic:/data# aplay -v --mmap heaven.wav
Playing WAVE 'heaven.wav' : Signed 24 bit Little Endian in 3bytes, Rate 88200 Hz, Stereo
aplay: set_params:1297: Unable to install hw params:
ACCESS:  MMAP_INTERLEAVED
FORMAT:  S24_3LE
SUBFORMAT:  STD
SAMPLE_BITS: 24
FRAME_BITS: 48
CHANNELS: 2
RATE: 88200
PERIOD_TIME: (11609 11610)
PERIOD_SIZE: NONE
PERIOD_BYTES: (6138 6144)
PERIODS: NONE
BUFFER_TIME: (46439 46440)
BUFFER_SIZE: 4096
BUFFER_BYTES: 24576
TICK_TIME: 0
  Reply With Quote

Reply


LADSPA filters for digital crossovers on the BBBHide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
LADSPA plugin programming for Linux audio crossovers CharlieLaub PC Based 476 14th June 2018 07:38 AM
filters/crossovers a little understanding needed charlie2 Multi-Way 3 19th February 2015 01:33 PM
Any new digital filters ? percy Digital Source 17 20th July 2008 12:39 AM
1st order filters/crossovers with proper drivers compared to full range? tech.knockout Multi-Way 8 15th May 2006 06:52 AM
Active crossovers and notch filters Saurav Multi-Way 15 26th February 2004 09:25 PM


New To Site? Need Help?

All times are GMT. The time now is 07:28 AM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 15.00%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Copyright ©1999-2018 diyAudio
Wiki