Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 452262 | Differences between
and this patch

Collapse All | Expand All

(-)a/doomsday/plugins/openal/src/driver_openal.cpp (-4 / +4 lines)
Lines 56-63 Link Here
56
56
57
#define PI 3.141592654
57
#define PI 3.141592654
58
58
59
#define SRC(buf) ((ALuint)buf->ptr3D)
59
#define SRC(buf) ( (ALuint) PTR2INT(buf->ptr3D) )
60
#define BUF(buf) ((ALuint)buf->ptr)
60
#define BUF(buf) ( (ALuint) PTR2INT(buf->ptr) )
61
61
62
//enum { VX, VY, VZ };
62
//enum { VX, VY, VZ };
63
63
Lines 233-240 sfxbuffer_t* DS_SFX_CreateBuffer(int fla Link Here
233
    // Create the buffer object.
233
    // Create the buffer object.
234
    buf = static_cast<sfxbuffer_t*>(Z_Calloc(sizeof(*buf), PU_APPSTATIC, 0));
234
    buf = static_cast<sfxbuffer_t*>(Z_Calloc(sizeof(*buf), PU_APPSTATIC, 0));
235
235
236
    buf->ptr = (void*) bufName;
236
    buf->ptr = INT2PTR(void, bufName);
237
    buf->ptr3D = (void*) srcName;
237
    buf->ptr3D = INT2PTR(void, srcName);
238
    buf->bytes = bits / 8;
238
    buf->bytes = bits / 8;
239
    buf->rate = rate;
239
    buf->rate = rate;
240
    buf->flags = flags;
240
    buf->flags = flags;

Return to bug 452262