Open djloot opened 5 years ago
Your idea looks good. I don't have an example for piping to fifo off hand.
Out of interest, does the audio have to go to file/fifo ? Can you pipe directly in to your cli-visualizer ?
On 31/1/19 3:58 am, DJLoot wrote:
I assume this will require fifo of some type but can't figure out how to get the slave.pcm defined. here is the section in the documentation for the system:
ALSA setup config
pcm.!default { type file # File PCM slave.pcm "hw:0,0" # This should match the playback device at /proc/asound/devices file "|safe_fifo /tmp/audio" #safe_fifo will be in the cli-visualizer/bin/safe_fifo directory format raw # File format ("raw" or "wav") perm 0666 # Output file permission (octal, def. 0600) }
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Audio-Injector/stereo-and-zero/issues/24, or mute the thread https://github.com/notifications/unsubscribe-auth/AAq6BzOpKhRgXH39cl3OF4p1bK1nIrQWks5vIc8-gaJpZM4aaorb.
It doesn't have to go fifo, just don't know enough about the code to set it to go directly to the alsamixer. It says to to match /proc/asound/devices. For me, it looks like this: 0: [ 0] : control 16: [ 0- 0]: digital audio playback 24: [ 0- 0]: digital audio capture 32: [ 1] : control 33: : timer 48: [ 1- 0]: digital audio playback 49: [ 1- 1]: digital audio playback 56: [ 1- 0]: digital audio capture 57: [ 1- 1]: digital audio capture
On Thu, Jan 31, 2019 at 4:45 PM Matt Flax notifications@github.com wrote:
Your idea looks good. I don't have an example for piping to fifo off hand.
Out of interest, does the audio have to go to file/fifo ? Can you pipe directly in to your cli-visualizer ?
On 31/1/19 3:58 am, DJLoot wrote:
I assume this will require fifo of some type but can't figure out how to get the slave.pcm defined. here is the section in the documentation for the system:
ALSA setup config
pcm.!default { type file # File PCM slave.pcm "hw:0,0" # This should match the playback device at /proc/asound/devices file "|safe_fifo /tmp/audio" #safe_fifo will be in the cli-visualizer/bin/safe_fifo directory format raw # File format ("raw" or "wav") perm 0666 # Output file permission (octal, def. 0600) }
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Audio-Injector/stereo-and-zero/issues/24, or mute the thread < https://github.com/notifications/unsubscribe-auth/AAq6BzOpKhRgXH39cl3OF4p1bK1nIrQWks5vIc8-gaJpZM4aaorb .
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Audio-Injector/stereo-and-zero/issues/24#issuecomment-459517928, or mute the thread https://github.com/notifications/unsubscribe-auth/AghRZIuDtoWxhhXaFf3IL4L0gEI3x6NQks5vI2PhgaJpZM4aaorb .
Oh - I don't quite understand how cli-visualizer works.
Does it present as an ALSA device or a different way ?
thanks
Matt
On 1/2/19 9:15 am, DJLoot wrote:
It doesn't have to go fifo, just don't know enough about the code to set it to go directly to the alsamixer. It says to to match /proc/asound/devices. For me, it looks like this: 0: [ 0] : control 16: [ 0- 0]: digital audio playback 24: [ 0- 0]: digital audio capture 32: [ 1] : control 33: : timer 48: [ 1- 0]: digital audio playback 49: [ 1- 1]: digital audio playback 56: [ 1- 0]: digital audio capture 57: [ 1- 1]: digital audio capture
On Thu, Jan 31, 2019 at 4:45 PM Matt Flax notifications@github.com wrote:
Your idea looks good. I don't have an example for piping to fifo off hand.
Out of interest, does the audio have to go to file/fifo ? Can you pipe directly in to your cli-visualizer ?
On 31/1/19 3:58 am, DJLoot wrote:
I assume this will require fifo of some type but can't figure out how to get the slave.pcm defined. here is the section in the documentation for the system:
ALSA setup config
pcm.!default { type file # File PCM slave.pcm "hw:0,0" # This should match the playback device at /proc/asound/devices file "|safe_fifo /tmp/audio" #safe_fifo will be in the cli-visualizer/bin/safe_fifo directory format raw # File format ("raw" or "wav") perm 0666 # Output file permission (octal, def. 0600) }
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Audio-Injector/stereo-and-zero/issues/24, or mute the thread <
.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub
https://github.com/Audio-Injector/stereo-and-zero/issues/24#issuecomment-459517928, or mute the thread
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Audio-Injector/stereo-and-zero/issues/24#issuecomment-459527336, or mute the thread https://github.com/notifications/unsubscribe-auth/AAq6B1z7P8P441fvjRUl6P6V0dROnIoKks5vI2rrgaJpZM4aaorb.
I honestly don't know. It looks like it was developed kind of based on CAVA. I got CAVA working perfectly with the sound card but also wanted cli-visualizer.
I assume this will require fifo of some type but can't figure out how to get the slave.pcm defined. here is the section in the documentation for the system:
ALSA setup config
pcm.!default { type file # File PCM slave.pcm "hw:0,0" # This should match the playback device at /proc/asound/devices file "|safe_fifo /tmp/audio" #safe_fifo will be in the cli-visualizer/bin/safe_fifo directory format raw # File format ("raw" or "wav") perm 0666 # Output file permission (octal, def. 0600) }