Audaspace:
[blender-staging.git] / intern / audaspace / OpenAL / AUD_OpenALDevice.cpp
index 3af13ec643f9eaf4e78dbe10c459be7a4f8239de..aa7cfcfd880d36f481680c80acd993d269f29556 100644 (file)
@@ -545,6 +545,8 @@ AUD_Handle* AUD_OpenALDevice::play(AUD_IFactory* factory, bool keep)
                                sound->isBuffered = true;
                                sound->data_end = true;
                                sound->loopcount = 0;
+                               sound->stop = NULL;
+                               sound->stop_data = NULL;
 
                                alcSuspendContext(m_context);
 
@@ -614,6 +616,8 @@ AUD_Handle* AUD_OpenALDevice::play(AUD_IFactory* factory, bool keep)
        sound->isBuffered = false;
        sound->data_end = false;
        sound->loopcount = 0;
+       sound->stop = NULL;
+       sound->stop_data = NULL;
 
        valid &= getFormat(sound->format, specs.specs);