From d8a0eed472b2e879be41bcb86601aa9febfa623f Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Mon, 28 Jul 2014 08:29:11 -0700 Subject: [PATCH] Moving PNG/JPEG code from 'graphics' to 'format', beginning work on audio format code --- project/Build.xml | 4 +- project/include/audio/Sound.h | 20 ++ project/include/{graphics => format}/JPEG.h | 6 +- project/include/format/OGG.h | 26 ++ project/include/{graphics => format}/PNG.h | 6 +- project/include/format/WAV.h | 26 ++ project/include/{io => utils}/Resource.h | 4 +- project/src/ExternalInterface.cpp | 4 +- project/src/{graphics => format}/JPEG.cpp | 2 +- project/src/{graphics => format}/PNG.cpp | 2 +- project/src/format/WAV.cpp | 266 ++++++++++++++++++++ project/src/utils/FileIO.cpp | 2 +- 12 files changed, 353 insertions(+), 15 deletions(-) create mode 100644 project/include/audio/Sound.h rename project/include/{graphics => format}/JPEG.h (64%) create mode 100644 project/include/format/OGG.h rename project/include/{graphics => format}/PNG.h (65%) create mode 100644 project/include/format/WAV.h rename project/include/{io => utils}/Resource.h (79%) rename project/src/{graphics => format}/JPEG.cpp (99%) rename project/src/{graphics => format}/PNG.cpp (99%) create mode 100644 project/src/format/WAV.cpp diff --git a/project/Build.xml b/project/Build.xml index bd9b8d422..c404de852 100644 --- a/project/Build.xml +++ b/project/Build.xml @@ -37,7 +37,7 @@ - + @@ -83,7 +83,7 @@ - + diff --git a/project/include/audio/Sound.h b/project/include/audio/Sound.h new file mode 100644 index 000000000..723805f32 --- /dev/null +++ b/project/include/audio/Sound.h @@ -0,0 +1,20 @@ +#ifndef LIME_AUDIO_SOUND_H +#define LIME_AUDIO_SOUND_H + + +namespace lime { + + + class Sound { + + + public: + + + }; + + +} + + +#endif \ No newline at end of file diff --git a/project/include/graphics/JPEG.h b/project/include/format/JPEG.h similarity index 64% rename from project/include/graphics/JPEG.h rename to project/include/format/JPEG.h index 93654aee9..8b2989b4e 100644 --- a/project/include/graphics/JPEG.h +++ b/project/include/format/JPEG.h @@ -1,9 +1,9 @@ -#ifndef LIME_GRAPHICS_JPEG_H -#define LIME_GRAPHICS_JPEG_H +#ifndef LIME_FORMAT_JPEG_H +#define LIME_FORMAT_JPEG_H #include -#include +#include namespace lime { diff --git a/project/include/format/OGG.h b/project/include/format/OGG.h new file mode 100644 index 000000000..11d5e975a --- /dev/null +++ b/project/include/format/OGG.h @@ -0,0 +1,26 @@ +#ifndef LIME_FORMAT_OGG_H +#define LIME_FORMAT_OGG_H + + +#include