Bluebugs / freebox-elixir

Automatically exported from code.google.com/p/freebox-elixir
0 stars 0 forks source link

Add support for the Mix_ReserveChannels() method. #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Reserving some mixer channels might be useful to dedicate some channels for 
specific (non-overlapping) sound events, while still allowing to use a poll of 
channels to be used automatically to play overlapping sounds (when using "-1" 
for the first argument of Mix_PlayChannel()). The SDL mixer provides the 
Mix_ReserveChannels() method for that purpose, but it isn't supported in 
Elixir. So I propose to add such a support as I don't see any reason to forbid 
that method in Elixir.

A related patch is included. I tested it with revision #50508 (I'm unable to 
use the head revision yet, with or without my changes).

Original issue reported on code.google.com by Poor.NewBie@gmail.com on 8 Jan 2011 at 5:59

Attachments: