- This topic has 57 replies, 11 voices, and was last updated 18 years ago by Admin.
-
AuthorPosts
-
June 20, 2006 at 12:06 pm #179698AdminAdministrator
Umm never though bout it, but it sounds cool i give it a try 🙂
June 22, 2006 at 10:27 am #179697methodMember@philips wrote:
The musicbot works great only it uses between 90- 100 % of my cpu at first it didnt do it by when i start it now it stays like that. What can i do to fix this?
Kind Regards philips
Turn off your visualization . Even the orginal media player with visualization consumes up to 70 percent of cpu!!
June 22, 2006 at 10:36 am #179696methodMemberloco is there any update for version 125 . i got version 122 only and send song name does not work!!
loco could u show me how u move listbox highlight downward baced on current playlist song?Thanks
June 22, 2006 at 11:40 am #179695AdminAdministratorAigh I give it a quick update but you know it still eats lots of ucp I havent work on that, and the code to do that I got to check i send to ya 8)
June 22, 2006 at 11:44 am #179694methodMember@Admin wrote:
Aigh I give it a quick update but you know it still eats lots of ucp I havent work on that, and the code to do that I got to check i send to ya 8)
looking forward for upadate and move highlight code.
Even media player itself consumes lots of cpu power around 70 percent . Then why we should worry. Could u tell me why? How we can reduce cpu usage?June 22, 2006 at 1:40 pm #179693AdminAdministratorwell, if you have a good pc its not biggy and if the program is on a pc by itself no other programs, but if u doing other stuff and using the music bot is a drag things are mad slow.
hey here the code to go to next you need to put in on a timer
Private Sub Timer1_Timer()
Dim lngIdx As Long
lngIdx = List1.ListIndex
lngIdx = lngIdx + 1
If lngIdx >= List1.ListCount Then
lngIdx = 0
End If
List1.ListIndex = lngIdx
End Subi gonna try to update the music bot later 🙂
June 22, 2006 at 1:43 pm #179692methodMemberloco how it knows that the current song is finished and now time to move to next and move the highlight?
June 22, 2006 at 1:56 pm #179691AdminAdministratorAigh using the wmp control as example in a timer put this
Dim lngIdx As Long
If wmp.Status = "Stopped" Then
lngIdx = List1.ListIndex
lngIdx = lngIdx + 1
wmp.Controls.play
End If
If lngIdx >= List1.ListCount Then
lngIdx = 0
End If
List1.ListIndex = lngIdxyou see this part of the code
If wmp.Status = "Stopped" Then
checks to see if the song has stop, if so then it will go to the next song which this part of the code does that
lngIdx = List1.ListIndex
lngIdx = lngIdx + 1then it will play that song with this code
wmp.Controls.play
the other stuff is there to check if that was the last song if so go to the first song I am talking bout this 🙂
If lngIdx >= List1.ListCount Then
lngIdx = 0
End If
List1.ListIndex = lngIdxI was goign to put the actual cot from the music bot but its crazy lol
June 22, 2006 at 2:18 pm #179690methodMemberloco my listbox is already populated with song path and it plays all the songs one by one but the only problem is that the highlight does not moveing downward . could u show me that checking on play command button? Thanks
June 22, 2006 at 4:21 pm #179689AdminAdministratorumm, it does highlight its, let me check it ah i updated the music bot to work with all paltalk and i think I hope i finally solve the cpu usage problem 🙂
if you want i can post the code so u check it.
June 22, 2006 at 6:45 pm #179688methodMember@Admin wrote:
umm, it does highlight its, let me check it ah i updated the music bot to work with all paltalk and i think I hope i finally solve the cpu usage problem 🙂
if you want i can post the code so u check it.
Yes man post the code. How did u solve the cpu usage?Thanks
June 22, 2006 at 7:06 pm #179687AdminAdministratorwell it was the timer1.interval was to low it was 1 ehhe i did it like that so will be faster but that ate the cpu like crazy now its 400 which does the same job since paltalk is not that fast fir the most part lol.
ah too much stuff 🙂 anyways check the visual forums i will put it there 🙂
June 23, 2006 at 2:49 am #179686methodMemberthanks loco for the code. Loco could u just show me how to play a single file only automatically without a button . I am working in program that want to add to it events sounds just like paltalk and i do not know if i still need media player since i need the sounds to play fasts on diffrent events.I be happy if u show me how that can be done. i want the mp3/wma/wave to plae fast since it is for diffrent events.Thanks
June 23, 2006 at 1:11 pm #179685AdminAdministratorUmm you mean lets say you have the audio directory in a textbox, right? I still confuse, aigh but if its something like that wha you do is on button put
wmp.URL = Text1.Text
wmp.Controls.playwhere textbox1 is where the file is located at 🙂
is this wha u mean ❓
June 23, 2006 at 1:24 pm #179684methodMemberThanks Man that work but do u think this will play the sound fast enough ?
Is this right method for playing event sounds fast? I have seen application play sounds for diffrent events but they did not display any media player on them. 😆 😆 How they do that?I tried your code it works in button but when i put it inside if statment
it takes long to play the soundIf (Text1 = 1296889) Then
WindowsMediaPlayer1.URL = Text6.Text
WindowsMediaPlayer1.Controls.play
ElseIf Text1 = 58519 Then
Label2.Caption = "Sorry"
ElseI am looking for very fast way so it plays the sound immeditly without delay on diffrent events just like paltalk sound events.
Furthermore,does it play wave and wma files using the method u suggested? i tested in mp3 it worked. Do i need any timer for this method?
-
AuthorPosts
Related
- You must be logged in to reply to this topic.