2 * Copyright (c) 2007 Alejandro R Sedeno. All rights reserved.
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
13 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
14 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
15 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
17 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
19 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
21 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
23 * OF THE POSSIBILITY OF SUCH DAMAGE.
30 void dbg_beep(int, int);
31 void dbg_beep(int hz, int ms)
34 UInt16 volume = PrefGetPreference(prefGameSoundVolume);
35 snd.cmd = sndCmdFreqDurationAmp;
37 snd.param1 = hz; // frequency in Hz
38 snd.param2 = ms; // duration in ms
39 snd.param3 = volume; // volume [0..sndMaxAmp]
40 SndDoCmd(NULL, &snd, false);
44 uint32_t CheckDeviceTreo_stub(uint32_t *);
45 uint32_t CheckDeviceTreo_stub(uint32_t *param)
47 uint32_t companyID = 0;
48 uint32_t deviceID = 0;
49 FtrGet(sysFtrCreator, sysFtrNumOEMCompanyID, &companyID);
50 FtrGet(sysFtrCreator, sysFtrNumOEMDeviceID, &deviceID);
52 if (((companyID == 'hspr') &&
53 (deviceID == 'H101' || deviceID == 'H102')) ||
54 (companyID == 'Palm' && deviceID == 'D052'))