Lines Matching refs:Mixer

30 use SDL::Mixer;
31 use SDL::Mixer::Channels;
32 use SDL::Mixer::Groups;
33 use SDL::Mixer::Samples;
34 my $can_open = SDL::Mixer::open_audio( 44100, SDL::Audio::AUDIO_S16SYS, 2, 4096 );
44 is( SDL::Mixer::Channels::allocate_channels(8),
47 is( SDL::Mixer::Groups::reserve_channels(4),
55 SDL::Mixer::Channels::volume( -1, 10 );
56 is( SDL::Mixer::Channels::volume( -1, 20 ),
62 SDL::Mixer::Channels::volume( -1, 10 );
63 is( SDL::Mixer::Channels::volume( -1, 1 ),
68 my $sample_chunk = SDL::Mixer::Samples::load_WAV($audio_test_file);
69 my $playing_channel = SDL::Mixer::Channels::play_channel( -1, $sample_chunk, -1 );
73 SDL::Mixer::Channels::halt_channel(-1);
75 is( SDL::Mixer::Groups::group_channel( 0, 0 ),
78 is( SDL::Mixer::Groups::group_channels( 1, 3, 1 ),
81 is( SDL::Mixer::Groups::group_channel( 3, -1 ),
84 is( SDL::Mixer::Groups::group_channels( 3, 3, 2 ),
87 is( SDL::Mixer::Groups::group_count(0), 1, "[group_count] for group 0 is 1" );
88 is( SDL::Mixer::Groups::group_count(1), 2, "[group_count] for group 1 is 2" );
89 is( SDL::Mixer::Groups::group_count(2), 1, "[group_count] for group 2 is 1" );
90 is( SDL::Mixer::Groups::group_available(0),
93 is( SDL::Mixer::Groups::group_available(1),
96 is( SDL::Mixer::Groups::group_available(2),
99 is( SDL::Mixer::Groups::group_oldest(1),
103 SDL::Mixer::Channels::play_channel( 2, $sample_chunk, -1 );
105 SDL::Mixer::Channels::play_channel( 1, $sample_chunk, -1 );
108 is( SDL::Mixer::Groups::group_oldest(1),
111 is( SDL::Mixer::Groups::group_newer(1),
116 is( SDL::Mixer::Groups::fade_out_group( 1, $delay * 2 ),
121 is( SDL::Mixer::Groups::halt_group(1), 0, "[halt_group] group 1 halted" );
123 SDL::Mixer::close_audio();