|
From: <pst...@us...> - 2008-04-06 21:10:12
|
Revision: 422
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=422&view=rev
Author: pstieber
Date: 2008-04-06 14:09:59 -0700 (Sun, 06 Apr 2008)
Log Message:
-----------
1. Changed tWinAudioPlayer::OpenDsp() to return 1 if audio is disabled.
2. Made some cosmetic changes.
Modified Paths:
--------------
branches/jazz-4.1.3/src/winaudio.cpp
Modified: branches/jazz-4.1.3/src/winaudio.cpp
===================================================================
--- branches/jazz-4.1.3/src/winaudio.cpp 2008-04-06 18:52:27 UTC (rev 421)
+++ branches/jazz-4.1.3/src/winaudio.cpp 2008-04-06 21:09:59 UTC (rev 422)
@@ -144,8 +144,11 @@
WAVEOUTCAPS ocaps;
MMRESULT res = waveOutGetDevCaps((UINT)hout, &ocaps, sizeof(ocaps));
if (res != MMSYSERR_NOERROR)
+ {
error = ErrCapGet;
- else if (!(ocaps.dwSupport & WAVECAPS_SAMPLEACCURATE)) {
+ }
+ else if (!(ocaps.dwSupport & WAVECAPS_SAMPLEACCURATE))
+ {
// not a real error
wxMessageBox("your soundcard does not support audio/midi sync", "Warning", wxOK);
can_sync = 0;
@@ -223,7 +226,9 @@
error = NoError; // everything ok for now.
if (!audio_enabled)
- return 0;
+ {
+ return 1;
+ }
can_duplex = (Config(C_DuplexAudio) != 0);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|