musicbeeipc 2.0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.yardopts +5 -0
- data/LICENSE_MusicBeeIPCSDK.txt +23 -0
- data/README.md +16 -0
- data/README.txt +16 -0
- data/enums.html +318 -0
- data/lib/constants.rb +12 -0
- data/lib/enums.rb +316 -0
- data/lib/musicbeeipc.rb +1477 -0
- data/lib/pack.rb +282 -0
- data/lib/structs.rb +40 -0
- data/lib/unpack.rb +204 -0
- data/lib/winapi.rb +39 -0
- data/musicbeeipc.gemspec +14 -0
- metadata +71 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 849a351e40f41a194da1f3fb0d4959e6b7b9b692
|
4
|
+
data.tar.gz: 25a9832b96542fbc5046cac3dad66a2c65a6c43a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d4dfe47637e5f59e92f79185ca2cbf5954cae8f4d9780258ccf17dca80849b989380f54fb39cb558bf709b4de211ad15cd8a75fd5d6bf70638ea26e49258cb67
|
7
|
+
data.tar.gz: 0a5016314e35278b099d4b4d26f1cab273420ce5500aa15c7a62facaaa2a3190c390ad7f17eb9e7d26fb653903043601c7e8b2574f3cf06f7b9d3799b35b256d
|
data/.yardopts
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
Copyright (c) 2014, Kerli Low
|
2
|
+
All rights reserved.
|
3
|
+
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
5
|
+
modification, are permitted provided that the following conditions are met:
|
6
|
+
|
7
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
8
|
+
list of conditions and the following disclaimer.
|
9
|
+
|
10
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
11
|
+
this list of conditions and the following disclaimer in the documentation
|
12
|
+
and/or other materials provided with the distribution.
|
13
|
+
|
14
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
15
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
16
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
17
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
18
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
19
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
20
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
21
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
22
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
23
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/README.md
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
MusicBeeIPC SDK for Ruby
|
2
|
+
========================
|
3
|
+
|
4
|
+
**Author:** Kerli Low
|
5
|
+
|
6
|
+
**Email:** kerlilow@gmail.com
|
7
|
+
|
8
|
+
**Homepage:** http://www.zorexxlkl.com/musicbeeipc
|
9
|
+
|
10
|
+
**Description:** Control MusicBee with Ruby using the MusicBeeIPC plugin.
|
11
|
+
|
12
|
+
**Installation:**
|
13
|
+
gem install musicbeeipc
|
14
|
+
|
15
|
+
**License:**
|
16
|
+
BSD 2-Clause License (See LICENSE_MusicBeeIPCSDK.txt)
|
data/README.txt
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
MusicBeeIPC SDK for Ruby
|
2
|
+
========================
|
3
|
+
|
4
|
+
Author: Kerli Low
|
5
|
+
|
6
|
+
Email: kerlilow@gmail.com
|
7
|
+
|
8
|
+
Homepage: http://www.zorexxlkl.com/musicbeeipc
|
9
|
+
|
10
|
+
Description: Control MusicBee with Ruby using the MusicBeeIPC plugin.
|
11
|
+
|
12
|
+
Installation:
|
13
|
+
gem install musicbeeipc
|
14
|
+
|
15
|
+
License:
|
16
|
+
BSD 2-Clause License (See LICENSE_MusicBeeIPCSDK.txt)
|
data/enums.html
ADDED
@@ -0,0 +1,318 @@
|
|
1
|
+
<pre><code>
|
2
|
+
#----------------------------------------------------------#
|
3
|
+
#- MusicBeeIPCSDK Rb v2.0.0 -#
|
4
|
+
#- Copyright © Kerli Low 2014 -#
|
5
|
+
#- This file is licensed under the -#
|
6
|
+
#- BSD 2-Clause License -#
|
7
|
+
#- See LICENSE_MusicBeeIPCSDK for more information. -#
|
8
|
+
#----------------------------------------------------------#
|
9
|
+
|
10
|
+
# MBBool
|
11
|
+
MB_False = 0
|
12
|
+
MB_True = 1
|
13
|
+
|
14
|
+
# MBError
|
15
|
+
MBE_Error = 0
|
16
|
+
MBE_NoError = 1
|
17
|
+
MBE_CommandNotRecognized = 2
|
18
|
+
|
19
|
+
# MBPlayState
|
20
|
+
MBPS_Undefined = 0
|
21
|
+
MBPS_Loading = 1
|
22
|
+
MBPS_Playing = 3
|
23
|
+
MBPS_Paused = 6
|
24
|
+
MBPS_Stopped = 7
|
25
|
+
|
26
|
+
# MBRepeatMode
|
27
|
+
MBRM_None = 0
|
28
|
+
MBRM_All = 1
|
29
|
+
MBRM_One = 2
|
30
|
+
|
31
|
+
# MBReplayGainMode
|
32
|
+
MBRGM_Off = 0
|
33
|
+
MBRGM_Track = 1
|
34
|
+
MBRGM_Album = 2
|
35
|
+
MBRGM_Smart = 3
|
36
|
+
|
37
|
+
# MBFileProperty
|
38
|
+
MBFP_Url = 2
|
39
|
+
MBFP_Kind = 4
|
40
|
+
MBFP_Format = 5
|
41
|
+
MBFP_Size = 7
|
42
|
+
MBFP_Channels = 8
|
43
|
+
MBFP_SampleRate = 9
|
44
|
+
MBFP_Bitrate = 10
|
45
|
+
MBFP_DateModified = 11
|
46
|
+
MBFP_DateAdded = 12
|
47
|
+
MBFP_LastPlayed = 13
|
48
|
+
MBFP_PlayCount = 14
|
49
|
+
MBFP_SkipCount = 15
|
50
|
+
MBFP_Duration = 16
|
51
|
+
MBFP_NowPlayingListIndex = 78 # only has meaning when called from NowPlayingList_* commands
|
52
|
+
MBFP_ReplayGainTrack = 94
|
53
|
+
MBFP_ReplayGainAlbum = 95
|
54
|
+
|
55
|
+
# MBMetaData
|
56
|
+
MBMD_TrackTitle = 65
|
57
|
+
MBMD_Album = 30
|
58
|
+
MBMD_AlbumArtist = 31 # displayed album artist
|
59
|
+
MBMD_AlbumArtistRaw = 34 # stored album artist
|
60
|
+
MBMD_Artist = 32 # displayed artist
|
61
|
+
MBMD_MultiArtist = 33 # individual artists separated by a null char
|
62
|
+
MBMD_PrimaryArtist = 19 # first artist from multi-artist tagged file otherwise displayed artist
|
63
|
+
MBMD_Artists = 144
|
64
|
+
MBMD_ArtistsWithArtistRole = 145
|
65
|
+
MBMD_ArtistsWithPerformerRole = 146
|
66
|
+
MBMD_ArtistsWithGuestRole = 147
|
67
|
+
MBMD_ArtistsWithRemixerRole = 148
|
68
|
+
MBMD_Artwork = 40
|
69
|
+
MBMD_BeatsPerMin = 41
|
70
|
+
MBMD_Composer = 43 # displayed composer
|
71
|
+
MBMD_MultiComposer = 89 # individual composers separated by a null char
|
72
|
+
MBMD_Comment = 44
|
73
|
+
MBMD_Conductor = 45
|
74
|
+
MBMD_Custom1 = 46
|
75
|
+
MBMD_Custom2 = 47
|
76
|
+
MBMD_Custom3 = 48
|
77
|
+
MBMD_Custom4 = 49
|
78
|
+
MBMD_Custom5 = 50
|
79
|
+
MBMD_Custom6 = 96
|
80
|
+
MBMD_Custom7 = 97
|
81
|
+
MBMD_Custom8 = 98
|
82
|
+
MBMD_Custom9 = 99
|
83
|
+
MBMD_Custom10 = 128
|
84
|
+
MBMD_Custom11 = 129
|
85
|
+
MBMD_Custom12 = 130
|
86
|
+
MBMD_Custom13 = 131
|
87
|
+
MBMD_Custom14 = 132
|
88
|
+
MBMD_Custom15 = 133
|
89
|
+
MBMD_Custom16 = 134
|
90
|
+
MBMD_DiscNo = 52
|
91
|
+
MBMD_DiscCount = 54
|
92
|
+
MBMD_Encoder = 55
|
93
|
+
MBMD_Genre = 59
|
94
|
+
MBMD_Genres = 103
|
95
|
+
MBMD_GenreCategory = 60
|
96
|
+
MBMD_Grouping = 61
|
97
|
+
MBMD_Keywords = 84
|
98
|
+
MBMD_HasLyrics = 63
|
99
|
+
MBMD_Lyricist = 62
|
100
|
+
MBMD_Lyrics = 114
|
101
|
+
MBMD_Mood = 64
|
102
|
+
MBMD_Occasion = 66
|
103
|
+
MBMD_Origin = 67
|
104
|
+
MBMD_Publisher = 73
|
105
|
+
MBMD_Quality = 74
|
106
|
+
MBMD_Rating = 75
|
107
|
+
MBMD_RatingLove = 76
|
108
|
+
MBMD_RatingAlbum = 104
|
109
|
+
MBMD_Tempo = 85
|
110
|
+
MBMD_TrackNo = 86
|
111
|
+
MBMD_TrackCount = 87
|
112
|
+
MBMD_Virtual1 = 109
|
113
|
+
MBMD_Virtual2 = 110
|
114
|
+
MBMD_Virtual3 = 111
|
115
|
+
MBMD_Virtual4 = 112
|
116
|
+
MBMD_Virtual5 = 113
|
117
|
+
MBMD_Virtual6 = 122
|
118
|
+
MBMD_Virtual7 = 123
|
119
|
+
MBMD_Virtual8 = 124
|
120
|
+
MBMD_Virtual9 = 125
|
121
|
+
MBMD_Virtual10 = 135
|
122
|
+
MBMD_Virtual11 = 136
|
123
|
+
MBMD_Virtual12 = 137
|
124
|
+
MBMD_Virtual13 = 138
|
125
|
+
MBMD_Virtual14 = 139
|
126
|
+
MBMD_Virtual15 = 140
|
127
|
+
MBMD_Virtual16 = 141
|
128
|
+
MBMD_Year = 88
|
129
|
+
|
130
|
+
# MBLibraryCategory
|
131
|
+
MBLC_Music = 0
|
132
|
+
MBLC_Audiobook = 1
|
133
|
+
MBLC_Video = 2
|
134
|
+
MBLC_Inbox = 4
|
135
|
+
|
136
|
+
# MBDataType
|
137
|
+
MBDT_String = 0
|
138
|
+
MBDT_Number = 1
|
139
|
+
MBDT_DateTime = 2
|
140
|
+
MBDT_Rating = 3
|
141
|
+
|
142
|
+
# MBLyricsType
|
143
|
+
MBLT_NotSpecified = 0
|
144
|
+
MBLT_Synchronised = 1
|
145
|
+
MBLT_UnSynchronised = 2
|
146
|
+
|
147
|
+
# MBPlayButtonType
|
148
|
+
MBPBT_PreviousTrack = 0
|
149
|
+
MBPBT_PlayPause = 1
|
150
|
+
MBPBT_NextTrack = 2
|
151
|
+
MBPBT_Stop = 3
|
152
|
+
|
153
|
+
# MBPlaylistFormat
|
154
|
+
MBPF_Unknown = 0
|
155
|
+
MBPF_M3u = 1
|
156
|
+
MBPF_Xspf = 2
|
157
|
+
MBPF_Asx = 3
|
158
|
+
MBPF_Wpl = 4
|
159
|
+
MBPF_Pls = 5
|
160
|
+
MBPF_Auto = 7
|
161
|
+
MBPF_M3uAscii = 8
|
162
|
+
MBPF_AsxFile = 9
|
163
|
+
MBPF_Radio = 10
|
164
|
+
MBPF_M3uExtended = 11
|
165
|
+
MBPF_Mbp = 12
|
166
|
+
|
167
|
+
# MBMusicBeeVersion
|
168
|
+
MBMBV_v2_0 = 0
|
169
|
+
MBMBV_v2_1 = 1
|
170
|
+
MBMBV_v2_2 = 2
|
171
|
+
MBMBV_v2_3 = 3
|
172
|
+
|
173
|
+
# MBCommand
|
174
|
+
MBC_PlayPause = 100 # WM_USER
|
175
|
+
MBC_Play = 101 # WM_USER
|
176
|
+
MBC_Pause = 102 # WM_USER
|
177
|
+
MBC_Stop = 103 # WM_USER
|
178
|
+
MBC_StopAfterCurrent = 104 # WM_USER
|
179
|
+
MBC_PreviousTrack = 105 # WM_USER
|
180
|
+
MBC_NextTrack = 106 # WM_USER
|
181
|
+
MBC_StartAutoDj = 107 # WM_USER
|
182
|
+
MBC_EndAutoDj = 108 # WM_USER
|
183
|
+
MBC_GetPlayState = 109 # WM_USER
|
184
|
+
MBC_GetPosition = 110 # WM_USER
|
185
|
+
MBC_SetPosition = 111 # WM_USER
|
186
|
+
MBC_GetVolume = 112 # WM_USER
|
187
|
+
MBC_SetVolume = 113 # WM_USER
|
188
|
+
MBC_GetVolumep = 114 # WM_USER
|
189
|
+
MBC_SetVolumep = 115 # WM_USER
|
190
|
+
MBC_GetVolumef = 116 # WM_USER
|
191
|
+
MBC_SetVolumef = 117 # WM_USER
|
192
|
+
MBC_GetMute = 118 # WM_USER
|
193
|
+
MBC_SetMute = 119 # WM_USER
|
194
|
+
MBC_GetShuffle = 120 # WM_USER
|
195
|
+
MBC_SetShuffle = 121 # WM_USER
|
196
|
+
MBC_GetRepeat = 122 # WM_USER
|
197
|
+
MBC_SetRepeat = 123 # WM_USER
|
198
|
+
MBC_GetEqualiserEnabled = 124 # WM_USER
|
199
|
+
MBC_SetEqualiserEnabled = 125 # WM_USER
|
200
|
+
MBC_GetDspEnabled = 126 # WM_USER
|
201
|
+
MBC_SetDspEnabled = 127 # WM_USER
|
202
|
+
MBC_GetScrobbleEnabled = 128 # WM_USER
|
203
|
+
MBC_SetScrobbleEnabled = 129 # WM_USER
|
204
|
+
MBC_ShowEqualiser = 130 # WM_USER
|
205
|
+
MBC_GetAutoDjEnabled = 131 # WM_USER
|
206
|
+
MBC_GetStopAfterCurrentEnabled = 132 # WM_USER
|
207
|
+
MBC_SetStopAfterCurrentEnabled = 133 # WM_USER
|
208
|
+
MBC_GetCrossfade = 134 # WM_USER
|
209
|
+
MBC_SetCrossfade = 135 # WM_USER
|
210
|
+
MBC_GetReplayGainMode = 136 # WM_USER
|
211
|
+
MBC_SetReplayGainMode = 137 # WM_USER
|
212
|
+
MBC_QueueRandomTracks = 138 # WM_USER
|
213
|
+
MBC_GetDuration = 139 # WM_USER
|
214
|
+
MBC_GetFileUrl = 140 # WM_USER
|
215
|
+
MBC_GetFileProperty = 141 # WM_USER
|
216
|
+
MBC_GetFileTag = 142 # WM_USER
|
217
|
+
MBC_GetLyrics = 143 # WM_USER
|
218
|
+
MBC_GetDownloadedLyrics = 144 # WM_USER
|
219
|
+
MBC_GetArtwork = 145 # WM_USER
|
220
|
+
MBC_GetArtworkUrl = 146 # WM_USER
|
221
|
+
MBC_GetDownloadedArtwork = 147 # WM_USER
|
222
|
+
MBC_GetDownloadedArtworkUrl = 148 # WM_USER
|
223
|
+
MBC_GetArtistPicture = 149 # WM_USER
|
224
|
+
MBC_GetArtistPictureUrls = 150 # WM_USER
|
225
|
+
MBC_GetArtistPictureThumb = 151 # WM_USER
|
226
|
+
MBC_IsSoundtrack = 152 # WM_USER
|
227
|
+
MBC_GetSoundtrackPictureUrls = 153 # WM_USER
|
228
|
+
MBC_GetCurrentIndex = 154 # WM_USER
|
229
|
+
MBC_GetNextIndex = 155 # WM_USER
|
230
|
+
MBC_IsAnyPriorTracks = 156 # WM_USER
|
231
|
+
MBC_IsAnyFollowingTracks = 157 # WM_USER
|
232
|
+
MBC_PlayNow = 158 # WM_COPYDATA
|
233
|
+
MBC_QueueNext = 159 # WM_COPYDATA
|
234
|
+
MBC_QueueLast = 160 # WM_COPYDATA
|
235
|
+
MBC_RemoveAt = 161 # WM_USER
|
236
|
+
MBC_ClearNowPlayingList = 162 # WM_USER
|
237
|
+
MBC_MoveFiles = 163 # WM_COPYDATA
|
238
|
+
MBC_ShowNowPlayingAssistant = 164 # WM_USER
|
239
|
+
MBC_GetShowTimeRemaining = 165 # WM_USER
|
240
|
+
MBC_GetShowRatingTrack = 166 # WM_USER
|
241
|
+
MBC_GetShowRatingLove = 167 # WM_USER
|
242
|
+
MBC_GetButtonEnabled = 168 # WM_USER
|
243
|
+
MBC_Jump = 169 # WM_USER
|
244
|
+
MBC_Search = 170 # WM_COPYDATA
|
245
|
+
MBC_SearchFirst = 171 # WM_COPYDATA
|
246
|
+
MBC_SearchIndices = 172 # WM_COPYDATA
|
247
|
+
MBC_SearchFirstIndex = 173 # WM_COPYDATA
|
248
|
+
MBC_SearchAndPlayFirst = 174 # WM_COPYDATA
|
249
|
+
MBC_NowPlayingList_GetListFileUrl = 200 # WM_COPYDATA
|
250
|
+
MBC_NowPlayingList_GetFileProperty = 201 # WM_COPYDATA
|
251
|
+
MBC_NowPlayingList_GetFileTag = 202 # WM_COPYDATA
|
252
|
+
MBC_NowPlayingList_QueryFiles = 203 # WM_COPYDATA
|
253
|
+
MBC_NowPlayingList_QueryGetNextFile = 204 # WM_USER
|
254
|
+
MBC_NowPlayingList_QueryGetAllFiles = 205 # WM_USER
|
255
|
+
MBC_NowPlayingList_QueryFilesEx = 206 # WM_COPYDATA
|
256
|
+
MBC_NowPlayingList_PlayLibraryShuffled = 207 # WM_USER
|
257
|
+
MBC_NowPlayingList_GetItemCount = 208 # WM_USER
|
258
|
+
MBC_Playlist_GetName = 300 # WM_COPYDATA
|
259
|
+
MBC_Playlist_GetType = 301 # WM_COPYDATA
|
260
|
+
MBC_Playlist_IsInList = 302 # WM_COPYDATA
|
261
|
+
MBC_Playlist_QueryPlaylists = 303 # WM_USER
|
262
|
+
MBC_Playlist_QueryGetNextPlaylist = 304 # WM_USER
|
263
|
+
MBC_Playlist_QueryFiles = 305 # WM_COPYDATA
|
264
|
+
MBC_Playlist_QueryGetNextFile = 306 # WM_USER
|
265
|
+
MBC_Playlist_QueryGetAllFiles = 307 # WM_USER
|
266
|
+
MBC_Playlist_QueryFilesEx = 308 # WM_COPYDATA
|
267
|
+
MBC_Playlist_CreatePlaylist = 309 # WM_COPYDATA
|
268
|
+
MBC_Playlist_DeletePlaylist = 310 # WM_COPYDATA
|
269
|
+
MBC_Playlist_SetFiles = 311 # WM_COPYDATA
|
270
|
+
MBC_Playlist_AppendFiles = 312 # WM_COPYDATA
|
271
|
+
MBC_Playlist_RemoveAt = 313 # WM_COPYDATA
|
272
|
+
MBC_Playlist_MoveFiles = 314 # WM_COPYDATA
|
273
|
+
MBC_Playlist_PlayNow = 315 # WM_COPYDATA
|
274
|
+
MBC_Playlist_GetItemCount = 316 # WM_COPYDATA
|
275
|
+
MBC_Library_GetFileProperty = 400 # WM_COPYDATA
|
276
|
+
MBC_Library_GetFileTag = 401 # WM_COPYDATA
|
277
|
+
MBC_Library_SetFileTag = 402 # WM_COPYDATA
|
278
|
+
MBC_Library_CommitTagsToFile = 403 # WM_COPYDATA
|
279
|
+
MBC_Library_GetLyrics = 404 # WM_COPYDATA
|
280
|
+
MBC_Library_GetArtwork = 405 # WM_COPYDATA
|
281
|
+
MBC_Library_GetArtworkUrl = 406 # WM_COPYDATA
|
282
|
+
MBC_Library_GetArtistPicture = 407 # WM_COPYDATA
|
283
|
+
MBC_Library_GetArtistPictureUrls = 408 # WM_COPYDATA
|
284
|
+
MBC_Library_GetArtistPictureThumb = 409 # WM_COPYDATA
|
285
|
+
MBC_Library_AddFileToLibrary = 410 # WM_COPYDATA
|
286
|
+
MBC_Library_QueryFiles = 411 # WM_COPYDATA
|
287
|
+
MBC_Library_QueryGetNextFile = 412 # WM_USER
|
288
|
+
MBC_Library_QueryGetAllFiles = 413 # WM_USER
|
289
|
+
MBC_Library_QueryFilesEx = 414 # WM_COPYDATA
|
290
|
+
MBC_Library_QuerySimilarArtists = 415 # WM_COPYDATA
|
291
|
+
MBC_Library_QueryLookupTable = 416 # WM_COPYDATA
|
292
|
+
MBC_Library_QueryGetLookupTableValue = 417 # WM_COPYDATA
|
293
|
+
MBC_Library_GetItemCount = 418 # WM_USER
|
294
|
+
MBC_Library_Jump = 419 # WM_USER
|
295
|
+
MBC_Library_Search = 420 # WM_COPYDATA
|
296
|
+
MBC_Library_SearchFirst = 421 # WM_COPYDATA
|
297
|
+
MBC_Library_SearchIndices = 422 # WM_COPYDATA
|
298
|
+
MBC_Library_SearchFirstIndex = 423 # WM_COPYDATA
|
299
|
+
MBC_Library_SearchAndPlayFirst = 424 # WM_COPYDATA
|
300
|
+
MBC_Setting_GetFieldName = 700 # WM_COPYDATA
|
301
|
+
MBC_Setting_GetDataType = 701 # WM_COPYDATA
|
302
|
+
MBC_Window_GetHandle = 800 # WM_USER
|
303
|
+
MBC_Window_Close = 801 # WM_USER
|
304
|
+
MBC_Window_Restore = 802 # WM_USER
|
305
|
+
MBC_Window_Minimize = 803 # WM_USER
|
306
|
+
MBC_Window_Maximize = 804 # WM_USER
|
307
|
+
MBC_Window_Move = 805 # WM_USER
|
308
|
+
MBC_Window_Resize = 806 # WM_USER
|
309
|
+
MBC_Window_BringToFront = 807 # WM_USER
|
310
|
+
MBC_Window_GetPosition = 808 # WM_USER
|
311
|
+
MBC_Window_GetSize = 809 # WM_USER
|
312
|
+
MBC_FreeLRESULT = 900 # WM_USER
|
313
|
+
MBC_MusicBeeVersion = 995 # WM_USER
|
314
|
+
MBC_PluginVersion = 996 # WM_USER
|
315
|
+
MBC_Test = 997 # WM_USER For debugging purposes
|
316
|
+
MBC_MessageBox = 998 # WM_COPYDATA For debugging purposes
|
317
|
+
MBC_Probe = 999 # WM_USER To test MusicBeeIPC hwnd is valid
|
318
|
+
</code></pre>
|
data/lib/constants.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
#----------------------------------------------------------#
|
2
|
+
#- MusicBeeIPCSDK Rb v2.0.0 -#
|
3
|
+
#- Copyright © Kerli Low 2014 -#
|
4
|
+
#- This file is licensed under the -#
|
5
|
+
#- BSD 2-Clause License -#
|
6
|
+
#- See LICENSE_MusicBeeIPCSDK for more information. -#
|
7
|
+
#----------------------------------------------------------#
|
8
|
+
|
9
|
+
# Type size
|
10
|
+
MBIPC_SIZEOFINT = 4
|
11
|
+
MBIPC_SIZEOFDOUBLE = 8
|
12
|
+
MBIPC_SIZEOFLONG = 8
|
data/lib/enums.rb
ADDED
@@ -0,0 +1,316 @@
|
|
1
|
+
#----------------------------------------------------------#
|
2
|
+
#- MusicBeeIPCSDK Rb v2.0.0 -#
|
3
|
+
#- Copyright © Kerli Low 2014 -#
|
4
|
+
#- This file is licensed under the -#
|
5
|
+
#- BSD 2-Clause License -#
|
6
|
+
#- See LICENSE_MusicBeeIPCSDK for more information. -#
|
7
|
+
#----------------------------------------------------------#
|
8
|
+
|
9
|
+
# MBBool
|
10
|
+
MB_False = 0
|
11
|
+
MB_True = 1
|
12
|
+
|
13
|
+
# MBError
|
14
|
+
MBE_Error = 0
|
15
|
+
MBE_NoError = 1
|
16
|
+
MBE_CommandNotRecognized = 2
|
17
|
+
|
18
|
+
# MBPlayState
|
19
|
+
MBPS_Undefined = 0
|
20
|
+
MBPS_Loading = 1
|
21
|
+
MBPS_Playing = 3
|
22
|
+
MBPS_Paused = 6
|
23
|
+
MBPS_Stopped = 7
|
24
|
+
|
25
|
+
# MBRepeatMode
|
26
|
+
MBRM_None = 0
|
27
|
+
MBRM_All = 1
|
28
|
+
MBRM_One = 2
|
29
|
+
|
30
|
+
# MBReplayGainMode
|
31
|
+
MBRGM_Off = 0
|
32
|
+
MBRGM_Track = 1
|
33
|
+
MBRGM_Album = 2
|
34
|
+
MBRGM_Smart = 3
|
35
|
+
|
36
|
+
# MBFileProperty
|
37
|
+
MBFP_Url = 2
|
38
|
+
MBFP_Kind = 4
|
39
|
+
MBFP_Format = 5
|
40
|
+
MBFP_Size = 7
|
41
|
+
MBFP_Channels = 8
|
42
|
+
MBFP_SampleRate = 9
|
43
|
+
MBFP_Bitrate = 10
|
44
|
+
MBFP_DateModified = 11
|
45
|
+
MBFP_DateAdded = 12
|
46
|
+
MBFP_LastPlayed = 13
|
47
|
+
MBFP_PlayCount = 14
|
48
|
+
MBFP_SkipCount = 15
|
49
|
+
MBFP_Duration = 16
|
50
|
+
MBFP_NowPlayingListIndex = 78 # only has meaning when called from NowPlayingList_* commands
|
51
|
+
MBFP_ReplayGainTrack = 94
|
52
|
+
MBFP_ReplayGainAlbum = 95
|
53
|
+
|
54
|
+
# MBMetaData
|
55
|
+
MBMD_TrackTitle = 65
|
56
|
+
MBMD_Album = 30
|
57
|
+
MBMD_AlbumArtist = 31 # displayed album artist
|
58
|
+
MBMD_AlbumArtistRaw = 34 # stored album artist
|
59
|
+
MBMD_Artist = 32 # displayed artist
|
60
|
+
MBMD_MultiArtist = 33 # individual artists separated by a null char
|
61
|
+
MBMD_PrimaryArtist = 19 # first artist from multi-artist tagged file otherwise displayed artist
|
62
|
+
MBMD_Artists = 144
|
63
|
+
MBMD_ArtistsWithArtistRole = 145
|
64
|
+
MBMD_ArtistsWithPerformerRole = 146
|
65
|
+
MBMD_ArtistsWithGuestRole = 147
|
66
|
+
MBMD_ArtistsWithRemixerRole = 148
|
67
|
+
MBMD_Artwork = 40
|
68
|
+
MBMD_BeatsPerMin = 41
|
69
|
+
MBMD_Composer = 43 # displayed composer
|
70
|
+
MBMD_MultiComposer = 89 # individual composers separated by a null char
|
71
|
+
MBMD_Comment = 44
|
72
|
+
MBMD_Conductor = 45
|
73
|
+
MBMD_Custom1 = 46
|
74
|
+
MBMD_Custom2 = 47
|
75
|
+
MBMD_Custom3 = 48
|
76
|
+
MBMD_Custom4 = 49
|
77
|
+
MBMD_Custom5 = 50
|
78
|
+
MBMD_Custom6 = 96
|
79
|
+
MBMD_Custom7 = 97
|
80
|
+
MBMD_Custom8 = 98
|
81
|
+
MBMD_Custom9 = 99
|
82
|
+
MBMD_Custom10 = 128
|
83
|
+
MBMD_Custom11 = 129
|
84
|
+
MBMD_Custom12 = 130
|
85
|
+
MBMD_Custom13 = 131
|
86
|
+
MBMD_Custom14 = 132
|
87
|
+
MBMD_Custom15 = 133
|
88
|
+
MBMD_Custom16 = 134
|
89
|
+
MBMD_DiscNo = 52
|
90
|
+
MBMD_DiscCount = 54
|
91
|
+
MBMD_Encoder = 55
|
92
|
+
MBMD_Genre = 59
|
93
|
+
MBMD_Genres = 103
|
94
|
+
MBMD_GenreCategory = 60
|
95
|
+
MBMD_Grouping = 61
|
96
|
+
MBMD_Keywords = 84
|
97
|
+
MBMD_HasLyrics = 63
|
98
|
+
MBMD_Lyricist = 62
|
99
|
+
MBMD_Lyrics = 114
|
100
|
+
MBMD_Mood = 64
|
101
|
+
MBMD_Occasion = 66
|
102
|
+
MBMD_Origin = 67
|
103
|
+
MBMD_Publisher = 73
|
104
|
+
MBMD_Quality = 74
|
105
|
+
MBMD_Rating = 75
|
106
|
+
MBMD_RatingLove = 76
|
107
|
+
MBMD_RatingAlbum = 104
|
108
|
+
MBMD_Tempo = 85
|
109
|
+
MBMD_TrackNo = 86
|
110
|
+
MBMD_TrackCount = 87
|
111
|
+
MBMD_Virtual1 = 109
|
112
|
+
MBMD_Virtual2 = 110
|
113
|
+
MBMD_Virtual3 = 111
|
114
|
+
MBMD_Virtual4 = 112
|
115
|
+
MBMD_Virtual5 = 113
|
116
|
+
MBMD_Virtual6 = 122
|
117
|
+
MBMD_Virtual7 = 123
|
118
|
+
MBMD_Virtual8 = 124
|
119
|
+
MBMD_Virtual9 = 125
|
120
|
+
MBMD_Virtual10 = 135
|
121
|
+
MBMD_Virtual11 = 136
|
122
|
+
MBMD_Virtual12 = 137
|
123
|
+
MBMD_Virtual13 = 138
|
124
|
+
MBMD_Virtual14 = 139
|
125
|
+
MBMD_Virtual15 = 140
|
126
|
+
MBMD_Virtual16 = 141
|
127
|
+
MBMD_Year = 88
|
128
|
+
|
129
|
+
# MBLibraryCategory
|
130
|
+
MBLC_Music = 0
|
131
|
+
MBLC_Audiobook = 1
|
132
|
+
MBLC_Video = 2
|
133
|
+
MBLC_Inbox = 4
|
134
|
+
|
135
|
+
# MBDataType
|
136
|
+
MBDT_String = 0
|
137
|
+
MBDT_Number = 1
|
138
|
+
MBDT_DateTime = 2
|
139
|
+
MBDT_Rating = 3
|
140
|
+
|
141
|
+
# MBLyricsType
|
142
|
+
MBLT_NotSpecified = 0
|
143
|
+
MBLT_Synchronised = 1
|
144
|
+
MBLT_UnSynchronised = 2
|
145
|
+
|
146
|
+
# MBPlayButtonType
|
147
|
+
MBPBT_PreviousTrack = 0
|
148
|
+
MBPBT_PlayPause = 1
|
149
|
+
MBPBT_NextTrack = 2
|
150
|
+
MBPBT_Stop = 3
|
151
|
+
|
152
|
+
# MBPlaylistFormat
|
153
|
+
MBPF_Unknown = 0
|
154
|
+
MBPF_M3u = 1
|
155
|
+
MBPF_Xspf = 2
|
156
|
+
MBPF_Asx = 3
|
157
|
+
MBPF_Wpl = 4
|
158
|
+
MBPF_Pls = 5
|
159
|
+
MBPF_Auto = 7
|
160
|
+
MBPF_M3uAscii = 8
|
161
|
+
MBPF_AsxFile = 9
|
162
|
+
MBPF_Radio = 10
|
163
|
+
MBPF_M3uExtended = 11
|
164
|
+
MBPF_Mbp = 12
|
165
|
+
|
166
|
+
# MBMusicBeeVersion
|
167
|
+
MBMBV_v2_0 = 0
|
168
|
+
MBMBV_v2_1 = 1
|
169
|
+
MBMBV_v2_2 = 2
|
170
|
+
MBMBV_v2_3 = 3
|
171
|
+
|
172
|
+
# MBCommand
|
173
|
+
MBC_PlayPause = 100 # WM_USER
|
174
|
+
MBC_Play = 101 # WM_USER
|
175
|
+
MBC_Pause = 102 # WM_USER
|
176
|
+
MBC_Stop = 103 # WM_USER
|
177
|
+
MBC_StopAfterCurrent = 104 # WM_USER
|
178
|
+
MBC_PreviousTrack = 105 # WM_USER
|
179
|
+
MBC_NextTrack = 106 # WM_USER
|
180
|
+
MBC_StartAutoDj = 107 # WM_USER
|
181
|
+
MBC_EndAutoDj = 108 # WM_USER
|
182
|
+
MBC_GetPlayState = 109 # WM_USER
|
183
|
+
MBC_GetPosition = 110 # WM_USER
|
184
|
+
MBC_SetPosition = 111 # WM_USER
|
185
|
+
MBC_GetVolume = 112 # WM_USER
|
186
|
+
MBC_SetVolume = 113 # WM_USER
|
187
|
+
MBC_GetVolumep = 114 # WM_USER
|
188
|
+
MBC_SetVolumep = 115 # WM_USER
|
189
|
+
MBC_GetVolumef = 116 # WM_USER
|
190
|
+
MBC_SetVolumef = 117 # WM_USER
|
191
|
+
MBC_GetMute = 118 # WM_USER
|
192
|
+
MBC_SetMute = 119 # WM_USER
|
193
|
+
MBC_GetShuffle = 120 # WM_USER
|
194
|
+
MBC_SetShuffle = 121 # WM_USER
|
195
|
+
MBC_GetRepeat = 122 # WM_USER
|
196
|
+
MBC_SetRepeat = 123 # WM_USER
|
197
|
+
MBC_GetEqualiserEnabled = 124 # WM_USER
|
198
|
+
MBC_SetEqualiserEnabled = 125 # WM_USER
|
199
|
+
MBC_GetDspEnabled = 126 # WM_USER
|
200
|
+
MBC_SetDspEnabled = 127 # WM_USER
|
201
|
+
MBC_GetScrobbleEnabled = 128 # WM_USER
|
202
|
+
MBC_SetScrobbleEnabled = 129 # WM_USER
|
203
|
+
MBC_ShowEqualiser = 130 # WM_USER
|
204
|
+
MBC_GetAutoDjEnabled = 131 # WM_USER
|
205
|
+
MBC_GetStopAfterCurrentEnabled = 132 # WM_USER
|
206
|
+
MBC_SetStopAfterCurrentEnabled = 133 # WM_USER
|
207
|
+
MBC_GetCrossfade = 134 # WM_USER
|
208
|
+
MBC_SetCrossfade = 135 # WM_USER
|
209
|
+
MBC_GetReplayGainMode = 136 # WM_USER
|
210
|
+
MBC_SetReplayGainMode = 137 # WM_USER
|
211
|
+
MBC_QueueRandomTracks = 138 # WM_USER
|
212
|
+
MBC_GetDuration = 139 # WM_USER
|
213
|
+
MBC_GetFileUrl = 140 # WM_USER
|
214
|
+
MBC_GetFileProperty = 141 # WM_USER
|
215
|
+
MBC_GetFileTag = 142 # WM_USER
|
216
|
+
MBC_GetLyrics = 143 # WM_USER
|
217
|
+
MBC_GetDownloadedLyrics = 144 # WM_USER
|
218
|
+
MBC_GetArtwork = 145 # WM_USER
|
219
|
+
MBC_GetArtworkUrl = 146 # WM_USER
|
220
|
+
MBC_GetDownloadedArtwork = 147 # WM_USER
|
221
|
+
MBC_GetDownloadedArtworkUrl = 148 # WM_USER
|
222
|
+
MBC_GetArtistPicture = 149 # WM_USER
|
223
|
+
MBC_GetArtistPictureUrls = 150 # WM_USER
|
224
|
+
MBC_GetArtistPictureThumb = 151 # WM_USER
|
225
|
+
MBC_IsSoundtrack = 152 # WM_USER
|
226
|
+
MBC_GetSoundtrackPictureUrls = 153 # WM_USER
|
227
|
+
MBC_GetCurrentIndex = 154 # WM_USER
|
228
|
+
MBC_GetNextIndex = 155 # WM_USER
|
229
|
+
MBC_IsAnyPriorTracks = 156 # WM_USER
|
230
|
+
MBC_IsAnyFollowingTracks = 157 # WM_USER
|
231
|
+
MBC_PlayNow = 158 # WM_COPYDATA
|
232
|
+
MBC_QueueNext = 159 # WM_COPYDATA
|
233
|
+
MBC_QueueLast = 160 # WM_COPYDATA
|
234
|
+
MBC_RemoveAt = 161 # WM_USER
|
235
|
+
MBC_ClearNowPlayingList = 162 # WM_USER
|
236
|
+
MBC_MoveFiles = 163 # WM_COPYDATA
|
237
|
+
MBC_ShowNowPlayingAssistant = 164 # WM_USER
|
238
|
+
MBC_GetShowTimeRemaining = 165 # WM_USER
|
239
|
+
MBC_GetShowRatingTrack = 166 # WM_USER
|
240
|
+
MBC_GetShowRatingLove = 167 # WM_USER
|
241
|
+
MBC_GetButtonEnabled = 168 # WM_USER
|
242
|
+
MBC_Jump = 169 # WM_USER
|
243
|
+
MBC_Search = 170 # WM_COPYDATA
|
244
|
+
MBC_SearchFirst = 171 # WM_COPYDATA
|
245
|
+
MBC_SearchIndices = 172 # WM_COPYDATA
|
246
|
+
MBC_SearchFirstIndex = 173 # WM_COPYDATA
|
247
|
+
MBC_SearchAndPlayFirst = 174 # WM_COPYDATA
|
248
|
+
MBC_NowPlayingList_GetListFileUrl = 200 # WM_COPYDATA
|
249
|
+
MBC_NowPlayingList_GetFileProperty = 201 # WM_COPYDATA
|
250
|
+
MBC_NowPlayingList_GetFileTag = 202 # WM_COPYDATA
|
251
|
+
MBC_NowPlayingList_QueryFiles = 203 # WM_COPYDATA
|
252
|
+
MBC_NowPlayingList_QueryGetNextFile = 204 # WM_USER
|
253
|
+
MBC_NowPlayingList_QueryGetAllFiles = 205 # WM_USER
|
254
|
+
MBC_NowPlayingList_QueryFilesEx = 206 # WM_COPYDATA
|
255
|
+
MBC_NowPlayingList_PlayLibraryShuffled = 207 # WM_USER
|
256
|
+
MBC_NowPlayingList_GetItemCount = 208 # WM_USER
|
257
|
+
MBC_Playlist_GetName = 300 # WM_COPYDATA
|
258
|
+
MBC_Playlist_GetType = 301 # WM_COPYDATA
|
259
|
+
MBC_Playlist_IsInList = 302 # WM_COPYDATA
|
260
|
+
MBC_Playlist_QueryPlaylists = 303 # WM_USER
|
261
|
+
MBC_Playlist_QueryGetNextPlaylist = 304 # WM_USER
|
262
|
+
MBC_Playlist_QueryFiles = 305 # WM_COPYDATA
|
263
|
+
MBC_Playlist_QueryGetNextFile = 306 # WM_USER
|
264
|
+
MBC_Playlist_QueryGetAllFiles = 307 # WM_USER
|
265
|
+
MBC_Playlist_QueryFilesEx = 308 # WM_COPYDATA
|
266
|
+
MBC_Playlist_CreatePlaylist = 309 # WM_COPYDATA
|
267
|
+
MBC_Playlist_DeletePlaylist = 310 # WM_COPYDATA
|
268
|
+
MBC_Playlist_SetFiles = 311 # WM_COPYDATA
|
269
|
+
MBC_Playlist_AppendFiles = 312 # WM_COPYDATA
|
270
|
+
MBC_Playlist_RemoveAt = 313 # WM_COPYDATA
|
271
|
+
MBC_Playlist_MoveFiles = 314 # WM_COPYDATA
|
272
|
+
MBC_Playlist_PlayNow = 315 # WM_COPYDATA
|
273
|
+
MBC_Playlist_GetItemCount = 316 # WM_COPYDATA
|
274
|
+
MBC_Library_GetFileProperty = 400 # WM_COPYDATA
|
275
|
+
MBC_Library_GetFileTag = 401 # WM_COPYDATA
|
276
|
+
MBC_Library_SetFileTag = 402 # WM_COPYDATA
|
277
|
+
MBC_Library_CommitTagsToFile = 403 # WM_COPYDATA
|
278
|
+
MBC_Library_GetLyrics = 404 # WM_COPYDATA
|
279
|
+
MBC_Library_GetArtwork = 405 # WM_COPYDATA
|
280
|
+
MBC_Library_GetArtworkUrl = 406 # WM_COPYDATA
|
281
|
+
MBC_Library_GetArtistPicture = 407 # WM_COPYDATA
|
282
|
+
MBC_Library_GetArtistPictureUrls = 408 # WM_COPYDATA
|
283
|
+
MBC_Library_GetArtistPictureThumb = 409 # WM_COPYDATA
|
284
|
+
MBC_Library_AddFileToLibrary = 410 # WM_COPYDATA
|
285
|
+
MBC_Library_QueryFiles = 411 # WM_COPYDATA
|
286
|
+
MBC_Library_QueryGetNextFile = 412 # WM_USER
|
287
|
+
MBC_Library_QueryGetAllFiles = 413 # WM_USER
|
288
|
+
MBC_Library_QueryFilesEx = 414 # WM_COPYDATA
|
289
|
+
MBC_Library_QuerySimilarArtists = 415 # WM_COPYDATA
|
290
|
+
MBC_Library_QueryLookupTable = 416 # WM_COPYDATA
|
291
|
+
MBC_Library_QueryGetLookupTableValue = 417 # WM_COPYDATA
|
292
|
+
MBC_Library_GetItemCount = 418 # WM_USER
|
293
|
+
MBC_Library_Jump = 419 # WM_USER
|
294
|
+
MBC_Library_Search = 420 # WM_COPYDATA
|
295
|
+
MBC_Library_SearchFirst = 421 # WM_COPYDATA
|
296
|
+
MBC_Library_SearchIndices = 422 # WM_COPYDATA
|
297
|
+
MBC_Library_SearchFirstIndex = 423 # WM_COPYDATA
|
298
|
+
MBC_Library_SearchAndPlayFirst = 424 # WM_COPYDATA
|
299
|
+
MBC_Setting_GetFieldName = 700 # WM_COPYDATA
|
300
|
+
MBC_Setting_GetDataType = 701 # WM_COPYDATA
|
301
|
+
MBC_Window_GetHandle = 800 # WM_USER
|
302
|
+
MBC_Window_Close = 801 # WM_USER
|
303
|
+
MBC_Window_Restore = 802 # WM_USER
|
304
|
+
MBC_Window_Minimize = 803 # WM_USER
|
305
|
+
MBC_Window_Maximize = 804 # WM_USER
|
306
|
+
MBC_Window_Move = 805 # WM_USER
|
307
|
+
MBC_Window_Resize = 806 # WM_USER
|
308
|
+
MBC_Window_BringToFront = 807 # WM_USER
|
309
|
+
MBC_Window_GetPosition = 808 # WM_USER
|
310
|
+
MBC_Window_GetSize = 809 # WM_USER
|
311
|
+
MBC_FreeLRESULT = 900 # WM_USER
|
312
|
+
MBC_MusicBeeVersion = 995 # WM_USER
|
313
|
+
MBC_PluginVersion = 996 # WM_USER
|
314
|
+
MBC_Test = 997 # WM_USER For debugging purposes
|
315
|
+
MBC_MessageBox = 998 # WM_COPYDATA For debugging purposes
|
316
|
+
MBC_Probe = 999 # WM_USER To test MusicBeeIPC hwnd is valid
|