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: about 1 month 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 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-13T01:14:02.000Z (almost 2 years ago)
- Last Synced: 2025-10-10T17:08:03.338Z (about 1 month ago)
- Topics: cross-platform, csharp, mod, mod-player, mod95, module-player, player
- Language: C#
- Homepage:
- Size: 4.33 MB
- Stars: 1
- Watchers: 1
- 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 player
This 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

## 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.