medfall

A super great game engine
Log | Files | Refs

win32_audio_output.h (362B)


      1 #pragma once
      2 
      3 #include "intrinsics.h"
      4 #include "platform_thread.h"
      5 #include "platform_atomic.h"
      6 
      7 #include <windows.h>
      8 
      9 #pragma warning( push )
     10 #pragma warning( disable : 4800 )
     11 #include <xaudio2.h>
     12 #pragma warning( pop )
     13 
     14 struct AudioOutputDevice {
     15 	IXAudio2SourceVoice * voice;
     16 	HANDLE event;
     17 	Thread thread;
     18 	atomic_u32 shutting_down;
     19 
     20 	AudioBuffer buffer;
     21 };