Two questions as I work through this:
1) I'm not seeing the Bass.Misc namespace for windows store...I was hoping to play with the Visual object and such...any chance we could get that? or is it there and I'm missing it?
2) I'm having problems getting midis to play on win10 with Bass. I loaded up xmplayer and also didn't have audio till I loaded a soundfont. So I went back into Bass, loaded the midi plugin, initialized a soundfont, and set the font. Below should be most of the relevant code (In mine I have a bunch that checks return values...everything is coming back with a valid handle, and the soundfont part returns 'true' for loading the font...
Bass.BASS_PluginLoad("bassmidi.dll");
Bass.BASS_Init(-1, 441000, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero)
int stream = BassMidi.BASS_MIDI_StreamCreateFile(@"Track3.mid", 0, 0, BASSFlag.BASS_DEFAULT, 0);
// Setup sound fonts
int soundFont = BassMidi.BASS_MIDI_FontInit("Setzer's_SPC_Soundfont.sf2");
BASS_MIDI_FONT[] newfonts = new BASS_MIDI_FONT[1];
newfonts[0] = new BASS_MIDI_FONT(soundFont, -1, -1);
if (soundFont == 0)
{
DebugOutput.Text += "Error loading soundfont!";
}
bool FontValue = BassMidi.BASS_MIDI_StreamSetFonts(stream, newfonts, 1);
Bass.BASS_ChannelPlay(stream, false);
ChannelPlay returns true. SoundFont gets a handle of 1. Yet I hear no audio. If I play it in xmplay...same midi, same soundfont, things work. The soundfont and midi are renames of ones taken from this site. Any ideas on what I'm missing?