Home
last modified time | relevance | path

Searched refs:soundfile (Results 1 – 25 of 639) sorted by relevance

12345678910>>...26

/dports/audio/faust/faust-2.37.3/architecture/faust/gui/
H A DJuceReader.h64 soundfile->fLength[part] = int(formatReader->lengthInSamples); in readFile()
65 soundfile->fSR[part] = int(formatReader->sampleRate); in readFile()
66 soundfile->fOffset[part] = offset; in readFile()
69 if (soundfile->fIsDouble) { in readFile()
70 buffers = alloca(soundfile->fChannels * sizeof(double*)); in readFile()
71 soundfile->getBuffersOffsetReal<double>(buffers, offset); in readFile()
73 buffers = alloca(soundfile->fChannels * sizeof(float*)); in readFile()
74 soundfile->getBuffersOffsetReal<float>(buffers, offset); in readFile()
82 if (soundfile->fIsDouble) { in readFile()
85 … float* buffer = &(static_cast<float**>(soundfile->fBuffers))[chan][soundfile->fOffset[part]]; in readFile()
[all …]
H A DLibsndfileReader.h228 soundfile->fSR[part] = fDriverSR; in readFileAux()
230 soundfile->fLength[part] = int(snd_info.frames); in readFileAux()
231 soundfile->fSR[part] = snd_info.samplerate; in readFileAux()
234 soundfile->fLength[part] = int(snd_info.frames); in readFileAux()
235 soundfile->fSR[part] = snd_info.samplerate; in readFileAux()
237 soundfile->fOffset[part] = offset; in readFileAux()
244 if (soundfile->fIsDouble) { in readFileAux()
265 if (soundfile->fIsDouble) { in readFileAux()
284 if (soundfile->fIsDouble) { in readFileAux()
290 if (soundfile->fIsDouble) { in readFileAux()
[all …]
H A DMemoryReader.h81 …virtual void readFile(Soundfile* soundfile, const std::string& path_name, int part, int& offset, i… in readFile()
83 soundfile->fLength[part] = SOUND_LENGTH; in readFile()
84 soundfile->fSR[part] = SOUND_SR; in readFile()
85 soundfile->fOffset[part] = offset; in readFile()
88 if (soundfile->fIsDouble) { in readFile()
91 static_cast<double**>(soundfile->fBuffers)[chan][offset + sample] = 0.f; in readFile() local
97 static_cast<float**>(soundfile->fBuffers)[chan][offset + sample] = 0.f; in readFile() local
H A DSoundfile.h249 …virtual void readFile(Soundfile* soundfile, const std::string& path_name, int part, int& offset, i…
262 …virtual void readFile(Soundfile* soundfile, unsigned char* buffer, size_t size, int part, int& off… in readFile() argument
293 Soundfile* soundfile = new Soundfile(cur_chan, total_length, max_chan, is_double); in createSoundfile() local
301 soundfile->emptyFile(i, offset); in createSoundfile()
303 readFile(soundfile, path_name_list[i], i, offset, max_chan); in createSoundfile()
309 soundfile->emptyFile(i, offset); in createSoundfile()
313 soundfile->shareBuffers(cur_chan, max_chan); in createSoundfile()
314 return soundfile; in createSoundfile()
H A DWaveReader.h330 …virtual void readFile(Soundfile* soundfile, const std::string& path_name, int part, int& offset, i… in readFile()
335soundfile->fLength[part] = (reader.fWave->subchunk_2_size * 8) / (reader.fWave->num_channels * rea… in readFile()
336 soundfile->fSR[part] = reader.fWave->sample_rate; in readFile()
337 soundfile->fOffset[part] = offset; in readFile()
342 for (int sample = 0; sample < soundfile->fLength[part]; sample++) { in readFile()
345 soundfile->fBuffers[chan][offset + sample] = frame[chan] * factor; in readFile()
353 offset += soundfile->fLength[part]; in readFile()
/dports/games/easyrpg-player/Player-0.7.0/src/
H A Ddecoder_libsndfile.cpp68 soundfile=0; in LibsndfileDecoder()
72 if(soundfile != 0){ in ~LibsndfileDecoder()
73 sf_close(soundfile); in ~LibsndfileDecoder()
79 soundfile=sf_open_virtual(&vio,SFM_READ,&soundinfo,&this->stream); in Open()
80 sf_command(soundfile, SFC_SET_SCALE_FLOAT_INT_READ, NULL, SF_TRUE); in Open()
84 return soundfile!=0; in Open()
89 if(soundfile == 0) in Seek()
102 if(soundfile==0) return; in GetFormat()
109 if(soundfile == 0) in SetFormat()
125 if(soundfile == 0) in FillBuffer()
[all …]
/dports/audio/faust/faust-2.37.3/tests/soundfile/
H A Dtp1.dsp7 //process = (part, +(1)~_) : soundfile("files [url: {'RnB.wav';'tango.wav';'levot.wav'}]",2) :(!,!,…
9soundfile("files [url: {'/Documents/faust-github-faust2/tests/soundfile/RnB.wav';'/Documents/faust…
11 //process = so.loop_speed(soundfile("files [url: {'RnB.wav';'tango.wav';'levot.wav'}]",2), part, sp…
13 //process = so.loop_speed_level(soundfile("files [url: {'RnB.wav';'tango.wav';'levot.wav'}]",2), pa…
15 process = so.loop_speed_level(soundfile("files [url: {'RnB.wav';'tango.wav';'levot-all.wav'}]",2), …
/dports/games/crrcsim/crrcsim-0.9.13/src/
H A Dcrrc_loadair.cpp141 std::string soundfile; in initSound() local
142 soundfile = child->attribute("filename"); in initSound()
163 if (soundfile != "") in initSound()
166 soundfile = FileSysTools::getDataPath("sounds/" + soundfile); in initSound()
170 if (!FileSysTools::fileExists(soundfile)) in initSound()
171 soundfile = FileSysTools::getDataPath("sounds/fan.wav"); in initSound()
173 std::cout << "soundfile: " << soundfile << "\n"; in initSound()
178 if (soundfile != "" && Global::soundserver != (CRRCAudioServer*)0) in initSound()
180 …std::cout << "Using airplane sound " << soundfile << ", type " << sound_type << ", max vol " << dM… in initSound()
196 glidersound = new T_GliderSound(soundfile.c_str(), Global::soundserver->getAudioSpec()); in initSound()
[all …]
/dports/x11-wm/ctwm/ctwm-4.0.3/
H A Dsound.c156 char *soundfile; in sound_load_list() local
169 if(asprintf(&soundfile, "%s/.ctwm-sounds", home) < 0) { in sound_load_list()
173 fl = fopen(soundfile, "r"); in sound_load_list()
174 free(soundfile); in sound_load_list()
311 set_sound_event_name(const char *ename, const char *soundfile) in set_sound_event_name() argument
325 return set_sound_event(i, soundfile); in set_sound_event_name()
329 set_sound_event(int snd, const char *soundfile) in set_sound_event() argument
348 if(rplay_set(rp[snd], RPLAY_INSERT, 0, RPLAY_SOUND, soundfile, NULL) in set_sound_event()
/dports/games/xboing/xboing/audio/
H A DHPaudio.c164 char soundfile[1024]; local
173 sprintf(soundfile, "%s/%s.au", str, filename);
175 sprintf(soundfile, "%s/%s.au", SOUNDS_DIR, filename);
178 if ((ifd = open(soundfile, O_RDONLY, 0)) < 0)
181 sprintf(errorString, "Unable to open sound file %s.", soundfile);
208 soundfile);
H A DLINUXaudio.c117 static char soundfile[512]; local
142 sprintf(soundfile, "%s/%s.au", str, string);
144 sprintf(soundfile, "%s/%s.au", SOUNDS_DIR, string);
147 if ((ifd = open(soundfile, O_RDONLY, 0)) < 0)
150 sprintf(errorString, "Unable to open sound file %s.", soundfile);
174 sprintf(errorString, "Problem while reading soundfile %s", soundfile);
H A DSVR4audio.c108 static char soundfile[512]; local
132 sprintf(soundfile, "%s/%s.au", str, string);
134 sprintf(soundfile, "%s/%s.au", SOUNDS_DIR, string);
137 if ((ifd = open(soundfile, O_RDONLY, 0)) < 0)
140 sprintf(errorString, "Unable to open sound file %s.", soundfile);
164 sprintf(errorString, "Problem while reading soundfile %s", soundfile);
H A DSUNaudio.c285 char soundfile[1024]; local
296 sprintf(soundfile, "%s/%s.au", str, filename);
298 sprintf(soundfile, "%s/%s.au", SOUNDS_DIR, filename);
301 if ((ifd = open(soundfile, O_RDONLY, 0)) < 0)
304 sprintf(errorString, "Unable to open sound file %s.", soundfile);
314 sprintf(errorString, "Unable to parse sound file %s.", soundfile);
359 sprintf(errorString, "Problem while reading soundfile %s", soundfile);
H A DAFaudio.c295 char soundfile[1024]; local
305 sprintf(soundfile, "%s/%s.au", str, filename);
307 sprintf(soundfile, "%s/%s.au", SOUNDS_DIR, filename);
312 if ((fd = open(soundfile, O_RDONLY, 0)) < 0)
314 sprintf(errorString, "Unable to open sound file %s .", soundfile);
325 sprintf(errorString, "Unable to play sound file %s .", soundfile);
H A DBSDaudio.c283 char soundfile[FILENAME_MAX]; local
291 sprintf(soundfile, "%s/%s.au", str, filename);
293 sprintf(soundfile, "%s/%s.au", SOUNDS_DIR, filename);
296 if ((fd = open(soundfile, O_RDONLY, 0)) < 0)
299 sprintf(errorString, "Unable to open sound file %s.", soundfile);
307 sprintf(errorString, "Unable to play sound file %s.", soundfile);
/dports/audio/aubio/aubio-0.4.9/python/tests/
H A Dtest_sink.py18 for soundfile in list_of_sounds:
21 all_params.append((hop_size, samplerate, soundfile))
64 orig_samplerate = parse_file_samplerate(soundfile)
69 f = source(soundfile, samplerate, hop_size)
71 f = source(soundfile, samplerate, hop_size)
88 orig_samplerate = parse_file_samplerate(soundfile)
93 f = source(soundfile, samplerate, hop_size)
95 f = source(soundfile, samplerate, hop_size)
H A Dtest_source.py18 for soundfile in list_of_sounds:
21 all_params.append((hop_size, samplerate, soundfile))
78 def test_samplerate_hopsize(self, hop_size, samplerate, soundfile): argument
79 orig_samplerate = parse_file_samplerate(soundfile)
84 f = source(soundfile, samplerate, hop_size)
86 f = source(soundfile, samplerate, hop_size)
92 if 'f_' in soundfile and samplerate == 0:
95 match_f = re.findall('([0-9]*)f_', soundfile)
/dports/audio/py-aubio/aubio-0.4.9/python/tests/
H A Dtest_sink.py18 for soundfile in list_of_sounds:
21 all_params.append((hop_size, samplerate, soundfile))
64 orig_samplerate = parse_file_samplerate(soundfile)
69 f = source(soundfile, samplerate, hop_size)
71 f = source(soundfile, samplerate, hop_size)
88 orig_samplerate = parse_file_samplerate(soundfile)
93 f = source(soundfile, samplerate, hop_size)
95 f = source(soundfile, samplerate, hop_size)
H A Dtest_source.py18 for soundfile in list_of_sounds:
21 all_params.append((hop_size, samplerate, soundfile))
78 def test_samplerate_hopsize(self, hop_size, samplerate, soundfile): argument
79 orig_samplerate = parse_file_samplerate(soundfile)
84 f = source(soundfile, samplerate, hop_size)
86 f = source(soundfile, samplerate, hop_size)
92 if 'f_' in soundfile and samplerate == 0:
95 match_f = re.findall('([0-9]*)f_', soundfile)
/dports/audio/py-SoundFile/SoundFile-0.10.3.post1/
H A DREADME.rst28 .. |version| image:: https://img.shields.io/pypi/v/soundfile.svg
31 .. |downloads| image:: https://img.shields.io/pypi/dm/soundfile.svg
43 ``import soundfile`` in 0.7. In 0.6, we cleaned up many small
88 import soundfile as sf
97 with `soundfile.blocks()`.
104 import soundfile as sf
123 import soundfile as sf
144 import soundfile as sf
164 import soundfile as sf
173 import soundfile as sf
[all …]
H A DPKG-INFO36 .. |version| image:: https://img.shields.io/pypi/v/soundfile.svg
39 .. |downloads| image:: https://img.shields.io/pypi/dm/soundfile.svg
51 ``import soundfile`` in 0.7. In 0.6, we cleaned up many small
96 import soundfile as sf
105 with `soundfile.blocks()`.
112 import soundfile as sf
131 import soundfile as sf
152 import soundfile as sf
172 import soundfile as sf
181 import soundfile as sf
[all …]
/dports/audio/py-SoundFile/SoundFile-0.10.3.post1/SoundFile.egg-info/
H A DPKG-INFO36 .. |version| image:: https://img.shields.io/pypi/v/soundfile.svg
39 .. |downloads| image:: https://img.shields.io/pypi/dm/soundfile.svg
51 ``import soundfile`` in 0.7. In 0.6, we cleaned up many small
96 import soundfile as sf
105 with `soundfile.blocks()`.
112 import soundfile as sf
131 import soundfile as sf
152 import soundfile as sf
172 import soundfile as sf
181 import soundfile as sf
[all …]
/dports/audio/faust/faust-2.37.3/tools/sound2faust/
H A Dsound2faust.cpp56 SNDFILE* soundfile; in main() local
83 soundfile = sf_open(argv[1], SFM_READ, &snd_info); in main()
85 if (!soundfile) { in main()
108 nbf = sf_readf_double(soundfile, buffer, BUFFER_SIZE); in main()
121 sf_seek(soundfile, 0, SEEK_SET); in main()
126 nbf = sf_readf_double(soundfile, buffer, BUFFER_SIZE); in main()
/dports/emulators/fuse-utils/fuse-utils-1.4.3/importer/
H A Dsoundfile.cc35 soundfile::soundfile( std::string filename, trigger* edge_detector, in soundfile() function in soundfile
134 soundfile::~soundfile() in ~soundfile()
139 soundfile::get_pulse_list() in get_pulse_list()
145 soundfile::display_stats() in display_stats()
160 soundfile::get_tape_block( libspectrum_tape *tape, double start_tstates, in get_tape_block()
/dports/sysutils/battray/battray-version-2.3/battray/
H A Dsound.py11 def play(soundfile, method=None): argument
14 logging.info('Playing {}'.format(soundfile))
15 if not soundfile.endswith('.wav'): soundfile += '.wav'
17 wav = wave.open(soundfile, 'rb')

12345678910>>...26