/
SteamMusicRemote.swift
204 lines (169 loc) · 7.38 KB
/
SteamMusicRemote.swift
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
//
// SteamMusicRemote.swift
// Steamworks
//
// Licensed under MIT (https://github.com/johnfairh/steamworks-swift/blob/main/LICENSE
//
// This file is generated code: any edits will be overwritten.
internal import CSteamworks
/// Steamworks [`ISteamMusicRemote`](https://partner.steamgames.com/doc/api/ISteamMusicRemote)
///
/// Access via ``SteamAPI/musicRemote``.
public struct SteamMusicRemote: Sendable {
var interface: UnsafeMutablePointer<ISteamMusicRemote> {
SteamAPI_SteamMusicRemote_v001()
}
init() {
}
/// Steamworks `ISteamMusicRemote::BActivationSuccess()`
@discardableResult
public func activationSuccess(value: Bool) -> Bool {
SteamAPI_ISteamMusicRemote_BActivationSuccess(interface, value)
}
/// Steamworks `ISteamMusicRemote::BIsCurrentMusicRemote()`
public func isCurrentMusicRemote() -> Bool {
SteamAPI_ISteamMusicRemote_BIsCurrentMusicRemote(interface)
}
/// Steamworks `ISteamMusicRemote::CurrentEntryDidChange()`
@discardableResult
public func currentEntryDidChange() -> Bool {
SteamAPI_ISteamMusicRemote_CurrentEntryDidChange(interface)
}
/// Steamworks `ISteamMusicRemote::CurrentEntryIsAvailable()`
@discardableResult
public func currentEntryIsAvailable(available: Bool) -> Bool {
SteamAPI_ISteamMusicRemote_CurrentEntryIsAvailable(interface, available)
}
/// Steamworks `ISteamMusicRemote::CurrentEntryWillChange()`
@discardableResult
public func currentEntryWillChange() -> Bool {
SteamAPI_ISteamMusicRemote_CurrentEntryWillChange(interface)
}
/// Steamworks `ISteamMusicRemote::DeregisterSteamMusicRemote()`
@discardableResult
public func deregisterSteamMusicRemote() -> Bool {
SteamAPI_ISteamMusicRemote_DeregisterSteamMusicRemote(interface)
}
/// Steamworks `ISteamMusicRemote::EnableLooped()`
@discardableResult
public func enableLooped(value: Bool) -> Bool {
SteamAPI_ISteamMusicRemote_EnableLooped(interface, value)
}
/// Steamworks `ISteamMusicRemote::EnablePlayNext()`
@discardableResult
public func enablePlayNext(value: Bool) -> Bool {
SteamAPI_ISteamMusicRemote_EnablePlayNext(interface, value)
}
/// Steamworks `ISteamMusicRemote::EnablePlayPrevious()`
@discardableResult
public func enablePlayPrevious(value: Bool) -> Bool {
SteamAPI_ISteamMusicRemote_EnablePlayPrevious(interface, value)
}
/// Steamworks `ISteamMusicRemote::EnablePlaylists()`
@discardableResult
public func enablePlaylists(value: Bool) -> Bool {
SteamAPI_ISteamMusicRemote_EnablePlaylists(interface, value)
}
/// Steamworks `ISteamMusicRemote::EnableQueue()`
@discardableResult
public func enableQueue(value: Bool) -> Bool {
SteamAPI_ISteamMusicRemote_EnableQueue(interface, value)
}
/// Steamworks `ISteamMusicRemote::EnableShuffled()`
@discardableResult
public func enableShuffled(value: Bool) -> Bool {
SteamAPI_ISteamMusicRemote_EnableShuffled(interface, value)
}
/// Steamworks `ISteamMusicRemote::PlaylistDidChange()`
@discardableResult
public func playlistDidChange() -> Bool {
SteamAPI_ISteamMusicRemote_PlaylistDidChange(interface)
}
/// Steamworks `ISteamMusicRemote::PlaylistWillChange()`
@discardableResult
public func playlistWillChange() -> Bool {
SteamAPI_ISteamMusicRemote_PlaylistWillChange(interface)
}
/// Steamworks `ISteamMusicRemote::QueueDidChange()`
@discardableResult
public func queueDidChange() -> Bool {
SteamAPI_ISteamMusicRemote_QueueDidChange(interface)
}
/// Steamworks `ISteamMusicRemote::QueueWillChange()`
@discardableResult
public func queueWillChange() -> Bool {
SteamAPI_ISteamMusicRemote_QueueWillChange(interface)
}
/// Steamworks `ISteamMusicRemote::RegisterSteamMusicRemote()`
public func registerSteamMusicRemote(name: String) -> Bool {
SteamAPI_ISteamMusicRemote_RegisterSteamMusicRemote(interface, name)
}
/// Steamworks `ISteamMusicRemote::ResetPlaylistEntries()`
@discardableResult
public func resetPlaylistEntries() -> Bool {
SteamAPI_ISteamMusicRemote_ResetPlaylistEntries(interface)
}
/// Steamworks `ISteamMusicRemote::ResetQueueEntries()`
@discardableResult
public func resetQueueEntries() -> Bool {
SteamAPI_ISteamMusicRemote_ResetQueueEntries(interface)
}
/// Steamworks `ISteamMusicRemote::SetCurrentPlaylistEntry()`
public func setCurrentPlaylistEntry(id: Int) -> Bool {
SteamAPI_ISteamMusicRemote_SetCurrentPlaylistEntry(interface, CInt(id))
}
/// Steamworks `ISteamMusicRemote::SetCurrentQueueEntry()`
public func setCurrentQueueEntry(id: Int) -> Bool {
SteamAPI_ISteamMusicRemote_SetCurrentQueueEntry(interface, CInt(id))
}
/// Steamworks `ISteamMusicRemote::SetDisplayName()`
public func setDisplayName(displayName: String) -> Bool {
SteamAPI_ISteamMusicRemote_SetDisplayName(interface, displayName)
}
/// Steamworks `ISteamMusicRemote::SetPNGIcon_64x64()`
public func setPNGIcon64x64(buffer: UnsafeRawPointer, bufferSize: Int) -> Bool {
SteamAPI_ISteamMusicRemote_SetPNGIcon_64x64(interface, .init(mutating: buffer), uint32(bufferSize))
}
/// Steamworks `ISteamMusicRemote::SetPlaylistEntry()`
public func setPlaylistEntry(id: Int, position: Int, entryText: String) -> Bool {
SteamAPI_ISteamMusicRemote_SetPlaylistEntry(interface, CInt(id), CInt(position), entryText)
}
/// Steamworks `ISteamMusicRemote::SetQueueEntry()`
public func setQueueEntry(id: Int, position: Int, entryText: String) -> Bool {
SteamAPI_ISteamMusicRemote_SetQueueEntry(interface, CInt(id), CInt(position), entryText)
}
/// Steamworks `ISteamMusicRemote::UpdateCurrentEntryCoverArt()`
@discardableResult
public func updateCurrentEntryCoverArt(buffer: UnsafeRawPointer, bufferSize: Int) -> Bool {
SteamAPI_ISteamMusicRemote_UpdateCurrentEntryCoverArt(interface, .init(mutating: buffer), uint32(bufferSize))
}
/// Steamworks `ISteamMusicRemote::UpdateCurrentEntryElapsedSeconds()`
@discardableResult
public func updateCurrentEntryElapsedSeconds(value: Int) -> Bool {
SteamAPI_ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds(interface, CInt(value))
}
/// Steamworks `ISteamMusicRemote::UpdateCurrentEntryText()`
public func updateCurrentEntryText(text: String) -> Bool {
SteamAPI_ISteamMusicRemote_UpdateCurrentEntryText(interface, text)
}
/// Steamworks `ISteamMusicRemote::UpdateLooped()`
@discardableResult
public func updateLooped(value: Bool) -> Bool {
SteamAPI_ISteamMusicRemote_UpdateLooped(interface, value)
}
/// Steamworks `ISteamMusicRemote::UpdatePlaybackStatus()`
@discardableResult
public func updatePlaybackStatus(status: AudioPlaybackStatus) -> Bool {
SteamAPI_ISteamMusicRemote_UpdatePlaybackStatus(interface, AudioPlayback_Status(status))
}
/// Steamworks `ISteamMusicRemote::UpdateShuffled()`
@discardableResult
public func updateShuffled(value: Bool) -> Bool {
SteamAPI_ISteamMusicRemote_UpdateShuffled(interface, value)
}
/// Steamworks `ISteamMusicRemote::UpdateVolume()`
@discardableResult
public func updateVolume(value: Float) -> Bool {
SteamAPI_ISteamMusicRemote_UpdateVolume(interface, value)
}
}