// Common, group Output
// Copyright Alexander Liss

#ifndef __SOUNDDEVICE_H__
#define __SOUNDDEVICE_H__

#include "array.h"
#include "sound.h"

namespace Output
{
const int	std_rate=44000;
}

	// SoundDevice

struct SoundDevice
{
	int rate,bits;
	SimpleArray<float> equalizer;

SoundDevice():rate(Output::std_rate),bits(32){}

};

int pack(CommBuffer& d,const SoundDevice& z);
int unpack(SoundDevice& z,const CommBuffer& s,ReadControl& c);


int encode(CommBuffer& d,const SoundSamples& ,const SoundDevice& device);

#endif