19 May '13 - 08:22 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: BassMidi long idle time before playing  (Read 725 times)
Timtam
Posts: 6


« on: 10 Jul '12 - 16:01 »
Reply with quoteQuote

Hello people,
I have the following problem. I have some midi files I want to play without selecting an additional soundfont. But after creating the stream via BASS_StreamCreateFile (false, path, 0, 0, 0) and playing the channel via BASS_ChannelPlay(handle, false), there is a very long idle time before the midi starts playing and I don't know where this time comes from. No other player (no winamp, no windows media player etc.) has this big idle time. Is this time created by bassmidi or from the midi? and how could I fix it?
Thank you for you help in advance.
Timtam
Logged
Ian @ un4seen
Administrator
Posts: 15244


« Reply #1 on: 11 Jul '12 - 13:31 »
Reply with quoteQuote

To help narrow down where the problem lies, please try playing the MIDI files with the pre-compiled MIDITEST.EXE example (in the C\BIN folder) and see if you get the problem with that too. If that is affected too, please upload a MIDI file that the problem is happening with to have a look at here...

   ftp.un4seen.com/incoming/
Logged
Timtam
Posts: 6


« Reply #2 on: 11 Jul '12 - 13:56 »
Reply with quoteQuote

The miditest.exe file doesn't work anyway, It starts playing the file and the position slider slides too, but I can't hear anything...
So I uploaded the file to the ftp server as you told me.
Logged
Ian @ un4seen
Administrator
Posts: 15244


« Reply #3 on: 11 Jul '12 - 17:25 »
Reply with quoteQuote

That sounds like you didn't have a soundfont loaded. Please note that soundfonts provide the instrument sounds for BASSMIDI to play, so there will be no sound without one. If you don't currently have any soundfonts, you can get the "Chorium" soundfont from the BASS webpage.
Logged
Timtam
Posts: 6


« Reply #4 on: 11 Jul '12 - 17:37 »
Reply with quoteQuote

But in the bassmidi-help there is written that if I didn't select a def font it will use the windows standard soundfont which works when I use my programming language AutoIt. I just initialize bass with BASS_Init(0, -1, 48000, 0, "") and then create the stream, play it and... a loong idle time before starting the track, without loading a soundfont, but with a soundfont there is a long idle time too. I just tried with the chorium soundfont, long idle time too...
Logged
Ian @ un4seen
Administrator
Posts: 15244


« Reply #5 on: 11 Jul '12 - 17:51 »
Reply with quoteQuote

BASSMIDI will default to using a Creative soundfont if available, but note that is not a standard Windows feature (it's installed with Creative/Soundblaster drivers).

When I try playing your uploaded file with the MIDITEST.EXE example, there is no noticable delay between opening the file and hearing it play. So please clarify when you are seeing the "long idle time" there, eg. is it a particular function call taking a long time?
Logged
Timtam
Posts: 6


« Reply #6 on: 12 Jul '12 - 15:55 »
Reply with quoteQuote

OK thank you. I had two problems. My test, which someone gave me with the functions to control BassMidi just searched for markers and events and so on and this took a very long time. I don't know which function it is, but I debugged bass_channelplay() and really, it needed a very long time until it called this function. And after calling this function it started playing imidiately. That's pretty cool... the problem in my own program was that I didn't select a soundfont. Thank you for your help anyway.
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines