diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-06-12 17:03:42 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-06-12 17:03:42 +0100 |
| commit | 78eb4c35ae7ee52615c62abb3683595fe6384206 (patch) | |
| tree | bf5a36055ce46dea5ff370c59def1d7c2f4e700c /rotord/libavaudioloader.h | |
| parent | 29da1abab9aa2714062a95d6b98afbde23bd763f (diff) | |
file clean
Diffstat (limited to 'rotord/libavaudioloader.h')
| -rw-r--r-- | rotord/libavaudioloader.h | 41 |
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 - }; - - -} |
