Jump to content

Undesirable pause when playing audio


Recommended Posts

I really don't know why it happends. (maybe I debug later) I think you maybe can write a a function to get file duration and wait base on that.

Saludos

Link to comment
Share on other sites

I did.  but look like ChannelGetPosition does not get correct size,  for that loop does not exit.

 

Saludos

Link to comment
Share on other sites

I added a not clean way(I don't like) to exit loop when there is not levels in channel.

While True
        If _BASS_ChannelGetPosition($hMusic, $BASS_POS_BYTE) >= $song_length or _BASS_ChannelGetLevel($hMusic)=0 Then ExitLoop
        Sleep(100)
WEnd

Saludos

Link to comment
Share on other sites

Well, size is not the same obvious. But what is the problem? The code is really clear and simple. Even I am a beginner could finally understand.

Or incorrectly determined position or size.

Edited by AndreyS
Link to comment
Share on other sites

I'm sure is problem of BASS library(not UDF) while dealing with buffers it can't  estimate the correct length. 

Saludos

Link to comment
Share on other sites

Link to comment
Share on other sites

Thank you for your attention and valuable help!
I really need this function, because I have prepared a lot of parts of files. And here they are, thanks to you even played without interruption.
I would hope that you get a better solution.
Good to relax you!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...