Diff of /xbmc/cores/paplayer/PAPlayer.cpp [1bb066] .. [ed57a4] Maximize Restore

Repo status: analyzing...

  Switch to unified view

a/xbmc/cores/paplayer/PAPlayer.cpp b/xbmc/cores/paplayer/PAPlayer.cpp
...
...
44
44
45
#define FADE_TIME 2 * 2048.0f / XBMC_SAMPLE_RATE.0f      // 2 packets
45
#define FADE_TIME 2 * 2048.0f / XBMC_SAMPLE_RATE.0f      // 2 packets
46
46
47
#define TIME_TO_CACHE_NEXT_FILE 5000L         // 5 seconds
47
#define TIME_TO_CACHE_NEXT_FILE 5000L         // 5 seconds
48
#define TIME_TO_CROSS_FADE      10000L        // 10 seconds
48
#define TIME_TO_CROSS_FADE      10000L        // 10 seconds
49
50
extern XFILE::CFileShoutcast* m_pShoutCastRipper;
51
49
52
// PAP: Psycho-acoustic Audio Player
50
// PAP: Psycho-acoustic Audio Player
53
// Supporting all open  audio codec standards.
51
// Supporting all open  audio codec standards.
54
// First one being nullsoft's nsv audio decoder format
52
// First one being nullsoft's nsv audio decoder format
55
53
...
...
1087
    return true;
1085
    return true;
1088
  }
1086
  }
1089
  return false;
1087
  return false;
1090
}
1088
}
1091
1089
1092
bool PAPlayer::CanRecord()
1093
{
1094
  if (!m_pShoutCastRipper) return false;
1095
  return m_pShoutCastRipper->CanRecord();
1096
}
1097
1098
bool PAPlayer::IsRecording()
1099
{
1100
  if (!m_pShoutCastRipper) return false;
1101
  return m_pShoutCastRipper->IsRecording();
1102
}
1103
1104
bool PAPlayer::Record(bool bOnOff)
1105
{
1106
  if (!m_pShoutCastRipper) return false;
1107
  if (bOnOff && IsRecording()) return true;
1108
  if (bOnOff == false && IsRecording() == false) return true;
1109
  if (bOnOff)
1110
    return m_pShoutCastRipper->Record();
1111
1112
  m_pShoutCastRipper->StopRecording();
1113
  return true;
1114
}
1115
1116
void PAPlayer::WaitForStream()
1090
void PAPlayer::WaitForStream()
1117
{
1091
{
1118
  // should we wait for our other stream as well?
1092
  // should we wait for our other stream as well?
1119
  // currently we don't.
1093
  // currently we don't.
1120
  if (m_pAudioDecoder[m_currentStream])
1094
  if (m_pAudioDecoder[m_currentStream])