- Timestamp:
- Jul 18, 2000, 8:34:43 PM (25 years ago)
- Location:
- trunk/src/winmm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/winmm/dwaveout.cpp
r3780 r3852 1 /* $Id: dwaveout.cpp,v 1.2 7 2000-06-30 08:40:05sandervl Exp $ */1 /* $Id: dwaveout.cpp,v 1.28 2000-07-18 18:34:41 sandervl Exp $ */ 2 2 3 3 /* … … 119 119 ulError = 0; 120 120 selCallback = 0; 121 volume = 0xFFFFFFFF;121 volume = defvolume; 122 122 State = STATE_STOPPED; 123 123 … … 423 423 wmutex->leave(); 424 424 425 //write buffers to DART; starts playback 425 426 MixSetupParms->pmixWrite(MixSetupParms->ulMixHandle, 426 427 MixBuffer, … … 529 530 wmutex->leave(); 530 531 curbuf = curPlayBuf; 532 531 533 for(i=0;i<PREFILLBUF_DART;i++) { 532 534 MixSetupParms->pmixWrite(MixSetupParms->ulMixHandle, &MixBuffer[curbuf], 1); … … 776 778 MCI_SET_PARMS msp = {0}; 777 779 780 dprintf(("DartWaveOut::setVolume %x %x", ulVolL, ulVolR)); 778 781 volume = ulVol; 779 782 … … 804 807 } 805 808 /******************************************************************************/ 809 //Called if waveOutSetVolume is called by the application with waveout handle NULL 810 //Sets the default volume of each waveout stream (until it's volume is changed 811 //with an appropriate waveOutSetVolume call) 812 /******************************************************************************/ 813 void DartWaveOut::setDefaultVolume(ULONG volume) 814 { 815 defvolume = volume; 816 } 817 /******************************************************************************/ 806 818 /******************************************************************************/ 807 819 DartWaveOut *DartWaveOut::waveout = NULL; 808 820 ULONG DartWaveOut::defvolume = 0xFFFFFFFF; 821 -
trunk/src/winmm/dwaveout.h
r3348 r3852 1 /* $Id: dwaveout.h,v 1. 9 2000-04-08 09:16:54sandervl Exp $ */1 /* $Id: dwaveout.h,v 1.10 2000-07-18 18:34:43 sandervl Exp $ */ 2 2 3 3 /* … … 58 58 static int getNumDevices(); 59 59 60 static void setDefaultVolume(ULONG volume); 61 60 62 protected: 61 63 static void mciError(ULONG ulError); … … 99 101 static DartWaveOut* waveout; // List of Timer 100 102 103 static ULONG defvolume; //default volume for streams (if waveOutSetVolume called with NULL stream) 104 101 105 #ifndef _OS2WIN_H 102 106 friend LONG APIENTRY WaveOutHandler(ULONG ulStatus, PMCI_MIX_BUFFER pBuffer, ULONG ulFlags); -
trunk/src/winmm/waveout.cpp
r3328 r3852 1 /* $Id: waveout.cpp,v 1.1 4 2000-04-06 20:36:29sandervl Exp $ */1 /* $Id: waveout.cpp,v 1.15 2000-07-18 18:34:43 sandervl Exp $ */ 2 2 //#undef DEBUG 3 3 /* … … 438 438 return(dwave->setVolume(dwVolume)); 439 439 } 440 else 441 return MMSYSERR_NOERROR; 440 if(hwo == NULL) { 441 DartWaveOut::setDefaultVolume(dwVolume); 442 } 443 return MMSYSERR_NOERROR; 442 444 // return(MMSYSERR_INVALHANDLE); 443 445 }
Note:
See TracChangeset
for help on using the changeset viewer.