audio-ess/ewolsa/LoadedFile.h
2014-04-03 11:00:51 +02:00

40 lines
712 B
C++

/**
* @author Edouard DUPIN
*
* @copyright 2011, Edouard DUPIN, all right reserved
*
* @license BSD 3 clauses (see license file)
*/
#ifndef __EWOLSA_LOADED_FILE_H__
#define __EWOLSA_LOADED_FILE_H__
#include <etk/types.h>
#include <thread>
#include <pthread.h>
namespace ewolsa {
class LoadedFile {
private:
std::thread* m_thread;
pthread_t m_thread2;
public:
LoadedFile(const std::string& _fileName, int8_t _nbChanRequested=1);
~LoadedFile(void);
std::string m_file;
int32_t m_nbSamples;
int32_t m_nbChanRequested;
int32_t m_requestedTime;
int16_t* m_data;
public:
const std::string& getName(void) {
return m_file;
};
void decode(void);
};
};
#endif