mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Tweaked streaming Sources to use fewer OpenAL buffers (and increased the amount of decoded data per buffer to compensate), and removed some unnecessary #include statements.
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
// STD
|
||||
#include <queue>
|
||||
#include <map>
|
||||
#include <iostream>
|
||||
#include <cmath>
|
||||
|
||||
// LOVE
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// STD
|
||||
#include <queue>
|
||||
#include <map>
|
||||
#include <iostream>
|
||||
#include <cmath>
|
||||
|
||||
// LOVE
|
||||
|
||||
@@ -145,7 +145,7 @@ private:
|
||||
ALuint source;
|
||||
bool valid;
|
||||
|
||||
static const unsigned int MAX_BUFFERS = 32;
|
||||
static const unsigned int MAX_BUFFERS = 8;
|
||||
ALuint streamBuffers[MAX_BUFFERS];
|
||||
|
||||
Object::StrongRef<StaticDataBuffer> staticBuffer;
|
||||
|
||||
@@ -26,6 +26,9 @@
|
||||
|
||||
#include "common/runtime.h"
|
||||
|
||||
// C++
|
||||
#include <iostream>
|
||||
|
||||
namespace love
|
||||
{
|
||||
namespace audio
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include "common/EnumMap.h"
|
||||
|
||||
// SDL
|
||||
#include <SDL.h>
|
||||
#include <SDL_events.h>
|
||||
|
||||
// STL
|
||||
#include <map>
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// STD
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
// LOVE
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
|
||||
// C
|
||||
#include <cmath>
|
||||
#include <cstdio>
|
||||
|
||||
namespace love
|
||||
{
|
||||
@@ -259,7 +260,7 @@ bool Graphics::setMode(int width, int height, bool &sRGB)
|
||||
|
||||
// Reload all volatile objects.
|
||||
if (!Volatile::loadAll())
|
||||
std::cerr << "Could not reload all volatile objects." << std::endl;
|
||||
::printf("Could not reload all volatile objects.\n");
|
||||
|
||||
// Restore the graphics state.
|
||||
restoreState(states.back());
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
#define LOVE_GRAPHICS_OPENGL_GRAPHICS_H
|
||||
|
||||
// STD
|
||||
#include <iostream>
|
||||
#include <stack>
|
||||
#include <vector>
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ public:
|
||||
* Indicates how many bytes of raw data should be generated at each
|
||||
* call to Decode.
|
||||
**/
|
||||
static const int DEFAULT_BUFFER_SIZE = 2048;
|
||||
static const int DEFAULT_BUFFER_SIZE = 16384;
|
||||
|
||||
/**
|
||||
* Indicates the quality of the sound.
|
||||
|
||||
Reference in New Issue
Block a user