pods::SDL::CDTrack(3pm) User Contributed Perl Documentation pods::SDL::CDTrack(3pm)NAME
SDL::CDTrack -- SDL Bindings for structure SDL_CDTrack
CATEGORY
Core, CDROM, Structure
SYNOPSIS
use SDL;
use SDL::CDROM;
use SDL::CD ':status';
use SDL::CDTrack;
SDL::init( SDL_INIT_CDROM );
my $drives = SDL::CDROM::num_drives();
if( $drives > 0 )
{
my $CD = SDL::CD->new(0); #first drive's CD
if($CD)
{
if( $CD->status != CD_TRAYEMPTY )
{
my $track = SDL::CD->track(0);
}
}
}
CONSTANTS
The constants are exported by default. You can avoid this by doing:
use SDL::CDTrack ();
and access them directly:
SDL::CDTrack::SDL_AUDIO_TRACK;
or by choosing the export tags below:
Export tag: ':type'
SDL_AUDIO_TRACK
SDL_DATA_TRACK
METHOD
id
$track->id() # 0-99
Track number
type
$track->type() # SDL_AUDIO_TRACK or SDL_DATA_TRACK
Type of track
length
$track->length()
Length, in frames, of this track
offset
$track->offset()
Frame offset to the beginning of this track
SEE ALSO
SDL::CDROM, SDL::CD
AUTHORS
See "AUTHORS" in SDL.
perl v5.14.2 2012-05-28 pods::SDL::CDTrack(3pm)
Check Out this Related Man Page
pods::SDL::Mouse(3pm) User Contributed Perl Documentation pods::SDL::Mouse(3pm)NAME
SDL::Mouse - SDL Bindings for the Mouse device
CATEGORY
Core, Mouse
CONSTANTS
The constants for SDL::Mouse belong to SDL::Events/SDL::Event, under the export tag of ':state'.
METHODS
warp_mouse
SDL::Mouse::warp_mouse( $x, $y );
Set the position of the mouse cursor (generates a mouse motion event). Even if the mouse is warped to where it currently is, a mouse
motion event is generated.
set_cursor
SDL::Mouse::set_cursor( $cursor_object );
Sets the currently active cursor to the specified one. See SDL::Cursor for details on cursor objects. If the cursor is currently visible,
the change will be immediately represented on the display. "set_cursor()" can be used to force cursor redraw, if this is desired for any
reason.
get_cursor
my $cursor_object = SDL::Mouse::get_cursor;
Gets the currently active mouse cursor.
show_cursor
my $return = SDL::Mouse::show_cursor( $state );
Toggle whether or not the cursor is shown on the screen. Passing "SDL_ENABLE" displays the cursor and passing "SDL_DISABLE" hides it. The
current state of the mouse cursor can be queried by passing "SDL_QUERY", either "SDL_DISABLE" or "SDL_ENABLE" will be returned.
use SDL;
use SDL::Mouse;
use SDL::Video;
use SDL::Events ':state'; #For the constants
SDL::init(SDL_INIT_VIDEO);
SDL::Video::set_video_mode(640, 480, 16, SDL_SWSURFACE);
printf("Cursor is %s
", SDL::Mouse::show_cursor(SDL_QUERY) ? 'visible' : 'not visible');
sleep(3);
SDL::Mouse::show_cursor(SDL_DISABLE);
printf("Cursor is %s
", SDL::Mouse::show_cursor(SDL_QUERY) ? 'visible' : 'not visible');
sleep(3);
SDL::Mouse::show_cursor(SDL_ENABLE);
printf("Cursor is %s
", SDL::Mouse::show_cursor(SDL_QUERY) ? 'visible' : 'not visible');
sleep(3);
SEE ALSO
SDL::Cursor
AUTHORS
See "AUTHORS" in SDL.
perl v5.14.2 2012-05-28 pods::SDL::Mouse(3pm)
Is it possible to create the CDROM device file for a drive attached to the parallel port? I have a removable CDROM drive (gift - I'm trying not to return it, but may have to anyways) that attaches via parallel port. The only device that I can attach to that hardware address is /dev/c1t0d0_lp, a... (9 Replies)
Have a Sun CDROM connected to a Ultra machine .
Problem is it is not recognizing the drive being connected to it ...
When i put the CD in the drive it accepts the CD and zooms initially then quitens out ..
The devices drivers are also not created for it ...
Any ideas anyone ... I am... (4 Replies)
We just went from HP-UX 10.20 to 11.00.
All the bugs are out, except for a small detail...the old 9-track isn't working.
We receive large amounts of data on reel-to-reel so I kinda need it fixed. In the meantime, I'm trying to see if they can send me a DAT tape instead.
I'm pretty sure the drive... (8 Replies)
Hi, I just download FreeBSD LiveCD and burn it to the CDROM (Because I want to learn UNIX). But when I boot the computer from the CDROM, it display the username and password. I type "root" and the password blank. But it does not allow me to login. I try many user name and password that I guest but... (3 Replies)
I have Sun Solaris 10 (x86 based). I installed Solaris through CDROMs by booting the system through CDs only. But now when I try to use the same CDROM, it ejects out CD after few seconds, the CDROM blinks as long as the CD is in. But it throws it out. I tried killing and restarting "VOLD". Also bye... (3 Replies)
Following are the lines from /etc/sudoers.conf
bob SPARC = (OP) ALL : SGI = (OP) ALL
fred ALL = (DB) NOPASSWD: ALL
ALL CDROM = NOPASSWD: /sbin/umount /CDROM,\
/sbin/mount -o nosuid\,nodev /dev/cd0a /CDROM
Could you please help me with shell/perl script to display the records
with... (2 Replies)
iam in the way of making graphics using SDL.i copied from cd usign
mount -a /cdrom
cd /cdrom
cp SDL-1.2.11.tar.gz /usr/test
cd /usr/test
gunzip SDL-1.2.11.tar.gz
tar -xf SDL-1.2.11.tar
cd SDL-1.2.11
./configure
...
...
it stops at
checking whether the c compiler... (4 Replies)
Whenever I assign/unassign a CDROM ( RAID CTRL ) to Active LPAR from HMC, I have to reboot the LPAR.
How can I do it without rebooting the LPARS.
POWER6 with HMC
LPARS = AIX 6.1
Any info
developerWorks : AIX and UNIX : PowerVM Forum : Moving CD-ROM/DVD-ROM dynamically ...
But... (5 Replies)
I have a CDROM drive mounted as a filesystem in order to copy a database from a CD. I can view the CD in windows and all the files are as they should be and in the correct case.
When I look at the same CD having mounted it as a filesystem on the SCO unix machine all the filenames have been... (3 Replies)
How do I play a sound file with SDL?
I've downloaded the library files but SDL/SDL_mixer.h (that most of the tutorials include) doesn't exist. So, how do I install it?
As I said mixer.h doesn't exist but, If it is helpful, the default code is this:
#include "stdlib.h"
#include "SDL/SDL.h"... (2 Replies)
Hello,
I've read many posts that offer tips on how to mount a CDROM but I haven't seen any on how to get the system to recognize the CDROM drive.
I was transferring files from CDROM to the hard drive successfully. I entered the third CDROM and the system refused to automount it. I tried... (2 Replies)
Hi Guys and Gals,
Does anyone know how to track down a faulty DIMM on the memory board of an M4000?
showhardconf tells me which board it is, but was wondering if there was a way to track it down to a DIMM?
Thanks in advance
Martin (5 Replies)
Hello Everyone,
i got a question in AIX. How can i track the communication between LPARs.
i mean how can we find if a program/account trying to access a directory/file inside AIX LPAR or from another LPAR ?
if some one is trying to access our LPAR. where can i track those info? or a outside... (5 Replies)
Hi all !
I am unable to track 6 GB memory through df -h command
please anyone tell me why its showing 57M though used memory is 101G
OS - Ubuntu 12.04 LTS 32-Bit
Filesystem Size Used Avail Use% Mounted on
/dev/sda9 107G 101G 57M 100% /
udev 1.9G 4.0K 1.9G ... (2 Replies)