コード例 #1
0
 public MPDCurrentStatus(MPDCurrentStatus status)
 {
     Volume             = status.Volume;
     Repeat             = status.Repeat;
     Random             = status.Random;
     SinglePlayback     = status.SinglePlayback;
     Consume            = status.Consume;
     playlistVersion    = status.playlistVersion;
     playlistLength     = status.playlistLength;
     currentSongIndex   = status.currentSongIndex;
     nextSongIndex      = status.nextSongIndex;
     samplerate         = status.samplerate;
     bitDepth           = status.bitDepth;
     channelCount       = status.channelCount;
     bitrate            = status.bitrate;
     ElapsedTime        = status.ElapsedTime;
     CurrentTrackLength = status.CurrentTrackLength;
     updateDBJob        = status.updateDBJob;
     playbackState      = status.playbackState;
 }
コード例 #2
0
 /*
  *                      protected MPDCurrentStatus(Parcel in) {
  *                                      // Create this object from parcel
  *                                      pVolume = in.readInt();
  *                                      pRepeat = in.readInt();
  *                                      pRandom = in.readInt();
  *                       pSinglePlayback = in.readInt();
  *                                      pConsume = in.readInt();
  *                                      pPlaylistVersion = in.readInt();
  *                                      pPlaylistLength = in.readInt();
  *                                      pCurrentSongIndex = in.readInt();
  *                                      pNextSongIndex = in.readInt();
  *                                      pSamplerate = in.readInt();
  *                                      pBitDepth = in.readString();
  *                                      pChannelCount = in.readInt();
  *                                      pBitrate = in.readInt();
  *                                      pElapsedTime = in.readInt();
  *                                      pTrackLength = in.readInt();
  *                                      pUpdateDBJob = in.readInt();
  *                                      pPlaybackState = MPD_PLAYBACK_STATE.values()[in.readInt()];
  *                      }
  */
 public MPDCurrentStatus()
 {
     updateDBJob   = -1;
     playbackState = MPD_PLAYBACK_STATE.MPD_STOPPED;
 }