Quantcast
Channel: naudio Work Item Rss Feed
Viewing all articles
Browse latest Browse all 738

Edited Unassigned: MidiFile.Tracks sometimes returns 1 [16469]

$
0
0
I have something along the lines of:

```
private void openFile_Click(object sender, RoutedEventArgs e)
{
Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog();
Nullable<bool> fileResult = dlg.ShowDialog();
if(fileResult.HasValue && fileResult.Value)
{
MidiFile midiFile = new MidiFile(dlg.FileName);
Debug.WriteLine(midiFile.Tracks); //Always 1
}
}
```

I have checked the midi file in other programs and definitely contains more than one track.

Viewing all articles
Browse latest Browse all 738

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>