Displaying 20 results from an estimated 45 matches for "write_callbacks".
Did you mean:
write_callback
2017 Dec 13
3
using libflac++ on a live internet stream
...e read_callback. It takes the data
> but always calls the read_callback again for more data. It does call
> error_callback (status == 0) once, but never write_callback. So, I'm
> guessing that the packet does not have enough data for a frame.
> >
> > So, I tried queueing write_callbacks at the encoder before packetizing
> it and sending it. It seems like encoder init causes three write_callbacks
> that make up the metadata, and then each call to process causes one
> write_callback that is presumably the frame data. The documentation states
> that one cannot rely on t...
2017 Dec 12
2
using libflac++ on a live internet stream
...then supply the packet data in the read_callback. It takes the data
but always calls the read_callback again for more data. It does call
error_callback (status == 0) once, but never write_callback. So, I'm
guessing that the packet does not have enough data for a frame.
So, I tried queueing write_callbacks at the encoder before packetizing it
and sending it. It seems like encoder init causes three write_callbacks
that make up the metadata, and then each call to process causes one
write_callback that is presumably the frame data. The documentation states
that one cannot rely on this, but I can't...
2017 Dec 13
0
using libflac++ on a live internet stream
On Wed, 13 Dec 2017 09:12:43 -0700
Chris Barrett <cbarrett.colo at gmail.com> wrote:
> Thanks Brian. I converted everything to libFLAC and got the same
> results.
>
> Here is some debug output
> encoder:
> [34.270050] FLAC encoder set succeeded
> [34.271183] write_callback, frame: 0, samples: 0
> [34.271282] write_callback, frame: 0, samples: 0
> [34.271313]
2004 Sep 10
2
FLAC++ SeekableStream write_callback not being called?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I am trying to create a FLAC plugin for the K3b CD burning program. To do this
I have subclassed the FLAC::Decoder::SeekableStream class. I can obtain the
vorbiscomment data using set_metadata_respond, process_until_end_of_metadata
and the metadata_callback, however I cannot decode the audio data. It seems
to me as though the write_callback
2004 Sep 10
0
FLAC++ SeekableStream write_callback not being called?
I'll have to see the whole class definition to tell what's
wrong; nothing below looks wrong.
the unit tests (see src/test_libFLAC++/) have some examples
and the write callbacks do get called.
Josh
--- John Steele Scott <toojays@toojays.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I am trying to create a FLAC plugin for the K3b CD
2017 Dec 12
0
using libflac++ on a live internet stream
...ly the packet data in the read_callback. It takes the data but always calls the read_callback again for more data. It does call error_callback (status == 0) once, but never write_callback. So, I'm guessing that the packet does not have enough data for a frame.
>
> So, I tried queueing write_callbacks at the encoder before packetizing it and sending it. It seems like encoder init causes three write_callbacks that make up the metadata, and then each call to process causes one write_callback that is presumably the frame data. The documentation states that one cannot rely on this, but I can't...
2006 Jun 17
3
Assistance with an encoding plugin
Hi,
I'm working on writing a FLAC encoding plugin for a personal cd ripping
project of mine which uses paranoia for the raw audio extraction. My
basic setup which follows gets me oddly high pitched audio with lots of
noise (although the music IS somewhat recognizable).
#include <FLAC/stream_encoder.h>
FLAC__StreamEncoder *encoder;
FILE *output_file_descriptor;
encoder =
2013 Feb 09
2
Newbie question about those callbacks
For instance the write_callback thing:
client_data ? can it be a pointer to just about anything? For instance
a pointer to a two-dimensional array?
Are those FLAC-WAV and WAV-FLAC examples the only examples available?
What would be the best approach to read a FLAC file to an array of
some kind? Passing a pointer to the array as ?client_data?? I'd like
to use a two-dimensional array, but
2014 Mar 08
2
16 bits FLAC file data to 32 bit float buffer for CPU processing
Hello.
I create FLAC file decoding, processing and playing program and have the following question : how to convert FLAC 16 bit file data to 32 bit float buffer for CPU processing? I've already inplemented sound playing and tested it with sine wave - it works without problems; I even made writing into decoding buffer values of sine wave, instead of decoded FLAC file data, and it also works
2016 Jan 19
0
FLAC__stream_decoder_seek_absolute calling write callback
> Hi,
> Sorry for the tardy response to this. I've now read your email a number of
> times and I'm still not sure what needs to be done.
> Maybe it would help if you could explain the following:
> * What is actually happening.
> * What you expect to happen and how that differs from what is happening.
> * Propose a fix.
> Once thing that may actually help is a small
2019 Jun 04
2
Re: [PATCH libnbd v2 3/4] api: Implement concurrent writer.
There are several races / deadlocks which I've thought about. Let's
see if I can remember them all ...
(1) This I experienced: nbd_aio_get_fd deadlocks if there are
concurrent synchronous APIs going on. A typical case is where you set
up the concurrent writer thread before connecting, and then call a
synchronous connect function such as connect_tcp. The synchronous
function grabs
2016 Nov 02
0
[PATCH 2/6] New API: yara_load
The yara_load API allows to load a set of Yara rules contained within a
file on the host.
Rules can be in binary format, as when compiled with yarac command, or
in source code format. In the latter case, the rules will be first
compiled and then loaded.
Subsequent calls of the yara_load API will result in the discard of the
previously loaded rules.
Signed-off-by: Matteo Cafasso
2004 Oct 16
1
FLAC Process_single... read:write ratio ?
I'm just trying to wrap the flac decoder into a push model class... as i'm
having a few threading problems in corner cases.
One thing i need to fnid out is... if i call process_single() and let the
read callback give the decoder exactly one packet/frame.
Is the write_callback garaunteed to only be fired once ?
Also one other thing... this where is always crashes...
Line 374 in
2016 Jul 10
1
[PATCH] set decoding status if write callback failed.
Open src/flac/decode.c, find write_callback() function and add
return FLAC__STREAM_DECODER_WRITE_STATUS_ABORT;
to the beginning of the function. Decoding will fail with
the following message:
test.flac: ERROR while decoding data
state = FLAC__STREAM_DECODER_READ_FRAME
As you can see, decoder state isn't quite correct.
One of the ways to fix this is in the attached
2006 Jun 19
0
Assistance with an encoding plugin
At 01:08 PM 6/17/2006, B. Ryan Newberry wrote:
>Hi,
>
>I'm working on writing a FLAC encoding plugin for a personal cd ripping
>project of mine which uses paranoia for the raw audio extraction. My
>basic setup which follows gets me oddly high pitched audio with lots of
>noise (although the music IS somewhat recognizable).
>
>#include <FLAC/stream_encoder.h>
>
2013 Apr 05
1
flac 1.3.0pre3 pre-release
Martijn van Beurden wrote:
> I've tested this on x86_64-linux as well, but still no static building
> possible (see earlier post on this). Someone over at HydrogenAudio has
> successfully built statically linked, but gets all weird kinds of errors
> in the resulting binary
>
2013 May 24
1
FLAC for Android: warning: cast increases required alignment of target type
Now that I can build FLAC again with Janne's patch I would like to report
about the warnings I get when building for Android:
android-make | grep warn
md5.c: In function 'format_input_':
md5.c:282:25: warning: cast increases required alignment of target type
[-Wcast-align]
md5.c:288:24: warning: cast increases required alignment of target type
[-Wcast-align]
decode.c: In function
2004 Sep 10
2
Using libFLAC++
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm attempting to add flac playback to my app, and would like a couple of
pointers. First of all, I'm very much a "learn by seeing other people doing"
sort of programmer, and would love a pointer to an open-source app that uses
libFLAC++, so I could see how they do it. Second, I'm having problems with
my simple test app
2016 Nov 09
0
[PATCH v2 2/6] New API: yara_load
The yara_load API allows to load a set of Yara rules contained within a
file on the host.
Rules can be in binary format, as when compiled with yarac command, or
in source code format. In the latter case, the rules will be first
compiled and then loaded.
Subsequent calls of the yara_load API will result in the discard of the
previously loaded rules.
Signed-off-by: Matteo Cafasso
2014 Mar 08
0
16 bits FLAC file data to 32 bit float buffer for CPU processing
On Sat, Mar 8, 2014 at 7:49 AM, ??????? ?????? <rodionkarimov at yandex.ru>wrote:
> I create FLAC file decoding, processing and playing program and have the
> following question : how to convert FLAC 16 bit file data to 32 bit float
> buffer for CPU processing? I've already inplemented sound playing and
> tested it with sine wave - it works without problems; I even made