diff --git a/src/ngfmdmasync.cpp b/src/ngfmdmasync.cpp index 7512e0a..7b9c1cf 100644 --- a/src/ngfmdmasync.cpp +++ b/src/ngfmdmasync.cpp @@ -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; diff --git a/src/ngfmdmasync.h b/src/ngfmdmasync.h index c2491e3..227245e 100644 --- a/src/ngfmdmasync.h +++ b/src/ngfmdmasync.h @@ -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