Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Xenotater

Pages: [1]
1
Audio / Re: Unhandled Exception Openal32.dll
« on: June 06, 2017, 03:31:23 am »
For some reason the issue has resolved itself for me, I'm not sure why as I changed absolutely nothing. I'm thankful that it's working now, but I'd really like to know why this happened so I can avoid it happening in the future, particularly since I plan to start a much bigger project soon that will require OpenAL. Thanks for your help.

2
Audio / Re: Unhandled Exception Openal32.dll
« on: May 23, 2017, 09:34:03 pm »
SFML 2.4.2 for Visual Studio.

3
Audio / Re: Unhandled Exception Openal32.dll
« on: May 23, 2017, 02:51:50 pm »
Nonono, I know not to go around downloading dll files. I used the one provided in SFML's bin folder.  :P

4
Audio / Unhandled Exception Openal32.dll
« on: May 22, 2017, 07:43:36 pm »
I just began working with SFML in my C++ intro class, so I apologize if I'm being a bit dumb here. However, I recently made a simple game and wanted to include some background music and a short clip to play. The sounds play perfectly fine and function exactly as I'd like them to. However, after about 7 minutes (give or take) of runtime, my program crashes. The error says something about an unhandled exception by openal32.dll (which I know handles the audio) and something about an access violation.
Quote
Unhandled exception at 0x00007FFF9B7AB20E (openal32.dll) in <PROGRAM_NAME>.exe: 0xC0000005: Access violation reading location 0x00007A3C0000E684.
I'm pretty sure I'm not destroying the buffer or anything simple like that, but I'd like some help with this if possible. Here's the portion of my code that's playing audio:

Quote
SoundBuffer buffer;
   buffer.loadFromFile("Clip.ogg");
   Sound clip;
   clip.setBuffer(buffer);

   Music music;
   music.openFromFile("Music.ogg");
   music.setVolume(10);
   music.setLoop(true);
   music.play();

   while (window.isOpen())
   {
      menu(window, inGame, asX, ai, aiDifficulty);
      if (ai)
      {
         clip.play();
      }

That's all I believe is necessary, but let me know if more is needed. I'd appreciate some help if possible so I can make this program reliable, thanks.

Pages: [1]