00001 /* 00002 * This file is part of contentLister. 00003 * 00004 * contentLister is free software: you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation, either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * contentLister is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00025 /* contentLister - A GTK based content lister (read only) application on the eReader platform 00026 * Copyright (C) 2006-2008 iRex Technologies B.V. 00027 */ 00028 00029 00030 #ifndef __CL_CLICK__H__ 00031 #define __CL_CLICK__H__ 00032 00033 00034 #define AUDIO_DEVICE "/dev/dsp" 00035 00036 #define FILENAME_KEY_CLICK (DATA_DIR "/clicked_key.wav") 00037 #define FILENAME_KEY_CLICK_DISCARDED (DATA_DIR "/clicked_key_discarded.wav") 00038 #define FILENAME_PEN_CLICK (DATA_DIR "/clicked_pen.wav") 00039 00040 typedef enum 00041 { 00042 playClickedKey = 0, 00043 playClickedKeyDiscarded, 00044 playClickedPen, 00045 // playClickedPenDiscarded, 00046 playUndefined 00047 } playSoundType_e; 00048 00049 typedef struct 00050 { 00051 const char* wav_file_path; 00052 int wav_file_size; 00053 char* waveform; 00054 } wavFile_t; 00055 00056 gboolean click_init(); 00057 void handle_sound_settings_changed(int volume); 00058 00062 void click_key(); 00063 00067 void click_key_discard(); 00068 00072 void click_pen(); 00073 00074 #endif //__CL_CLICK__H__