Frequency in float instead of double
This commit is contained in:
parent
825d770993
commit
f48edc4dc5
2 changed files with 4 additions and 4 deletions
|
@ -108,7 +108,7 @@ void ngfmdmasync::SetDmaAlgo()
|
|||
//fprintf(stderr,"Last cbp : src %x dest %x next %x\n",cbp->src,cbp->dst,cbp->next);
|
||||
}
|
||||
|
||||
void ngfmdmasync::SetFrequencySample(uint32_t Index,double Frequency)
|
||||
void ngfmdmasync::SetFrequencySample(uint32_t Index,float Frequency)
|
||||
{
|
||||
Index=Index%buffersize;
|
||||
sampletab[Index]=(0x5A<<24)|GetMasterFrac(Frequency);
|
||||
|
@ -116,7 +116,7 @@ void ngfmdmasync::SetFrequencySample(uint32_t Index,double Frequency)
|
|||
PushSample(Index);
|
||||
}
|
||||
|
||||
void ngfmdmasync::SetFrequencySamples(double *sample,size_t Size)
|
||||
void ngfmdmasync::SetFrequencySamples(float *sample,size_t Size)
|
||||
{
|
||||
size_t NbWritten=0;
|
||||
int OSGranularity=100;
|
||||
|
|
|
@ -17,8 +17,8 @@ class ngfmdmasync:public bufferdma,public clkgpio,public pwmgpio,public pcmgpio
|
|||
void SetDmaAlgo();
|
||||
|
||||
void SetPhase(bool inversed);
|
||||
void SetFrequencySample(uint32_t Index,double Frequency);
|
||||
void SetFrequencySamples(double *sample,size_t Size);
|
||||
void SetFrequencySample(uint32_t Index,float Frequency);
|
||||
void SetFrequencySamples(float *sample,size_t Size);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue