Replaced some assert macros with SDL_assert.
This commit is contained in:
parent
067b1ec8a2
commit
df8784cd61
7 changed files with 31 additions and 33 deletions
|
@ -25,12 +25,9 @@
|
|||
#include "SDL_audio.h"
|
||||
#include "SDL_audio_c.h"
|
||||
|
||||
/* #define DEBUG_CONVERT */
|
||||
#include "SDL_assert.h"
|
||||
|
||||
/* !!! FIXME */
|
||||
#ifndef assert
|
||||
#define assert(x)
|
||||
#endif
|
||||
/* #define DEBUG_CONVERT */
|
||||
|
||||
/* Effectively mix right and left channels into a single channel */
|
||||
static void SDLCALL
|
||||
|
@ -881,9 +878,9 @@ SDL_FindFrequencyMultiple(const int src_rate, const int dst_rate)
|
|||
int lo, hi;
|
||||
int div;
|
||||
|
||||
assert(src_rate != 0);
|
||||
assert(dst_rate != 0);
|
||||
assert(src_rate != dst_rate);
|
||||
SDL_assert(src_rate != 0);
|
||||
SDL_assert(dst_rate != 0);
|
||||
SDL_assert(src_rate != dst_rate);
|
||||
|
||||
if (src_rate < dst_rate) {
|
||||
lo = src_rate;
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include "../SDL_audio_c.h"
|
||||
#include "../SDL_sysaudio.h"
|
||||
#include "SDL_coreaudio.h"
|
||||
#include "SDL_assert.h"
|
||||
|
||||
#define DEBUG_COREAUDIO 0
|
||||
|
||||
|
@ -268,8 +269,8 @@ outputCallback(void *inRefCon,
|
|||
any input format in OpenAudio, and leave the conversion to CoreAudio.
|
||||
*/
|
||||
/*
|
||||
assert(!this->convert.needed);
|
||||
assert(this->spec.channels == ioData->mNumberChannels);
|
||||
SDL_assert(!this->convert.needed);
|
||||
SDL_assert(this->spec.channels == ioData->mNumberChannels);
|
||||
*/
|
||||
|
||||
for (i = 0; i < ioData->mNumberBuffers; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue