-
Notifications
You must be signed in to change notification settings - Fork 0
/
96-3 WRocK.bas
85 lines (83 loc) · 1.54 KB
/
96-3 WRocK.bas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
Declare init as "BASS_Init" of "bass.dll"
device As Long
freq As Long
flags As Long
win As Long
clsid As Long
result As Long
end declare
Declare openstream as BASS_StreamCreateURL of "bass.dll"
url As long
offset As Long
flags As Long
proc As Long
user As Long
result As Long
end declare
Declare pla as "BASS_ChannelPlay" of "bass.dll"
handle As Long
restart As Long
result as long
end declare
Declare release as "BASS_StreamFree" of "bass.dll"
handle As Long
end declare
Declare volu as "BASS_SetVolume" of "bass.dll"
volume As Single
end declare
dim vv as integer
dim url as string
dim a as string
a ="https://wrockceb.radioca.st/stream"
object myform as form
center
caption="96.3 WRocK"
object mylist as listbox
align=alleft
additem("96.3 WRocK")
onclick=mylistbox_click
end object
object b1 as button
align=alleft
caption="Play"
onclick=hraj
end object
object but as button
align=alleft
caption="Stop"
onclick=stoop
end object
object tlac as button
align=alleft
caption="End"
onclick=konec
end object
end object
myform.showmodal
sub mylistbox_click(s as listbox)
vv =s.itemindex
end sub
sub hraj(b as button)
init.device=-1
init.freq=44100
init.clsid=0
init.win=0
init.execute
select case vv
case 0
release.handle=openstream.result
release.execute
url =a+chr$(0)
openstream.url = varptr(url)
openstream.execute
pla.handle=openstream.result
pla.execute
end select
end sub
sub stoop (tlacitko1 as button)
release.handle=openstream.result
release.execute
end sub
sub konec (tlac as button)
end
end sub