Smaller audio ram cache blocksize
Originally committed to SVN as r26.
This commit is contained in:
parent
e2af348af5
commit
87ac27af9a
1 changed files with 3 additions and 2 deletions
|
@ -54,6 +54,9 @@ extern "C" {
|
||||||
|
|
||||||
int AudioProvider::pa_refcount = 0;
|
int AudioProvider::pa_refcount = 0;
|
||||||
|
|
||||||
|
#define CacheBits ((22))
|
||||||
|
#define CacheBlockSize ((1 << CacheBits))
|
||||||
|
|
||||||
//////////////
|
//////////////
|
||||||
// Constructor
|
// Constructor
|
||||||
AudioProvider::AudioProvider(wxString _filename, AudioDisplay *_display) {
|
AudioProvider::AudioProvider(wxString _filename, AudioDisplay *_display) {
|
||||||
|
@ -202,8 +205,6 @@ void AudioProvider::LoadFromClip(AVSValue _clip) {
|
||||||
/////////////
|
/////////////
|
||||||
// RAM Cache
|
// RAM Cache
|
||||||
void AudioProvider::ConvertToRAMCache(PClip &tempclip) {
|
void AudioProvider::ConvertToRAMCache(PClip &tempclip) {
|
||||||
#define CacheBits ((24))
|
|
||||||
#define CacheBlockSize ((1 << CacheBits))
|
|
||||||
|
|
||||||
// Allocate cache
|
// Allocate cache
|
||||||
__int64 ssize = num_samples * bytes_per_sample;
|
__int64 ssize = num_samples * bytes_per_sample;
|
||||||
|
|
Loading…
Reference in a new issue