hedgewars/uSound.pas
changeset 2390 57fb33ab04a4
parent 2328 e74f2db28b21
child 2392 a55dbef5cf31
equal deleted inserted replaced
2389:bc3e45a4d5fb 2390:57fb33ab04a4
   101 
   101 
   102 procedure InitSound;
   102 procedure InitSound;
   103 const numSounds = 80;
   103 const numSounds = 80;
   104 begin
   104 begin
   105 if not isSoundEnabled then exit;
   105 if not isSoundEnabled then exit;
       
   106 {*sound works in ipodtouch only if LAND_WIDTH  = 1024;   LAND_HEIGHT = 512; 
       
   107 or if ogg are loaded in stream or if sound is loaded by demand*}
   106 WriteToConsole('Init OpenAL sound...');
   108 WriteToConsole('Init OpenAL sound...');
   107 isSoundEnabled:= openal_init(numSounds);
   109 isSoundEnabled:= openal_init(numSounds);
   108 if isSoundEnabled then WriteLnToConsole(msgOK)
   110 if isSoundEnabled then WriteLnToConsole(msgOK)
   109                   else WriteLnToConsole(msgFailed);
   111                   else WriteLnToConsole(msgFailed);
   110 
   112