EasyVolcaSample icon indicating copy to clipboard operation
EasyVolcaSample copied to clipboard

on Windows, write the soundfile to a temp file and play immediately using PlaySound

Open wizardishungry opened this issue 10 years ago • 4 comments

see https://msdn.microsoft.com/en-us/library/windows/desktop/dd743680%28v=vs.85%29.aspx

wizardishungry avatar Mar 26 '15 15:03 wizardishungry

Yes this could be easily possible! Pull request welcome!

josephernest avatar Mar 26 '15 15:03 josephernest

I don't have a windows box to develop on! But I'll hack it up and also make a Mac implementation.

wizardishungry avatar Mar 26 '15 15:03 wizardishungry

The file playing takes a long time for a big sample load. We might want to think about putting a progress indicator in place at some point.

wizardishungry avatar Mar 26 '15 15:03 wizardishungry

I've pushed my changes to get autoplay of the wav file working. It works on OSX right now.

You may need to prepend the current directory to the out.wav string passed to PlayFile.

wizardishungry avatar Apr 05 '15 20:04 wizardishungry