Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
chaifoxes committed Sep 22, 2022
2 parents f546598 + 63bbdd2 commit 001bdaa
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 33 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## [Unreleased]


## [v3.0.0] - *22.09.2022*

### Breaking:

- Renamed to FmodForFoxes.
Expand Down
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ So, after you've set everything up, it's time to bop some pops, as kids say thes
3. Include the `FmodForFoxes` namespace and paste the following code into your
Initialize() method:
```cs
FMODManager.Init(_nativeLibrary, FMODMode.CoreAndStudio, "Content");
FmodManager.Init(_nativeLibrary, FMODMode.CoreAndStudio, "Content");

var sound = CoreSystem.LoadStreamedSound("test.mp3");
var channel = sound.Play();
Expand All @@ -143,6 +143,30 @@ channel.Looping = true;

`_nativeLibrary` is an instance of `INativeFmodLibrary` that you have to create separately in your platform-specific projects. [Samples project](/FmodForFoxes.Samples) already has this set up.

And lastly, do note that `FmodManager` has to be properly updated and unloaded. Your main gameloop class has to have this added:

```cs
/// <summary>
/// UnloadContent will be called once per game and is the place to unload
/// game-specific content.
/// </summary>
protected override void UnloadContent()
{
FmodManager.Unload();
}

/// <summary>
/// Allows the game to run logic such as updating the world,
/// checking for collisions, gathering input, and playing audio.
/// </summary>
/// <param name="gameTime">Provides a snapshot of timing values.</param>
protected override void Update(GameTime gameTime)
{
FmodManager.Update();
base.Update(gameTime);
}
```

4. Compile and hope that you (and me) did everything right.

You can also check out the incluided [Samples project](/FmodForFoxes.Samples).
Expand Down
18 changes: 9 additions & 9 deletions Samples/FmodForFoxes.Samples.Android/Content/Content.mgcb
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
/processorParam:TextureFormat=Color
/build:../../FmodForFoxes.Samples/Content/Gato.png;Gato.png

#begin ../../FmodForFoxes.Samples/Content/test.mp3
/copy:../../FmodForFoxes.Samples/Content/test.mp3;test.mp3

#begin ../../FmodForFoxes.Samples/Content/Dialogue_CN.bank
/copy:../../FmodForFoxes.Samples/Content/Dialogue_CN.bank;Dialogue_CN.bank

Expand All @@ -54,19 +51,22 @@
#begin ../../FmodForFoxes.Samples/Content/Master.strings.bank
/copy:../../FmodForFoxes.Samples/Content/Master.strings.bank;Master.strings.bank

#begin ../../FmodForFoxes.Samples/Content/Arial.spritefont
/importer:FontDescriptionImporter
/processor:FontDescriptionProcessor
/build:../../FmodForFoxes.Samples/Content/Arial.spritefont;Arial.spritefont

#begin ../../FmodForFoxes.Samples/Content/Music.bank
/copy:../../FmodForFoxes.Samples/Content/Music.bank;Music.bank

#begin ../../FmodForFoxes.Samples/Content/test.mp3
/copy:../../FmodForFoxes.Samples/Content/test.mp3;test.mp3

#begin ../../FmodForFoxes.Samples/Content/SFX.bank
/copy:../../FmodForFoxes.Samples/Content/SFX.bank;SFX.bank

#begin ../../FmodForFoxes.Samples/Content/Vehicles.bank
/copy:../../FmodForFoxes.Samples/Content/Vehicles.bank;Vehicles.bank

#begin ../../FmodForFoxes.Samples/Content/VO.bank
/copy:../../FmodForFoxes.Samples/Content/VO.bank;VO.bank

#begin ../../FmodForFoxes.Samples/Content/Arial.spritefont
/importer:FontDescriptionImporter
/processor:FontDescriptionProcessor
/build:../../FmodForFoxes.Samples/Content/Arial.spritefont;Arial.spritefont
/copy:../../FmodForFoxes.Samples/Content/VO.bank;VO.bank
26 changes: 13 additions & 13 deletions Samples/FmodForFoxes.Samples.DesktopGL/Content/Content.mgcb
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
/processorParam:TextureFormat=Color
/build:../../FmodForFoxes.Samples/Content/gato.png;gato.png

#begin ../../FmodForFoxes.Samples/Content/test.mp3
/copy:../../FmodForFoxes.Samples/Content/test.mp3;test.mp3

#begin ../../FmodForFoxes.Samples/Content/Dialogue_CN.bank
/copy:../../FmodForFoxes.Samples/Content/Dialogue_CN.bank;Dialogue_CN.bank

Expand All @@ -57,15 +54,6 @@
#begin ../../FmodForFoxes.Samples/Content/Music.bank
/copy:../../FmodForFoxes.Samples/Content/Music.bank;Music.bank

#begin ../../FmodForFoxes.Samples/Content/SFX.bank
/copy:../../FmodForFoxes.Samples/Content/SFX.bank;SFX.bank

#begin ../../FmodForFoxes.Samples/Content/Vehicles.bank
/copy:../../FmodForFoxes.Samples/Content/Vehicles.bank;Vehicles.bank

#begin ../../FmodForFoxes.Samples/Content/VO.bank
/copy:../../FmodForFoxes.Samples/Content/VO.bank;VO.bank

#begin ../../FmodForFoxes.Samples/Content/Arial.spritefont
/importer:FontDescriptionImporter
/processor:FontDescriptionProcessor
Expand All @@ -81,4 +69,16 @@
/processorParam:ResizeToPowerOfTwo=False
/processorParam:MakeSquare=False
/processorParam:TextureFormat=Color
/build:../../FmodForFoxes.Samples/Content/Gato.png;Gato.png
/build:../../FmodForFoxes.Samples/Content/Gato.png;Gato.png

#begin ../../FmodForFoxes.Samples/Content/test.mp3
/copy:../../FmodForFoxes.Samples/Content/test.mp3;test.mp3

#begin ../../FmodForFoxes.Samples/Content/SFX.bank
/copy:../../FmodForFoxes.Samples/Content/SFX.bank;SFX.bank

#begin ../../FmodForFoxes.Samples/Content/Vehicles.bank
/copy:../../FmodForFoxes.Samples/Content/Vehicles.bank;Vehicles.bank

#begin ../../FmodForFoxes.Samples/Content/VO.bank
/copy:../../FmodForFoxes.Samples/Content/VO.bank;VO.bank
20 changes: 10 additions & 10 deletions Samples/FmodForFoxes.Samples.WindowsDX/Content/Content.mgcb
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
/processorParam:TextureFormat=Color
/build:../../FmodForFoxes.Samples/Content/gato.png;gato.png

#begin ../../FmodForFoxes.Samples/Content/test.mp3
/copy:../../FmodForFoxes.Samples/Content/test.mp3;test.mp3

#begin ../../FmodForFoxes.Samples/Content/Dialogue_CN.bank
/copy:../../FmodForFoxes.Samples/Content/Dialogue_CN.bank;Dialogue_CN.bank

Expand All @@ -60,12 +57,6 @@
#begin ../../FmodForFoxes.Samples/Content/SFX.bank
/copy:../../FmodForFoxes.Samples/Content/SFX.bank;SFX.bank

#begin ../../FmodForFoxes.Samples/Content/Vehicles.bank
/copy:../../FmodForFoxes.Samples/Content/Vehicles.bank;Vehicles.bank

#begin ../../FmodForFoxes.Samples/Content/VO.bank
/copy:../../FmodForFoxes.Samples/Content/VO.bank;VO.bank

#begin ../../FmodForFoxes.Samples/Content/Arial.spritefont
/importer:FontDescriptionImporter
/processor:FontDescriptionProcessor
Expand All @@ -81,4 +72,13 @@
/processorParam:ResizeToPowerOfTwo=False
/processorParam:MakeSquare=False
/processorParam:TextureFormat=Color
/build:../../FmodForFoxes.Samples/Content/Gato.png;Gato.png
/build:../../FmodForFoxes.Samples/Content/Gato.png;Gato.png

#begin ../../FmodForFoxes.Samples/Content/test.mp3
/copy:../../FmodForFoxes.Samples/Content/test.mp3;test.mp3

#begin ../../FmodForFoxes.Samples/Content/Vehicles.bank
/copy:../../FmodForFoxes.Samples/Content/Vehicles.bank;Vehicles.bank

#begin ../../FmodForFoxes.Samples/Content/VO.bank
/copy:../../FmodForFoxes.Samples/Content/VO.bank;VO.bank

0 comments on commit 001bdaa

Please sign in to comment.