#pragma once
#include <vector>

#include <nlohmann/json.hpp>

using namespace std;
using json = nlohmann::json;


class packager
{

public:
	packager();
	void insertnewspeech(float m_Azimuth, float m_Elevation, float m_Distance, unsigned char m_DistanceFlag, int m_blocksize, double* m_interleavedmultichannel, int ChannelID, string uuid, unsigned char * in_array, int samplebytes);
	unsigned char* createdata(json audioscene_geometry, json microphonearray_geometry, double* interleavedmultichannelaudio, int* messagesize);
private:
	int samplingrates[8] = { 16000,24000,32000,44100,48000,64000,96000,192000 };
	int sampletypes[3] = { 16,24,32 };
	int blocksizes[7] = { 64,128,256,512,1024,2048,4096 };
	int total_msgsize;
	unsigned char* packagedcontent;

};

