Τεκμηρίωση 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 );
ΌνομαΤύποςΠεριγραφή
bValuebool



Επιστρέφει: bool

BIsCurrentMusicRemote

bool BIsCurrentMusicRemote();


Επιστρέφει: bool

CurrentEntryDidChange

bool CurrentEntryDidChange();


Επιστρέφει: bool

CurrentEntryIsAvailable

bool CurrentEntryIsAvailable( bool bAvailable );
ΌνομαΤύποςΠεριγραφή
bAvailablebool



Επιστρέφει: bool

CurrentEntryWillChange

bool CurrentEntryWillChange();
Current Entry

Επιστρέφει: bool

DeregisterSteamMusicRemote

bool DeregisterSteamMusicRemote();


Επιστρέφει: bool

EnableLooped

bool EnableLooped( bool bValue );
ΌνομαΤύποςΠεριγραφή
bValuebool



Επιστρέφει: bool

EnablePlaylists

bool EnablePlaylists( bool bValue );
ΌνομαΤύποςΠεριγραφή
bValuebool



Επιστρέφει: bool

EnablePlayNext

bool EnablePlayNext( bool bValue );
ΌνομαΤύποςΠεριγραφή
bValuebool



Επιστρέφει: bool

EnablePlayPrevious

bool EnablePlayPrevious( bool bValue );
ΌνομαΤύποςΠεριγραφή
bValuebool

Abilities for the user interface

Επιστρέφει: bool

EnableQueue

bool EnableQueue( bool bValue );
ΌνομαΤύποςΠεριγραφή
bValuebool



Επιστρέφει: bool

EnableShuffled

bool EnableShuffled( bool bValue );
ΌνομαΤύποςΠεριγραφή
bValuebool



Επιστρέφει: bool

PlaylistDidChange

bool PlaylistDidChange();


Επιστρέφει: bool

PlaylistWillChange

bool PlaylistWillChange();
Λίστα αναπαραγωγής

Επιστρέφει: bool

QueueDidChange

bool QueueDidChange();


Επιστρέφει: bool

QueueWillChange

bool QueueWillChange();
Queue

Επιστρέφει: bool

RegisterSteamMusicRemote

bool RegisterSteamMusicRemote( const char *pchName );
ΌνομαΤύποςΠεριγραφή
pchNameconst char *

Service Definition

Επιστρέφει: bool

ResetPlaylistEntries

bool ResetPlaylistEntries();


Επιστρέφει: bool

ResetQueueEntries

bool ResetQueueEntries();


Επιστρέφει: bool

SetCurrentPlaylistEntry

bool SetCurrentPlaylistEntry( int nID );
ΌνομαΤύποςΠεριγραφή
nIDint



Επιστρέφει: bool

SetCurrentQueueEntry

bool SetCurrentQueueEntry( int nID );
ΌνομαΤύποςΠεριγραφή
nIDint



Επιστρέφει: bool

SetDisplayName

bool SetDisplayName( const char *pchDisplayName );
ΌνομαΤύποςΠεριγραφή
pchDisplayNameconst char *



Επιστρέφει: bool

SetPlaylistEntry

bool SetPlaylistEntry( int nID, int nPosition, const char *pchEntryText );
ΌνομαΤύποςΠεριγραφή
nIDint
nPositionint
pchEntryTextconst char *



Επιστρέφει: bool

SetPNGIcon_64x64

bool SetPNGIcon_64x64( void *pvBuffer, uint32 cbBufferLength );
ΌνομαΤύποςΠεριγραφή
pvBuffervoid *
cbBufferLengthuint32



Επιστρέφει: bool

SetQueueEntry

bool SetQueueEntry( int nID, int nPosition, const char *pchEntryText );
ΌνομαΤύποςΠεριγραφή
nIDint
nPositionint
pchEntryTextconst char *



Επιστρέφει: bool

UpdateCurrentEntryCoverArt

bool UpdateCurrentEntryCoverArt( void *pvBuffer, uint32 cbBufferLength );
ΌνομαΤύποςΠεριγραφή
pvBuffervoid *
cbBufferLengthuint32



Επιστρέφει: bool

UpdateCurrentEntryElapsedSeconds

bool UpdateCurrentEntryElapsedSeconds( int nValue );
ΌνομαΤύποςΠεριγραφή
nValueint



Επιστρέφει: bool

UpdateCurrentEntryText

bool UpdateCurrentEntryText( const char *pchText );
ΌνομαΤύποςΠεριγραφή
pchTextconst char *



Επιστρέφει: bool

UpdateLooped

bool UpdateLooped( bool bValue );
ΌνομαΤύποςΠεριγραφή
bValuebool



Επιστρέφει: bool

UpdatePlaybackStatus

bool UpdatePlaybackStatus( AudioPlayback_Status nStatus );
ΌνομαΤύποςΠεριγραφή
nStatusAudioPlayback_Status

Κατάσταση

Επιστρέφει: bool

UpdateShuffled

bool UpdateShuffled( bool bValue );
ΌνομαΤύποςΠεριγραφή
bValuebool



Επιστρέφει: bool

UpdateVolume

bool UpdateVolume( float flValue );
ΌνομαΤύποςΠεριγραφή
flValuefloat



Επιστρέφει: 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



ΌνομαΤύποςΠεριγραφή
nIDint

MusicPlayerSelectsQueueEntry_t



ΌνομαΤύποςΠεριγραφή
nIDint

MusicPlayerWantsLooped_t



ΌνομαΤύποςΠεριγραφή
m_bLoopedbool

MusicPlayerWantsPause_t



This callback has no fields.

MusicPlayerWantsPlayingRepeatStatus_t



ΌνομαΤύποςΠεριγραφή
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



ΌνομαΤύποςΠεριγραφή
m_bShuffledbool

MusicPlayerWantsVolume_t



ΌνομαΤύποςΠεριγραφή
m_flNewVolumefloat

MusicPlayerWillQuit_t



This callback has no fields.

Constants

These are constants which are defined for use with ISteamMusicRemote.

ΌνομαΤύποςΤιμήΠεριγραφή
k_SteamMusicNameMaxLengthint255
k_SteamMusicPNGMaxLengthint65535
STEAMMUSICREMOTE_INTERFACE_VERSIONconst char *"STEAMMUSICREMOTE_INTERFACE_VERSION001"
  翻译: