Csound Csound-dev Csound-tekno Search About

[Cs-dev] OT ring buffer file

Date2014-03-02 12:39
FromAnders Genell
Subject[Cs-dev] OT ring buffer file
Dear wizards!

The has nothing to do with csound, other than that I suppose this could be used also for streaming csound music...

I have a SONOS (www.sonos.com) system which is versatile in many ways, but lacks some features. 

One thing I had in mind trying was to be able to play music from my turntable to the SONOS system. I could of course buy a 'sonos connect' that takes two RCA connectors and streams the input to the rest of the system, but it is not nearly nerdy enough. 

I was thinking of hooking the turntable to a Raspberry Pi with an USB sound card and make the audio input available to the SONOS system. I tried icecast/ices webcasting but it is ogg-stream only, which SONOS does not support (although it supports ogg files). So I was thinking it could be possible to create some kind of circular buffer file that I can put on a (samba) share accessible from the sonos system. Alsa has a wav write plugin, so if I could just read from the input and have it written to what to alsa appears to be an ordinary file but that is actually a ring buffer of suitable size, that would be ideal. Preferably created in /dev/shm to minimize file-io to the RPi SD-card. 

Does anybody know if there is a (simple) way of achieving this?

Regards,
Anders


------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net