Debian Codegraph @

common/main/d_sdl_audio.h

raw
1 /*
2 * Portions of this file are copyright Rebirth contributors and licensed as
3 * described in COPYING.txt.
4 * See COPYING.txt for license details.
5 */
6
7 #pragma once
8 #include <SDL_audio.h>
9
10 namespace dcx {
11
12 struct RAII_SDL_LockAudio
13 {
14 RAII_SDL_LockAudio()
15 {
16 SDL_LockAudio();
17 }
18 ~RAII_SDL_LockAudio()
19 {
20 SDL_UnlockAudio();
21 }
22 RAII_SDL_LockAudio(const RAII_SDL_LockAudio &) = delete;
23 RAII_SDL_LockAudio &operator=(const RAII_SDL_LockAudio &) = delete;
24 };
25
26 }