Hello everyone,
I started working on the sound part of my game recently. I’m using cinder 0.9.0 and Visual Studio 2017.
I have read the Audio API Guide and decided to go for the FilePlayerNode class as i want to loop my soundtrack.
Here is my code :
audio::FilePlayerNodeRef stanza;
…
{
audio::SourceFileRef sourceFile = audio::load(loadAsset(“stanza.wav”));
auto ctx = audio::Context::master();
stanza = ctx->makeNode(new audio::FilePlayerNode(sourceFile));
stanza->setLoopEnabled();
}
And i got this error :
‘void cinder::audio::Node::setContext(const cinder::audio::ContextRef &)’ : impossible ton convert argument 1 of ‘std::shared_ptr<_Ty>’ in ‘const cinder::audio::ContextRef &’
Thanks for the help.