museumsvictoria / spatial_audio_server

An audio backend for the multi-layered soundscape of Beyond Perception: Seeing the Unseen, a permanent exhibition at Scienceworks in Melbourne, Australia.
81 stars 14 forks source link

Update to latest CPAL. Add realtime input stream audio source support. #54

Closed mitchmindtree closed 6 years ago

mitchmindtree commented 6 years ago

Realtime sources can now be added via the Source Editor widget. Was able to test this successfully using the mic input on laptop. My linux machine required a pretty high latency to account for the non-synchronised input and output audio device clocks however this is likely just related to the high latency induced by pulseaudio. Latency will likely not be an issue for this exhibition anyway considering there are no interactions that directly trigger any real-time input streams.

The playback "duration", number of channels and starting channel index of the source can be adjusted.

Sources (both wav and realtime) can not be removed via the source editor list. Note that removed WAV sources will re-appear next time the application is started if that wav file still exists within the assets/audio directory.

Also changes the soundscape thread to take source updates as functions rather than an entirely new copy of the source.

The only remaining component for #23 is the "movement" parameters - these will be developed alongside the soundscape generation in case other movement related constraints crop up.

This closes #22.