A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd

Cleanup in tools/: Remove unused VB scripts and fix properties.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17421 a1c6a512-1295-4272-9138-f99709370657

+170 -285
+44 -44
tools/creative.h
··· 1 - /*************************************************************************** 2 - * __________ __ ___. 3 - * Open \______ \ ____ ____ | | _\_ |__ _______ ___ 4 - * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / 5 - * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 6 - * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 7 - * \/ \/ \/ \/ \/ 8 - * $Id$ 9 - * 10 - * Copyright (C) 2008 by Maurus Cuelenaere 11 - * 12 - * All files in this archive are subject to the GNU General Public License. 13 - * See the file COPYING in the source tree root for full license agreement. 14 - * 15 - * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 16 - * KIND, either express or implied. 17 - * 18 - ****************************************************************************/ 19 - 20 - #ifndef CREATIVE_H_ 21 - #define CREATIVE_H_ 22 - 23 - enum 24 - { 25 - ZENVISIONM = 0, 26 - ZENVISIONM60 = 1, 27 - ZENVISION = 2, 28 - ZENV = 3, 29 - ZEN = 4 30 - }; 31 - 32 - struct device_info 33 - { 34 - const char* cinf; /*Must be Unicode encoded*/ 35 - const unsigned int cinf_size; 36 - const char* null; 37 - const unsigned char* bootloader; 38 - const unsigned int bootloader_size; 39 - const unsigned int memory_address; 40 - }; 41 - 42 - int zvm_encode(char *iname, char *oname, int device); 43 - 44 - #endif /*CREATIVE_H_*/ 1 + /*************************************************************************** 2 + * __________ __ ___. 3 + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ 4 + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / 5 + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 6 + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 7 + * \/ \/ \/ \/ \/ 8 + * $Id$ 9 + * 10 + * Copyright (C) 2008 by Maurus Cuelenaere 11 + * 12 + * All files in this archive are subject to the GNU General Public License. 13 + * See the file COPYING in the source tree root for full license agreement. 14 + * 15 + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 16 + * KIND, either express or implied. 17 + * 18 + ****************************************************************************/ 19 + 20 + #ifndef CREATIVE_H_ 21 + #define CREATIVE_H_ 22 + 23 + enum 24 + { 25 + ZENVISIONM = 0, 26 + ZENVISIONM60 = 1, 27 + ZENVISION = 2, 28 + ZENV = 3, 29 + ZEN = 4 30 + }; 31 + 32 + struct device_info 33 + { 34 + const char* cinf; /*Must be Unicode encoded*/ 35 + const unsigned int cinf_size; 36 + const char* null; 37 + const unsigned char* bootloader; 38 + const unsigned int bootloader_size; 39 + const unsigned int memory_address; 40 + }; 41 + 42 + int zvm_encode(char *iname, char *oname, int device); 43 + 44 + #endif /*CREATIVE_H_*/
+123 -123
tools/hmac-sha1.h
··· 1 - /* Taken from gnulib (http://savannah.gnu.org/projects/gnulib/) */ 2 - /* Declarations of functions and data types used for SHA1 sum 3 - library functions. 4 - Copyright (C) 2000, 2001, 2003, 2005, 2006 Free Software Foundation, Inc. 5 - 6 - This program is free software; you can redistribute it and/or modify it 7 - under the terms of the GNU General Public License as published by the 8 - Free Software Foundation; either version 2, or (at your option) any 9 - later version. 10 - 11 - This program is distributed in the hope that it will be useful, 12 - but WITHOUT ANY WARRANTY; without even the implied warranty of 13 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 - GNU General Public License for more details. 15 - 16 - You should have received a copy of the GNU General Public License 17 - along with this program; if not, write to the Free Software Foundation, 18 - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 19 - 20 - #ifndef SHA1_H 21 - #define SHA1_H 1 22 - 23 - #include <stdio.h> 24 - #include <stdint.h> 25 - 26 - /* Structure to save state of computation between the single steps. */ 27 - struct sha1_ctx 28 - { 29 - uint32_t A; 30 - uint32_t B; 31 - uint32_t C; 32 - uint32_t D; 33 - uint32_t E; 34 - 35 - uint32_t total[2]; 36 - uint32_t buflen; 37 - uint32_t buffer[32]; 38 - }; 39 - 40 - 41 - /* Initialize structure containing state of computation. */ 42 - extern void sha1_init_ctx (struct sha1_ctx *ctx); 43 - 44 - /* Starting with the result of former calls of this function (or the 45 - initialization function update the context for the next LEN bytes 46 - starting at BUFFER. 47 - It is necessary that LEN is a multiple of 64!!! */ 48 - extern void sha1_process_block (const void *buffer, size_t len, 49 - struct sha1_ctx *ctx); 50 - 51 - /* Starting with the result of former calls of this function (or the 52 - initialization function update the context for the next LEN bytes 53 - starting at BUFFER. 54 - It is NOT required that LEN is a multiple of 64. */ 55 - extern void sha1_process_bytes (const void *buffer, size_t len, 56 - struct sha1_ctx *ctx); 57 - 58 - /* Process the remaining bytes in the buffer and put result from CTX 59 - in first 20 bytes following RESBUF. The result is always in little 60 - endian byte order, so that a byte-wise output yields to the wanted 61 - ASCII representation of the message digest. 62 - 63 - IMPORTANT: On some systems it is required that RESBUF be correctly 64 - aligned for a 32 bits value. */ 65 - extern void *sha1_finish_ctx (struct sha1_ctx *ctx, void *resbuf); 66 - 67 - 68 - /* Put result from CTX in first 20 bytes following RESBUF. The result is 69 - always in little endian byte order, so that a byte-wise output yields 70 - to the wanted ASCII representation of the message digest. 71 - 72 - IMPORTANT: On some systems it is required that RESBUF is correctly 73 - aligned for a 32 bits value. */ 74 - extern void *sha1_read_ctx (const struct sha1_ctx *ctx, void *resbuf); 75 - 76 - 77 - /* Compute SHA1 message digest for bytes read from STREAM. The 78 - resulting message digest number will be written into the 20 bytes 79 - beginning at RESBLOCK. */ 80 - extern int sha1_stream (FILE *stream, void *resblock); 81 - 82 - /* Compute SHA1 message digest for LEN bytes beginning at BUFFER. The 83 - result is always in little endian byte order, so that a byte-wise 84 - output yields to the wanted ASCII representation of the message 85 - digest. */ 86 - extern void *sha1_buffer (const char *buffer, size_t len, void *resblock); 87 - 88 - #endif 89 - 90 - 91 - /* hmac.h -- hashed message authentication codes 92 - Copyright (C) 2005 Free Software Foundation, Inc. 93 - 94 - This program is free software; you can redistribute it and/or modify 95 - it under the terms of the GNU General Public License as published by 96 - the Free Software Foundation; either version 2, or (at your option) 97 - any later version. 98 - 99 - This program is distributed in the hope that it will be useful, 100 - but WITHOUT ANY WARRANTY; without even the implied warranty of 101 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 102 - GNU General Public License for more details. 103 - 104 - You should have received a copy of the GNU General Public License 105 - along with this program; if not, write to the Free Software Foundation, 106 - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 107 - 108 - /* Written by Simon Josefsson. */ 109 - 110 - #ifndef HMAC_H 111 - #define HMAC_H 1 112 - 113 - #include <stddef.h> 114 - 115 - /* Compute Hashed Message Authentication Code with SHA-1, over BUFFER 116 - data of BUFLEN bytes using the KEY of KEYLEN bytes, writing the 117 - output to pre-allocated 20 byte minimum RESBUF buffer. Return 0 on 118 - success. */ 119 - int 120 - hmac_sha1 (const void *key, size_t keylen, 121 - const void *in, size_t inlen, void *resbuf); 122 - 123 - #endif /* HMAC_H */ 1 + /* Taken from gnulib (http://savannah.gnu.org/projects/gnulib/) */ 2 + /* Declarations of functions and data types used for SHA1 sum 3 + library functions. 4 + Copyright (C) 2000, 2001, 2003, 2005, 2006 Free Software Foundation, Inc. 5 + 6 + This program is free software; you can redistribute it and/or modify it 7 + under the terms of the GNU General Public License as published by the 8 + Free Software Foundation; either version 2, or (at your option) any 9 + later version. 10 + 11 + This program is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with this program; if not, write to the Free Software Foundation, 18 + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 19 + 20 + #ifndef SHA1_H 21 + #define SHA1_H 1 22 + 23 + #include <stdio.h> 24 + #include <stdint.h> 25 + 26 + /* Structure to save state of computation between the single steps. */ 27 + struct sha1_ctx 28 + { 29 + uint32_t A; 30 + uint32_t B; 31 + uint32_t C; 32 + uint32_t D; 33 + uint32_t E; 34 + 35 + uint32_t total[2]; 36 + uint32_t buflen; 37 + uint32_t buffer[32]; 38 + }; 39 + 40 + 41 + /* Initialize structure containing state of computation. */ 42 + extern void sha1_init_ctx (struct sha1_ctx *ctx); 43 + 44 + /* Starting with the result of former calls of this function (or the 45 + initialization function update the context for the next LEN bytes 46 + starting at BUFFER. 47 + It is necessary that LEN is a multiple of 64!!! */ 48 + extern void sha1_process_block (const void *buffer, size_t len, 49 + struct sha1_ctx *ctx); 50 + 51 + /* Starting with the result of former calls of this function (or the 52 + initialization function update the context for the next LEN bytes 53 + starting at BUFFER. 54 + It is NOT required that LEN is a multiple of 64. */ 55 + extern void sha1_process_bytes (const void *buffer, size_t len, 56 + struct sha1_ctx *ctx); 57 + 58 + /* Process the remaining bytes in the buffer and put result from CTX 59 + in first 20 bytes following RESBUF. The result is always in little 60 + endian byte order, so that a byte-wise output yields to the wanted 61 + ASCII representation of the message digest. 62 + 63 + IMPORTANT: On some systems it is required that RESBUF be correctly 64 + aligned for a 32 bits value. */ 65 + extern void *sha1_finish_ctx (struct sha1_ctx *ctx, void *resbuf); 66 + 67 + 68 + /* Put result from CTX in first 20 bytes following RESBUF. The result is 69 + always in little endian byte order, so that a byte-wise output yields 70 + to the wanted ASCII representation of the message digest. 71 + 72 + IMPORTANT: On some systems it is required that RESBUF is correctly 73 + aligned for a 32 bits value. */ 74 + extern void *sha1_read_ctx (const struct sha1_ctx *ctx, void *resbuf); 75 + 76 + 77 + /* Compute SHA1 message digest for bytes read from STREAM. The 78 + resulting message digest number will be written into the 20 bytes 79 + beginning at RESBLOCK. */ 80 + extern int sha1_stream (FILE *stream, void *resblock); 81 + 82 + /* Compute SHA1 message digest for LEN bytes beginning at BUFFER. The 83 + result is always in little endian byte order, so that a byte-wise 84 + output yields to the wanted ASCII representation of the message 85 + digest. */ 86 + extern void *sha1_buffer (const char *buffer, size_t len, void *resblock); 87 + 88 + #endif 89 + 90 + 91 + /* hmac.h -- hashed message authentication codes 92 + Copyright (C) 2005 Free Software Foundation, Inc. 93 + 94 + This program is free software; you can redistribute it and/or modify 95 + it under the terms of the GNU General Public License as published by 96 + the Free Software Foundation; either version 2, or (at your option) 97 + any later version. 98 + 99 + This program is distributed in the hope that it will be useful, 100 + but WITHOUT ANY WARRANTY; without even the implied warranty of 101 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 102 + GNU General Public License for more details. 103 + 104 + You should have received a copy of the GNU General Public License 105 + along with this program; if not, write to the Free Software Foundation, 106 + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 107 + 108 + /* Written by Simon Josefsson. */ 109 + 110 + #ifndef HMAC_H 111 + #define HMAC_H 1 112 + 113 + #include <stddef.h> 114 + 115 + /* Compute Hashed Message Authentication Code with SHA-1, over BUFFER 116 + data of BUFLEN bytes using the KEY of KEYLEN bytes, writing the 117 + output to pre-allocated 20 byte minimum RESBUF buffer. Return 0 on 118 + success. */ 119 + int 120 + hmac_sha1 (const void *key, size_t keylen, 121 + const void *in, size_t inlen, void *resbuf); 122 + 123 + #endif /* HMAC_H */
+1 -1
tools/mkinfo.pl
··· 5 5 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 6 6 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 7 7 # \/ \/ \/ \/ \/ 8 - # $Id: configure 13215 2007-04-20 11:58:39Z bagder $ 8 + # $Id$ 9 9 # 10 10 # Purpose: extract and gather info from a build and put that in a standard 11 11 # way in the output file. Meant to be put in rockbox zip package to help and
-29
tools/sapi5_init_tts.vbs
··· 1 - '*************************************************************************** 2 - ' __________ __ ___. 3 - ' Open \______ \ ____ ____ | | _\_ |__ _______ ___ 4 - ' Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / 5 - ' Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 6 - ' Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 7 - ' \/ \/ \/ \/ \/ 8 - ' $Id: sapi5_init_tts.vbs$ 9 - ' 10 - ' Copyright (C) 2007 Steve Bavin, Jens Arnold, Mesar Hameed 11 - ' 12 - ' All files in this archive are subject to the GNU General Public License. 13 - ' See the file COPYING in the source tree root for full license agreement. 14 - ' 15 - ' This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 16 - ' KIND, either express or implied. 17 - ' 18 - '*************************************************************************** 19 - Dim oSpVoice, sVoice 20 - 21 - Set oSpVoice = CreateObject("SAPI.SpVoice") 22 - If Err.Number <> 0 Then 23 - WScript.Echo "Error - could not get SpVoice object. " & _ 24 - "SAPI 5 not installed?" 25 - Err.Clear 26 - WScript.Quit 1 27 - End If 28 - 29 - WScript.Quit 0
-18
tools/sapi5_stop_tts.vbs
··· 1 - '*************************************************************************** 2 - ' __________ __ ___. 3 - ' Open \______ \ ____ ____ | | _\_ |__ _______ ___ 4 - ' Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / 5 - ' Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 6 - ' Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 7 - ' \/ \/ \/ \/ \/ 8 - ' $Id: sapi5_stop_tts.vbs$ 9 - ' 10 - ' Copyright (C) 2007 Steve Bavin, Jens Arnold, Mesar Hameed 11 - ' 12 - ' All files in this archive are subject to the GNU General Public License. 13 - ' See the file COPYING in the source tree root for full license agreement. 14 - ' 15 - ' This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 16 - ' KIND, either express or implied. 17 - ' 18 - '***************************************************************************
-68
tools/sapi5_voice.vbs
··· 1 - '*************************************************************************** 2 - ' __________ __ ___. 3 - ' Open \______ \ ____ ____ | | _\_ |__ _______ ___ 4 - ' Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / 5 - ' Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 6 - ' Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 7 - ' \/ \/ \/ \/ \/ 8 - ' $Id: sapi5_voice.vbs$ 9 - ' 10 - ' Copyright (C) 2007 Steve Bavin, Jens Arnold, Mesar Hameed 11 - ' 12 - ' All files in this archive are subject to the GNU General Public License. 13 - ' See the file COPYING in the source tree root for full license agreement. 14 - ' 15 - ' This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 16 - ' KIND, either express or implied. 17 - ' 18 - '*************************************************************************** 19 - ' Purpose: Make a voice clip file for the given text 20 - ' Parameters: $0 - text to convert 21 - ' $1 - file to write spoken text into (WAV format) 22 - 23 - 24 - 25 - 'To be done: 26 - ' - Somehow, persist oSpVoice across multiple clips to increase speed 27 - ' - Allow user to override voice, speed and/or format (currently uses Control Panel defaults for voice/speed) 28 - ' - Voice specific replacements/corrections for pronounciation (this should be at a higher level really) 29 - 30 - Const SSFMCreateForWrite = 3 31 - 32 - Const SPSF_8kHz16BitMono = 6 33 - Const SPSF_11kHz16BitMono = 10 34 - Const SPSF_12kHz16BitMono = 14 35 - Const SPSF_16kHz16BitMono = 18 36 - Const SPSF_22kHz16BitMono = 22 37 - Const SPSF_24kHz16BitMono = 26 38 - Const SPSF_32kHz16BitMono = 30 39 - Const SPSF_44kHz16BitMono = 34 40 - Const SPSF_48kHz16BitMono = 38 41 - 42 - Dim oSpVoice, oSpFS, nAudioFormat, sText, sOutputFile 43 - 44 - sText = Replace(WScript.Arguments(0), "\", "") 45 - sOutputFile = WScript.Arguments(1) 46 - nAudioFormat = SPSF_22kHz16BitMono 'Audio format to use, recommended settings: 47 - '- for AT&T natural voices, use SPSF_32kHz16BitMono 48 - '- for MS voices, use SPSF_22kHz16BitMono 49 - 50 - Set oSpVoice = CreateObject("SAPI.SpVoice") 51 - If Err.Number <> 0 Then 52 - WScript.Echo "Error - could not get SpVoice object. " & _ 53 - "SAPI 5 not installed?" 54 - Err.Clear 55 - WScript.Quit 1 56 - End If 57 - 58 - Set oSpFS = CreateObject("SAPI.SpFileStream") 59 - oSpFS.Format.Type = nAudioFormat 60 - oSpFS.Open sOutputFile, SSFMCreateForWrite, False 61 - Set oSpVoice.AudioOutputStream = oSpFS 62 - oSpVoice.Speak sText 63 - oSpFS.Close 64 - 65 - Set oSpFS = Nothing 66 - Set oSpVoice = Nothing 67 - Set oArgs = Nothing 68 - WScript.Quit 0
tools/sapi_voice.vbs
+1 -1
tools/voicefont.h
··· 5 5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 6 6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 7 7 * \/ \/ \/ \/ \/ 8 - * $Id: voicefont.h 15675 2007-11-18 22:01:31Z amiconn $ 8 + * $Id$ 9 9 * 10 10 * Copyright (C) 2004 by Jörg Hohensohn 11 11 *
+1 -1
tools/wavtrim.h
··· 5 5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 6 6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 7 7 * \/ \/ \/ \/ \/ 8 - * $Id: wavtrim.h 14229 2007-08-07 10:21:03Z linus $ 8 + * $Id$ 9 9 * 10 10 * Copyright (C) 2004 by Jörg Hohensohn 11 11 *
tools/wn2rdf.pl