mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-19 06:43:27 +00:00
mingw32 build: remove unused, initialize uninitialized, reorder constructor initializers
This commit is contained in:
parent
d14b720a3f
commit
9728ea7f5c
@ -347,7 +347,9 @@ bool ControllerConnection::handle_message(ControllerMsg *hdr)
|
||||
bool ControllerConnection::create_menu(char* resource)
|
||||
{
|
||||
bool ret = true;
|
||||
#ifndef WIN32
|
||||
char* item_state = 0;
|
||||
#endif
|
||||
char* next_item;
|
||||
const char* param;
|
||||
const char* text;
|
||||
|
||||
@ -461,10 +461,10 @@ bool WinMonitor::best_display_setting(uint32_t width, uint32_t height, uint32_t
|
||||
DEVMODE mode;
|
||||
DWORD mode_id = 0;
|
||||
uint32_t mod_waste = ~0;
|
||||
DWORD mod_width;
|
||||
DWORD mod_height;
|
||||
DWORD mod_depth;
|
||||
DWORD mod_frequency;
|
||||
DWORD mod_width = 0;
|
||||
DWORD mod_height = 0;
|
||||
DWORD mod_depth = 0;
|
||||
DWORD mod_frequency = 0;
|
||||
|
||||
mode.dmSize = sizeof(DEVMODE);
|
||||
mode.dmDriverExtra = 0;
|
||||
|
||||
@ -44,14 +44,13 @@ WavePlayer::WavePlayer(uint32_t sampels_per_sec, uint32_t bits_per_sample, uint3
|
||||
info.nAvgBytesPerSec = sampels_per_sec * info.nBlockAlign;
|
||||
info.wBitsPerSample = bits_per_sample;
|
||||
|
||||
if (waveOutOpen(&_wave_out, WAVE_MAPPER, &info, NULL, NULL, CALLBACK_NULL)
|
||||
if (waveOutOpen(&_wave_out, WAVE_MAPPER, &info, 0, 0, CALLBACK_NULL)
|
||||
!= MMSYSERR_NOERROR) {
|
||||
throw Exception("can not open playback device");
|
||||
}
|
||||
|
||||
int frame_size = WavePlaybackAbstract::FRAME_SIZE;
|
||||
_ring_size = (sampels_per_sec * RING_SIZE_MS / 1000) / frame_size;
|
||||
int low_mark = (sampels_per_sec * LOW_MARK_MS / 1000) / frame_size;
|
||||
_start_mark = (sampels_per_sec * START_MARK_MS / 1000) / frame_size;
|
||||
_frame_bytes = frame_size * channels * bits_per_sample / 8;
|
||||
_ring_item_size = sizeof(WAVEHDR) + _frame_bytes + sample_bytes;
|
||||
|
||||
@ -33,9 +33,9 @@ WaveRecorder::WaveRecorder(Platform::RecordClient& client, uint32_t sampels_per_
|
||||
uint32_t bits_per_sample, uint32_t channels)
|
||||
: _client (client)
|
||||
, _ring (NULL)
|
||||
, _frame (NULL)
|
||||
, _head (0)
|
||||
, _in_use (0)
|
||||
, _frame (NULL)
|
||||
{
|
||||
WAVEFORMATEX info;
|
||||
uint32_t frame_align;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user