Danyfirex Posted March 23, 2016 Share Posted March 23, 2016 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 Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
AndreyS Posted March 23, 2016 Author Share Posted March 23, 2016 Danyfirex, thank you very much to give me that time and great help! You also do not terminate the script with new files? Link to comment Share on other sites More sharing options...
Danyfirex Posted March 23, 2016 Share Posted March 23, 2016 I did. but look like ChannelGetPosition does not get correct size, for that loop does not exit. Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
Danyfirex Posted March 23, 2016 Share Posted March 23, 2016 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 Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
AndreyS Posted March 23, 2016 Author Share Posted March 23, 2016 (edited) 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 March 23, 2016 by AndreyS Link to comment Share on other sites More sharing options...
Danyfirex Posted March 23, 2016 Share Posted March 23, 2016 I'm sure is problem of BASS library(not UDF) while dealing with buffers it can't estimate the correct length. Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
AndreyS Posted March 23, 2016 Author Share Posted March 23, 2016 Good! It's all the same even though a decision! I would have thought of this before. Or long'd thought. It is strange that no one had ever noticed this problem. Surely no one anything like it tried to do?! Link to comment Share on other sites More sharing options...
Danyfirex Posted March 23, 2016 Share Posted March 23, 2016 I check later(I'm tired) maybe I make it work correctly. Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
AndreyS Posted March 23, 2016 Author Share Posted March 23, 2016 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now