Mercurial > hg > audio-file-loader
view src/AudioFile.h @ 2:fa2af670b5c5 tip
SoundFileLoader might have moved
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Fri, 06 Jan 2012 00:23:26 +0000 |
parents | ba2a17cf81bf |
children |
line wrap: on
line source
/* * audioFile.h * audioFileLoader3 * * Created by Andrew on 31/07/2011. * Copyright 2011 QMUL. All rights reserved. * */ //Holds the actual samples loaded in from the audio file //in a double matrix, so multilpe channels used #ifndef AUDIOFILE_H #define AUDIOFILE_H #include "ofMain.h" //fix bug where drawn before the start high up class AudioFile { public: AudioFile(); // constructor // ~AudioFile(); void drawAudioVectorMillis(double startTimeMillis, double endTimeMillis); void drawAudioVectorSamples(double startTimeSample, double endTimeSample); double getPosition(int index); typedef std::vector<double> DoubleVector; typedef std::vector<DoubleVector> DoubleMatrix; DoubleVector audioVector; DoubleMatrix audioMatrix; double screenHeight; int length; double audioScaleSamples; double playPosition;//in samples }; #endif