Home
last modified time | relevance | path

Searched refs:sounddata (Results 1 – 25 of 44) sorted by relevance

12

/dports/audio/sweep/sweep-0.9.3/src/
H A Dsweep_sounddata.c110 g_list_free(sounddata->sels); in sounddata_clear_selection()
112 sounddata->sels = NULL; in sounddata_clear_selection()
120 sounddata->refcount--; in sounddata_destroy()
122 if (sounddata->refcount <= 0) { in sounddata_destroy()
124 g_free (sounddata->data); in sounddata_destroy()
126 len = frames_to_bytes (sounddata->format, sounddata->nr_frames); in sounddata_destroy()
130 g_free (sounddata); in sounddata_destroy()
165 gl = sounddata->sels; in sounddata_sel_needs_normalising()
209 gl = sounddata->sels; in sounddata_normalise_selection()
258 sounddata->sels = nsels; in sounddata_normalise_selection()
[all …]
H A Dedit.c339 return edit_buffer_from_sounddata_sels (sounddata, sounddata->sels); in edit_buffer_from_sounddata()
471 sw_sounddata * sounddata = sample->sounddata; in splice_out_sel() local
493 d = sounddata->data; in splice_out_sel()
627 sw_sounddata * sounddata = sample->sounddata; in splice_in_eb_data() local
730 return sounddata; in crop_in_eb_data()
798 return sounddata; in crop_in_eb_data()
810 sounddata = sample->sounddata; in crop_in()
845 sw_sounddata * sounddata = sample->sounddata; in edit_clear_sel() local
883 sw_sounddata * sounddata = sample->sounddata; in crop_out() local
1003 sw_sounddata * sounddata = sample->sounddata; in paste_insert() local
[all …]
H A Dsweep_sample.c215 memcpy(sn->sounddata->data, s->sounddata->data, in sample_new_copy()
218 sounddata_copyin_selection (s->sounddata, sn->sounddata); in sample_new_copy()
1415 sw_sounddata * sounddata = s->sounddata; in ss_invert() local
1423 sounddata->sels = sels_invert (sounddata->sels, sounddata->nr_frames); in ss_invert()
1471 sw_sounddata * sounddata = s->sounddata; in ss_select_all() local
1491 sw_sounddata * sounddata = s->sounddata; in ss_select_none() local
1511 sw_sounddata * sounddata = s->sounddata; in ss_halve() local
1531 sw_sounddata * sounddata = s->sounddata; in ss_double() local
1551 sw_sounddata * sounddata = s->sounddata; in ss_shift_left() local
1574 sw_sounddata * sounddata = s->sounddata; in ss_shift_right() local
[all …]
H A Dplay.c151 sw_sounddata * sounddata = sample->sounddata; in head_read_unrestricted() local
152 sw_format * f = sounddata->format; in head_read_unrestricted()
164 d = (sw_audio_t *)sounddata->data; in head_read_unrestricted()
301 sw_sounddata * sounddata = sample->sounddata; in head_read() local
302 sw_format * f = sounddata->format; in head_read()
454 g_mutex_lock (sounddata->sels_mutex); in head_read()
456 gl = g_list_last (sounddata->sels); in head_read()
460 gl = sounddata->sels; in head_read()
727 f = s->sounddata->format; in play_heads()
1008 if (s->sounddata->sels == NULL) { in play_view_sel()
[all …]
H A Dfile_mad.c224 sample->sounddata->format->channels = pcm->channels; in output()
225 sample->sounddata->format->rate = pcm->samplerate; in output()
232 g_mutex_lock(sample->sounddata->data_mutex); in output()
234 sample->sounddata->data = g_realloc(sample->sounddata->data, in output()
235 frames_to_bytes (sample->sounddata->format, in output()
237 g_mutex_unlock(sample->sounddata->data_mutex); in output()
241 sample->sounddata->nr_frames = info->nr_frames; in output()
243 d = (sw_audio_t *)sample->sounddata->data; in output()
411 channels = sample->sounddata->format->channels; in sample_load_mad_info()
412 rate = sample->sounddata->format->rate; in sample_load_mad_info()
[all …]
H A Dsweep_filter.c44 sw_sounddata * sounddata = sample->sounddata; in do_filter_regions() local
45 sw_format * f = sounddata->format; in do_filter_regions()
55 sel_total = sounddata_selection_nr_frames (sounddata) / 100; in do_filter_regions()
59 for (gl = sounddata->sels; active && gl; gl = gl->next) { in do_filter_regions()
71 d = sounddata->data + (int)frames_to_bytes (f, sel->sel_start + offset); in do_filter_regions()
75 func (d, sounddata->format, n, pset, custom_data); in do_filter_regions()
104 if (sample == NULL || sample->sounddata == NULL || in do_filter_regions_thread()
105 sample->sounddata->sels == NULL) goto noop; in do_filter_regions_thread()
H A Dchannelops.c64 old_sounddata = sample->sounddata; in do_dup_channels_thread()
119 sample->sounddata = new_sounddata; in do_dup_channels_thread()
215 sample->sounddata->format->channels); in dup_channels_dialog_new_cb()
224 sample->sounddata->format->channels); in dup_channels_dialog_new_cb()
273 old_sounddata = sample->sounddata; in do_mono_mixdown_thread()
322 sample->sounddata = new_sounddata; in do_mono_mixdown_thread()
368 old_sounddata = sample->sounddata; in do_remove_channel_thread()
420 sample->sounddata = new_sounddata; in do_remove_channel_thread()
471 nr_frames = sample->sounddata->nr_frames; in do_stereo_swap()
565 old_sounddata = sample->sounddata; in do_change_channels_thread()
[all …]
H A Dhead.c240 frames_to_time (sample->sounddata->format, offset)); in hctl_refresh_offset()
257 step = sample->sounddata->format->rate; /* 1 second */ in h_rewind_step()
312 head_set_offset (head, sample->sounddata->nr_frames); in hctl_goto_end_cb()
808 sw_sounddata * sounddata = sample->sounddata; in head_write_unrestricted() local
809 sw_format * f = sounddata->format; in head_write_unrestricted()
814 d = sounddata->data + in head_write_unrestricted()
849 sw_sounddata * sounddata = sample->sounddata; in head_write() local
850 sw_format * f = sounddata->format; in head_write()
856 g_mutex_lock (sounddata->sels_mutex); in head_write()
872 for (gl = sounddata->sels; gl; gl = gl->next) { in head_write()
[all …]
H A Dfile_sndfile1.c179 format = sample->sounddata->format;
457 sample->sounddata->format->rate));
539 format = sample->sounddata->format;
612 d = sample->sounddata->data;
748 sounddata_destroy (sample->sounddata);
749 sample->sounddata =
821 format = sample->sounddata->format;
848 fbuf = sample->sounddata->data;
874 d = sample->sounddata->data;
902 d = sample->sounddata->data;
[all …]
H A Dsample-display.c546 len = s->view->sample->sounddata->nr_frames; in sample_display_set_window()
595 len = s->view->sample->sounddata->nr_frames; in sample_display_init_display()
867 nr_frames = sample->sounddata->nr_frames; in sample_display_draw_data_channel()
1110 …cy1 = ((sw_audio_t *)sample->sounddata->data)[OFFSET_RANGE(sample->sounddata->nr_frames, XPOS_TO_O… in sample_display_draw_crossing_vector()
1111 …cy2 = ((sw_audio_t *)sample->sounddata->data)[OFFSET_RANGE(sample->sounddata->nr_frames, XPOS_TO_O… in sample_display_draw_crossing_vector()
1641 s->view->sample->sounddata->nr_frames - in sample_display_hand_scroll()
1669 s->view->sample->sounddata->nr_frames - in sample_display_scroll_left()
1693 s->view->sample->sounddata->nr_frames - in sample_display_scroll_right()
1867 sample->sounddata->nr_frames - vlen); in sample_display_handle_move_motion()
1896 channels = sample->sounddata->format->channels; in sample_display_handle_pencil_motion()
[all …]
H A Dcallbacks.c303 s->sounddata->nr_frames / 4, in zoom_2_1_cb()
304 3 * s->sounddata->nr_frames / 4); in zoom_2_1_cb()
349 time_to_frames (view->sample->sounddata->format, zoom_time); in zoom_combo_changed_cb()
507 if (view->sample->sounddata->sels == NULL) { in play_view_sel_button_cb()
528 if (view->sample->sounddata->sels == NULL) { in play_view_sel_cb()
566 if (view->sample->sounddata->sels != NULL) { in preview_cut_cb()
601 step = sample->sounddata->format->rate; /* 1 second */ in rewind_step()
613 step = sample->sounddata->format->rate; /* 1 second */ in ffwd_step()
626 step = MIN(sample->sounddata->format->rate, (view->end - view->start)); in page_back_cb()
637 step = MIN(sample->sounddata->format->rate, (view->end - view->start)); in page_fwd_cb()
[all …]
H A Dview.c2714 if (sample->sounddata->sels) in view_new()
3081 gl = view->sample->sounddata->sels;
3440 if (s->sounddata->nr_frames > 0) {
3445 s->sounddata->format->rate,
3458 s->sounddata->format->rate,
3476 sw_sounddata * sounddata = s->sounddata; local
3491 frames_to_bytes (sounddata->format, sounddata->nr_frames));
3494 frames_to_time (sounddata->format, sounddata->nr_frames));
3496 switch (s->sounddata->format->channels) {
3511 s->sounddata->format->rate,
[all …]
/dports/audio/sweep/sweep-0.9.3/include/sweep/
H A Dsweep_sounddata.h28 sounddata_destroy (sw_sounddata * sounddata);
31 sounddata_lock_selection (sw_sounddata * sounddata);
34 sounddata_unlock_selection (sw_sounddata * sounddata);
37 sounddata_clear_selection (sw_sounddata * sounddata);
47 sounddata_normalise_selection (sw_sounddata * sounddata);
50 sounddata_add_selection (sw_sounddata * sounddata, sw_sel * sel);
53 sounddata_add_selection_1 (sw_sounddata * sounddata,
57 sounddata_set_selection_1 (sw_sounddata * sounddata,
61 sounddata_selection_nr_regions (sw_sounddata * sounddata);
64 sounddata_selection_nr_frames (sw_sounddata * sounddata);
[all …]
/dports/graphics/gnash/gnash-2b3bdede0305c4fc3ad21a0a4197330606c9b880/libsound/
H A Dsound_handler.cpp157 if (!sounddata) { in addSoundBlock()
227 for (EmbedSound* sounddata : _sounds) in stop_all_sounds()
235 if (!sounddata) continue; in stop_all_sounds()
277 assert(sounddata); in stopStreamingSound()
279 stopEmbedSoundInstances(*sounddata); in stopStreamingSound()
292 if (!sounddata) { in stopEventSound()
301 stopEmbedSoundInstances(*sounddata); in stopEventSound()
312 for (EmbedSound* sounddata : _sounds) in stopAllEventSounds()
474 sounddata->size()); in create_sound()
493 return sounddata.isPlaying(); in isSoundPlaying()
[all …]
/dports/audio/sweep/sweep-0.9.3/plugins/byenergy/
H A Dbyenergy.c114 sw_sounddata * sounddata; in select_by_energy() local
123 sounddata = sample_get_sounddata (s); in select_by_energy()
126 length = sounddata->nr_frames; in select_by_energy()
133 d = (sw_audio_t *)sounddata->data; in select_by_energy()
135 sounddata_lock_selection (sounddata); in select_by_energy()
137 sounddata_clear_selection (sounddata); in select_by_energy()
141 length = sounddata->nr_frames; in select_by_energy()
171 length = sounddata->nr_frames; in select_by_energy()
203 sounddata_add_selection_1 (sounddata, start+1, end-1); in select_by_energy()
216 sounddata_add_selection_1 (sounddata, start, end); in select_by_energy()
[all …]
/dports/games/nazghul/nazghul-0.7.1/worlds/haxima-1.002/
H A Dsounds.scm129 (let* ((sounddata (gob (car dataslist)))
130 (oldstate (car sounddata))
133 (set-car! sounddata newstate)
136 (music-set-pair nil (list-ref sounddata 1))
137 (music-set-pair (list-ref sounddata 4) (list-ref sounddata 1))
140 (music-set-pair (list-ref sounddata 2) (list-ref sounddata 3))
141 (music-set-pair nil (list-ref sounddata 3))
151 (let ((sounddata (gob (car dataslist)))
154 (set-car! sounddata newstate)
156 (music-set-pair nil (list-ref sounddata 1))
[all …]
/dports/devel/love10/love-0.10.2/src/modules/sound/
H A Dwrap_SoundData.lua55 __index = function(self, sounddata)
56 local bytedepth = _getBitDepth(sounddata) / 8
57 local pointer = ffi.cast(datatypes[bytedepth], sounddata:getPointer())
62 size = sounddata:getSize(),
64 samplecount = _getSampleCount(sounddata),
65 samplerate = _getSampleRate(sounddata),
66 channels = _getChannels(sounddata),
67 duration = _getDuration(sounddata),
70 self[sounddata] = p
/dports/devel/love/love-11.3/src/modules/sound/
H A Dwrap_SoundData.lua56 __index = function(self, sounddata)
57 local bytedepth = _getBitDepth(sounddata) / 8
58 local pointer = ffi.cast(datatypes[bytedepth], sounddata:getPointer())
63 size = sounddata:getSize(),
65 samplecount = _getSampleCount(sounddata),
66 samplerate = _getSampleRate(sounddata),
67 channels = _getChannelCount(sounddata),
68 duration = _getDuration(sounddata),
71 self[sounddata] = p
/dports/audio/sweep/sweep-0.9.3/plugins/normalise/
H A Dnormalise.c33 sw_sounddata * sounddata; in normalise() local
46 sounddata = sample_get_sounddata (sample); in normalise()
47 f = sounddata->format; in normalise()
49 op_total = sounddata_selection_nr_frames (sounddata) * 2 / 100;/* 2 passes */ in normalise()
54 for (gl = sounddata->sels; active && gl; gl = gl->next) { in normalise()
67 d = sounddata->data + frames_to_bytes (f, sel->sel_start + offset); in normalise()
90 for (gl = sounddata->sels; active && gl; gl = gl->next) { in normalise()
102 d = sounddata->data + frames_to_bytes (f, sel->sel_start + offset); in normalise()
/dports/audio/sweep/sweep-0.9.3/plugins/fade/
H A Dfade.c33 sw_sounddata * sounddata; in fade() local
45 sounddata = sample_get_sounddata (sample); in fade()
46 f = sounddata->format; in fade()
48 op_total = sounddata_selection_nr_frames (sounddata) / 100; in fade()
49 frames_total = sounddata_selection_nr_frames (sounddata); in fade()
56 for (gl = sounddata->sels; active && gl; gl = gl->next) { in fade()
69 d = sounddata->data + frames_to_bytes (f, sel->sel_start + offset); in fade()
93 for (gl = sounddata->sels; active && gl; gl = gl->next) { in fade()
105 d = sounddata->data + frames_to_bytes (f, sel->sel_start + offset); in fade()
/dports/audio/sweep/sweep-0.9.3/plugins/reverse/
H A Dreverse.c64 sw_sounddata * sounddata; in sounddata_reverse() local
74 sounddata = sample_get_sounddata (sample); in sounddata_reverse()
75 format = sounddata->format; in sounddata_reverse()
77 op_total = sounddata_selection_nr_frames (sounddata) / 200; in sounddata_reverse()
84 for (gl = sounddata->sels; active && gl; gl = gl->next) { in sounddata_reverse()
87 d = sounddata->data + frames_to_bytes (format, sel->sel_start); in sounddata_reverse()
/dports/audio/spiralsynth/SpiralSynth-0.1.7/SpiralSound/
H A DAmp.C25 void Amp::GetOutput(short *levdata, short *sounddata) in GetOutput() argument
29 sounddata[n]=static_cast<short>(sounddata[n]*levdata[n]*SpiralInfo::VALUECONV); in GetOutput()
/dports/games/libretro-mame2003/mame2003-libretro-4358db4/src/sndhrdw/
H A Dharddriv_sndhrdw.c27 static UINT16 sounddata; variable
90 logerror("%06X:main read from sound=%04X\n", activecpu_get_previouspc(), sounddata); in READ16_HANDLER()
91 return sounddata; in READ16_HANDLER()
144 COMBINE_DATA(&sounddata); in WRITE16_HANDLER()
/dports/games/libretro-mame2003_plus/mame2003-plus-libretro-17e9889/src/sndhrdw/
H A Dharddriv_sndhrdw.c27 static UINT16 sounddata; variable
90 …RETRO_LOG_DEBUG, LOGPRE "%06X:main read from sound=%04X\n", activecpu_get_previouspc(), sounddata); in READ16_HANDLER()
91 return sounddata; in READ16_HANDLER()
144 COMBINE_DATA(&sounddata); in WRITE16_HANDLER()
/dports/audio/sweep/sweep-0.9.3/plugins/ladspa/
H A Dladspameta.c265 sw_sounddata * sounddata; in ladspa_meta_suggest() local
272 sounddata = sample_get_sounddata (sample); in ladspa_meta_suggest()
277 pset[pset_i] = convert_default (sounddata->format, in ladspa_meta_suggest()
295 sw_sounddata * sounddata; in ladspa_meta_apply_filter() local
343 sounddata = sample_get_sounddata (sample); in ladspa_meta_apply_filter()
344 format = sounddata->format; in ladspa_meta_apply_filter()
347 op_total = sounddata_selection_nr_frames (sounddata) / 100; in ladspa_meta_apply_filter()
495 for (gl = sounddata->sels; active && gl; gl = gl->next) { in ladspa_meta_apply_filter()
507 pcmdata = sounddata->data + in ladspa_meta_apply_filter()

12