OpenAL.c
1 /* 2 This file is part of Darling. 3 4 Copyright (C) 2019 Lubos Dolezel 5 6 Darling is free software: you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation, either version 3 of the License, or 9 (at your option) any later version. 10 11 Darling is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 20 21 #include <OpenAL/OpenAL.h> 22 #include <stdlib.h> 23 #include <stdio.h> 24 25 static int verbose = 0; 26 27 __attribute__((constructor)) 28 static void initme(void) { 29 verbose = getenv("STUB_VERBOSE") != NULL; 30 } 31 32 void* alBuffer3f(void) 33 { 34 if (verbose) puts("STUB: alBuffer3f called"); 35 return NULL; 36 } 37 38 void* alBuffer3i(void) 39 { 40 if (verbose) puts("STUB: alBuffer3i called"); 41 return NULL; 42 } 43 44 void* alBufferData(void) 45 { 46 if (verbose) puts("STUB: alBufferData called"); 47 return NULL; 48 } 49 50 void* alBufferDataStatic(void) 51 { 52 if (verbose) puts("STUB: alBufferDataStatic called"); 53 return NULL; 54 } 55 56 void* alBufferf(void) 57 { 58 if (verbose) puts("STUB: alBufferf called"); 59 return NULL; 60 } 61 62 void* alBufferfv(void) 63 { 64 if (verbose) puts("STUB: alBufferfv called"); 65 return NULL; 66 } 67 68 void* alBufferi(void) 69 { 70 if (verbose) puts("STUB: alBufferi called"); 71 return NULL; 72 } 73 74 void* alBufferiv(void) 75 { 76 if (verbose) puts("STUB: alBufferiv called"); 77 return NULL; 78 } 79 80 void* alDeleteBuffers(void) 81 { 82 if (verbose) puts("STUB: alDeleteBuffers called"); 83 return NULL; 84 } 85 86 void* alDeleteSources(void) 87 { 88 if (verbose) puts("STUB: alDeleteSources called"); 89 return NULL; 90 } 91 92 void* alDisable(void) 93 { 94 if (verbose) puts("STUB: alDisable called"); 95 return NULL; 96 } 97 98 void* alDistanceModel(void) 99 { 100 if (verbose) puts("STUB: alDistanceModel called"); 101 return NULL; 102 } 103 104 void* alDopplerFactor(void) 105 { 106 if (verbose) puts("STUB: alDopplerFactor called"); 107 return NULL; 108 } 109 110 void* alDopplerVelocity(void) 111 { 112 if (verbose) puts("STUB: alDopplerVelocity called"); 113 return NULL; 114 } 115 116 void* alEnable(void) 117 { 118 if (verbose) puts("STUB: alEnable called"); 119 return NULL; 120 } 121 122 void* alGenBuffers(void) 123 { 124 if (verbose) puts("STUB: alGenBuffers called"); 125 return NULL; 126 } 127 128 void* alGenSources(void) 129 { 130 if (verbose) puts("STUB: alGenSources called"); 131 return NULL; 132 } 133 134 void* alGetBoolean(void) 135 { 136 if (verbose) puts("STUB: alGetBoolean called"); 137 return NULL; 138 } 139 140 void* alGetBooleanv(void) 141 { 142 if (verbose) puts("STUB: alGetBooleanv called"); 143 return NULL; 144 } 145 146 void* alGetBuffer3f(void) 147 { 148 if (verbose) puts("STUB: alGetBuffer3f called"); 149 return NULL; 150 } 151 152 void* alGetBuffer3i(void) 153 { 154 if (verbose) puts("STUB: alGetBuffer3i called"); 155 return NULL; 156 } 157 158 void* alGetBufferf(void) 159 { 160 if (verbose) puts("STUB: alGetBufferf called"); 161 return NULL; 162 } 163 164 void* alGetBufferfv(void) 165 { 166 if (verbose) puts("STUB: alGetBufferfv called"); 167 return NULL; 168 } 169 170 void* alGetBufferi(void) 171 { 172 if (verbose) puts("STUB: alGetBufferi called"); 173 return NULL; 174 } 175 176 void* alGetBufferiv(void) 177 { 178 if (verbose) puts("STUB: alGetBufferiv called"); 179 return NULL; 180 } 181 182 void* alGetDouble(void) 183 { 184 if (verbose) puts("STUB: alGetDouble called"); 185 return NULL; 186 } 187 188 void* alGetDoublev(void) 189 { 190 if (verbose) puts("STUB: alGetDoublev called"); 191 return NULL; 192 } 193 194 void* alGetEnumValue(void) 195 { 196 if (verbose) puts("STUB: alGetEnumValue called"); 197 return NULL; 198 } 199 200 void* alGetError(void) 201 { 202 if (verbose) puts("STUB: alGetError called"); 203 return NULL; 204 } 205 206 void* alGetFloat(void) 207 { 208 if (verbose) puts("STUB: alGetFloat called"); 209 return NULL; 210 } 211 212 void* alGetFloatv(void) 213 { 214 if (verbose) puts("STUB: alGetFloatv called"); 215 return NULL; 216 } 217 218 void* alGetInteger(void) 219 { 220 if (verbose) puts("STUB: alGetInteger called"); 221 return NULL; 222 } 223 224 void* alGetIntegerv(void) 225 { 226 if (verbose) puts("STUB: alGetIntegerv called"); 227 return NULL; 228 } 229 230 void* alGetListener3f(void) 231 { 232 if (verbose) puts("STUB: alGetListener3f called"); 233 return NULL; 234 } 235 236 void* alGetListener3i(void) 237 { 238 if (verbose) puts("STUB: alGetListener3i called"); 239 return NULL; 240 } 241 242 void* alGetListenerf(void) 243 { 244 if (verbose) puts("STUB: alGetListenerf called"); 245 return NULL; 246 } 247 248 void* alGetListenerfv(void) 249 { 250 if (verbose) puts("STUB: alGetListenerfv called"); 251 return NULL; 252 } 253 254 void* alGetListeneri(void) 255 { 256 if (verbose) puts("STUB: alGetListeneri called"); 257 return NULL; 258 } 259 260 void* alGetListeneriv(void) 261 { 262 if (verbose) puts("STUB: alGetListeneriv called"); 263 return NULL; 264 } 265 266 void* alGetProcAddress(void) 267 { 268 if (verbose) puts("STUB: alGetProcAddress called"); 269 return NULL; 270 } 271 272 void* alGetSource3f(void) 273 { 274 if (verbose) puts("STUB: alGetSource3f called"); 275 return NULL; 276 } 277 278 void* alGetSource3i(void) 279 { 280 if (verbose) puts("STUB: alGetSource3i called"); 281 return NULL; 282 } 283 284 void* alGetSourcef(void) 285 { 286 if (verbose) puts("STUB: alGetSourcef called"); 287 return NULL; 288 } 289 290 void* alGetSourcefv(void) 291 { 292 if (verbose) puts("STUB: alGetSourcefv called"); 293 return NULL; 294 } 295 296 void* alGetSourcei(void) 297 { 298 if (verbose) puts("STUB: alGetSourcei called"); 299 return NULL; 300 } 301 302 void* alGetSourceiv(void) 303 { 304 if (verbose) puts("STUB: alGetSourceiv called"); 305 return NULL; 306 } 307 308 void* alGetString(void) 309 { 310 if (verbose) puts("STUB: alGetString called"); 311 return NULL; 312 } 313 314 void* alHint(void) 315 { 316 if (verbose) puts("STUB: alHint called"); 317 return NULL; 318 } 319 320 void* alIsBuffer(void) 321 { 322 if (verbose) puts("STUB: alIsBuffer called"); 323 return NULL; 324 } 325 326 void* alIsEnabled(void) 327 { 328 if (verbose) puts("STUB: alIsEnabled called"); 329 return NULL; 330 } 331 332 void* alIsExtensionPresent(void) 333 { 334 if (verbose) puts("STUB: alIsExtensionPresent called"); 335 return NULL; 336 } 337 338 void* alIsSource(void) 339 { 340 if (verbose) puts("STUB: alIsSource called"); 341 return NULL; 342 } 343 344 void* alListener3f(void) 345 { 346 if (verbose) puts("STUB: alListener3f called"); 347 return NULL; 348 } 349 350 void* alListener3i(void) 351 { 352 if (verbose) puts("STUB: alListener3i called"); 353 return NULL; 354 } 355 356 void* alListenerf(void) 357 { 358 if (verbose) puts("STUB: alListenerf called"); 359 return NULL; 360 } 361 362 void* alListenerfv(void) 363 { 364 if (verbose) puts("STUB: alListenerfv called"); 365 return NULL; 366 } 367 368 void* alListeneri(void) 369 { 370 if (verbose) puts("STUB: alListeneri called"); 371 return NULL; 372 } 373 374 void* alListeneriv(void) 375 { 376 if (verbose) puts("STUB: alListeneriv called"); 377 return NULL; 378 } 379 380 void* alMacOSXGetRenderChannelCount(void) 381 { 382 if (verbose) puts("STUB: alMacOSXGetRenderChannelCount called"); 383 return NULL; 384 } 385 386 void* alMacOSXRenderChannelCount(void) 387 { 388 if (verbose) puts("STUB: alMacOSXRenderChannelCount called"); 389 return NULL; 390 } 391 392 void* alSetDouble(void) 393 { 394 if (verbose) puts("STUB: alSetDouble called"); 395 return NULL; 396 } 397 398 void* alSetInteger(void) 399 { 400 if (verbose) puts("STUB: alSetInteger called"); 401 return NULL; 402 } 403 404 void* alSource3f(void) 405 { 406 if (verbose) puts("STUB: alSource3f called"); 407 return NULL; 408 } 409 410 void* alSource3i(void) 411 { 412 if (verbose) puts("STUB: alSource3i called"); 413 return NULL; 414 } 415 416 void* alSourcePause(void) 417 { 418 if (verbose) puts("STUB: alSourcePause called"); 419 return NULL; 420 } 421 422 void* alSourcePausev(void) 423 { 424 if (verbose) puts("STUB: alSourcePausev called"); 425 return NULL; 426 } 427 428 void* alSourcePlay(void) 429 { 430 if (verbose) puts("STUB: alSourcePlay called"); 431 return NULL; 432 } 433 434 void* alSourcePlayv(void) 435 { 436 if (verbose) puts("STUB: alSourcePlayv called"); 437 return NULL; 438 } 439 440 void* alSourceQueueBuffers(void) 441 { 442 if (verbose) puts("STUB: alSourceQueueBuffers called"); 443 return NULL; 444 } 445 446 void* alSourceRewind(void) 447 { 448 if (verbose) puts("STUB: alSourceRewind called"); 449 return NULL; 450 } 451 452 void* alSourceRewindv(void) 453 { 454 if (verbose) puts("STUB: alSourceRewindv called"); 455 return NULL; 456 } 457 458 void* alSourceStop(void) 459 { 460 if (verbose) puts("STUB: alSourceStop called"); 461 return NULL; 462 } 463 464 void* alSourceStopv(void) 465 { 466 if (verbose) puts("STUB: alSourceStopv called"); 467 return NULL; 468 } 469 470 void* alSourceUnqueueBuffers(void) 471 { 472 if (verbose) puts("STUB: alSourceUnqueueBuffers called"); 473 return NULL; 474 } 475 476 void* alSourcef(void) 477 { 478 if (verbose) puts("STUB: alSourcef called"); 479 return NULL; 480 } 481 482 void* alSourcefv(void) 483 { 484 if (verbose) puts("STUB: alSourcefv called"); 485 return NULL; 486 } 487 488 void* alSourcei(void) 489 { 490 if (verbose) puts("STUB: alSourcei called"); 491 return NULL; 492 } 493 494 void* alSourceiv(void) 495 { 496 if (verbose) puts("STUB: alSourceiv called"); 497 return NULL; 498 } 499 500 void* alSpeedOfSound(void) 501 { 502 if (verbose) puts("STUB: alSpeedOfSound called"); 503 return NULL; 504 } 505 506 void* alcASAGetListener(void) 507 { 508 if (verbose) puts("STUB: alcASAGetListener called"); 509 return NULL; 510 } 511 512 void* alcASAGetSource(void) 513 { 514 if (verbose) puts("STUB: alcASAGetSource called"); 515 return NULL; 516 } 517 518 void* alcASASetListener(void) 519 { 520 if (verbose) puts("STUB: alcASASetListener called"); 521 return NULL; 522 } 523 524 void* alcASASetSource(void) 525 { 526 if (verbose) puts("STUB: alcASASetSource called"); 527 return NULL; 528 } 529 530 void* alcCaptureCloseDevice(void) 531 { 532 if (verbose) puts("STUB: alcCaptureCloseDevice called"); 533 return NULL; 534 } 535 536 void* alcCaptureOpenDevice(void) 537 { 538 if (verbose) puts("STUB: alcCaptureOpenDevice called"); 539 return NULL; 540 } 541 542 void* alcCaptureSamples(void) 543 { 544 if (verbose) puts("STUB: alcCaptureSamples called"); 545 return NULL; 546 } 547 548 void* alcCaptureStart(void) 549 { 550 if (verbose) puts("STUB: alcCaptureStart called"); 551 return NULL; 552 } 553 554 void* alcCaptureStop(void) 555 { 556 if (verbose) puts("STUB: alcCaptureStop called"); 557 return NULL; 558 } 559 560 void* alcCloseDevice(void) 561 { 562 if (verbose) puts("STUB: alcCloseDevice called"); 563 return NULL; 564 } 565 566 void* alcCreateContext(void) 567 { 568 if (verbose) puts("STUB: alcCreateContext called"); 569 return NULL; 570 } 571 572 void* alcDestroyContext(void) 573 { 574 if (verbose) puts("STUB: alcDestroyContext called"); 575 return NULL; 576 } 577 578 void* alcGetContextsDevice(void) 579 { 580 if (verbose) puts("STUB: alcGetContextsDevice called"); 581 return NULL; 582 } 583 584 void* alcGetCurrentContext(void) 585 { 586 if (verbose) puts("STUB: alcGetCurrentContext called"); 587 return NULL; 588 } 589 590 void* alcGetEnumValue(void) 591 { 592 if (verbose) puts("STUB: alcGetEnumValue called"); 593 return NULL; 594 } 595 596 void* alcGetError(void) 597 { 598 if (verbose) puts("STUB: alcGetError called"); 599 return NULL; 600 } 601 602 void* alcGetIntegerv(void) 603 { 604 if (verbose) puts("STUB: alcGetIntegerv called"); 605 return NULL; 606 } 607 608 void* alcGetProcAddress(void) 609 { 610 if (verbose) puts("STUB: alcGetProcAddress called"); 611 return NULL; 612 } 613 614 void* alcGetString(void) 615 { 616 if (verbose) puts("STUB: alcGetString called"); 617 return NULL; 618 } 619 620 void* alcIsExtensionPresent(void) 621 { 622 if (verbose) puts("STUB: alcIsExtensionPresent called"); 623 return NULL; 624 } 625 626 void* alcMacOSXGetMixerMaxiumumBusses(void) 627 { 628 if (verbose) puts("STUB: alcMacOSXGetMixerMaxiumumBusses called"); 629 return NULL; 630 } 631 632 void* alcMacOSXGetMixerOutputRate(void) 633 { 634 if (verbose) puts("STUB: alcMacOSXGetMixerOutputRate called"); 635 return NULL; 636 } 637 638 void* alcMacOSXGetRenderingQuality(void) 639 { 640 if (verbose) puts("STUB: alcMacOSXGetRenderingQuality called"); 641 return NULL; 642 } 643 644 void* alcMacOSXMixerMaxiumumBusses(void) 645 { 646 if (verbose) puts("STUB: alcMacOSXMixerMaxiumumBusses called"); 647 return NULL; 648 } 649 650 void* alcMacOSXMixerOutputRate(void) 651 { 652 if (verbose) puts("STUB: alcMacOSXMixerOutputRate called"); 653 return NULL; 654 } 655 656 void* alcMacOSXRenderingQuality(void) 657 { 658 if (verbose) puts("STUB: alcMacOSXRenderingQuality called"); 659 return NULL; 660 } 661 662 void* alcMakeContextCurrent(void) 663 { 664 if (verbose) puts("STUB: alcMakeContextCurrent called"); 665 return NULL; 666 } 667 668 void* alcOpenDevice(void) 669 { 670 if (verbose) puts("STUB: alcOpenDevice called"); 671 return NULL; 672 } 673 674 void* alcProcessContext(void) 675 { 676 if (verbose) puts("STUB: alcProcessContext called"); 677 return NULL; 678 } 679 680 void* alcSuspendContext(void) 681 { 682 if (verbose) puts("STUB: alcSuspendContext called"); 683 return NULL; 684 } 685 686 void* alutExit(void) 687 { 688 if (verbose) puts("STUB: alutExit called"); 689 return NULL; 690 } 691 692 void* alutInit(void) 693 { 694 if (verbose) puts("STUB: alutInit called"); 695 return NULL; 696 } 697 698 void* alutLoadWAVFile(void) 699 { 700 if (verbose) puts("STUB: alutLoadWAVFile called"); 701 return NULL; 702 } 703 704 void* alutLoadWAVMemory(void) 705 { 706 if (verbose) puts("STUB: alutLoadWAVMemory called"); 707 return NULL; 708 } 709 710 void* alutUnloadWAV(void) 711 { 712 if (verbose) puts("STUB: alutUnloadWAV called"); 713 return NULL; 714 }