08-03-2025, 01:59 PM
(This post was last modified: 08-03-2025, 02:06 PM by nattaphoomd.)
(08-03-2025, 01:41 PM)nattaphoomd Wrote:(08-03-2025, 01:31 PM)nattaphoomd Wrote: Hi Fdaealexa,
I post step by step by seem 1reply was limit by number of character.
First I'm assume you are able to use PEPPY meter with Loopback mode PCM as usual.
to try this. I'm working on moode 8.3. if you are using moode9 and it work with Peppy. it should be the same.
1. Deactivate loopback function in Moode WebUI audio setting.
2. create dummy alsa device. (dummy alsa will have no sound just to utilize as additional pipe instead of loopback.)
> sudo modprobe snd-dummy
>sudo nano /etc/modules // add snd-dummy on last line.
3. reboot
4. use script alsa -l you choose able to see new -> dummy alsa device in the list while -> Loopback will be gone as we deactivate in first step.
5. Now to do additional AUDIO OUTPUT device modification 2x separate pipe without conversion.
Follow on next reply.
Thank,
NT
Second Reply. How to modify /etc/mpd.conf.
Please note that mpd.conf will be override everytime you use Moode WEBUI to modify and save parameter under MPD section.....
So keep in mind if you save config something in Mpd config it will override what I'm explain the coding down below.
manual modify
1. sudo nano /etc/mpd.conf
2. add first yellow hightlight. this optional file will created separate audio pipe feed to PEPPYAlsa FIFO
insert in thefirst line above (music_directory)
include_optional "/usr/mpd/mpd_customer.conf"
3. create the file /usr/mpd/mpd_customer.conf.
paste below configuration. // this create additional audio output and receive signal from MPD which is going to used for peppymeter Fifo. of course dop must be "yes"
peppymeter only accept pcm signal.
audio_output {
enabled "yes"
type "alsa"
name "pippopeppy"
device "pippopeppy"
dop "yes"
mixer_type "none"
format "44100:16:2"
}
4. go back to /etc/mpd.conf look for Alsa Default and change device name as "Peppyalsa" with dop "no"
This we are try to send passthrough DSD , PCM ,MQA as it is. (no conversion) to real Hw:device.
audio_output {
type "alsa"
name "ALSA Default"
device "Peppyalsa"
mixer_type "none"
dop "no"
stop_dsd_silence "no"
thesycon_dsd_workaround "no"
}
Next you need to create Asound.conf filer with the name of 1. pippopeppy , 2. Peppyalsa. they need 2x Asound name to tread 2 pipe signal.
THank you,
NT
Let's create Asound.conf for used instead of _audioout
1. Create new files. sudo nano /etc/alsa/conf.d/mpd_peppyalsa.conf
2. put this as a device and save file. Make permissiong chmod 777 for this file.
//This is actual output called. it redirect bypass non process to slave pcm "post" where you can select the actual output playback in there.
pcm.Peppyalsa{
type empty
slave.pcm "post"
}
// THis seem not called. it's like code we used to pipe PCM only to Loopback and peppy duplicate PCM. I don't understand but it must be there.
pcm.peppy1_off {
type plug
route_policy "duplicate"
slave.pcm {
type multi
slaves {
a { channels 2 pcm "post" }
b { channels 2 pcm "pippopeppy" }
}
bindings {
0 { slave a channel 0 }
1 { slave a channel 1 }
2 { slave b channel 0 }
3 { slave b channel 1 }
}
}
ttable [
[ 1 0 1 0 ] # left -> a.left, b.left
[ 0 1 0 1 ] # right -> a.right, b.right
]
}
// OURs dummy output will be used in here.
// THIS OUTPUT pippopepy will be pipe in FIFO through a dummy out hardware instead of Loopback hw.
pcm.pippopeppy {
type meter
slave.pcm "dummy"
scopes.0 peppyalsa
}
// OURs dummy output will be used in here.
pcm.dummy {
type hw
card Dummy
device 0
}
pcm_scope.peppyalsa {
type peppyalsa
decay_ms 400
meter "/var/tmp/peppyfifo" // THIS IS Follow your exisiting peppy FIFO
meter_max 99
meter_show 0
smoothing_factor 60
}
pcm_scope_type.peppyalsa {
lib /usr/local/lib/libpeppyalsa.so
}
// this is REAL HARDWARE you would like to PLAY DSD AUDIO
pcm.post{
type hw
card "3"
}
3. now your have 2output device on MOODE everyboot. but somehow it will select ALSA defualt which will play to peppyalsa -> post -> your hardware selected above.
PEPPYMETER still not working don't be worry.
4. every booting up you need to create auto booting shell script after network initialize done.
Here is my script
#!/bin/sh
sleep 30 && mpc clear && mpc enable pippopeppy
every boot after network initializer delay 30 minute make sure MPD server is running up. then I used MPC (client) command to Enable pippopeppy device as an output.
Or you can fine MPD client software and looking for output device and try to manual active pippopeppy is also possible.
But I prefer automatically way to selected every booting. Now you have 2 output device selected and PEPPYMETER SHOULD have work. with DSD direct no DOP.
Summary.
1. create dummy out for every boot for piping PCM to peppymeter instead of loopback. (disable loopback)
2. modify Mpd with optional file. ( additional Audio output for VU peppymeter pipe)
3. modify actual playback device replace _audioout with PeppyAlsa. new alsa asound conf file need.
4. create autostart script to select peppymeter audio device automaticly enable. PEPPYMETER will work everybooting automatically.
Hope it useful and Would like to know if it work well on yourside.
again I'm using moode 8.3.9 not moode 9.
but it should be the same principle. Don't forget Hardware output must be HW:0,0 for example not plughw:0,0 as we want no conversion output and let DAC decode the format.
Best Regards,
Nattaphoom