summaryrefslogtreecommitdiff
path: root/rotord/libavaudioloader.h
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/libavaudioloader.h')
-rw-r--r--rotord/libavaudioloader.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/rotord/libavaudioloader.h b/rotord/libavaudioloader.h
deleted file mode 100644
index 8c4ddf1..0000000
--- a/rotord/libavaudioloader.h
+++ /dev/null
@@ -1,41 +0,0 @@
-#include <stdlib.h>
-#include <stdio.h>
-#include <string>
-#include <math.h>
-#include <iostream>
-#include <vector>
-
-extern "C" {
- #include <libavutil/mathematics.h>
- #include <libavformat/avformat.h>
- #include <libswscale/swscale.h>
-}
-
-namespace libav {
-
- class Audioloader{
- public:
- Audioloader(){ready=false;sample_start=0;sample_end=0;};
- bool setup(const std::string &filename);
- AVFrame* get_frame();
- uint16_t* get_samples(int num);
- AVPacket* get_packet();
- bool close();
- bool ready;
-
- AVCodecContext* codecContext;
- AVFormatContext* formatContext;
- private:
- std::vector<uint16_t> buffer;
- AVFrame* frame;
-
- AVStream* audioStream;
-
- AVPacket packet;
- int sample_end;
- int sample_start;
- int channels; //necessary to handle final packet
- };
-
-
-}