minimodem: auto get samplerate from audio files

This commit is contained in:
Kamal Mostafa 2012-09-02 18:10:59 -07:00
parent 0f3338a91b
commit a172268117
1 changed files with 2 additions and 0 deletions

View File

@ -698,6 +698,8 @@ main( int argc, char*argv[] )
if ( ! sa )
return 1;
sample_rate = simpleaudio_get_rate(sa);
if ( rxnoise_factor != 0.0 )
simpleaudio_set_rxnoise(sa, rxnoise_factor);