cleanups
This commit is contained in:
@@ -41,7 +41,7 @@ const int framesize = 2 * channels; /* 16-bit */
|
|||||||
* as the largest hardware buffer. */
|
* as the largest hardware buffer. */
|
||||||
const int internal_buffer_size = 1024*16;
|
const int internal_buffer_size = 1024*16;
|
||||||
|
|
||||||
/* The amount of data to read from SDL_sound at once. */
|
/* The amount of data to read at once. */
|
||||||
const unsigned read_block_size = 1024;
|
const unsigned read_block_size = 1024;
|
||||||
|
|
||||||
RageSoundParams::RageSoundParams():
|
RageSoundParams::RageSoundParams():
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
#include "RageSoundReader_MP3.h"
|
#include "RageSoundReader_MP3.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
#include "SDL_utils.h"
|
|
||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cerrno>
|
#include <cerrno>
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
#include "global.h"
|
#include "global.h"
|
||||||
|
|
||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
#include "SDL_utils.h"
|
|
||||||
#include "RageSoundReader_Vorbisfile.h"
|
#include "RageSoundReader_Vorbisfile.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
|
|
||||||
|
|||||||
@@ -546,7 +546,7 @@ int RageSoundReader_WAV::Read(char *buf, unsigned len)
|
|||||||
if( Conversion == CONV_16LSB_TO_16SYS )
|
if( Conversion == CONV_16LSB_TO_16SYS )
|
||||||
{
|
{
|
||||||
/* Do this in place. */
|
/* Do this in place. */
|
||||||
#if SDL_BYTEORDER == SDL_BIG_ENDIAN
|
#if defined(ENDIAN_BIG)
|
||||||
const int cnt = len / sizeof(int16_t);
|
const int cnt = len / sizeof(int16_t);
|
||||||
int16_t *tbuf = (int16_t *) buf;
|
int16_t *tbuf = (int16_t *) buf;
|
||||||
for( int i = 0; i < cnt; ++i )
|
for( int i = 0; i < cnt; ++i )
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
#include "PrefsManager.h"
|
#include "PrefsManager.h"
|
||||||
#include "RageDisplay.h"
|
#include "RageDisplay.h"
|
||||||
#include "AnnouncerManager.h"
|
#include "AnnouncerManager.h"
|
||||||
#include "SDL_utils.h"
|
|
||||||
|
|
||||||
RageSounds *SOUND = NULL;
|
RageSounds *SOUND = NULL;
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
#ifndef RAGE_THREADS_H
|
#ifndef RAGE_THREADS_H
|
||||||
#define RAGE_THREADS_H
|
#define RAGE_THREADS_H
|
||||||
|
|
||||||
struct SDL_Thread;
|
|
||||||
|
|
||||||
struct ThreadSlot;
|
struct ThreadSlot;
|
||||||
class RageThread
|
class RageThread
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
#include "PrefsManager.h"
|
#include "PrefsManager.h"
|
||||||
#include "RageDisplay.h"
|
#include "RageDisplay.h"
|
||||||
#include "RageTexture.h"
|
#include "RageTexture.h"
|
||||||
#include "SDL_utils.h"
|
|
||||||
#include "ActorUtil.h"
|
#include "ActorUtil.h"
|
||||||
#include "arch/Dialog/Dialog.h"
|
#include "arch/Dialog/Dialog.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user