home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 14 Text / 14-Text.zip / mmintr.zip / mmintro.sam < prev   
INI File  |  1994-02-13  |  12KB  |  911 lines

  1. [ver]
  2.     4
  3. [sty]
  4.     
  5. [charset]
  6.     82
  7.     ANSI (Windows, IBM CP 1252)
  8. [PanoseFontTable]
  9.     3
  10.     5
  11.     Helvetica
  12.     2818
  13.     1029
  14.     514
  15.     514
  16.     1026
  17.     Helv
  18.     2818
  19.     1029
  20.     514
  21.     770
  22.     1026
  23.     Times New Roman
  24.     514
  25.     774
  26.     1029
  27.     517
  28.     1027
  29. [revisions]
  30.     0
  31. [recfile]
  32.     
  33.     *
  34.     1
  35.     1
  36.     3
  37.     8
  38.     0
  39.     0
  40. [lang]
  41.     1
  42. [desc]
  43.     
  44.     
  45.     
  46.     
  47.     
  48.     761201855
  49.     4
  50.     761196028
  51.     97
  52.     0
  53.     0
  54.     0
  55.     0
  56.     0
  57.     
  58.     
  59.     
  60.     
  61.     
  62.     
  63.     1
  64. [prn]
  65.     IBM 4019 LaserPrinter E
  66. [port]
  67.     IBM 4019 LaserPrinter E
  68. [fopts]
  69.     0
  70.     1
  71.     0
  72.     0
  73. [lnopts]
  74.     2
  75.     Body Text
  76.     1
  77. [docopts]
  78.     5
  79.     2
  80. [GramStyle]
  81.     
  82. [tag]
  83.     Footer
  84.     11
  85.     [fnt]
  86.         Times New Roman
  87.         240
  88.         0
  89.         49152
  90.     [algn]
  91.         1
  92.         1
  93.         0
  94.         0
  95.         0
  96.     [spc]
  97.         33
  98.         0
  99.         1
  100.         0
  101.         0
  102.         1
  103.         100
  104.     [brk]
  105.         4
  106.     [line]
  107.         8
  108.         0
  109.         1
  110.         0
  111.         0
  112.         1
  113.         1
  114.         144
  115.         144
  116.         1
  117.     [spec]
  118.         0
  119.         0
  120.         
  121.         0
  122.         1
  123.         1
  124.         0
  125.         0
  126.         0
  127.         0
  128.     [nfmt]
  129.         280
  130.         1
  131.         2
  132.         .
  133.         ,
  134.         $
  135.     Footer
  136.     0
  137.     0
  138. [tag]
  139.     Header
  140.     9
  141.     [fnt]
  142.         Times New Roman
  143.         240
  144.         0
  145.         49152
  146.     [algn]
  147.         1
  148.         1
  149.         0
  150.         0
  151.         0
  152.     [spc]
  153.         33
  154.         0
  155.         1
  156.         0
  157.         0
  158.         1
  159.         100
  160.     [brk]
  161.         4
  162.     [line]
  163.         8
  164.         0
  165.         1
  166.         0
  167.         0
  168.         1
  169.         1
  170.         144
  171.         144
  172.         1
  173.     [spec]
  174.         0
  175.         0
  176.         
  177.         0
  178.         1
  179.         1
  180.         0
  181.         0
  182.         0
  183.         0
  184.     [nfmt]
  185.         280
  186.         1
  187.         2
  188.         .
  189.         ,
  190.         $
  191.     Header
  192.     0
  193.     0
  194. [tag]
  195.     Title
  196.     8
  197.     [fnt]
  198.         Helvetica
  199.         360
  200.         0
  201.         49153
  202.     [algn]
  203.         4
  204.         1
  205.         0
  206.         0
  207.         0
  208.     [spc]
  209.         33
  210.         0
  211.         1
  212.         144
  213.         72
  214.         1
  215.         100
  216.     [brk]
  217.         16
  218.     [line]
  219.         8
  220.         0
  221.         1
  222.         0
  223.         0
  224.         1
  225.         1
  226.         144
  227.         144
  228.         1
  229.     [spec]
  230.         0
  231.         1
  232.         
  233.         0
  234.         1
  235.         1
  236.         0
  237.         0
  238.         0
  239.         0
  240.     [nfmt]
  241.         272
  242.         1
  243.         2
  244.         .
  245.         ,
  246.         $
  247.     Title
  248.     0
  249.     0
  250. [tag]
  251.     Subhead
  252.     7
  253.     [fnt]
  254.         Times New Roman
  255.         280
  256.         0
  257.         49155
  258.     [algn]
  259.         1
  260.         1
  261.         0
  262.         0
  263.         0
  264.     [spc]
  265.         33
  266.         0
  267.         1
  268.         72
  269.         72
  270.         1
  271.         100
  272.     [brk]
  273.         4
  274.     [line]
  275.         9
  276.         0
  277.         1
  278.         0
  279.         0
  280.         1
  281.         1
  282.         10
  283.         144
  284.         1
  285.     [spec]
  286.         0
  287.         2
  288.         
  289.         0
  290.         1
  291.         1
  292.         0
  293.         0
  294.         0
  295.         0
  296.     [nfmt]
  297.         272
  298.         1
  299.         2
  300.         .
  301.         ,
  302.         $
  303.     Subhead
  304.     0
  305.     0
  306. [tag]
  307.     Number List
  308.     6
  309.     [fnt]
  310.         Times New Roman
  311.         240
  312.         0
  313.         49152
  314.     [algn]
  315.         1
  316.         1
  317.         360
  318.         360
  319.         360
  320.     [spc]
  321.         33
  322.         0
  323.         1
  324.         0
  325.         0
  326.         1
  327.         100
  328.     [brk]
  329.         4
  330.     [line]
  331.         8
  332.         0
  333.         1
  334.         0
  335.         0
  336.         1
  337.         1
  338.         144
  339.         144
  340.         1
  341.     [spec]
  342.         0
  343.         0
  344.         <*:>.
  345.         0
  346.         1
  347.         1
  348.         0
  349.         16
  350.         0
  351.         0
  352.     [nfmt]
  353.         272
  354.         1
  355.         2
  356.         .
  357.         ,
  358.         $
  359.     Number List
  360.     0
  361.     0
  362. [tag]
  363.     Bullet 1
  364.     5
  365.     [fnt]
  366.         Times New Roman
  367.         240
  368.         0
  369.         49152
  370.     [algn]
  371.         1
  372.         1
  373.         288
  374.         288
  375.         288
  376.     [spc]
  377.         33
  378.         0
  379.         1
  380.         0
  381.         0
  382.         1
  383.         100
  384.     [brk]
  385.         4
  386.     [line]
  387.         8
  388.         0
  389.         1
  390.         0
  391.         0
  392.         1
  393.         1
  394.         144
  395.         144
  396.         1
  397.     [spec]
  398.         0
  399.         0
  400.         <*5>
  401.         0
  402.         1
  403.         1
  404.         0
  405.         0
  406.         0
  407.         0
  408.     [nfmt]
  409.         280
  410.         1
  411.         2
  412.         .
  413.         ,
  414.         $
  415.     Bullet 1
  416.     0
  417.     0
  418. [tag]
  419.     Bullet
  420.     4
  421.     [fnt]
  422.         Times New Roman
  423.         240
  424.         0
  425.         49152
  426.     [algn]
  427.         1
  428.         1
  429.         0
  430.         288
  431.         288
  432.     [spc]
  433.         33
  434.         0
  435.         1
  436.         0
  437.         0
  438.         1
  439.         100
  440.     [brk]
  441.         4
  442.     [line]
  443.         8
  444.         0
  445.         1
  446.         0
  447.         0
  448.         1
  449.         1
  450.         144
  451.         144
  452.         1
  453.     [spec]
  454.         0
  455.         0
  456.         <*0>
  457.         0
  458.         1
  459.         1
  460.         0
  461.         0
  462.         0
  463.         0
  464.     [nfmt]
  465.         272
  466.         1
  467.         2
  468.         .
  469.         ,
  470.         $
  471.     Bullet
  472.     0
  473.     0
  474. [tag]
  475.     Body Single
  476.     3
  477.     [fnt]
  478.         Times New Roman
  479.         240
  480.         0
  481.         49152
  482.     [algn]
  483.         1
  484.         1
  485.         0
  486.         0
  487.         0
  488.     [spc]
  489.         33
  490.         0
  491.         1
  492.         0
  493.         0
  494.         1
  495.         100
  496.     [brk]
  497.         4
  498.     [line]
  499.         8
  500.         0
  501.         1
  502.         0
  503.         0
  504.         1
  505.         1
  506.         144
  507.         144
  508.         1
  509.     [spec]
  510.         0
  511.         0
  512.         
  513.         0
  514.         1
  515.         1
  516.         0
  517.         0
  518.         0
  519.         0
  520.     [nfmt]
  521.         280
  522.         1
  523.         2
  524.         .
  525.         ,
  526.         $
  527.     Body Single
  528.     0
  529.     0
  530. [tag]
  531.     Body Text
  532.     2
  533.     [fnt]
  534.         Times New Roman
  535.         240
  536.         0
  537.         49152
  538.     [algn]
  539.         1
  540.         1
  541.         0
  542.         0
  543.         0
  544.     [spc]
  545.         33
  546.         0
  547.         1
  548.         0
  549.         0
  550.         1
  551.         100
  552.     [brk]
  553.         4
  554.     [line]
  555.         8
  556.         0
  557.         1
  558.         0
  559.         0
  560.         1
  561.         1
  562.         144
  563.         144
  564.         1
  565.     [spec]
  566.         0
  567.         0
  568.         
  569.         0
  570.         1
  571.         1
  572.         0
  573.         0
  574.         0
  575.         0
  576.     [nfmt]
  577.         280
  578.         1
  579.         2
  580.         .
  581.         ,
  582.         $
  583.     Body Text
  584.     0
  585.     0
  586. [lay]
  587.     Standard
  588.     513
  589.     [rght]
  590.         15840
  591.         12240
  592.         1
  593.         1440
  594.         1440
  595.         1
  596.         1440
  597.         1440
  598.         0
  599.         1
  600.         0
  601.         1
  602.         0
  603.         2
  604.         1
  605.         1440
  606.         10800
  607.         12
  608.         1
  609.         720
  610.         1
  611.         1440
  612.         1
  613.         2160
  614.         1
  615.         2880
  616.         1
  617.         3600
  618.         1
  619.         4320
  620.         1
  621.         5040
  622.         1
  623.         5760
  624.         1
  625.         6480
  626.         1
  627.         7200
  628.         1
  629.         7920
  630.         1
  631.         8640
  632.     [frght]
  633.     [lyfrm]
  634.         0
  635.         13184
  636.         0
  637.         14400
  638.         12240
  639.         15840
  640.         0
  641.         1
  642.         1
  643.         0 0 0 0 0 0 0
  644.         0
  645.         16777215
  646.         0
  647.     [frmlay]
  648.         15840
  649.         12240
  650.         1
  651.         1440
  652.         792
  653.         1
  654.         14472
  655.         1440
  656.         0
  657.         1
  658.         0
  659.         0
  660.         0
  661.         0
  662.         1
  663.         1440
  664.         10800
  665.         2
  666.         2
  667.         4680
  668.         3
  669.         9360
  670.     [txt]
  671. @Footer@<:s><:#P30670848,P943718>
  672.  
  673. >
  674.     [hrght]
  675.     [lyfrm]
  676.         0
  677.         11136
  678.         0
  679.         0
  680.         12240
  681.         1440
  682.         0
  683.         1
  684.         1
  685.         0 0 0 0 0 0 0
  686.         0
  687.         16777215
  688.         0
  689.     [frmlay]
  690.         1440
  691.         12240
  692.         1
  693.         1440
  694.         72
  695.         1
  696.         792
  697.         1440
  698.         0
  699.         1
  700.         0
  701.         0
  702.         0
  703.         0
  704.         1
  705.         1440
  706.         10800
  707.         2
  708.         2
  709.         4680
  710.         3
  711.         9360
  712.     [txt]
  713. @Header@<:s><:#P30670848,P943718>
  714.  
  715. >
  716. [elay]
  717. [l1]
  718.     0
  719. [edoc]
  720. @Title@<:s><:#P30670848,P1462763>OS/2 Multimedia Basics
  721.  
  722. <:s><:#P30670848,P4718590>The multimedia support that comes with OS/2 2.1 (called MMPM/2) allows any OS/2 program (including REXX command files) to play movies, audio files and MIDI files.  MMPM/2 uses the Media Control Interface (or MCI) to provide a device-independent means of controlling multimedia devices.  If you are familiar with the Windows(TM) MCI interface, OS/2's MCI is somewhat similar, although it contains a lot more function to make your programming life easier.
  723.  
  724. <:#P30670848,P943718>
  725.  
  726. <:s><:#P30670848,P1887436>This document is aimed primarily at the new MMPM/2 programmer or those who'd like to ensure that their application properly exploits MMPM/2. 
  727.  
  728. @Subhead@<:#P30670848,P1149502>Device Sharing
  729.  
  730. <:#P30670848,P3774872>If you have a programming background in other multimedia environments (i.e. DOS, Windows etc.), you realize that you must go through a lot of processing in order to attempt to share the multimedia devices your program uses.  Fortunately, MMPM/2 handles <+!>all<-!> of these sharing issues for you, if your program must follow these steps:
  731.  
  732. <:#P30670848,P943718>
  733.  
  734. @Bullet 1@<:s>Open the device with the MCI_OPEN_SHAREABLE flag (or use MCI_RELEASEDEVICE) to make the device shareable
  735.  
  736. @Bullet 1@Process the MM_MCIPASSDEVICE message.
  737.  
  738. <:#P30670848,P943718>
  739.  
  740. <:s><:#P30670848,P1887436>The first requirement is rather easy.  Simply use the MCI_OPEN_SHAREABLE flag on the MCI_OPEN message.
  741.  
  742. <:#P30670848,P943718>
  743.  
  744. <:s><:#P30670848,P3774872>The second requirement is to process MM_MCIPASSDEVICE.  This message will either indicate that you have control over, or lost control of the multimedia device.  If you get the  MM_MCIPASSDEVICE message informing you that you lost use of the device, <+!>your application must do an MCI_ACQUIREDEVICE before issuing another MCI command.<-!>  
  745.  
  746. <:#P30670848,P943718>
  747.  
  748. <:#P30670848,P943718>The MMPM/2 toolkit contains two programs which illustrate the use of this command:
  749.  
  750. <:#P30670848,P943718>
  751.  
  752. @Bullet@The recorder sample
  753.  
  754. @Bullet@Clock example
  755.  
  756. <:#P30670848,P943718>
  757.  
  758. @Subhead@<:s><:#P30670848,P1149502>Multi-Instance Drivers
  759.  
  760. <:#P30670848,P943718>
  761.  
  762. <:#P30670848,P1887436>MMPM/2 uses multi-instance audio and video drivers in order to perform the device sharing.  The statement below is a pretty concise definition of what multi-instance means:
  763.  
  764. <:#P30670848,P943718>
  765.  
  766. <:#P30670848,P4718590><+!>Multi-instance<-!>: the ability for more than one OS/2 application at once to open the sound card.  This is important if you want to do any serious activity with multimedia.  For instance, a multi-instance driver will allow you to open the digital audio editor and hear system sounds or open a MIDI application.  Without this, you must close each application down before starting another (very inconvenient).
  767.  
  768. <:#P30670848,P943718>
  769.  
  770. <:#P30670848,P943718>From the programmer's perspective, multi-instance means the following things:
  771.  
  772. <:#P30670848,P943718>
  773.  
  774. @Bullet@If you support device sharing, you support multi-instance.
  775.  
  776. <:#P30670848,P943718>
  777.  
  778. @Subhead@<:#P30670848,P1149502>Multimedia Awareness
  779.  
  780. <:#P30670848,P943718>
  781.  
  782. <:s><:#P30670848,P3774872>If your application is not totally dependent on MMPM/2, you probably want to be able to run even if the user has not installed multimedia support.  If you link directly to MMPM2.LIB and multimedia is not installed, then your application will trap when it is run.  To work around this problem, you should take the following steps:
  783.  
  784. <:#P30670848,P943718>
  785.  
  786. @Bullet 1@<:s>Do a DosLoadModule on MDM.DLL (or MMIO.DLL if you are calling MMIO functions).
  787.  
  788. @Bullet 1@<:s>Do a DosQueryProcAddr address on the function you want to call (i.e. mciSendString) and save this as a function pointer.
  789.  
  790. @Bullet 1@Use the function pointer obtained in step two for your multimedia calls.
  791.  
  792. <:#P30670848,P943718>
  793.  
  794. @Subhead@<:#P30670848,P1149502>Unique OS/2 MCI Commands
  795.  
  796. <:#P30670848,P943718>
  797.  
  798. <:s><:#P30670848,P1887436>The following MCI commands are unique to MMPM/2 and can really maximize this 32-bit environment:
  799.  
  800. <:#P30670848,P943718>
  801.  
  802. @Bullet 1@<:s>MCI_SETPOSITIONADVISE.  Allows your application to be notified on a recurring basis about the current media position.
  803.  
  804. @Bullet 1@<:s>MCI_SETCUEPOINT.  Allows notification at specified media positions.
  805.  
  806. @Bullet 1@<:s>MCI_UNDO/MCI_REDO/MCI_CUT/MCI_COPY/MCI_PASTE.  MMPM/2 offers unlimited undo/redo operations and easy to use clipboard controls.
  807.  
  808. @Bullet 1@<:s>MCI_AQUIREDEVICE/MCI_RELEASEDEVICE.  Allows sharing of devices.
  809.  
  810. @Bullet 1@<:s>MCI_CONNECTOR command to allow access to a full-function amp-mxier
  811.  
  812. <:s><:#P30670848,P943718>
  813.  
  814. <:s><:#P30670848,P943718>The following MCI flags are unique to MMPM/2 and can really maximize this 32-bit environment:
  815.  
  816. <:#P30670848,P943718>
  817.  
  818. @Bullet 1@<:s>MCI_OPEN_PLAYLIST.  Allows you to play memory buffers from MCI.
  819.  
  820. @Bullet 1@MCI_NOTIFY.  Allows your commands to operate on a separate thread.
  821.  
  822. @Subhead@<:#P30670848,P1149502>MMIO (and I/O Procedures)
  823.  
  824. <:#P30670848,P943718>
  825.  
  826. <:#P30670848,P1887436>All MCI drivers (and therefore all MCI programs) use the Multimedia I/O interface to communicate with the file system.
  827.  
  828. <:#P30670848,P943718>
  829.  
  830. <:#P30670848,P943718>This provides the following advantages:
  831.  
  832. <:#P30670848,P943718>
  833.  
  834. @Bullet 1@<:s>File format independence
  835.  
  836. @Bullet 1@Automatic format recognition
  837.  
  838. @Bullet 1@Smaller program code.
  839.  
  840. <:#P30670848,P943718>
  841.  
  842. <:#P30670848,P1887436>If your program will be accessing multimedia files directly, it is recommended that you use the MMIO interface to process the files.
  843.  
  844. <:#P30670848,P943718>
  845.  
  846. @Subhead@<:#P30670848,P1149502>Sources of Information
  847.  
  848. <:#P30670848,P943718>For information on multimedia performance and OS/2:
  849.  
  850. <:#P30670848,P943718>
  851.  
  852. @Bullet 1@See the OS/2 Developer's Connection Issue #3.
  853.  
  854. @Bullet 1@<:s>See OS/2 Developer, Multimedia Special Issue (May/June 1994).
  855.  
  856. <:#P30670848,P943718>
  857.  
  858. <:s><:#P30670848,P943718>Generic multimedia overviews):
  859.  
  860. <:#P30670848,P943718>
  861.  
  862. @Bullet 1@The first two OS/2 Developer's Connection CDs.
  863.  
  864. @Bullet 1@Many back issues of OS/2 Developer.
  865.  
  866. @Bullet 1@Byte --August 1993.  <+">"Under the Hood:  Multimedia Infrastructures".
  867.  
  868. <:#P30670848,P943718>
  869.  
  870. <:#P30670848,P943718><-">Audio overview (playing from memory buffers).
  871.  
  872. <:#P30670848,P943718>
  873.  
  874. @Bullet 1@See the Electronic OS/2 Developer (vol. 2, Issue 1).
  875.  
  876. @Bullet 1@See the OS/2 Developer's Connection Issue #3.
  877.  
  878. @Bullet 1@<:s>See OS/2 Developer, Multimedia Special Issue (May/June)
  879.  
  880. <:#P30670848,P943718>
  881.  
  882. <:#P30670848,P943718>Software Motion Video Architecture
  883.  
  884. <:#P30670848,P943718>
  885.  
  886. @Bullet 1@<:s>Dr. Dobbs Multimedia Special Editon--1993
  887.  
  888. <:s><:#P30670848,P943718>
  889.  
  890. <:s><:#P30670848,P943718>Toolkit and Header Files
  891.  
  892. @Bullet 1@OS/2 2.1 Toolkit CD-ROM
  893.  
  894. @Bullet 1@Developer's Connection CD-ROM
  895.  
  896. @Bullet 1@<:s>C-Set++ CD-ROM
  897.  
  898. <:#P30670848,P943718>
  899.  
  900. <:s><:#P30670848,P943718>Online Help
  901.  
  902. @Bullet 1@<:s>MMPM/2 section of OS2DF1 on CompuServe
  903.  
  904. @Bullet 1@<:s>COMP.OS.OS2.MULTIMEDIA, COMP.OS.OS2.PROGRAMMER.MISC or COMP.OS.OS2.PROGRAMMER on Internet.
  905.  
  906. <:#P30670848,P943718>
  907. >
  908.  
  909. [Embedded]
  910. 00011896
  911.