Comments (2)
Sorry for your Pi...
Well, the software was not designed to read audio from a FIFO, only from a plain file or from stdin... When reading from a file, it rewinds at the beginning of the file when it reaches the end. It is not designed to read several files in a row. I suspect that is what caused your problem.
Here is a possible scenario: at the end of the first file, PiFmRds could not rewind in the file and went astray. This caused memory corruption that somehow disabled the signals handlers, the one that normally deactivate the DMA transfers when terminating the program. So when you hit control-C, the process was terminated but the DMA transfers went on, doing absolute nonsense with the hardware.
So I can add the correct handling of FIFOs to my todo-list, but I'm sorry to tell you that I'm not very optimistic about your Pi...
from pifmrds.
I had time to look at the code. It confirms my above assumptions: after failing to rewind in the audio (using sf_seek), the program must have done nonsense, as there was no test to check the success of sf_seek. My latest commit adds such a sanity check, so now if you read audio from a FIFO, the program safely exits after the end of the first file you send it.
Being able to read several successive files is another story. I might add that feature in the future.
Could you revive your Pi, by any chance?
from pifmrds.
Related Issues (20)
- What Antenna do i get for a raspberry 3 B+. Please Help HOT 1
- Can I stream RDS to external FM+RDS transmitter? HOT 1
- Make file is making error HOT 1
- just blocking HOT 2
- Make doesn't make a nothing HOT 9
- Doesn't compile! HOT 3
- cant pipe audio on pi4 using pulseaudio HOT 1
- Gives error when i use the make command HOT 4
- While compiling I get this soxr.h missing HOT 1
- Support for non-ASCII characters (RDS codes > 0x80) HOT 3
- Hardware related issue with additional FM transmitter HOT 7
- compile issue HOT 2
- Audio too slow HOT 2
- Instant crash on launch on Pi 4 HOT 5
- Mp3 to Wav converter HOT 1
- lack fpu HOT 4
- hi! Could you also make it pi5 compatible too? HOT 5
- Audio signal loss during mouse inactivity with pifmrds on Raspberry Pi 4 HOT 1
- Make Raspberry Pi 5 (GPIO23) Compatible HOT 2
- 19k Signal and Increasing RDS Power HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pifmrds.