Xbox: Fix exception handling
This commit is contained in:
@@ -34,10 +34,6 @@
|
||||
#include "RageSoundReader_Resample.h"
|
||||
#include "RageSoundReader_FileReader.h"
|
||||
|
||||
#if defined(XBOX)
|
||||
#include "archutils/Xbox/VirtualMemory.h"
|
||||
#endif
|
||||
|
||||
const int channels = 2;
|
||||
const int framesize = 2 * channels; /* 16-bit */
|
||||
#define samplerate() Sample->GetSampleRate()
|
||||
@@ -343,11 +339,6 @@ int RageSound::FillBuf( int frames )
|
||||
* that would be read. */
|
||||
int RageSound::GetData( char *buffer, int frames )
|
||||
{
|
||||
#if defined(XBOX)
|
||||
// should prevent a page fault crash
|
||||
vmem_Manager.Lock(buffer);
|
||||
#endif
|
||||
|
||||
if( m_Param.m_LengthSeconds != -1 )
|
||||
{
|
||||
/* We have a length; only read up to the end. */
|
||||
@@ -376,10 +367,6 @@ int RageSound::GetData( char *buffer, int frames )
|
||||
databuf.read( buffer, got*framesize );
|
||||
}
|
||||
|
||||
#if defined(XBOX)
|
||||
vmem_Manager.Unlock(buffer);
|
||||
#endif
|
||||
|
||||
return got;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user