HRESULT PrintAudioTypes(IltmsAudioTypes* audiotypes){HRESULT hr;// print the audio types to stdout_tprintf(_T("--- Audio Types ---\n\n"));long count;hr = audiotypes->get_Count(&count);for(long index = 0; index < count; index++){CComPtr audiotype;hr = audiotypes->Item(index, &audiotype);if(FAILED(hr))goto error;hr = PrintAudioType(audiotype);if(FAILED(hr))goto error;}error:_tprintf(_T("\n"));return hr;}HRESULT PrintLiveStreamAudioTypes(IltmsLiveStream* stream){HRESULT hr;// print the stream audio types to stdout_tprintf(_T("--- Live Stream Audio Types ---\n\n"));{CComPtr audiotypes;hr = stream->get_AudioTypes(&audiotypes);if(FAILED(hr))goto error;hr = PrintAudioTypes(audiotypes);if(FAILED(hr))goto error;}error:_tprintf(_T("\n"));return hr;}HRESULT PrintAvailableAudioTypes(IltmsServer* server){HRESULT hr;CComPtr streams;CComPtr stream;// create live stream just to enumerate the audio typeshr = server->GetLiveStreams(&streams);if(FAILED(hr))goto error;hr = streams->CreateLiveStream(&stream);if(FAILED(hr))goto error;hr = PrintLiveStreamAudioTypes(stream);if(FAILED(hr))goto error;error:return hr;}
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
