<div class="gmail_quote">thank you very much!</div><div class="gmail_quote"><br></div><div class="gmail_quote">out of curiosity, when could it happen that the channel cannot be allocated?  is it that on some architectures, although MIDI is supported in general (and thus enabled in the game engine), some channels (perhaps above some limit) fail to allocate?</div>

<div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">On Sat, Feb 27, 2010 at 7:54 AM,  <span dir="ltr"><<a href="mailto:jvprat@users.sourceforge.net">jvprat@users.sourceforge.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Revision: 48147<br>
          <a href="http://scummvm.svn.sourceforge.net/scummvm/?rev=48147&view=rev" target="_blank">http://scummvm.svn.sourceforge.net/scummvm/?rev=48147&view=rev</a><br>
Author:   jvprat<br>
Date:     2010-02-27 15:54:31 +0000 (Sat, 27 Feb 2010)<br>
<br>
Log Message:<br>
-----------<br>
DRACI: Don't try to set the volume for channels that couldn't be allocated (fixes bug #2907954: "DRAGON: Crash in Intro")<br>
<br>
Modified Paths:<br>
--------------<br>
    scummvm/trunk/engines/draci/music.cpp<br>
<br>
Modified: scummvm/trunk/engines/draci/music.cpp<br>
===================================================================<br>
--- scummvm/trunk/engines/draci/music.cpp       2010-02-27 11:44:35 UTC (rev 48146)<br>
+++ scummvm/trunk/engines/draci/music.cpp       2010-02-27 15:54:31 UTC (rev 48147)<br>
@@ -127,7 +127,8 @@<br>
                _channel[channel] = (channel == 9) ? _driver->getPercussionChannel() : _driver->allocateChannel();<br>
                // If a new channel is allocated during the playback, make sure<br>
                // its volume is correctly initialized.<br>
-               setChannelVolume(channel);<br>
+               if (_channel[channel])<br>
+                       setChannelVolume(channel);<br>
        }<br>
<br>
        if (_channel[channel])<br>
<br>
<br>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.<br>
<br>
------------------------------------------------------------------------------<br>
Download Intel&#174; Parallel Studio Eval<br>
Try the new software tools for yourself. Speed compiling, find bugs<br>
proactively, and fine-tune applications for parallel performance.<br>
See why Intel Parallel Studio got high marks during beta.<br>
<a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</a><br>
_______________________________________________<br>
Scummvm-cvs-logs mailing list<br>
<a href="mailto:Scummvm-cvs-logs@lists.sourceforge.net">Scummvm-cvs-logs@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/scummvm-cvs-logs" target="_blank">https://lists.sourceforge.net/lists/listinfo/scummvm-cvs-logs</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Robert Špalek <<a href="mailto:rspalek@gmail.com">rspalek@gmail.com</a>><br>