Cleanup the examples' includes

This commit is contained in:
Chris Robinson 2019-07-29 08:16:39 -07:00
parent d38d255364
commit 40e937c63a
11 changed files with 54 additions and 32 deletions

View File

@ -8,29 +8,44 @@
#include <functional>
#include <algorithm>
#include <iostream>
#include <utility>
#include <iomanip>
#include <cstdint>
#include <cstring>
#include <limits>
#include <thread>
#include <chrono>
#include <cstdlib>
#include <atomic>
#include <cerrno>
#include <chrono>
#include <cstdio>
#include <memory>
#include <string>
#include <thread>
#include <vector>
#include <mutex>
#include <deque>
#include <array>
#include <cmath>
#include <string>
#include <deque>
#include <mutex>
#include <ratio>
extern "C" {
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
#include "libavformat/avio.h"
#include "libavutil/time.h"
#include "libavformat/version.h"
#include "libavutil/avutil.h"
#include "libavutil/error.h"
#include "libavutil/frame.h"
#include "libavutil/mem.h"
#include "libavutil/pixfmt.h"
#include "libavutil/avstring.h"
#include "libavutil/rational.h"
#include "libavutil/samplefmt.h"
#include "libavutil/time.h"
#include "libavutil/version.h"
#include "libavutil/channel_layout.h"
#include "libswscale/swscale.h"
#include "libswresample/swresample.h"
struct SwsContext;
}
#include "SDL.h"

View File

@ -24,11 +24,14 @@
/* This file contains an example for selecting an HRTF. */
#include <stdio.h>
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <SDL_sound.h>
#include "SDL_sound.h"
#include "SDL_audio.h"
#include "SDL_stdinc.h"
#include "AL/al.h"
#include "AL/alc.h"

View File

@ -27,10 +27,11 @@
#include <stdio.h>
#include <assert.h>
#include <SDL_sound.h>
#include "SDL_sound.h"
#include "SDL_audio.h"
#include "SDL_stdinc.h"
#include "AL/al.h"
#include "AL/alc.h"
#include "AL/alext.h"
#include "common/alhelpers.h"

View File

@ -26,11 +26,14 @@
* output handling.
*/
#include <stdio.h>
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <SDL.h>
#include "SDL.h"
#include "SDL_audio.h"
#include "SDL_error.h"
#include "SDL_stdinc.h"
#include "AL/al.h"
#include "AL/alc.h"

View File

@ -29,15 +29,18 @@
* listener.
*/
#include <stdio.h>
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <SDL_sound.h>
#include "SDL_sound.h"
#include "SDL_audio.h"
#include "SDL_stdinc.h"
#include "AL/al.h"
#include "AL/alc.h"
#include "AL/alext.h"
#include "AL/efx.h"
#include "AL/efx-presets.h"
#include "common/alhelpers.h"

View File

@ -27,10 +27,11 @@
#include <stdio.h>
#include <assert.h>
#include <SDL_sound.h>
#include "SDL_sound.h"
#include "SDL_audio.h"
#include "SDL_stdinc.h"
#include "AL/al.h"
#include "AL/alc.h"
#include "common/alhelpers.h"

View File

@ -28,7 +28,6 @@
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <math.h>
#include "AL/al.h"
#include "AL/alc.h"

View File

@ -27,11 +27,13 @@
#include <stdio.h>
#include <assert.h>
#include <SDL_sound.h>
#include "SDL_sound.h"
#include "SDL_audio.h"
#include "SDL_stdinc.h"
#include "AL/al.h"
#include "AL/alc.h"
#include "AL/alext.h"
#include "AL/efx.h"
#include "AL/efx-presets.h"
#include "common/alhelpers.h"

View File

@ -27,14 +27,13 @@
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <signal.h>
#include <assert.h>
#include <SDL_sound.h>
#include "SDL_sound.h"
#include "SDL_audio.h"
#include "SDL_stdinc.h"
#include "AL/al.h"
#include "AL/alc.h"
#include "AL/alext.h"
#include "common/alhelpers.h"

View File

@ -28,16 +28,14 @@
* finding an appropriate buffer format, and getting readable strings for
* channel configs and sample types. */
#include <time.h>
#include "alhelpers.h"
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include "AL/al.h"
#include "AL/alc.h"
#include "AL/alext.h"
#include "alhelpers.h"
/* InitAL opens a device and sets up a context using default attributes, making

View File

@ -1,9 +1,7 @@
#ifndef ALHELPERS_H
#define ALHELPERS_H
#include "AL/alc.h"
#include "AL/al.h"
#include "AL/alext.h"
#ifdef __cplusplus
extern "C" {