libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
ZPlay::GetStreamInfoW Method

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

C++
virtual __stdcall void GetStreamInfoW(TStreamInfoW * pInfo) = 0;
Parameters 
Description 
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