Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

fix path of sound file in examples #3

Merged
merged 1 commit into from

2 participants

@tricknotes

examples/sound.js doesn't work as my expected.

I tried following code:

$ pwd
~/node-qt
$ node examples/sound.js

But the sound is never played.

new qt.QSound(); seems to search file from current path of node executed.
I fixed file path to use relative path from examples/sound.js

@arturadib
Owner

Nice catch, thank you!

@arturadib arturadib merged commit 4581fe9 into arturadib:master
@tricknotes tricknotes referenced this pull request in arturadib/node-five
Merged

fix path of resoures in demos #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 10, 2012
  1. @tricknotes
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  examples/sound.js
View
2  examples/sound.js
@@ -31,7 +31,7 @@ var qt = require('..');
var app = new qt.QApplication();
-var sound = new qt.QSound('conga1.wav');
+var sound = new qt.QSound(__dirname + '/conga1.wav');
sound.setLoops(3);
sound.play();
Something went wrong with that request. Please try again.