summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dgedit/player.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/dgedit/player.cc b/dgedit/player.cc
index 5f5c344..baaf975 100644
--- a/dgedit/player.cc
+++ b/dgedit/player.cc
@@ -42,6 +42,8 @@ Player::Player()
connect(&report_timer, SIGNAL(timeout()), this, SLOT(reportTimeout()));
report_timer.start(50); // Update 25 times per second
+
+ start();
}
Player::~Player()
@@ -55,6 +57,7 @@ void Player::run()
ao_initialize();
ao_sample_format sf;
+ memset(&sf, 0, sizeof(sf));
sf.bits = 16;
sf.rate = 44100;
sf.channels = 1;