Steamworks-Dokumentation
ISteamMusicRemote-Schnittstelle
Allows direct interaction with the Steam Music player.

See features/music_player for more information.

Member Functions

Member functions for ISteamMusicRemote are called through the global accessor function SteamMusicRemote().

BActivationSuccess

bool BActivationSuccess( bool bValue );
NameTypBeschreibung
bValuebool



Returns: bool

BIsCurrentMusicRemote

bool BIsCurrentMusicRemote();


Returns: bool

CurrentEntryDidChange

bool CurrentEntryDidChange();


Returns: bool

CurrentEntryIsAvailable

bool CurrentEntryIsAvailable( bool bAvailable );
NameTypBeschreibung
bAvailablebool



Returns: bool

CurrentEntryWillChange

bool CurrentEntryWillChange();
Current Entry

Returns: bool

DeregisterSteamMusicRemote

bool DeregisterSteamMusicRemote();


Returns: bool

EnableLooped

bool EnableLooped( bool bValue );
NameTypBeschreibung
bValuebool



Returns: bool

EnablePlaylists

bool EnablePlaylists( bool bValue );
NameTypBeschreibung
bValuebool



Returns: bool

EnablePlayNext

bool EnablePlayNext( bool bValue );
NameTypBeschreibung
bValuebool



Returns: bool

EnablePlayPrevious

bool EnablePlayPrevious( bool bValue );
NameTypBeschreibung
bValuebool

Abilities for the user interface

Returns: bool

EnableQueue

bool EnableQueue( bool bValue );
NameTypBeschreibung
bValuebool



Returns: bool

EnableShuffled

bool EnableShuffled( bool bValue );
NameTypBeschreibung
bValuebool



Returns: bool

PlaylistDidChange

bool PlaylistDidChange();


Returns: bool

PlaylistWillChange

bool PlaylistWillChange();
Playlist

Returns: bool

QueueDidChange

bool QueueDidChange();


Returns: bool

QueueWillChange

bool QueueWillChange();
Queue

Returns: bool

RegisterSteamMusicRemote

bool RegisterSteamMusicRemote( const char *pchName );
NameTypBeschreibung
pchNameconst char *

Service Definition

Returns: bool

ResetPlaylistEntries

bool ResetPlaylistEntries();


Returns: bool

ResetQueueEntries

bool ResetQueueEntries();


Returns: bool

SetCurrentPlaylistEntry

bool SetCurrentPlaylistEntry( int nID );
NameTypBeschreibung
nIDint



Returns: bool

SetCurrentQueueEntry

bool SetCurrentQueueEntry( int nID );
NameTypBeschreibung
nIDint



Returns: bool

SetDisplayName

bool SetDisplayName( const char *pchDisplayName );
NameTypBeschreibung
pchDisplayNameconst char *



Returns: bool

SetPlaylistEntry

bool SetPlaylistEntry( int nID, int nPosition, const char *pchEntryText );
NameTypBeschreibung
nIDint
nPositionint
pchEntryTextconst char *



Returns: bool

SetPNGIcon_64x64

bool SetPNGIcon_64x64( void *pvBuffer, uint32 cbBufferLength );
NameTypBeschreibung
pvBuffervoid *
cbBufferLengthuint32



Returns: bool

SetQueueEntry

bool SetQueueEntry( int nID, int nPosition, const char *pchEntryText );
NameTypBeschreibung
nIDint
nPositionint
pchEntryTextconst char *



Returns: bool

UpdateCurrentEntryCoverArt

bool UpdateCurrentEntryCoverArt( void *pvBuffer, uint32 cbBufferLength );
NameTypBeschreibung
pvBuffervoid *
cbBufferLengthuint32



Returns: bool

UpdateCurrentEntryElapsedSeconds

bool UpdateCurrentEntryElapsedSeconds( int nValue );
NameTypBeschreibung
nValueint



Returns: bool

UpdateCurrentEntryText

bool UpdateCurrentEntryText( const char *pchText );
NameTypBeschreibung
pchTextconst char *



Returns: bool

UpdateLooped

bool UpdateLooped( bool bValue );
NameTypBeschreibung
bValuebool



Returns: bool

UpdatePlaybackStatus

bool UpdatePlaybackStatus( AudioPlayback_Status nStatus );
NameTypBeschreibung
nStatusAudioPlayback_Status

Status

Returns: bool

UpdateShuffled

bool UpdateShuffled( bool bValue );
NameTypBeschreibung
bValuebool



Rückgabewert: bool

UpdateVolume

bool UpdateVolume( float flValue );
NameTypBeschreibung
flValuefloat



Rückgabewert: bool

Callbacks

These are callbacks which can be fired by calling SteamAPI_RunCallbacks. Many of these will be fired directly in response to the member functions of ISteamMusicRemote.

MusicPlayerRemoteToFront_t



Dieser Rückruf hat keine Variablen.

MusicPlayerRemoteWillActivate_t



Dieser Rückruf hat keine Variablen.

MusicPlayerRemoteWillDeactivate_t



Dieser Rückruf hat keine Variablen.

MusicPlayerSelectsPlaylistEntry_t



NameTypBeschreibung
nIDint

MusicPlayerSelectsQueueEntry_t



NameTypBeschreibung
nIDint

MusicPlayerWantsLooped_t



NameTypBeschreibung
m_bLoopedbool

MusicPlayerWantsPause_t



Dieser Rückruf hat keine Variablen.

MusicPlayerWantsPlayingRepeatStatus_t



NameTypBeschreibung
m_nPlayingRepeatStatusint

MusicPlayerWantsPlayNext_t



Dieser Rückruf hat keine Variablen.

MusicPlayerWantsPlayPrevious_t



Dieser Rückruf hat keine Variablen.

MusicPlayerWantsPlay_t



Dieser Rückruf hat keine Variablen.

MusicPlayerWantsShuffled_t



NameTypBeschreibung
m_bShuffledbool

MusicPlayerWantsVolume_t



NameTypBeschreibung
m_flNewVolumefloat

MusicPlayerWillQuit_t



This callback has no fields.

Konstanten

These are constants which are defined for use with ISteamMusicRemote.

NameTypWertBeschreibung
k_SteamMusicNameMaxLengthint255
k_SteamMusicPNGMaxLengthint65535
STEAMMUSICREMOTE_INTERFACE_VERSIONconst char *"STEAMMUSICREMOTE_INTERFACE_VERSION001"