Lines 156-162
Link Here
|
156 |
/* load the sample from memory? */ |
156 |
/* load the sample from memory? */ |
157 |
if (size && memlocation) |
157 |
if (size && memlocation) |
158 |
{ |
158 |
{ |
159 |
m_buffers[buffer] = FSOUND_Sample_Load(buffer, (char*)memlocation, FSOUND_LOADMEMORY, size); |
159 |
m_buffers[buffer] = FSOUND_Sample_Load(buffer, (char*)memlocation, FSOUND_LOADMEMORY, |
|
|
160 |
NULL, size); |
160 |
|
161 |
|
161 |
/* if the loading succeeded, fill the waveslot with info */ |
162 |
/* if the loading succeeded, fill the waveslot with info */ |
162 |
if (m_buffers[buffer]) |
163 |
if (m_buffers[buffer]) |
Lines 179-185
Link Here
|
179 |
/* or from file? */ |
180 |
/* or from file? */ |
180 |
else |
181 |
else |
181 |
{ |
182 |
{ |
182 |
m_buffers[buffer] = FSOUND_Sample_Load(buffer, samplename.Ptr(), FSOUND_LOOP_NORMAL, NULL); |
183 |
m_buffers[buffer] = FSOUND_Sample_Load(buffer, samplename.Ptr(), FSOUND_LOOP_NORMAL, NULL, |
|
|
184 |
NULL); |
183 |
} |
185 |
} |
184 |
|
186 |
|
185 |
#ifdef ONTKEVER |
187 |
#ifdef ONTKEVER |
Lines 216-222
Link Here
|
216 |
void SND_FmodDevice::SetDopplerVelocity(MT_Scalar dopplervelocity) const |
218 |
void SND_FmodDevice::SetDopplerVelocity(MT_Scalar dopplervelocity) const |
217 |
{ |
219 |
{ |
218 |
/* not supported by fmod */ |
220 |
/* not supported by fmod */ |
219 |
FSOUND_3D_Listener_SetDopplerFactor(dopplervelocity); |
221 |
FSOUND_3D_SetDopplerFactor(dopplervelocity); |
220 |
} |
222 |
} |
221 |
|
223 |
|
222 |
|
224 |
|
Lines 224-230
Link Here
|
224 |
/* sets the global dopplerfactor */ |
226 |
/* sets the global dopplerfactor */ |
225 |
void SND_FmodDevice::SetDopplerFactor(MT_Scalar dopplerfactor) const |
227 |
void SND_FmodDevice::SetDopplerFactor(MT_Scalar dopplerfactor) const |
226 |
{ |
228 |
{ |
227 |
FSOUND_3D_Listener_SetDopplerFactor(dopplerfactor); |
229 |
FSOUND_3D_SetDopplerFactor(dopplerfactor); |
228 |
} |
230 |
} |
229 |
|
231 |
|
230 |
|
232 |
|
Lines 239-245
Link Here
|
239 |
|
241 |
|
240 |
void SND_FmodDevice::NextFrame() const |
242 |
void SND_FmodDevice::NextFrame() const |
241 |
{ |
243 |
{ |
242 |
FSOUND_3D_Update(); |
244 |
FSOUND_Update(); |
243 |
} |
245 |
} |
244 |
|
246 |
|
245 |
|
247 |
|
Lines 365-371
Link Here
|
365 |
case SND_LOOP_OFF: |
367 |
case SND_LOOP_OFF: |
366 |
{ |
368 |
{ |
367 |
#ifndef __APPLE__ |
369 |
#ifndef __APPLE__ |
368 |
char result = FSOUND_Sample_SetLoopMode(m_sources[id], FSOUND_LOOP_OFF); |
370 |
char result = FSOUND_Sample_SetMode(m_sources[id], FSOUND_LOOP_OFF); |
369 |
#else |
371 |
#else |
370 |
char result = FSOUND_SetLoopMode(m_sources[id], FSOUND_LOOP_OFF); |
372 |
char result = FSOUND_SetLoopMode(m_sources[id], FSOUND_LOOP_OFF); |
371 |
#endif |
373 |
#endif |
Lines 375-381
Link Here
|
375 |
case SND_LOOP_NORMAL: |
377 |
case SND_LOOP_NORMAL: |
376 |
{ |
378 |
{ |
377 |
#ifndef __APPLE__ |
379 |
#ifndef __APPLE__ |
378 |
char result = FSOUND_Sample_SetLoopMode(m_sources[id], FSOUND_LOOP_NORMAL); |
380 |
char result = FSOUND_Sample_SetMode(m_sources[id], FSOUND_LOOP_NORMAL); |
379 |
#else |
381 |
#else |
380 |
char result = FSOUND_SetLoopMode(m_sources[id], FSOUND_LOOP_NORMAL); |
382 |
char result = FSOUND_SetLoopMode(m_sources[id], FSOUND_LOOP_NORMAL); |
381 |
#endif |
383 |
#endif |
Lines 385-391
Link Here
|
385 |
case SND_LOOP_BIDIRECTIONAL: |
387 |
case SND_LOOP_BIDIRECTIONAL: |
386 |
{ |
388 |
{ |
387 |
#ifndef __APPLE__ |
389 |
#ifndef __APPLE__ |
388 |
char result = FSOUND_Sample_SetLoopMode(m_sources[id], FSOUND_LOOP_BIDI); |
390 |
char result = FSOUND_Sample_SetMode(m_sources[id], FSOUND_LOOP_BIDI); |
389 |
#else |
391 |
#else |
390 |
char result = FSOUND_SetLoopMode(m_sources[id], FSOUND_LOOP_BIDI); |
392 |
char result = FSOUND_SetLoopMode(m_sources[id], FSOUND_LOOP_BIDI); |
391 |
#endif |
393 |
#endif |
Lines 471-477
Link Here
|
471 |
void SND_FmodDevice::PlayCD(int track) const |
473 |
void SND_FmodDevice::PlayCD(int track) const |
472 |
{ |
474 |
{ |
473 |
#ifndef __APPLE__ |
475 |
#ifndef __APPLE__ |
474 |
signed char result = FSOUND_CD_Play(track); |
476 |
signed char result = FSOUND_CD_Play(0, track); |
475 |
#else |
477 |
#else |
476 |
signed char result = FSOUND_CD_Play(0, track); |
478 |
signed char result = FSOUND_CD_Play(0, track); |
477 |
#endif |
479 |
#endif |
Lines 486-492
Link Here
|
486 |
void SND_FmodDevice::PauseCD(bool pause) const |
488 |
void SND_FmodDevice::PauseCD(bool pause) const |
487 |
{ |
489 |
{ |
488 |
#ifndef __APPLE__ |
490 |
#ifndef __APPLE__ |
489 |
signed char result = FSOUND_CD_SetPaused(pause); |
491 |
signed char result = FSOUND_CD_SetPaused(0, pause); |
490 |
#else |
492 |
#else |
491 |
signed char result = FSOUND_CD_SetPaused(0, pause); |
493 |
signed char result = FSOUND_CD_SetPaused(0, pause); |
492 |
#endif |
494 |
#endif |
Lines 507-513
Link Here
|
507 |
if (pCD->GetUsed()) |
509 |
if (pCD->GetUsed()) |
508 |
{ |
510 |
{ |
509 |
#ifndef __APPLE__ |
511 |
#ifndef __APPLE__ |
510 |
signed char result = FSOUND_CD_Stop(); |
512 |
signed char result = FSOUND_CD_Stop(0); |
511 |
#else |
513 |
#else |
512 |
signed char result = FSOUND_CD_Stop(0); |
514 |
signed char result = FSOUND_CD_Stop(0); |
513 |
#endif |
515 |
#endif |
Lines 524-530
Link Here
|
524 |
void SND_FmodDevice::SetCDPlaymode(int playmode) const |
526 |
void SND_FmodDevice::SetCDPlaymode(int playmode) const |
525 |
{ |
527 |
{ |
526 |
#ifndef __APPLE__ |
528 |
#ifndef __APPLE__ |
527 |
FSOUND_CD_SetPlayMode(playmode); |
529 |
FSOUND_CD_SetPlayMode(0, playmode); |
528 |
#else |
530 |
#else |
529 |
FSOUND_CD_SetPlayMode(0, playmode); |
531 |
FSOUND_CD_SetPlayMode(0, playmode); |
530 |
#endif |
532 |
#endif |
Lines 540-546
Link Here
|
540 |
{ |
542 |
{ |
541 |
int volume = gain * 255; |
543 |
int volume = gain * 255; |
542 |
#ifndef __APPLE__ |
544 |
#ifndef __APPLE__ |
543 |
signed char result = FSOUND_CD_SetVolume(volume); |
545 |
signed char result = FSOUND_CD_SetVolume(0, volume); |
544 |
#else |
546 |
#else |
545 |
signed char result = FSOUND_CD_SetVolume(0, volume); |
547 |
signed char result = FSOUND_CD_SetVolume(0, volume); |
546 |
#endif |
548 |
#endif |