Dokumentasi Steamworks
ISteamMusicRemote Interface
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 );
NamaTypeDescription
bValuebool



Hasil: bool

BIsCurrentMusicRemote

bool BIsCurrentMusicRemote();


Hasil: bool

CurrentEntryDidChange

bool CurrentEntryDidChange();


Hasil: bool

CurrentEntryIsAvailable

bool CurrentEntryIsAvailable( bool bAvailable );
NamaTypeDescription
bAvailablebool



Hasil: bool

CurrentEntryWillChange

bool CurrentEntryWillChange();
Current Entry

Hasil: bool

DeregisterSteamMusicRemote

bool DeregisterSteamMusicRemote();


Hasil: bool

EnableLooped

bool EnableLooped( bool bValue );
NamaTypeDescription
bValuebool



Hasil: bool

EnablePlaylists

bool EnablePlaylists( bool bValue );
NamaTypeDescription
bValuebool



Hasil: bool

EnablePlayNext

bool EnablePlayNext( bool bValue );
NamaTypeDescription
bValuebool



Hasil: bool

EnablePlayPrevious

bool EnablePlayPrevious( bool bValue );
NamaTypeDescription
bValuebool

Abilities for the user interface

Hasil: bool

EnableQueue

bool EnableQueue( bool bValue );
NamaTypeDescription
bValuebool



Hasil: bool

EnableShuffled

bool EnableShuffled( bool bValue );
NamaTypeDescription
bValuebool



Hasil: bool

PlaylistDidChange

bool PlaylistDidChange();


Hasil: bool

PlaylistWillChange

bool PlaylistWillChange();
Playlist

Hasil: bool

QueueDidChange

bool QueueDidChange();


Hasil: bool

QueueWillChange

bool QueueWillChange();
Queue

Hasil: bool

RegisterSteamMusicRemote

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

Service Definition

Hasil: bool

ResetPlaylistEntries

bool ResetPlaylistEntries();


Hasil: bool

ResetQueueEntries

bool ResetQueueEntries();


Hasil: bool

SetCurrentPlaylistEntry

bool SetCurrentPlaylistEntry( int nID );
NamaTypeDescription
nIDint



Hasil: bool

SetCurrentQueueEntry

bool SetCurrentQueueEntry( int nID );
NamaTypeDescription
nIDint



Hasil: bool

SetDisplayName

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



Hasil: bool

SetPlaylistEntry

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



Hasil: bool

SetPNGIcon_64x64

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



Hasil: bool

SetQueueEntry

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



Hasil: bool

UpdateCurrentEntryCoverArt

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



Hasil: bool

UpdateCurrentEntryElapsedSeconds

bool UpdateCurrentEntryElapsedSeconds( int nValue );
NamaTypeDescription
nValueint



Hasil: bool

UpdateCurrentEntryText

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



Hasil: bool

UpdateLooped

bool UpdateLooped( bool bValue );
NamaTypeDescription
bValuebool



Hasil: bool

UpdatePlaybackStatus

bool UpdatePlaybackStatus( AudioPlayback_Status nStatus );
NamaTypeDescription
nStatusAudioPlayback_Status

Status

Hasil: bool

UpdateShuffled

bool UpdateShuffled( bool bValue );
NamaTypeDescription
bValuebool



Hasil: bool

UpdateVolume

bool UpdateVolume( float flValue );
NamaTypeDescription
flValuefloat



Hasil: 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



This callback has no fields.

MusicPlayerRemoteWillActivate_t



This callback has no fields.

MusicPlayerRemoteWillDeactivate_t



This callback has no fields.

MusicPlayerSelectsPlaylistEntry_t



NamaTypeDescription
nIDint

MusicPlayerSelectsQueueEntry_t



NamaTypeDescription
nIDint

MusicPlayerWantsLooped_t



NamaTypeDescription
m_bLoopedbool

MusicPlayerWantsPause_t



This callback has no fields.

MusicPlayerWantsPlayingRepeatStatus_t



NamaTypeDescription
m_nPlayingRepeatStatusint

MusicPlayerWantsPlayNext_t



This callback has no fields.

MusicPlayerWantsPlayPrevious_t



This callback has no fields.

MusicPlayerWantsPlay_t



This callback has no fields.

MusicPlayerWantsShuffled_t



NamaTypeDescription
m_bShuffledbool

MusicPlayerWantsVolume_t



NamaTypeDescription
m_flNewVolumefloat

MusicPlayerWillQuit_t



This callback has no fields.

Constants

These are constants which are defined for use with ISteamMusicRemote.

NamaTypeNilaiDescription
k_SteamMusicNameMaxLengthint255
k_SteamMusicPNGMaxLengthint65535
STEAMMUSICREMOTE_INTERFACE_VERSIONconst char *"STEAMMUSICREMOTE_INTERFACE_VERSION001"
  翻译: