Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS Sonoma Failed to load library: CoreFoundation.framework/CoreFoundation #768

Closed
yhbsh opened this issue Nov 3, 2023 · 1 comment
Closed

Comments

@yhbsh
Copy link

yhbsh commented Nov 3, 2023

Platform: macOS sonoma 14.0 (23A344)
Device: Mac Studio Apple M2 Max Ship

I tried testing the regular hello world in README.md to play a simple sound.wav file. The program compiles successfully, runs and no audio is playing?!

Program:

#include <stdio.h>


#define MA_DEBUG_OUTPUT
#define MINIAUDIO_IMPLEMENTATION
#include "miniaudio.h"


int main() {
    ma_result result;
    ma_engine engine;

    result = ma_engine_init(NULL, &engine);
    if (result != MA_SUCCESS) {
        return -1;
    }

    ma_engine_play_sound(&engine, "sound.wav", NULL);

    printf("Press Enter to quit...");
    getchar();

    ma_engine_uninit(&engine);

    return 0;
}

Debug Output:

DEBUG: WASAPI backend is disabled.
DEBUG: DirectSound backend is disabled.
DEBUG: WinMM backend is disabled.
DEBUG: Attempting to initialize Core Audio backend...
DEBUG: Loading library: CoreFoundation.framework/CoreFoundation
INFO: Failed to load library: CoreFoundation.framework/CoreFoundation
DEBUG: Failed to initialize Core Audio backend.
DEBUG: sndio backend is disabled.
DEBUG: audio(4) backend is disabled.
DEBUG: OSS backend is disabled.
DEBUG: PulseAudio backend is disabled.
DEBUG: ALSA backend is disabled.
DEBUG: JACK backend is disabled.
DEBUG: AAudio backend is disabled.
DEBUG: OpenSL|ES backend is disabled.
DEBUG: Web Audio backend is disabled.
DEBUG: Failed to initialize Custom backend.
DEBUG: Attempting to initialize Null backend...
DEBUG: System Architecture:
DEBUG:   Endian: LE
DEBUG:   SSE2:   NO
DEBUG:   AVX2:   NO
DEBUG:   NEON:   YES
INFO: [Null]
INFO:   NULL Playback Device (Playback)
INFO:     Format:      32-bit IEEE Floating Point -> 32-bit IEEE Floating Point
INFO:     Channels:    2 -> 2
INFO:     Sample Rate: 48000 -> 48000
INFO:     Buffer Size: 480*3 (1440)
INFO:     Conversion:
INFO:       Pre Format Conversion:  NO
INFO:       Post Format Conversion: NO
INFO:       Channel Routing:        NO
INFO:       Resampling:             NO
INFO:       Passthrough:            YES
INFO:       Channel Map In:         {CHANNEL_FRONT_LEFT CHANNEL_FRONT_RIGHT}
INFO:       Channel Map Out:        {CHANNEL_FRONT_LEFT CHANNEL_FRONT_RIGHT}
@mackron
Copy link
Owner

mackron commented Nov 3, 2023

This should be fixed in the dev branch. More info here: #750

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants