Audio::Radio::V4L
use Audio::Radio::V4L; my $radio = Audio::Radio::V4L->new; $radio->open("/dev/radio"); $radio->set_frequency( 88800 ); # frequency in khz sleep( 10 ); $radio->close();
Audio::Radio::V4L uses the Video4Linux interface to control radio receivers (eg. internal radio cards or USB receivers).
Open the device via open(). Get the highest and lowest supported frequency of the radio: get_freq_min() and get_freq_max(). Set the frequency with set_frequency(). Listen or record. Close with close().
Each public function/method is described here. These are how you should interact with this module.
Usage : new Audio::Radio::V4L Purpose : creates a new radio object Returns : the new object Argument : none
Usage : $radio->open("/dev/radio") Purpose : opens the radio-device, initializes values (max-freq, min-freq) Returns : self Argument : the device Throws : croaks on problems
Usage : $radio->get_devicename() Returns : returns the devicename of the opened radio Argument : none
Usage : $radio->get_freq_min() Returns : the minimal supported frequency of the radio Argument : none
Usage : $radio->get_freq_max() Returns : the maximal supported frequency of the radio Argument : none
Usage : $radio->close() Purpose : closes the device Returns : self Argument : none Throws : croaks on problems
Usage : $radio->set_frequency( 106500 ); Purpose : sets the frequency of the device Returns : self Argument : the frequency in khz
Nathanael Obermayer natom-cpan@smi2le.net http://neuronenstern.de
Copyright (c) 2003 Nathanael Obermayer. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
Video::Capture::V4l
To install Audio::Radio::V4L, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Audio::Radio::V4L
CPAN shell
perl -MCPAN -e shell install Audio::Radio::V4L
For more information on module installation, please visit the detailed CPAN module installation guide.