Displaying 10 results from an estimated 10 matches for "progress_callback".
2013 Aug 20
0
sf bug 256 - Virtual functions in destructor
In 2007, user reported a segfault in
FLAC::Encoder::File::progress_callback() when called from ~Stream().
Original report at https://sourceforge.net/p/flac/bugs/256/
Hello! Sorry, english is not my best language.
I use libFLAC++ API. I have some problems. In libFLAC API all OK.
Unhandled exception at 0x00000000 in Test.exe: 0xC0000005: Access
violation reading locatio...
2010 Aug 28
4
[PATCH 0/4] Add progress bars
As discussed previously:
https://www.redhat.com/archives/libguestfs/2010-July/msg00003.html
https://www.redhat.com/archives/libguestfs/2010-July/msg00024.html
To do:
(1) Implement progress notifications for many more daemon operations.
(2) OCaml bindings to the callback.
(3) Perl bindings to the callback.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
2008 May 19
1
Memory leaks due to Metadata object vorbis comment API ???
...unsigned char FLAC_tagAlbum[] = {"Album"};
> static const unsigned char FLAC_tagYear[] = {"2008"};
> static const unsigned char FLAC_tagGenre[] = {"Audio Track"};
> static const unsigned char defFileName[16] = {"encAUDIO.flac"};
>
> static void progress_callback(const FLAC__StreamEncoder *encoder,
> FLAC__uint64 bytes_written, FLAC__uint64 samples_written, unsigned
> frames_written, unsigned total_frames_estimate, void *client_data);
>
> #define READSIZE 1024
>
> static unsigned total_samples = 0; /* can use a 32-bit number due to WAVE
&g...
2014 Sep 23
4
Disk fragmentation
...atus
init_FILE_internal_(
if(file == stdout)
file = get_binary_stdout_(); /* just to be safe */
+ setvbuf(file, NULL, _IOFBF, 10*1024*1024); /* 10MB output buffer to
help reduce disk fragmentation */
+
encoder->private_->file = file;
encoder->private_->progress_callback = progress_callback;
2010 Aug 31
13
[PATCH v2] Add progress bars
This is an updated and extended version of the original patch:
https://www.redhat.com/archives/libguestfs/2010-August/msg00163.html
This adds OCaml and Perl bindings (both tested), support for
progress bars in virt-resize, and adds progress notifications
to a number of the simpler commands.
Still to do is to add progress messages to more commands. There
are still a few commands which would be
2014 Aug 14
1
Encoder example for 24-bit files
...39;s correct.
Here is the final diff I used to use the example to convert the 24bps file:
diff --git a/examples/c/encode/file/main.c b/examples/c/encode/file/main.c
index e3bdea8..b1cf374 100644
--- a/examples/c/encode/file/main.c
+++ b/examples/c/encode/file/main.c
@@ -40,8 +40,10 @@ static void progress_callback(const
FLAC__StreamEncoder *encoder, FLAC__uint64 b
#define READSIZE 1024
+#define BPS 24 /* Bits per sample */
+
static unsigned total_samples = 0; /* can use a 32-bit number due to
WAVE size limitations */
-static FLAC__byte buffer[READSIZE/*samples*/ * 2/*bytes_per_sample*/
* 2/*channels*/];...
2015 Oct 06
6
[PATCH 0/4] ocaml: Allow Guestfs.t handle to be garbage collected.
Allow Guestfs.t handle to be garbage collected, and add a
regression test.
2012 May 02
4
[PATCH 0/4] fish: Allow the glob command to expand device patterns (RHBZ#635971).
This patch set fixes a two year old bug in guestfish, namely that the
'glob' command does not expand /dev/* patterns.
https://bugzilla.redhat.com/show_bug.cgi?id=635971
Rich.
2014 Aug 14
6
Encoder example for 24-bit files
Hi,
In the last days I've been taking as reference the example found in
examples/c/encode/file/main.c. With it I've been able to encode a 2ch,
16 bps, 44100 sample rate input WAV file to a FLAC file.
Now I've been trying to modify this example to encode a 2ch, 24 bps,
96000 sample rate WAV file. I have to say I'm a bit lost on how I
should read the input file in this case, and
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
...argc, char *argv[])
if (progress_bars) {
bar = progress_bar_init (0);
- if (!bar) {
- perror ("progress_bar_init");
- exit (EXIT_FAILURE);
- }
+ if (!bar)
+ error (EXIT_FAILURE, errno, "progress_bar_init");
guestfs_set_event_callback (g, progress_callback,
GUESTFS_EVENT_PROGRESS, 0, NULL);
@@ -1481,30 +1466,24 @@ initialize_readline (void)
if (str) {
free (ps1);
ps1 = strdup (str);
- if (!ps1) {
- perror ("strdup");
- exit (EXIT_FAILURE);
- }
+ if (!ps1)
+ error (EXIT_FA...