3
0

MiniAudioIncludes.h 701 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. // This file exists to allow any preprocessor directives to be applied
  9. // before including miniaudio.h, if necessary. Note that the header is very large and contains the entirety
  10. // of miniaudio, so care should be taken not to actually use this in header files that themselves are included by
  11. // other header files, if at all possible.
  12. #pragma once
  13. extern "C" {
  14. #define STB_VORBIS_HEADER_ONLY
  15. #include <stb_vorbis.c> // Enables Vorbis decoding.
  16. #include <miniaudio.h>
  17. }