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

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

C++
__stdcall __declspec(dllimport) void zplay_GetStreamInfo(ZPLAY_HANDLE handle, TStreamInfo * pInfo);
Parameters 
Description 
ZPLAY_HANDLE handle 
ZPLAY handle. Get this handle with zplay_CreateZPlay
TStreamInfo * pInfo 
Pointer to TStreamInfo 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  

TStreamInfo pInfo;
instance->GetStreamInfo(&pInfo);
printf("%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

TStreamInfo pInfo;
zplay_GetStreamInfo(instance, &pInfo);
printf("%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