libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
libZPlayCpp::zplay_GetStreamInfoW Function

Get stream informations (length, sampling rate, channel number, ...), UNICODE version

C++
__stdcall __declspec(dllimport) void zplay_GetStreamInfoW(ZPLAY_HANDLE handle, TStreamInfoW * pInfo);
Parameters 
Description 
ZPLAY_HANDLE handle 
ZPLAY handle. Get this handle with zplay_CreateZPlay
TStreamInfoW * pInfo 
Pointer to TStreamInfoW structure. User must allocate memory for this structure. 

None.

Use this function to get basic informations about opened stream. 

Note: Only with this function you can get stream length, sampling rate, channel number ... 

Get stream info from current stream. 

ZPlay C++ Class interface  

TStreamInfoW pInfo;
instance->GetStreamInfoW(&pInfo);
wprintf(L"%s %i Hz  Channel: %u  Length: %02i:%02i:%02i:%02i",
        pInfo.Description,
        pInfo.SamplingRate,
        pInfo.ChannelNumber,
        pInfo.Length.hms.hour,
        pInfo.Length.hms.minute,
        pInfo.Length.hms.second,
        pInfo.Length.hms.millisecond);

 

C Style interface

TStreamInfoW pInfo;
zplay_GetStreamInfoW(instance, &pInfo);
wprintf(L"%s %i Hz  Channel: %u  Length: %02i:%02i:%02i:%02i",
        pInfo.Description,
        pInfo.SamplingRate,
        pInfo.ChannelNumber,
        pInfo.Length.hms.hour,
        pInfo.Length.hms.minute,
        pInfo.Length.hms.second,
        pInfo.Length.hms.millisecond);
Copyright (c) 2010. Zoran Cindori - All rights reserved.

Web: http://libzplay.sourceforge.net/

Email: zcindori@inet.hr