Win32-MultiMedia

 view release on metacpan or  search on metacpan

Mci/Consts.pm  view on Meta::CPAN

      MCI_SEEK_TO_START MCI_SEEK_TO_END 
   )],

   #status flags
   STATUS => [qw (
      MCI_STATUS_ITEM MCI_STATUS_START MCI_STATUS_LENGTH MCI_STATUS_POSITION MCI_STATUS_NUMBER_OF_TRACKS MCI_STATUS_MODE 
      MCI_STATUS_MEDIA_PRESENT MCI_STATUS_TIME_FORMAT MCI_STATUS_READY MCI_STATUS_CURRENT_TRACK MCI_INFO_PRODUCT 
      MCI_INFO_FILE MCI_INFO_MEDIA_UPC MCI_INFO_MEDIA_IDENTITY MCI_INFO_NAME MCI_INFO_COPYRIGHT MCI_GETDEVCAPS_ITEM 
      MCI_GETDEVCAPS_CAN_RECORD MCI_GETDEVCAPS_HAS_AUDIO MCI_GETDEVCAPS_HAS_VIDEO MCI_GETDEVCAPS_DEVICE_TYPE 
      MCI_GETDEVCAPS_USES_FILES MCI_GETDEVCAPS_COMPOUND_DEVICE MCI_GETDEVCAPS_CAN_EJECT MCI_GETDEVCAPS_CAN_PLAY 
      MCI_GETDEVCAPS_CAN_SAVE MCI_SYSINFO_QUANTITY MCI_SYSINFO_OPEN MCI_SYSINFO_NAME MCI_SYSINFO_INSTALLNAME 
   )],

   #set flags
   SETFLAGS => [ qw(
      MCI_SET_DOOR_OPEN MCI_SET_DOOR_CLOSED MCI_SET_TIME_FORMAT MCI_SET_AUDIO MCI_SET_VIDEO MCI_SET_ON MCI_SET_OFF 
      MCI_SET_AUDIO_ALL MCI_SET_AUDIO_LEFT MCI_SET_AUDIO_RIGHT MCI_BREAK_KEY MCI_BREAK_HWND MCI_BREAK_OFF 
      MCI_RECORD_INSERT MCI_RECORD_OVERWRITE MCI_SAVE_FILE MCI_LOAD_FILE 
   )],

   #videodisc
   VDISCFLAGS => [ qw(
      MCI_VD_MODE_PARK MCI_VD_MEDIA_CLV MCI_VD_MEDIA_CAV MCI_VD_MEDIA_OTHER MCI_VD_FORMAT_TRACK MCI_VD_PLAY_REVERSE 
      MCI_VD_PLAY_FAST MCI_VD_PLAY_SPEED MCI_VD_PLAY_SCAN MCI_VD_PLAY_SLOW MCI_VD_SEEK_REVERSE MCI_VD_STATUS_SPEED 
      MCI_VD_STATUS_FORWARD MCI_VD_STATUS_MEDIA_TYPE MCI_VD_STATUS_SIDE MCI_VD_STATUS_DISC_SIZE MCI_VD_GETDEVCAPS_CLV 
      MCI_VD_GETDEVCAPS_CAV MCI_VD_SPIN_UP MCI_VD_SPIN_DOWN MCI_VD_GETDEVCAPS_CAN_REVERSE MCI_VD_GETDEVCAPS_FAST_RATE 
      MCI_VD_GETDEVCAPS_SLOW_RATE MCI_VD_GETDEVCAPS_NORMAL_RATE MCI_VD_STEP_FRAMES MCI_VD_STEP_REVERSE MCI_VD_ESCAPE_STRING 
   )],

   #cd flags
   CDFLAGS => [ qw (
      MCI_CDA_STATUS_TYPE_TRACK MCI_CDA_TRACK_AUDIO MCI_CDA_TRACK_OTHER 
   )],

   #wave
   WAVEFLAGS => [ qw (
      MCI_WAVE_PCM MCI_WAVE_MAPPER MCI_WAVE_OPEN_BUFFER MCI_WAVE_SET_FORMATTAG MCI_WAVE_SET_CHANNELS 
      MCI_WAVE_SET_SAMPLESPERSEC MCI_WAVE_SET_AVGBYTESPERSEC MCI_WAVE_SET_BLOCKALIGN MCI_WAVE_SET_BITSPERSAMPLE 
      MCI_WAVE_INPUT MCI_WAVE_OUTPUT MCI_WAVE_STATUS_FORMATTAG MCI_WAVE_STATUS_CHANNELS MCI_WAVE_STATUS_SAMPLESPERSEC 
      MCI_WAVE_STATUS_AVGBYTESPERSEC MCI_WAVE_STATUS_BLOCKALIGN MCI_WAVE_STATUS_BITSPERSAMPLE MCI_WAVE_STATUS_LEVEL 
      MCI_WAVE_SET_ANYINPUT MCI_WAVE_SET_ANYOUTPUT MCI_WAVE_GETDEVCAPS_INPUTS MCI_WAVE_GETDEVCAPS_OUTPUTS 
   )],

   #sequencer (MIDI)
   SEQFLAGS => [qw (
      MCI_SEQ_DIV_PPQN MCI_SEQ_DIV_SMPTE_24 MCI_SEQ_DIV_SMPTE_25 MCI_SEQ_DIV_SMPTE_30DROP MCI_SEQ_DIV_SMPTE_30 
      MCI_SEQ_FORMAT_SONGPTR MCI_SEQ_FILE MCI_SEQ_MIDI MCI_SEQ_SMPTE MCI_SEQ_NONE MCI_SEQ_MAPPER MCI_SEQ_STATUS_TEMPO 
      MCI_SEQ_STATUS_PORT MCI_SEQ_STATUS_SLAVE MCI_SEQ_STATUS_MASTER MCI_SEQ_STATUS_OFFSET MCI_SEQ_STATUS_DIVTYPE 
      MCI_SEQ_STATUS_NAME MCI_SEQ_STATUS_COPYRIGHT MCI_SEQ_SET_TEMPO MCI_SEQ_SET_PORT MCI_SEQ_SET_SLAVE MCI_SEQ_SET_MASTER 
      MCI_SEQ_SET_OFFSET MCI_ANIM_OPEN_WS MCI_ANIM_OPEN_PARENT MCI_ANIM_OPEN_NOSTATIC MCI_ANIM_PLAY_SPEED 
      MCI_ANIM_PLAY_REVERSE MCI_ANIM_PLAY_FAST MCI_ANIM_PLAY_SLOW MCI_ANIM_PLAY_SCAN MCI_ANIM_STEP_REVERSE
      MCI_ANIM_STEP_FRAMES MCI_ANIM_STATUS_SPEED MCI_ANIM_STATUS_FORWARD MCI_ANIM_STATUS_HWND MCI_ANIM_STATUS_HPAL 
      MCI_ANIM_STATUS_STRETCH MCI_ANIM_INFO_TEXT MCI_ANIM_GETDEVCAPS_CAN_REVERSE MCI_ANIM_GETDEVCAPS_FAST_RATE 
      MCI_ANIM_GETDEVCAPS_SLOW_RATE MCI_ANIM_GETDEVCAPS_NORMAL_RATE MCI_ANIM_GETDEVCAPS_PALETTES 
      MCI_ANIM_GETDEVCAPS_CAN_STRETCH MCI_ANIM_GETDEVCAPS_MAX_WINDOWS MCI_ANIM_REALIZE_NORM MCI_ANIM_REALIZE_BKGD 
      MCI_ANIM_WINDOW_HWND MCI_ANIM_WINDOW_STATE MCI_ANIM_WINDOW_TEXT MCI_ANIM_WINDOW_ENABLE_STRETCH 
      MCI_ANIM_WINDOW_DISABLE_STRETCH MCI_ANIM_WINDOW_DEFAULT MCI_ANIM_RECT MCI_ANIM_PUT_SOURCE MCI_ANIM_PUT_DESTINATION 
      MCI_ANIM_WHERE_SOURCE MCI_ANIM_WHERE_DESTINATION MCI_ANIM_UPDATE_HDC 
   )],

   #overlay device
   OVERLAYFLAGS => [ qw (
      MCI_OVLY_OPEN_WS MCI_OVLY_OPEN_PARENT MCI_OVLY_STATUS_HWND MCI_OVLY_STATUS_STRETCH MCI_OVLY_INFO_TEXT 
      MCI_OVLY_GETDEVCAPS_CAN_STRETCH MCI_OVLY_GETDEVCAPS_CAN_FREEZE MCI_OVLY_GETDEVCAPS_MAX_WINDOWS 
      MCI_OVLY_WINDOW_HWND MCI_OVLY_WINDOW_STATE MCI_OVLY_WINDOW_TEXT MCI_OVLY_WINDOW_ENABLE_STRETCH 
      MCI_OVLY_WINDOW_DISABLE_STRETCH MCI_OVLY_WINDOW_DEFAULT MCI_OVLY_RECT MCI_OVLY_PUT_SOURCE 
      MCI_OVLY_PUT_DESTINATION MCI_OVLY_PUT_FRAME MCI_OVLY_PUT_VIDEO MCI_OVLY_WHERE_SOURCE MCI_OVLY_WHERE_DESTINATION 
      MCI_OVLY_WHERE_FRAME MCI_OVLY_WHERE_VIDEO 
   )]
);


%EXPORT_TAGS = ( %consts, ALL =>[map( @$_,values(%consts))]);
# Items to export into callers namespace by default. Note: do not export
# names by default without a very good reason. Use EXPORT_OK instead.
# Do not simply export all your public functions/methods/constants.
@EXPORT = qw(
   
);
Exporter::export_tags('ERRORS');
Exporter::export_ok_tags(qw (BASE ERRORS MESSAGES DEVICES SMODE 
   TIMEFORMATS OPENFLAGS SEEKFLAGS STATUS SETFLAGS VDISCFLAGS CDFLAGS 
   WAVEFLAGS SEQFLAGS OVERLAYFLAGS) ); 


$VERSION = '0.01';

use strict;

   use constant MM_MCINOTIFY                    => 0x3B9;
   use constant MM_MCISIGNAL                    => 0x3CB;
   use constant MCIERR_BASE                     => 256;
   use constant MCI_STRING_OFFSET               => 512;
   use constant MCI_VD_OFFSET                   => 1024;
   use constant MCI_CD_OFFSET                   => 1088;
   use constant MCI_WAVE_OFFSET                 => 1152;
   use constant MCI_SEQ_OFFSET                  => 1216;

#MCI errors
   use constant MCIERR_INVALID_DEVICE_ID        => (MCIERR_BASE + 1);
   use constant MCIERR_UNRECOGNIZED_KEYWORD     => (MCIERR_BASE + 3);
   use constant MCIERR_UNRECOGNIZED_COMMAND     => (MCIERR_BASE + 5);
   use constant MCIERR_HARDWARE                 => (MCIERR_BASE + 6);
   use constant MCIERR_INVALID_DEVICE_NAME      => (MCIERR_BASE + 7);
   use constant MCIERR_OUT_OF_MEMORY            => (MCIERR_BASE + 8);
   use constant MCIERR_DEVICE_OPEN              => (MCIERR_BASE + 9);
   use constant MCIERR_CANNOT_LOAD_DRIVER       => (MCIERR_BASE + 10);
   use constant MCIERR_MISSING_COMMAND_STRING   => (MCIERR_BASE + 11);
   use constant MCIERR_PARAM_OVERFLOW           => (MCIERR_BASE + 12);
   use constant MCIERR_MISSING_STRING_ARGUMENT  => (MCIERR_BASE + 13);
   use constant MCIERR_BAD_INTEGER              => (MCIERR_BASE + 14);
   use constant MCIERR_PARSER_INTERNAL          => (MCIERR_BASE + 15);
   use constant MCIERR_DRIVER_INTERNAL          => (MCIERR_BASE + 16);
   use constant MCIERR_MISSING_PARAMETER        => (MCIERR_BASE + 17);
   use constant MCIERR_UNSUPPORTED_FUNCTION     => (MCIERR_BASE + 18);
   use constant MCIERR_FILE_NOT_FOUND           => (MCIERR_BASE + 19);
   use constant MCIERR_DEVICE_NOT_READY         => (MCIERR_BASE + 20);
   use constant MCIERR_INTERNAL                 => (MCIERR_BASE + 21);
   use constant MCIERR_DRIVER                   => (MCIERR_BASE + 22);
   use constant MCIERR_CANNOT_USE_ALL           => (MCIERR_BASE + 23);
   use constant MCIERR_MULTIPLE                 => (MCIERR_BASE + 24);

Mci/Consts.pm  view on Meta::CPAN

   use constant MCI_SEQ_DIV_SMPTE_30            => (4 + MCI_SEQ_OFFSET);
   use constant MCI_SEQ_FORMAT_SONGPTR          => 0x4001;
   use constant MCI_SEQ_FILE                    => 0x4002;
   use constant MCI_SEQ_MIDI                    => 0x4003;
   use constant MCI_SEQ_SMPTE                   => 0x4004;
   use constant MCI_SEQ_NONE                    => 65533;
   use constant MCI_SEQ_MAPPER                  => 65535;
   use constant MCI_SEQ_STATUS_TEMPO            => 0x00004002;
   use constant MCI_SEQ_STATUS_PORT             => 0x00004003;
   use constant MCI_SEQ_STATUS_SLAVE            => 0x00004007;
   use constant MCI_SEQ_STATUS_MASTER           => 0x00004008;
   use constant MCI_SEQ_STATUS_OFFSET           => 0x00004009;
   use constant MCI_SEQ_STATUS_DIVTYPE          => 0x0000400A;
   use constant MCI_SEQ_STATUS_NAME             => 0x0000400B;
   use constant MCI_SEQ_STATUS_COPYRIGHT        => 0x0000400C;
   use constant MCI_SEQ_SET_TEMPO               => 0x00010000;
   use constant MCI_SEQ_SET_PORT                => 0x00020000;
   use constant MCI_SEQ_SET_SLAVE               => 0x00040000;
   use constant MCI_SEQ_SET_MASTER              => 0x00080000;
   use constant MCI_SEQ_SET_OFFSET              => 0x01000000;


   use constant MCI_ANIM_OPEN_WS                => 0x00010000;
   use constant MCI_ANIM_OPEN_PARENT            => 0x00020000;
   use constant MCI_ANIM_OPEN_NOSTATIC          => 0x00040000;
   use constant MCI_ANIM_PLAY_SPEED             => 0x00010000;
   use constant MCI_ANIM_PLAY_REVERSE           => 0x00020000;
   use constant MCI_ANIM_PLAY_FAST              => 0x00040000;
   use constant MCI_ANIM_PLAY_SLOW              => 0x00080000;
   use constant MCI_ANIM_PLAY_SCAN              => 0x00100000;
   use constant MCI_ANIM_STEP_REVERSE           => 0x00010000;
   use constant MCI_ANIM_STEP_FRAMES            => 0x00020000;
   use constant MCI_ANIM_STATUS_SPEED           => 0x00004001;
   use constant MCI_ANIM_STATUS_FORWARD         => 0x00004002;
   use constant MCI_ANIM_STATUS_HWND            => 0x00004003;
   use constant MCI_ANIM_STATUS_HPAL            => 0x00004004;
   use constant MCI_ANIM_STATUS_STRETCH         => 0x00004005;
   use constant MCI_ANIM_INFO_TEXT              => 0x00010000;
   use constant MCI_ANIM_GETDEVCAPS_CAN_REVERSE => 0x00004001;
   use constant MCI_ANIM_GETDEVCAPS_FAST_RATE   => 0x00004002;
   use constant MCI_ANIM_GETDEVCAPS_SLOW_RATE   => 0x00004003;
   use constant MCI_ANIM_GETDEVCAPS_NORMAL_RATE => 0x00004004;
   use constant MCI_ANIM_GETDEVCAPS_PALETTES    => 0x00004006;
   use constant MCI_ANIM_GETDEVCAPS_CAN_STRETCH => 0x00004007;
   use constant MCI_ANIM_GETDEVCAPS_MAX_WINDOWS => 0x00004008;
   use constant MCI_ANIM_REALIZE_NORM           => 0x00010000;
   use constant MCI_ANIM_REALIZE_BKGD           => 0x00020000;
   use constant MCI_ANIM_WINDOW_HWND            => 0x00010000;
   use constant MCI_ANIM_WINDOW_STATE           => 0x00040000;
   use constant MCI_ANIM_WINDOW_TEXT            => 0x00080000;
   use constant MCI_ANIM_WINDOW_ENABLE_STRETCH  => 0x00100000;
   use constant MCI_ANIM_WINDOW_DISABLE_STRETCH => 0x00200000;
   use constant MCI_ANIM_WINDOW_DEFAULT         => 0x00000000;
   use constant MCI_ANIM_RECT                   => 0x00010000;
   use constant MCI_ANIM_PUT_SOURCE             => 0x00020000;
   use constant MCI_ANIM_PUT_DESTINATION        => 0x00040000;
   use constant MCI_ANIM_WHERE_SOURCE           => 0x00020000;
   use constant MCI_ANIM_WHERE_DESTINATION      => 0x00040000;
   use constant MCI_ANIM_UPDATE_HDC             => 0x00020000;

#overlay device
   use constant MCI_OVLY_OPEN_WS                => 0x00010000;
   use constant MCI_OVLY_OPEN_PARENT            => 0x00020000;
   use constant MCI_OVLY_STATUS_HWND            => 0x00004001;
   use constant MCI_OVLY_STATUS_STRETCH         => 0x00004002;
   use constant MCI_OVLY_INFO_TEXT              => 0x00010000;
   use constant MCI_OVLY_GETDEVCAPS_CAN_STRETCH => 0x00004001;
   use constant MCI_OVLY_GETDEVCAPS_CAN_FREEZE  => 0x00004002;
   use constant MCI_OVLY_GETDEVCAPS_MAX_WINDOWS => 0x00004003;
   use constant MCI_OVLY_WINDOW_HWND            => 0x00010000;
   use constant MCI_OVLY_WINDOW_STATE           => 0x00040000;
   use constant MCI_OVLY_WINDOW_TEXT            => 0x00080000;
   use constant MCI_OVLY_WINDOW_ENABLE_STRETCH  => 0x00100000;
   use constant MCI_OVLY_WINDOW_DISABLE_STRETCH => 0x00200000;
   use constant MCI_OVLY_WINDOW_DEFAULT         => 0x00000000;
   use constant MCI_OVLY_RECT                   => 0x00010000;
   use constant MCI_OVLY_PUT_SOURCE             => 0x00020000;
   use constant MCI_OVLY_PUT_DESTINATION        => 0x00040000;
   use constant MCI_OVLY_PUT_FRAME              => 0x00080000;
   use constant MCI_OVLY_PUT_VIDEO              => 0x00100000;
   use constant MCI_OVLY_WHERE_SOURCE           => 0x00020000;
   use constant MCI_OVLY_WHERE_DESTINATION      => 0x00040000;
   use constant MCI_OVLY_WHERE_FRAME            => 0x00080000;
   use constant MCI_OVLY_WHERE_VIDEO            => 0x00100000;

1;
__END__



( run in 2.812 seconds using v1.01-cache-2.11-cpan-8f98c5d2c55 )