craftworkgames / MonoGame.Extended

Extensions to make MonoGame more awesome
http://www.monogameextended.net/
Other
1.44k stars 325 forks source link

[Audio] Support for a better Audio? #517

Open ghost opened 6 years ago

ghost commented 6 years ago

This is a feature request/suggestion. After working a bit with the standard audio of MonoGame, it has quite a few limitations.

I had issues with:

  1. seeking, getting and setting an audio track's play position (e.g. to create a loop point system)
  2. cannot be playing multiple audio streams (MediaPlayer) at the same time (e.g. crossfading tracks, long background ambiences playing together with a music track)
  3. no streaming option for sound effects (which made them not seekable)

Shouldn't there be a MonoGame.Extended.Audio to help with this?

Perhaps fmod could be used for this, it has decent support from what I hear, used in a few MonoGame games and also seems to support all platforms that MonoGame supports, but for now there doesn't seem to be a wrapper of sorts tailored for use with MonoGame.

Forum reference topic

craftworkgames commented 6 years ago

I think this is a good idea. We've tossed it around before.

The problem is I'm not exactly sure what we would do? We might be able to find some existing library to port (maybe from the Java world) or we could write our own wrapper around OpenAL and / or whatever.

I just don't have a lot of experience in this area.

captkirk88 commented 6 years ago

Check out NAudio, great library that allows for considerable control over audio streams.

damianday commented 6 years ago

Since fmod was mentioned I'll leave this quote from their licence page.

Q. Can I distribute FMOD as a standalone library or as part of a game engine or toolset. A. No, you are not permitted to distribute FMOD in that way. Contact us if you would like to discuss a special arrangement.