Giter Site home page Giter Site logo

Comments (2)

ChristopheJacquet avatar ChristopheJacquet commented on July 18, 2024

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.

ChristopheJacquet avatar ChristopheJacquet commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.