I try reference Locate Tag in MC3190Z by using progress bar and want to show the vary of progress bar value with the sound together. Now only using Motorola sample code to play the sound. But the sound only one beep.
m_LocateForm.Locate_PB.Value = tagDataArray[nIndex].LocationInfo.RelativeDistance;
m_LocateForm.lastLocatedTagTimeStamp = System.Environment.TickCount;
if (m_LocateForm.Locate_PB.Value >0)
{ if (m_isBeepingEnabled) MessageBeep(MB_OK); }
Want to make it like if Tag is closer, so progress bar value is high and the sound should be like fast beeping. And so with the tag is far, then progress bar is low and sound just beep slowly.
Is it I need to put two type of sound in order to show the vary of sound?
Currently my code is
[DllImport("coredll.dll")]
internal static extern bool Beep(uint dwFreq, uint dwDuration);
if (m_isBeepingEnabled)
Beep(Convert.ToUInt32(m_LocateForm.Locate_PB.Value), 150);
but it shows error Can't find PInvoke DLL