BananaFredSoft Posted August 1, 2007 Share Posted August 1, 2007 I am having a problem that I think is caused be the _Sound functions. When I load a sound and then press play, the _SoundPos and _SoundLength functions keep returning the same thing, which makes my program go to the next file. Load script: $filetype = "audio" $readfrom = $opendialog $aud = _SoundOpen($readfrom) $split2 = StringSplit($readfrom, "\") $nf = $split2[$split2[0]] $nextfile = $nf _ArrayAdd($songlist, $nf) $x += 1 $snum = _ArraySearch($songlist, $split2[$split2[0]]) $counter = GUICtrlCreateLabel(Shorten(_SoundPos($aud, 1)) & "/" & Shorten(_SoundLength($aud, 1)), 7, 250, 100) GUICtrlSetFont(-1, 16) $nowplaying = GUICtrlCreateLabel("Now Playing: " & $nextfile, 15, 200, 200, 30) $seekbar = GUICtrlCreateSlider(215, 200, 200, 20) GUICtrlSetLimit(-1, _SoundLength($aud, 2) / 1000, 0) $nf = $nextfile GUICtrlSetData($directory, StringTrimRight(getdir($readfrom), 1)) GUICtrlCreateListViewItem($nf, $list) $audstatus = "not started"oÝ÷ ØùZËóںǺÛh«¢+Ø%%ÀÌØí¥±ÑåÁôÅÕ½ÐíÕ¥¼ÅÕ½ÐìQ¡¸($%%ÀÌØíÕÍÑÑÕÌôÅÕ½Ðí¹½ÐÍÑÉÑÅÕ½ÐìQ¡¸í¹½ÐÍÑÉÑ($$%}M½Õ¹A±ä ÀÌØíÕ¤($$$ÀÌØíÕÍÑÑÕÌôÅÕ½ÐíÁ±å¥¹ÅÕ½Ðì($%±Í%ÀÌØíÕÍÑÑÕÌôÅÕ½ÐíÁÕÍÅÕ½ÐìQ¡¸íÁÕÍ($$%}M½Õ¹IÍÕµ ÀÌØíÕ¤($$$ÀÌØíÕÍÑÑÕÌôÅÕ½ÐíÁ±å¥¹ÅÕ½Ðì($%±Í%ÀÌØíÕÍÑÑÕÌôÅÕ½ÐíÁ±å¥¹ÅÕ½ÐìQ¡¸íÁ±å¥¹($$%}M½Õ¹AÕÍ ÀÌØíÕ¤($$$ÀÌØíÕÍÑÑÕÌôÅÕ½ÐíÁÕÍÅÕ½Ðì($%¹%(%±Í%ÀÌØí¥±ÑåÁôÅÕ½ÐíÙ¥¼ÅÕ½ÐìQ¡¸($%%ÀÌØíÙ¥ÍÑÑÕÌôÅÕ½ÐíÁ±äÅÕ½ÐìQ¡¸($$%µ¥M¹MÑÉ¥¹ ÅÕ½ÐíÁÕÍQÍÑ}Y¥¼ÅÕ½Ðì¤($$$ÀÌØíÙ¥ÍÑÑÕÌôÅÕ½ÐíÁÕÍÅÕ½Ðì($%±Í%ÀÌØíÙ¥ÍÑÑÕÌôÅÕ½ÐíÁÕÍÅÕ½ÐìQ¡¸($$%µ¥M¹MÑÉ¥¹ ÅÕ½ÐíÁ±äQÍÑ}Y¥¼ÅÕ½Ðì¤($$$ÀÌØíÙ¥ÍÑÑÕÌôÅÕ½ÐíÁ±äÅÕ½Ðì($%¹%(%¹%oÝ÷ Ø(^rK-¢ÇûazÊ.ج¢÷«jëh×6 If $filetype = "audio" Then If _SoundPos($aud, 2) = _SoundLength($aud, 2) Then If $audstatus = "playing" Then Thanks in advance. If the whole script is needed, I will post it. -ColinSite:www.bananafredsoft.comStuff:Simple Text Editor - MediaPlayer - Animator - BananaDB - BananaNotes - Chatta - Filesearch - Excuse GeneratorMy YouTube channel:http://www.youtube.com/user/colipat Link to comment Share on other sites More sharing options...
BananaFredSoft Posted August 1, 2007 Author Share Posted August 1, 2007 Anyone have any ideas? -ColinSite:www.bananafredsoft.comStuff:Simple Text Editor - MediaPlayer - Animator - BananaDB - BananaNotes - Chatta - Filesearch - Excuse GeneratorMy YouTube channel:http://www.youtube.com/user/colipat 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