~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to src/sound/win32_s.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Matthijs Kooijman, Matthijs Kooijman
  • Date: 2009-10-01 22:52:59 UTC
  • mfrom: (1.1.8 upstream) (2.1.6 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091001225259-5kpkp4sthbszpyif
[ Matthijs Kooijman ]
* New upstream release
* Use printf instead of echo -en in openttd-wrapper to make it POSIX
  compatible (Closes: #547758).
* Remove three patches that are now included in upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: win32_s.cpp 15568 2009-02-24 20:59:17Z smatz $ */
 
1
/* $Id: win32_s.cpp 16804 2009-07-13 10:16:50Z rubidium $ */
2
2
 
3
3
/** @file win32_s.cpp Handling of sound for Windows. */
4
4
 
65
65
        if (waveOutOpen(&_waveout, WAVE_MAPPER, &wfex, (DWORD_PTR)&waveOutProc, 0, CALLBACK_FUNCTION) != MMSYSERR_NOERROR)
66
66
                return "waveOutOpen failed";
67
67
 
 
68
        MxInitialize(wfex.nSamplesPerSec);
 
69
 
68
70
        PrepareHeader(&_wave_hdr[0]);
69
71
        PrepareHeader(&_wave_hdr[1]);
70
72
        FillHeaders();