Displaying 6 results from an estimated 6 matches for "start_sampl".
Did you mean:
start_sample
2008 Jan 09
0
libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_sound.c libswfdec/swfdec_sprite.c libswfdec/swfdec_swf_decoder.c
...ff --git a/libswfdec/swfdec_audio_event.c b/libswfdec/swfdec_audio_event.c
index fc05dcd..fa43359 100644
--- a/libswfdec/swfdec_audio_event.c
+++ b/libswfdec/swfdec_audio_event.c
@@ -188,7 +188,7 @@ swfdec_audio_event_decode (SwfdecAudioEvent *event)
}
skip = bytes_per_sample * (event->start_sample / granule);
if (skip >= event->decoded->length) {
- SWFDEC_WARNING ("start sample %u > total number of samples %u",
+ SWFDEC_WARNING ("start sample %u > total number of samples %"G_GSIZE_FORMAT,
event->start_sample / granule, event->decod...
2004 Sep 10
1
Can I STOP decoding at an exact sample?
...ng the file
decoder, I can seek to the start of the track(index 01 of the cds TOC),
but I then want it to stop playing when it gets to the index 00 of the
next track.
At the moment, I do the following, where length is the length of the
song in samples:
FLAC__file_decoder_seek_absolute(flac_dec, start_sample);
for(int i=0; i<(length/blockSize); i++) {
FLAC__file_decoder_process_one_frame(flac_dec);
}
This is pretty good, with the default block size of 4608 it's accurate
to around a 10th of a second. I am a fussy bastard tho, so I was just
wondering if theres a better way :)
Also, I am...
2007 Oct 31
0
5 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_audio.c libswfdec/swfdec_sound.c libswfdec/swfdec_xml.c
..._envelopes);
+ }
SWFDEC_LOG (" n_envelopes = %u", chunk->n_envelopes);
+ } else {
+ n_envelopes = 0;
}
- for (i = 0; i < chunk->n_envelopes; i++) {
- chunk->envelope[i].offset = swfdec_bits_get_u32 (b);
- if (chunk->envelope[i].offset < chunk->start_sample) {
- SWFDEC_WARNING ("envelope entry offset too small (%d vs %d)",
- chunk->envelope[i].offset, chunk->start_sample);
- chunk->envelope[i].offset = chunk->start_sample;
- }
- if (i > 0 && chunk->envelope[i].offset <=
- chunk->envelope[i-1...
2007 Oct 11
0
12 commits - configure.ac doc/Makefile.am libswfdec/swfdec_as_frame.c libswfdec/swfdec_audio.c libswfdec/swfdec_audio_event.c libswfdec/swfdec_audio_event.h libswfdec/swfdec_shape_parser.c libswfdec/swfdec_sound.c test/sound
...t, samples);
+ loop == 0 ? NULL : event->decoded, offset, samples);
n_samples -= samples;
dest += samples * 4;
offset = 0;
@@ -169,7 +163,7 @@ swfdec_audio_event_create (SwfdecSound *
event = g_object_new (SWFDEC_TYPE_AUDIO_EVENT, NULL);
event->sound = sound;
event->start_sample = offset;
- event->loop_count = n_loops;
+ event->n_loops = n_loops;
event->stop_sample = end_offset;
swfdec_audio_event_decode (event);
event->offset = 0;
diff --git a/libswfdec/swfdec_audio_event.h b/libswfdec/swfdec_audio_event.h
index 6771c98..40a0eb6 100644
--- a/libswf...
2007 Mar 29
0
libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_audio_event.h libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.h libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_cache.c
...in frames */
+ guint offset; /* offset in frames */
guint16 volume[2]; /* volume to use */
};
@@ -52,10 +52,10 @@ struct _SwfdecSoundChunk
int stop; /* stop the sample being played */
int no_restart; /* don't restart if already playing */
- unsigned int start_sample; /* sample at which to start playing */
- unsigned int stop_sample; /* first sample to not play anymore */
- unsigned int loop_count; /* amount of times this sample should be played back */
- unsigned int n_envelopes; /* amount of points in the envelope */
+ guint start_sample;...
2007 Mar 29
0
Branch 'as' - 9 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c
...in frames */
+ guint offset; /* offset in frames */
guint16 volume[2]; /* volume to use */
};
@@ -52,10 +52,10 @@ struct _SwfdecSoundChunk
int stop; /* stop the sample being played */
int no_restart; /* don't restart if already playing */
- unsigned int start_sample; /* sample at which to start playing */
- unsigned int stop_sample; /* first sample to not play anymore */
- unsigned int loop_count; /* amount of times this sample should be played back */
- unsigned int n_envelopes; /* amount of points in the envelope */
+ guint start_sample;...