@Override
	public void apply(byte[] buffer)
	{
		for(int x = 0; x < buffer.length; x++)
		{
			if(buffer[x] > 0)
			{
				buffer[x] = (byte)Math.min(127, buffer[x] * gain);
			} else
			{
				buffer[x] = (byte)Math.max(-128, buffer[x] * gain);
			}
		}
	}