Permite interação direta com o reprodutor de músicas do Steam.
Consulte
features/music_player para mais informações.
Funções de membro
Funções de membro de
ISteamMusicRemote
são chamadas por meio da função de acesso global
SteamMusicRemote()
.
BActivationSuccess
bool BActivationSuccess( bool bValue );
Nome | Tipo | Descrição |
bValue | bool | |
Retorna: bool
BIsCurrentMusicRemote
bool BIsCurrentMusicRemote();
Retorna: bool
CurrentEntryDidChange
bool CurrentEntryDidChange();
Retorna: bool
CurrentEntryIsAvailable
bool CurrentEntryIsAvailable( bool bAvailable );
Nome | Tipo | Descrição |
bAvailable | bool | |
Retorna: bool
CurrentEntryWillChange
bool CurrentEntryWillChange();
Entrada atual.
Retorna: bool
DeregisterSteamMusicRemote
bool DeregisterSteamMusicRemote();
Retorna: bool
EnableLooped
bool EnableLooped( bool bValue );
Nome | Tipo | Descrição |
bValue | bool | |
Retorna: bool
EnablePlaylists
bool EnablePlaylists( bool bValue );
Nome | Tipo | Descrição |
bValue | bool | |
Retorna: bool
EnablePlayNext
bool EnablePlayNext( bool bValue );
Nome | Tipo | Descrição |
bValue | bool | |
Retorna: bool
EnablePlayPrevious
bool EnablePlayPrevious( bool bValue );
Nome | Tipo | Descrição |
bValue | bool | |
Habilidades para a interface de usuário.
Retorna: bool
EnableQueue
bool EnableQueue( bool bValue );
Nome | Tipo | Descrição |
bValue | bool | |
Retorna: bool
EnableShuffled
bool EnableShuffled( bool bValue );
Nome | Tipo | Descrição |
bValue | bool | |
Retorna: bool
PlaylistDidChange
bool PlaylistDidChange();
Retorna: bool
PlaylistWillChange
bool PlaylistWillChange();
Lista de reprodução.
Retorna: bool
QueueDidChange
bool QueueDidChange();
Retorna: bool
QueueWillChange
bool QueueWillChange();
Fila.
Retorna: bool
RegisterSteamMusicRemote
bool RegisterSteamMusicRemote( const char *pchName );
Nome | Tipo | Descrição |
pchName | const char * | |
Definição de serviço.
Retorna: bool
ResetPlaylistEntries
bool ResetPlaylistEntries();
Retorna: bool
ResetQueueEntries
bool ResetQueueEntries();
Retorna: bool
SetCurrentPlaylistEntry
bool SetCurrentPlaylistEntry( int nID );
Retorna: bool
SetCurrentQueueEntry
bool SetCurrentQueueEntry( int nID );
Retorna: bool
SetDisplayName
bool SetDisplayName( const char *pchDisplayName );
Nome | Tipo | Descrição |
pchDisplayName | const char * | |
Retorna: bool
SetPlaylistEntry
bool SetPlaylistEntry( int nID, int nPosition, const char *pchEntryText );
Nome | Tipo | Descrição |
nID | int | |
nPosition | int | |
pchEntryText | const char * | |
Retorna: bool
SetPNGIcon_64x64
bool SetPNGIcon_64x64( void *pvBuffer, uint32 cbBufferLength );
Nome | Tipo | Descrição |
pvBuffer | void * | |
cbBufferLength | uint32 | |
Retorna: bool
SetQueueEntry
bool SetQueueEntry( int nID, int nPosition, const char *pchEntryText );
Nome | Tipo | Descrição |
nID | int | |
nPosition | int | |
pchEntryText | const char * | |
Retorna: bool
UpdateCurrentEntryCoverArt
bool UpdateCurrentEntryCoverArt( void *pvBuffer, uint32 cbBufferLength );
Nome | Tipo | Descrição |
pvBuffer | void * | |
cbBufferLength | uint32 | |
Retorna: bool
UpdateCurrentEntryElapsedSeconds
bool UpdateCurrentEntryElapsedSeconds( int nValue );
Nome | Tipo | Descrição |
nValue | int | |
Retorna: bool
UpdateCurrentEntryText
bool UpdateCurrentEntryText( const char *pchText );
Nome | Tipo | Descrição |
pchText | const char * | |
Retorna: bool
UpdateLooped
bool UpdateLooped( bool bValue );
Nome | Tipo | Descrição |
bValue | bool | |
Retorna: bool
UpdatePlaybackStatus
bool UpdatePlaybackStatus( AudioPlayback_Status nStatus );
Estado.
Retorna: bool
UpdateShuffled
bool UpdateShuffled( bool bValue );
Nome | Tipo | Descrição |
bValue | bool | |
Retorna: bool
UpdateVolume
bool UpdateVolume( float flValue );
Nome | Tipo | Descrição |
flValue | float | |
Retorna: bool
Retornos de chamada
Estes são os retornos de chamada (callbacks) que podem ser disparados ao chamar
SteamAPI_RunCallbacks. Muitos podem ser disparados diretamente em resposta às funções de membro de
ISteamMusicRemote
.
MusicPlayerRemoteToFront_t
Este retorno de chamada não possui campos.
MusicPlayerRemoteWillActivate_t
Este retorno de chamada não possui campos.
MusicPlayerRemoteWillDeactivate_t
Este retorno de chamada não possui campos.
MusicPlayerSelectsPlaylistEntry_t
MusicPlayerSelectsQueueEntry_t
MusicPlayerWantsLooped_t
Nome | Tipo | Descrição |
m_bLooped | bool | |
MusicPlayerWantsPause_t
Este retorno de chamada não possui campos.
MusicPlayerWantsPlayingRepeatStatus_t
Nome | Tipo | Descrição |
m_nPlayingRepeatStatus | int | |
MusicPlayerWantsPlayNext_t
Este retorno de chamada não possui campos.
MusicPlayerWantsPlayPrevious_t
Este retorno de chamada não possui campos.
MusicPlayerWantsPlay_t
Este retorno de chamada não possui campos.
MusicPlayerWantsShuffled_t
Nome | Tipo | Descrição |
m_bShuffled | bool | |
MusicPlayerWantsVolume_t
Nome | Tipo | Descrição |
m_flNewVolume | float | |
MusicPlayerWillQuit_t
Este retorno de chamada não possui campos.
Constantes
Estas são as constantes definidas para uso com ISteamMusicRemote.
Nome | Tipo | Valor | Descrição |
k_SteamMusicNameMaxLength | int | 255 | |
k_SteamMusicPNGMaxLength | int | 65535 | |
STEAMMUSICREMOTE_INTERFACE_VERSION | const char * | "STEAMMUSICREMOTE_INTERFACE_VERSION001" | |