Changeset 193 for trunk/classes/mm-progs/MMPlayer/playaudio.c
- Timestamp:
- Jun 29, 2024, 11:53:08 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/classes/mm-progs/MMPlayer/playaudio.c
r108 r193 48 48 #include "mmplayerres.h" 49 49 #include "mmplayer.h" 50 51 #if 0 52 #define _PMPRINTF_ 53 #include "PMPRINTF.H" 54 #endif 50 55 51 56 /* The object window controling the trac playing */ … … 117 122 { 118 123 char chrCommand[CCHMAXPATH*2]; 119 char chrDevice[30] ;124 char chrDevice[30] = {0}; 120 125 char retMsg[20]; 121 126 ULONG rc; … … 147 152 148 153 if(bIsMidi) 149 strncpy(chrDevice," SEQUENCER", sizeof(chrDevice) - 1);154 strncpy(chrDevice,"sequencer", sizeof(chrDevice) - 1); 150 155 else 151 156 strncpy(chrDevice,"WAVEAUDIO", sizeof(chrDevice) - 1); 152 157 153 158 hwndNotify=hwndFrame;//WinWindowFromID(hwndTop, IDDLG_TOPMIDDLE); 154 155 159 /* Start audio file */ 156 sprintf(chrCommand,"open \"%s\" type %s alias wave%d SHAREABLEwait", chrSourceName, chrDevice, iWavePriv);160 sprintf(chrCommand,"open \"%s\" type %s alias wave%d shareable wait", chrSourceName, chrDevice, iWavePriv); 157 161 rc = mciSendString(chrCommand, retMsg, sizeof(retMsg), hwndNotify, 0); 158 if((rc & 0x0000ffff)!=MCIERR_SUCCESS) 159 return 0; 162 if((rc & 0x0000ffff)!=MCIERR_SUCCESS) { 163 return 0; 164 } 160 165 161 166 /* Set time format */
Note:
See TracChangeset
for help on using the changeset viewer.