BeautiCode
31st May 2015, 21:48
So I was experimenting with QSound...And after a while of trying to figure out why
QSound qs("st.wav");
qs.setLoops(1);
qs.play();
wouldn't work(didn't play audio), I discovered that
QSound* qs = new QSound("st.wav");
qs->setLoops(1);
qs->play();
worked. Why is this?
QSound qs("st.wav");
qs.setLoops(1);
qs.play();
wouldn't work(didn't play audio), I discovered that
QSound* qs = new QSound("st.wav");
qs->setLoops(1);
qs->play();
worked. Why is this?