POla
March 26th, 2008, 02:05 AM
public bool ZeroTrap
{
get { return (pcmToMuLawMap[33000] != 0); }
set
{
byte val = (byte)(value ? 2 : 0);
for (int i = 32768; i <= 33924; i++)
pcmToMuLawMap[i] = val;
}
}
The code above is in c#. The ZeroTrap is not a function so what is it? To utilize this code in c++ how should it be? Concern on the get, set and value keywords.
{
get { return (pcmToMuLawMap[33000] != 0); }
set
{
byte val = (byte)(value ? 2 : 0);
for (int i = 32768; i <= 33924; i++)
pcmToMuLawMap[i] = val;
}
}
The code above is in c#. The ZeroTrap is not a function so what is it? To utilize this code in c++ how should it be? Concern on the get, set and value keywords.