Skip to content

Commit aace4d7

Browse files
committed
Added support for Real Tracker format.
1 parent da8b317 commit aace4d7

24 files changed

Lines changed: 1582 additions & 6 deletions

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
*.pp filter=lfs diff=lfs merge=lfs -text
2727
*.ptm filter=lfs diff=lfs merge=lfs -text
2828
*.raw filter=lfs diff=lfs merge=lfs -text
29+
*.rtm filter=lfs diff=lfs merge=lfs -text
2930
*.s3m filter=lfs diff=lfs merge=lfs -text
3031
*.stc filter=lfs diff=lfs merge=lfs -text
3132
*.stm filter=lfs diff=lfs merge=lfs -text

Documentation/features.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<tr><td>
2626
<span>
2727
<ul>
28-
<li>Supports 186 different types of modules (and increasing).</li>
28+
<li>Supports 187 different types of modules (and increasing).</li>
2929
<li>One of the most accurate players in the world: plays modules like nature intended.</li>
3030
<li>Fast and optimized.</li>
3131
<li>Edit and save your favorite lists of modules.</li>
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

Documentation/moduletypes.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2066,6 +2066,20 @@
20662066
</span>
20672067
</td>
20682068
</tr>
2069+
<tr name="R" style="display:none;">
2070+
<td>
2071+
<a href="images/editors/realtracker.png" data-lightbox="image-realtracker"><img src="images/editors/realtracker_t.png"/></a>
2072+
</td>
2073+
<td>
2074+
<span>
2075+
<p><b><i>Real Tracker</i></b> - Tracker created by Arnaud Hasenfratz.</p>
2076+
<p class="first"><b>File extension</b></p>
2077+
<p>.rtm</p>
2078+
<p><b>Player</b></p>
2079+
<p>Xmp</p>
2080+
</span>
2081+
</td>
2082+
</tr>
20692083
<tr name="R" style="display:none;">
20702084
<td>
20712085
<a href="images/editors/sample.jpg" data-lightbox="image-riffwave-adpcm"><img src="images/editors/sample_t.jpg"/></a>

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ Modules in all supported formats can be found on my homepage at https://nostalgi
176176
| PumaTracker | .puma | | PumaTracker |
177177
| Pygmy Packer | .pyg | ProWizard | ModTracker |
178178
| Quadra Composer | .emod | | Quadra Composer |
179+
| Real Tracker | .rtm | | Xmp |
179180
| RIFF-WAVE (ADPCM) | .wav | | Sample |
180181
| RIFF-WAVE (IEEE Float) | .wav | | Sample |
181182
| RIFF-WAVE (PCM) | .wav | | Sample |

Source/Agents/Players/Xmp/Xmp.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class Xmp : AgentBase, IPlayerAgentMultipleFormatIdentify
2525
internal static readonly string[] fileExtensions =
2626
[
2727
"gdm", "xm", "oxm", "s3m", "it", "669", "amf", "far", "imf", "stm", "stx", "ult", "mtm", "mod", "wow", "flx", "ptm", "arch", "xmf",
28-
"dsym"
28+
"dsym", "rtm"
2929
];
3030

3131
#region IAgent implementation

Source/NostalgicPlayerCKit/CMemory.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,20 @@ public static int MemCmp(CPointer<byte> ptr, string compareString, int length)
207207

208208

209209

210+
/********************************************************************/
211+
/// <summary>
212+
///
213+
/// </summary>
214+
/********************************************************************/
215+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
216+
public static int MemCmp(string compareString, CPointer<byte> ptr, int length)
217+
{
218+
byte[] strBuf = Encoding.Latin1.GetBytes(compareString);
219+
return MemCmp(strBuf, ptr, length);
220+
}
221+
222+
223+
210224
/********************************************************************/
211225
/// <summary>
212226
///

Source/NostalgicPlayerPackage/Package.appxmanifest

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,6 +1245,14 @@
12451245
<uap:DisplayName>Digital Symphony</uap:DisplayName>
12461246
</uap:FileTypeAssociation>
12471247
</uap:Extension>
1248+
<uap:Extension Category="windows.fileTypeAssociation">
1249+
<uap:FileTypeAssociation Name="rtmfile">
1250+
<uap:SupportedFileTypes>
1251+
<uap:FileType ContentType="audio/x-rtm">.rtm</uap:FileType>
1252+
</uap:SupportedFileTypes>
1253+
<uap:DisplayName>Real Tracker</uap:DisplayName>
1254+
</uap:FileTypeAssociation>
1255+
</uap:Extension>
12481256
</Extensions>
12491257
</Application>
12501258
</Applications>

Source/Ports/LibXmp/Format.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace Polycode.NostalgicPlayer.Ports.LibXmp
1616
/// </summary>
1717
internal class Format
1818
{
19-
private const int Num_Formats = 29;
19+
private const int Num_Formats = 30;
2020
private const int Num_Pw_Formats = 0;
2121

2222
private static Xmp_Format_Info[] _fArray = new Xmp_Format_Info[Num_Formats + Num_Pw_Formats + 1];
@@ -47,6 +47,7 @@ internal class Format
4747
Amf_Load.LibXmp_Loader_Amf,
4848
Asylum_Load.LibXmp_Loader_Asylum,
4949
Gdm_Load.LibXmp_Loader_Gdm,
50+
Rtm_Load.LibXmp_Loader_Rtm,
5051
Arch_Load.LibXmp_Loader_Arch,
5152
Sym_Load.LibXmp_Loader_Sym,
5253
Far_Load.LibXmp_Loader_Far,

0 commit comments

Comments
 (0)