Debian Codegraph @

fon/LongSound.h

raw symbols SCIP
1 #cxx . . $ `<file>/fon/LongSound.h`/ifndef _LongSound_h_
2 #define _LongSound_h_cxx . . $ `fon/LongSound.h:2:9`!
3 /* LongSound.h
4 *
5 * Copyright (C) 1992-2005,2007,2008,2010-2012,2015-2017,2019,2022,2023 Paul Boersma, 2007 Erez Volk (for FLAC, MP3)
6 *
7 * This code is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or (at
10 * your option) any later version.
11 *
12 * This code is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 * See the GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this work. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #include "Sound.h"cxx . . $ `<file>/fon/Sound.h`/
22 #include "Collection.h"cxx . . $ `<file>/sys/Collection.h`/
23
24 #define COMPRESSED_MODE_READ_FLOATcxx . . $ `fon/LongSound.h:24:9`! 0
25 #define COMPRESSED_MODE_READ_SHORTcxx . . $ `fon/LongSound.h:25:9`! 1
26
27 struct FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder#;
28 struct FLAC__StreamEncodercxx . . $ FLAC__StreamEncoder#;
29 struct _MP3_FILEcxx . . $ _MP3_FILE#;
30
31 Thing_definecxx . . $ mutableLongSound# (LongSound, SampledXY) {
32 structMelderFilecxx . . $ structMelderFile# filecxx . . $ structLongSound#file.;
33 FILE *fcxx . . $ structLongSound#f.;
34 int audioFileTypecxx . . $ structLongSound#audioFileType., encodingcxx . . $ structLongSound#encoding., numberOfBytesPerSamplePointcxx . . $ structLongSound#numberOfBytesPerSamplePoint.;
35 integercxx . . $ integer# numberOfChannelscxx . . $ structLongSound#numberOfChannels.;
36 double sampleRatecxx . . $ structLongSound#sampleRate.;
37 integercxx . . $ integer# startOfDatacxx . . $ structLongSound#startOfData.;
38 double bufferLengthcxx . . $ structLongSound#bufferLength.;
39
40 integercxx . . $ integer# nmaxcxx . . $ structLongSound#nmax.;
41 autovectorcxx . . $ autovector# <int16cxx . . $ int16#> buffercxx . . $ structLongSound#buffer.; // this is always 16-bit, because we will always play sounds in 16-bit, even those from 24-bit files
42 integercxx . . $ integer# imincxx . . $ structLongSound#imin., imaxcxx . . $ structLongSound#imax.;
43 void invalidateBuffercxx . . $ structLongSound#invalidateBuffer(ced63f7c635d850d). () noexcept { ourcxx . . $ `melder/melder.h:42:9`! imincxx . . $ structLongSound#imin. = 1; ourcxx . . $ `melder/melder.h:42:9`! imaxcxx . . $ structLongSound#imax. = 0; }
44
45 struct FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *flacDecodercxx . . $ structLongSound#flacDecoder.;
46 struct _MP3_FILEcxx . . $ _MP3_FILE# *mp3fcxx . . $ structLongSound#mp3f.;
47 int compressedModecxx . . $ structLongSound#compressedMode.;
48 integercxx . . $ integer# compressedSamplesLeftcxx . . $ structLongSound#compressedSamplesLeft.;
49 double *compressedFloatscxx . . $ structLongSound#compressedFloats. [2];
50 int16cxx . . $ int16# *compressedShortscxx . . $ structLongSound#compressedShorts.;
51
52 void v9_destroycxx . . $ structLongSound#v9_destroy(ced63f7c635d850d). () noexcept
53 override;
54 void v1_infocxx . . $ structLongSound#v1_info(49f6e7a06ebc5aa8). ()
55 override;
56 void v1_copycxx . . $ structLongSound#v1_copy(42659c2335f2eda7). (Daatacxx . . $ Daata# data_to) const
57 override;
58 bool v_writablecxx . . $ structLongSound#v_writable(c9857a73d68e59ba). ()
59 override { return false; }
60 int v_domainQuantitycxx . . $ structLongSound#v_domainQuantity(455f465bc33b4cdf). () const
61 override { return MelderQuantity_TIME_SECONDScxx . . $ `melder/melder_quantity.h:22:9`!; }
62 };
63
64 autoLongSoundcxx . . $ autoLongSound# LongSound_opencxx . . $ LongSound_open(107087064625cb51). (MelderFilecxx . . $ MelderFile# file);
65
66 autoSoundcxx . . $ autoSound# LongSound_extractPartcxx . . $ LongSound_extractPart(8c068bc499307d4e). (LongSoundcxx . . $ LongSound# me, double tmin, double tmax, bool preserveTimes);
67
68 bool LongSound_haveWindowcxx . . $ LongSound_haveWindow(800e017703ada13a). (LongSoundcxx . . $ LongSound# me, double tmin, double tmax);
69 /*
70 * Returns 0 if error or if window exceeds buffer, otherwise 1;
71 */
72
73 void LongSound_getWindowExtremacxx . . $ LongSound_getWindowExtrema(149e83e2dc5652b8). (LongSoundcxx . . $ LongSound# me, double tmin, double tmax, integercxx . . $ integer# channel, double *minimum, double *maximum);
74
75 void LongSound_playPartcxx . . $ LongSound_playPart(f36b44453a225d5d). (LongSoundcxx . . $ LongSound# me, double startTime, double endTime, Sound_PlayCallbackcxx . . $ Sound_PlayCallback# playCallback, Thingcxx . . $ Thing# playBoss);
76
77 void LongSound_savePartAsAudioFilecxx . . $ LongSound_savePartAsAudioFile(ecfe2aaf8cd9945b). (LongSoundcxx . . $ LongSound# me, int audioFileType, double tmin, double tmax, MelderFilecxx . . $ MelderFile# file, int numberOfBitsPerSamplePoint);
78 void LongSound_saveChannelAsAudioFilecxx . . $ LongSound_saveChannelAsAudioFile(d8aad8f0b8024c1e). (LongSoundcxx . . $ LongSound# me, int audioFileType, integercxx . . $ integer# channel, MelderFilecxx . . $ MelderFile# file);
79
80 void LongSound_readAudioToFloatcxx . . $ LongSound_readAudioToFloat(d665ec187261507b). (LongSoundcxx . . $ LongSound# me, MATcxx . . $ MAT# buffer, integercxx . . $ integer# firstSample);
81 void LongSound_readAudioToShortcxx . . $ LongSound_readAudioToShort(f3ebc2e91f6ce9). (LongSoundcxx . . $ LongSound# me, int16cxx . . $ int16# *buffer, integercxx . . $ integer# firstSample, integercxx . . $ integer# numberOfSamples);
82
83 Collection_definecxx . . $ `sys/Collection.h:786:9`! (SoundAndLongSoundList, OrderedOf, SampledXY) {
84 };
85
86 void LongSound_concatenatecxx . . $ LongSound_concatenate(a82c96a37173ed04). (SoundAndLongSoundListcxx . . $ SoundAndLongSoundList# collection, MelderFilecxx . . $ MelderFile# file, int audioFileType, int numberOfBitsPerSamplePoint);
87
88 void LongSound_preferencescxx . . $ LongSound_preferences(49f6e7a06ebc5aa8). ();
89 integercxx . . $ integer# LongSound_getBufferSizePref_secondscxx . . $ LongSound_getBufferSizePref_seconds(da6335ded91d79c2). ();
90 void LongSound_setBufferSizePref_secondscxx . . $ LongSound_setBufferSizePref_seconds(1624ee8275b10bda). (integercxx . . $ integer# size);
91
92 /* End of file LongSound.h */
93 #endif