kopia lustrzana https://github.com/markondej/fm_transmitter
better sound quality
rodzic
8f20b83934
commit
66316f0011
|
@ -35,7 +35,7 @@
|
|||
<vector>
|
||||
"pcm_wave_header.h"
|
||||
|
||||
1435349161 source:/home/pi/Projects/fm_transmitter/wave_reader.cpp
|
||||
1435350606 source:/home/pi/Projects/fm_transmitter/wave_reader.cpp
|
||||
"wave_reader.h"
|
||||
<string.h>
|
||||
<exception>
|
||||
|
|
|
@ -42,7 +42,7 @@ void Transmitter::transmit(std::vector<float> *samples, unsigned int sampleRate)
|
|||
temp = offset;
|
||||
if (offset >= length) break;
|
||||
|
||||
ACCESS(peripherals, 0x00101074) = (0x5A << 24) | clockDivisor - (int)(round(data[offset] * 10.0));
|
||||
ACCESS(peripherals, 0x00101074) = (0x5A << 24) | clockDivisor - (int)(round(data[offset] * 16.0));
|
||||
|
||||
while (temp >= offset) {
|
||||
usleep(1);
|
||||
|
|
Ładowanie…
Reference in New Issue