Ignore:
Timestamp:
Jun 2, 2001, 10:30:35 AM (24 years ago)
Author:
sandervl
Message:

check odin.ini key for waveout volume override

File:
1 edited

Legend:

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

    r5366 r5873  
    2626#define  INCL_DOSMODULEMGR
    2727#define  INCL_DOSPROCESS
     28#define  INCL_DOSSEMAPHORES
    2829#include <os2wrap.h>    //Odin32 OS/2 api wrappers
    2930#include <stdlib.h>
     
    3839#include <initdll.h>
    3940#include "auxiliary.h"
     41#include "winmmtype.h"
     42#include "waveoutbase.h"
     43#include <win\options.h>
    4044
    4145#define DBG_LOCALLOG    DBG_initterm
     
    6367    {
    6468    case DLL_PROCESS_ATTACH:
     69    {
    6570        if (!MULTIMEDIA_CreateIData(hinstDLL))
    6671            return FALSE;
     
    7378            bInitDone = TRUE;
    7479        }
     80        DWORD dwVolume;
     81
     82        dwVolume = PROFILE_GetOdinIniInt(WINMM_SECTION, DEFVOL_KEY, 100);
     83        dwVolume = (dwVolume*0xFFFF)/100;
     84        dwVolume = (dwVolume << 16) | dwVolume;
     85        WaveOut::setDefaultVolume(dwVolume);
    7586        return TRUE;
     87   }
    7688
    7789   case DLL_THREAD_ATTACH:
Note: See TracChangeset for help on using the changeset viewer.