Permalink
Browse files

Move the use threads up

  • Loading branch information...
kthakore
kthakore committed Nov 19, 2010
1 parent 41d4226 commit df23fafba0a8873b726d8c8960830ee132d898e3
Showing with 3 additions and 3 deletions.
  1. +3 −3 t/mixer_channels.t
View
@@ -29,6 +29,9 @@ BEGIN {
use SDL::Mixer;
use SDL::Mixer::Channels;
use SDL::Mixer::Samples;
+use threads;
+use threads::shared;
+
is( SDL::Mixer::open_audio( 44100, SDL::Audio::AUDIO_S16SYS, 2, 4096 ),
0, '[open_audio] ran'
@@ -38,9 +41,6 @@ is( SDL::Mixer::Channels::allocate_channels(4),
4, "[allocate_channels] 4 channels allocated"
);
-use threads;
-use threads::shared;
-
my $finished :shared = 0;
my $callback = sub {
my $channel = shift;

0 comments on commit df23faf

Please sign in to comment.