Implemented option to set audio HD cache location

Originally committed to SVN as r620.
This commit is contained in:
Rodrigo Braz Monteiro 2006-12-26 02:05:35 +00:00
parent 3b4ea46cca
commit 4a1c778595
3 changed files with 11 additions and 1 deletions

View File

@ -36,9 +36,12 @@
///////////
// Headers
#include <wx/filename.h>
#include "dialog_progress.h"
#include "audio_provider_hd.h"
#include "main.h"
#include "options.h"
#include "utils.h"
///////////////
@ -135,7 +138,12 @@ void HDAudioProvider::GetAudio(void *buf, __int64 start, __int64 count) {
///////////////////////////
// Get disk cache path
wxString HDAudioProvider::DiskCachePath() {
return AegisubApp::folderName;
// Default
wxString path = Options.AsText(_T("Audio HD Cache Location"));
if (path == _T("default")) return AegisubApp::folderName;
// Specified
return DecodeRelativePath(path,AegisubApp::folderName);
}

View File

@ -43,6 +43,7 @@ Please visit http://aegisub.net to download latest version
- Improved Syntax Highlighter to include more features of ASS. (AMZ)
- Added an inline Hunspell-based Spell Checker. (AMZ)
- Added an inline MyThes-based Thesaurus. (AMZ)
- Added an option ("Audio HD Cache Location") that allows you to specify where to keep the audio cache. (AMZ)
= 1.10 beta - 2006.08.07 ===========================

View File

@ -243,6 +243,7 @@ void OptionsManager::LoadDefaults() {
SetInt(_T("Audio Display Height"),100);
SetBool(_T("Audio Spectrum"),false);
SetText(_T("Audio HD Cache Location"),_T("default"));
SetInt(_T("Timing processor key start before thres"),5);
SetInt(_T("Timing processor key start after thres"),4);