From abcda0c385e6b2da78f7c3b0988eb02f5c08af0c Mon Sep 17 00:00:00 2001 From: Cary Sandvig Date: Mon, 11 Dec 2000 19:57:56 +0000 Subject: [PATCH] some more reporting on failed initialization --- panda/src/audio/audio_win_traits.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/panda/src/audio/audio_win_traits.cxx b/panda/src/audio/audio_win_traits.cxx index f58f4be8fb..87982c277b 100644 --- a/panda/src/audio/audio_win_traits.cxx +++ b/panda/src/audio/audio_win_traits.cxx @@ -509,6 +509,14 @@ void WinMusic::init(void) { // add the synth to the performance // result = _performance->AddPort(_synth); result = _performance->AddPort(NULL); + if (result == DMUS_E_NOT_INIT) + audio_cat->error() << "got DMUS_N_NOT_INIT" << endl; + else if (result == DMUS_E_CANNOT_OPEN_PORT) + audio_cat->error() << "got DMUS_E_CANNOT_OPEN_PORT" << endl; + else if (result == E_OUTOFMEMORY) + audio_cat->error() << "got E_OUTOFMEMORY" << endl; + else if (result == E_POINTER) + audio_cat->error() << "got E_POINTER" << endl; CHECK_RESULT(result, "failed to add synth to performance"); /*