Ignore:
Timestamp:
Jul 13, 2017, 5:17:57 AM (8 years ago)
Author:
stevenhl
Message:

Import modifications from cwmm-0_2_9-work-01_10_2006.zip dated 2006-08-27

Location:
trunk/stream_ioproc/source
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/stream_ioproc/source/makefile

    r2 r4  
    3232#################################################################################
    3333#
    34 # Makefile for JPG IOProc
     34# Makefile for STREAM IOProc
    3535#
    3636#   Generates
    37 #         JPEGIO.dll       - JPG Image IOproc
     37#         STREAMIO.dll       - Stream storage IOproc
    3838#
    39 # Copyright Chris Wohlgemuth 2002
     39# Copyright Chris Wohlgemuth 2005
    4040#
    4141# http://www.os2world.com/cdwriting
     
    100100        -rm *.*~
    101101        -rm *.map
    102         -rm *.sym
     102        -rm *.sym
  • trunk/stream_ioproc/source/streamfunc.c

    r2 r4  
    11/*
    2  * Copyright (c) Chris Wohlgemuth 2002
     2 * Copyright (c) Chris Wohlgemuth 2005
    33 * All rights reserved.
    44 *
  • trunk/stream_ioproc/source/streamio.def

    r2 r4  
    3131; */
    3232LIBRARY STREAMIO INITINSTANCE TERMINSTANCE
    33 DESCRIPTION '$@#(C) C. Wohlgemuth 2003:#@##1## 13.07.2002 15:17:00      My ;-)  : :::0::@@ Stream IO procedure V0.1.0'
     33DESCRIPTION '$@#(C) C. Wohlgemuth 2005:#@##1## 13.05.2005 15:17:00      My ;-)  : :::0::@@ Stream IO procedure V0.1.0'
    3434DATA MULTIPLE NONSHARED
    3535SEGMENTS
  • trunk/stream_ioproc/source/streamproc.c

    r2 r4  
    11/*
    2  * Copyright (c) Chris Wohlgemuth 2002
     2 * Copyright (c) Chris Wohlgemuth 2005
    33 * All rights reserved.
    44 *
  • trunk/stream_ioproc/source/streamproc.h

    r2 r4  
    7676#endif
    7777
    78 #define     FOURCC_STREAM               mmioFOURCC('C', 'A', 'S', 'T')
     78#define     FOURCC_STREAM               mmioFOURCC('S', 'T', 'R', 'M')
    7979
    8080/* RC file defines */
    8181
    82 #define     HEX_FOURCC_STREAM           0x54534143L
     82/* #define     HEX_FOURCC_STREAM           0x54534143L */
     83#define     HEX_FOURCC_STREAM           0x4d5453L
    8384
    8485#define     MMOTION_IOPROC_NAME_TABLE   7000
  • trunk/stream_ioproc/source/testproc.c

    r2 r4  
    8989  LONG lNum=0;
    9090
     91  printf("In %s().\n", __FUNCTION__);
     92
     93  memset( &mmfinfo, '\0', sizeof(MMFORMATINFO) );
     94  // mmfinfo.ulIOProcType=MMIO_IOPROC_STORAGESYSTEM;
     95  //mmfinfo.ulMediaType=MMIO_MEDIATYPE_AUDIO;
     96
     97  mmioQueryFormatCount(&mmfinfo, &lNum, 0, 0);
     98  return lNum;
     99}
     100
     101int queryNumFormatProcs(void)
     102{
     103  MMFORMATINFO mmfinfo;
     104  LONG lNum=0;
     105
    91106  memset( &mmfinfo, '\0', sizeof(MMFORMATINFO) );
    92107  mmfinfo.ulIOProcType=MMIO_IOPROC_STORAGESYSTEM;
     
    127142          printf("%2d: %s\n", a+1, name);
    128143        }
     144      else
     145        printf("%2d: Can't get format name\n", a+1);
    129146      pmmfi++;
    130147    }
     
    136153    ULONG ulFlags = 0L;
    137154    ULONG rc;
     155
    138156#if 0
    139157
     
    189207}
    190208
     209void checkForIOProc(FOURCC fourcc1)
     210{
     211  PMMIOPROC  pIOProc1=NULLHANDLE;
     212  ULONG      ulFlags;
     213
     214  ulFlags= MMIO_FINDPROC;
     215  pIOProc1= mmioInstallIOProc (fourcc1, pIOProc1, ulFlags);
     216  //  pIOProc1= mmioInstallIOProc (0x4745504a, pIOProc1, ulFlags);
     217  if (!pIOProc1)
     218    /* I/O Procedure NOT FOUND */
     219    printf("IO-Proc NOT found 0x%x 0x%x\n", pIOProc1, fourcc1);
     220  else
     221    printf("IO-Proc found!!!\n");
     222      /* I/O Procedure found */
     223}
    191224int main(int argc, char **argv) {
    192225
    193   printf("Test stream io proc...\n");
     226  printf("Test stream io proc...\n\n");
    194227 
    195   printf("Installed storage procs: %d\n", queryNumStorageProcs());
     228  printf("Number of installed storage procs: %d\n", queryNumStorageProcs());
    196229  getFormats(queryNumStorageProcs());
     230  checkForIOProc(mmioStringToFOURCC("WAVE",0));
    197231
    198232  //  getFormats(45);
Note: See TracChangeset for help on using the changeset viewer.