LabSound / LabSound

:microscope: :speaker: graph-based audio engine

Home Page:http://labsound.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple example to play a wav file?

opened this issue · comments

Is there any chance of getting a simple C++ example that demonstrates playing a WAV file? The provided examples are overwhelming. Anything straightforward would be greatly appreciated to help me get started.

Hi, could you try the examples in the example repo? https://github.com/LabSound/LabSoundDemo

If you follow the instructions there (be sure to do a recursive clone, as it instructs on that page), you should get a few simple demos, and LabSoundStarter is exactly what you are asking about ~ a simple example that does nothing but play a wav file.

I just tested it on a Mac, it worked. It's pinned to an old copy of LabSound. You should be able to get it working in a couple of minutes, and after that, the code for the Starter example should be a good basis for using the latest version of LabSound, which has had a great many performance and sound quality fixes since that demo was published.

Closing. Feel free to reopen if you have more questions.