Skip to content

Conversation

nwhasd
Copy link

@nwhasd nwhasd commented Feb 4, 2024

crash Set a breakpoint, debug the code step by step, and the program will crash. Commenting out the StopMusicStream function has a greater chance of crashing.
#include <iostream>
#include "raudio.h"

int main()
{
    InitAudioDevice();
    Music* pMusic = new Music();
    *pMusic = LoadMusicStream("C:/music.mp3");
    PlayMusicStream(*pMusic);
    UpdateMusicStream(*pMusic);
    // StopMusicStream(*pMusic);
    UnloadMusicStream(*pMusic);
    delete(pMusic);
    CloseAudioDevice();
    return 0;
}

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

Successfully merging this pull request may close these issues.

1 participant