I have been somewhat successful!

After going with the solution in post 47 of this thread (the snd-aloop
method) and overclocking my Pi's, I was able to play the stream with no
problems to my clients. I essentially used arecord to grab my line in
(with -D hw:0) and then pipe it to the virtual soundcard with the syntax
"aplay -D hw:2,0"

So I'm about halfway to my solution with this. Now, I just need to bring
the audio recording/streaming up to 24 bits and 192 kHz sampling.
However, if I try to set my format to S24_LE in the command line
"arecord", it complains that it is not an acceptable format for aplay.
When I change it to S32_LE, it apparently records fine. Then, I record
from the looped soundcard and play it back on hw:0 and it plays fine out
of my speakers (so I know the audio is recording/playing correctly).
However, when I try to use the plugin in LMS, no sound comes out, and it
goes from the pause icon back to the play icon after a few seconds. When
I change the sample format back to S16_LE, it works fine. Same thing
happens when I try to edit the format in the custom-convert.conf file.
If I set it at S24_LE or S32_LE, the plugin responds the same way as I
described before. I can modify the sample rate though with no issue (I
have set it as high as 192 kHz with no problems). Does anyone have any
ideas?

To be explicit, I'll write out the commands I use/procedure I use
below:

1. I type the statement "arecord -d0 -c2 -r44100 -fS16_LE -D hw:0 |
aplay -D hw:2,0" into the terminal
2. I then use the favorite I named "Stream" with the URL "wavin:hw:2,1"
3. I get playback on my devices
4. If I change the "-f" field to S24_LE, I get an "aplay:
set_params:1081: Sample format non available" error. However, I can
definitely record and playback on my hw:0 card with S24_LE
5. If I change that "-f" field to S32_LE, it doesn't complain anymore
6. If I then use arecord -d0 -c2 -r44100 -fS32_LE -D hw:2,1 | aplay -D
hw:0", I hear the music I'm recording play back out of my speakers
fine.
7. When I use the WaveInput plugin, the button goes back to play a
second or two after I push it
8. Changing settings in the custom-convert.conf file provides the same
results

I tried to check the log, but I see nothing unusual come up when I use
the plugin. Just doesn't work.

Any ideas? Also, thanks for all of the help so far bpa. It's gotten me
this far?

Cheers,

Michael


------------------------------------------------------------------------
mike_b16's Profile: http://forums.slimdevices.com/member.php?userid=63606
View this thread: http://forums.slimdevices.com/showthread.php?t=102551

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to