void CGUIWindowMusicBase::OnRipCD() { if(g_mediaManager.IsAudio()) { if (!g_application.CurrentFileItem().IsCDDA()) { #ifdef HAS_CDDA_RIPPER CCDDARipper ripper; ripper.RipCD(); #endif } else CGUIDialogOK::ShowAndGetInput(257, 20099, 0, 0); } }
void CGUIWindowMusicBase::OnRipTrack(int iItem) { if(g_mediaManager.IsAudio()) { if (!g_application.CurrentFileItem().IsCDDA()) { #ifdef HAS_CDDA_RIPPER CCDDARipper ripper; CFileItemPtr item = m_vecItems->Get(iItem); ripper.RipTrack(item.get()); #endif } else CGUIDialogOK::ShowAndGetInput(257, 20099, 0, 0); } }
void CGUIWindowMusicBase::OnRipCD() { if(g_mediaManager.IsAudio()) { if (!g_application.CurrentFileItem().IsCDDA()) { #ifdef HAS_CDDA_RIPPER CCDDARipper ripper; ripper.RipCD(); #endif } else { CGUIDialogOK* pDlgOK = (CGUIDialogOK*)g_windowManager.GetWindow(WINDOW_DIALOG_OK); pDlgOK->SetHeading(257); // Error pDlgOK->SetLine(0, g_localizeStrings.Get(20099)); // pDlgOK->SetLine(1, ""); // pDlgOK->SetLine(2, ""); pDlgOK->DoModal(); } } }
void CGUIWindowMusicBase::OnRipTrack(int iItem) { CCdInfo *pCdInfo = CDetectDVDMedia::GetCdInfo(); if (CDetectDVDMedia::IsDiscInDrive() && pCdInfo && pCdInfo->IsAudio(1)) { if (!g_application.CurrentFileItem().IsCDDA()) { #ifdef HAS_CDDA_RIPPER CCDDARipper ripper; ripper.RipTrack(m_vecItems->Get(iItem)); #endif } else { CGUIDialogOK* pDlgOK = (CGUIDialogOK*)m_gWindowManager.GetWindow(WINDOW_DIALOG_OK); pDlgOK->SetHeading(257); // Error pDlgOK->SetLine(0, g_localizeStrings.Get(20099)); // pDlgOK->SetLine(1, ""); // pDlgOK->SetLine(2, ""); pDlgOK->DoModal(); } } }