miegl / PiFmAdv

Advanced Raspberry Pi FM transmitter with RDS encoding
GNU General Public License v3.0
487 stars 82 forks source link

Modifying for use as an MPX generator #51

Closed Anthony96922 closed 5 years ago

Anthony96922 commented 5 years ago

I want to use this as an FM MPX generator with a 192kHz sound card. I've removed most of the Raspberry Pi transmitter code so now I'm left with only the stuff needed to produce MPX. I'm able to upmix the output audio to 2 channels and write the samples to a .wav file but now I'm figuring out how to resample it to 192kHz and output the audio to a sound card without piping the output to aplay. Implementing a sound card interface with libao might be possible but I'm not really good at writing new code. :(

Anthony96922 commented 5 years ago

I have managed to make a fully functional MPX generator using this once I figured out how to use libsamplerate and libao. If you're interested: https://github.com/Anthony96922/mpxgen

miegl commented 5 years ago

Fantastic work! Can I commit your changes some time in the future to further enhance this project? Thanks!

Anthony96922 commented 5 years ago

Go ahead! Feel free to add new improvements! :)