Skip to main content

History: IrrKlang for MOGRE

Source of version: 2

Copy to clipboard
            IrrKlang is a __Sound library__.

It has a stable .NET wrapper provided by the original developers. So it's usable with ((MOGRE|Mogre)).

Examples and documentations are on the project website.

Forum quote:
''There are a couple of references around on the forums and on the wiki that mention it can be used in C# which is basically the same thing as saying it can be used with Mogre. ''

!__License__
IrrKlang is free for non-commercial use. For commercial use the license fee will be between 65€ (~$85) for low budged projects and up to 490€ (~$640).

!Usage

!!2D Sound Example

{CODE(wrap="1", colors="c#")}using System;
using IrrKlang;

namespace HelloWorld
{
  class Example
  {
   [STAThread]
   static void Main(string[] args)
   {
     // start up the engine
     ISoundEngine engine = new ISoundEngine();

     // play a sound file
     engine.play2D("../../media/ophelia.mp3");

     // wait until user presses OK to end application
     System.Windows.Forms.MessageBox.Show("Playing, press ok.");

   } // end main()
  } // end class
} // end namespace
{CODE}
%%%


!!3D Sound Example

{CODE(wrap="1", colors="c#")}
    // initialise
    ISoundEngine soundEngine = new ISoundEngine();
    soundEngine.SoundVolume = 1.0f;

    // set listener position (usually at the camera)
    Vector3 position = camera.Position;
    Vector3 direction = camera.Direction;
    soundEngine.SetListenerPosition(position.x, position.y, position.z, direction.x, direction.y, direction.z);

    // play a sound somewhere in the scene
    ISound sound = soundEngine.Play3D("test.wav", position.x, position.y, position.z);
    sound.MinDistance = 5;  // distance that the sound plays at full volume
{CODE}
%%%


!See also:

* [http://www.ambiera.com/irrklang|Project website]
* [http://www.ambiera.com/irrklang/docunet/index.html|API documentation for .NET]

__Alternatives:__
* ((FMOD SoundManager))
* ((MogreFreeSL))
* ((OpenAl Soundmanager))
        

History

Information Version
Fri 07 of Jan, 2011 15:06 GMT-0000 amirabiri 8
Fri 07 of Jan, 2011 15:04 GMT-0000 amirabiri 7
Fri 07 of Jan, 2011 15:03 GMT-0000 amirabiri 6
Fri 07 of Jan, 2011 15:02 GMT-0000 amirabiri 5
Fri 07 of Jan, 2011 15:01 GMT-0000 amirabiri 4
Fri 07 of Jan, 2011 15:00 GMT-0000 amirabiri 3
Fri 07 of Jan, 2011 12:12 GMT-0000 amirabiri 2
Fri 07 of Jan, 2011 10:43 GMT-0000 Beauty NEW PAGE 1