Ignore:
Timestamp:
Feb 22, 2010, 2:44:21 PM (16 years ago)
Author:
rlwalsh
Message:

add FlashWaveOut class to winmm - see Ticket #2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/winmm/wavein.cpp

    r10173 r21358  
    1414 */
    1515
    16 
    17 /****************************************************************************
    18  * Includes                                                                 *
    19  ****************************************************************************/
     16/******************************************************************************/
     17// Includes
     18/******************************************************************************/
    2019
    2120#include <os2win.h>
     
    3433#include "dbglocal.h"
    3534
    36 
    3735/******************************************************************************/
    3836/******************************************************************************/
     
    4745        return(WAVERR_BADFORMAT);
    4846
    49     if(fdwOpen & WAVE_FORMAT_QUERY)
    50     {
     47    if(fdwOpen & WAVE_FORMAT_QUERY) {
    5148        if(DartWaveIn::queryFormat(pwfx->wFormatTag, pwfx->nChannels, pwfx->nSamplesPerSec,
    5249                                   pwfx->wBitsPerSample) == TRUE)
    53         {
    5450             return(MMSYSERR_NOERROR);
    55         }
    56         else return(WAVERR_BADFORMAT);
     51
     52        return(WAVERR_BADFORMAT);
    5753    }
    5854
     
    6258    *phwi = (HWAVEOUT)new DartWaveIn(pwfx, fdwOpen, dwCallback, dwInstance);
    6359
    64     if(*phwi == NULL) {
     60    if(*phwi == NULL)
    6561        return(MMSYSERR_NODRIVER);
    66     }
    67 
    68     rc = ((DartWaveIn *)*phwi)->getError();
     62
     63    rc = ((DartWaveIn *)*phwi)->open();
    6964    if(rc != MMSYSERR_NOERROR) {
    7065        delete (DartWaveIn *)*phwi;
Note: See TracChangeset for help on using the changeset viewer.