Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/morphx666/sharpmod
A .NET implementation of the Mod95 MOD player
https://github.com/morphx666/sharpmod
cross-platform csharp mod mod-player mod95 module-player player
Last synced: 2 days ago
JSON representation
A .NET implementation of the Mod95 MOD player
- Host: GitHub
- URL: https://github.com/morphx666/sharpmod
- Owner: morphx666
- License: mit
- Created: 2019-04-25T08:15:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-13T01:14:02.000Z (10 months ago)
- Last Synced: 2024-01-13T14:58:33.687Z (10 months ago)
- Topics: cross-platform, csharp, mod, mod-player, mod95, module-player, player
- Language: C#
- Homepage:
- Size: 4.33 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SharpMod
A cross-platform .NET implementation of the Mod95 MOD playerThis is a verbatim implementation of the magnificent code developed by Olivier Lapicque for his [Mod95](https://download.openmpt.org/archive/mod95/) player.
For more information, visit https://openmpt.org/legacy_software
![SharpMod](https://user-images.githubusercontent.com/12353675/121073541-a0b76380-c7a0-11eb-9cfe-a3ea937fd879.png)
## Using SharpMod
Instantiating a new `SoundFile`:
A new `SoundFile` object is instantiated by calling the `SoundFile` ctor and passing the audio backend's parameters, such as the desired sample rate, bit depth (8/16) and channel count (1/2).
SharpMod.SoundFile sf = new SharpMod.SoundFile(modFileFullPath, sampleRate, bitDepth == 16, channels == 2, false);
Then, whenever the audio backend requests audio data, call the `SoundFile.Read` method to parse the MOD file and receive back a raw audio buffer, which can be passed back to the audio renderer.