search for: client_data

Displaying 20 results from an estimated 128 matches for "client_data".

2004 Sep 10
2
Storing FLAC in Matroska
...ing file is just noise and pops, so is the decoded data in a different format than PCM? struct flacData { FILE *inputFile; FILE *outputFile; char *filename; }; FLAC__StreamDecoderReadStatus flac_DecoderReadCallback(const FLAC__StreamDecoder *decoder, FLAC__byte buffer[], unsigned *bytes, void *client_data) { flacData *ourData = (flacData *)client_data; *bytes = fread((void *)buffer, 1, *bytes, ourData->inputFile); return FLAC__STREAM_DECODER_READ_STATUS_CONTINUE; }; FLAC__StreamDecoderWriteStatus flac_DecoderWriteCallback(const FLAC__StreamDecoder *decoder, const FLAC__Frame *frame, const F...
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...
2017 Nov 22
0
libFLAC JNA Issue
...;m actually writing java interface to use libFLAC with JNA, to reproduce "flac -t" function, needed to validate/unvalidate flac files before sending them in our preservation system. . Everything is working fine between java and libFLAC.so. Callback are called, C API is smart with void* client_data parameter, which is useful to keep custom structure. My problem is : with JNA and libFLAC, I can't identify if error callback has been called, due to variable visibility restriction, because error_callback implementation in java cannot communicate with java main code (not without an ugly t...
2004 Sep 10
2
Storing FLAC in Matroska
Hello, I'm looking into storing FLAC audio in Matroska and I have a few questions. 1. Can I use libflac to extract the compressed frames? Or will I need to write up a simple file parser? 2. What is required to decode the frames? From the docs I understand that you need the FRAME and you may need the METADATA_BLOCK. Thanks, Jory Stone jcsston@toughguy.net Matroska, the new,
2006 Nov 12
0
[728] trunk/wxruby2/Changelog: HTML classes, Window[ChangeDestroy]Event, sample fix, client_data
...xt-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[728] trunk/wxruby2/Changelog: HTML classes, Window[ChangeDestroy]Event, sample fix, client_data</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>728</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2006-11-12 18:19:08 -0500 (Sun, 12 Nov 2006)</dd> </dl&g...
2013 Feb 10
0
Newbie question about those callbacks
Johnny Rosenberg wrote: > For instance the write_callback thing: > client_data ? can it be a pointer to just about anything? I assume you mean: https://www.xiph.org/flac/api/group__flac__stream__decoder.html#ga13 which defines the type: typedef FLAC__StreamDecoderWriteStatus (* FLAC__StreamDecoderWriteCallback) (const FLAC__StreamDeco...
2004 Sep 10
2
flac_read callback not called in Windows?
...ed_samples--; } } } else { /* clear the sound ? */ memset(buffer, 0, length << 1); } fprintf(stderr, "end flac_update\n"); } static FLAC__SeekableStreamDecoderReadStatus flac_read(const FLAC__SeekableStreamDecoder *decoder, FLAC__byte buffer[], unsigned *bytes, void *client_data) { fprintf(stderr, "flac_read start ..."); *bytes = mame_fread(flacFile, buffer, *bytes); fprintf(stderr, "flac_read end %d\n ", *bytes); return FLAC__SEEKABLE_STREAM_DECODER_READ_STATUS_OK; } static FLAC__SeekableStreamDecoderSeekStatus flac_seek(const FLAC__SeekableStream...
2013 Aug 20
0
sf bug 256 - Virtual functions in destructor
...location 0x00000000. Call stack 00000000() Test.exe!FLAC::Encoder::File::progress_callback_(const FLAC__StreamEncoder * encoder=0x003571f8, unsigned __int64 bytes_written=2156194, unsigned __int64 samples_written=845544, unsigned int frames_written=734, unsigned int total_frames_estimate=0, void * client_data=0x0012fe1c) Line 507 + 0x2a bytes C++ Test.exe!file_write_callback_(const FLAC__StreamEncoder * encoder=0x003571f8, const unsigned char * buffer=0x0047daa8, unsigned int bytes=2804, unsigned int samples=1128, unsigned int current_frame=733, void * client_data=0x0012fe1c) Line 4487 + 0x7a bytes C Te...
2005 Sep 30
2
Reg. FLAC decoding
...k. I'm not getting the required output. The PCM i get is not the proper music. Am I doing something wrong here? FLAC__StreamDecoderWriteStatus AFLACStreamPlayer::StreamWriteCb ( const FLAC__SeekableStreamDecoder *decoder, const FLAC__Frame *frame, const FLAC__int32 * const buffer[], void *client_data) { int Channels, BitsPerSample, BytesPerSample; RMstatus ret; AFLACStreamPlayer *pThis = (AFLACStreamPlayer *)client_data; pThis = (AFLACStreamPlayer *)client_data; /* Query the m_AppPlayerPipe and check for commands from it. Act * accordingly */ pThis->QueryCommand (); Chann...
2004 Sep 10
3
1.0 source candidate
...maybe just manually turning > on basic debug info in the release build would get you > enough to narrow it down. OK, here's the stack trace: (gdb) bt #0 FLAC__bitbuffer_read_raw_uint32 (bb=0x20000000008c8048, val=0x80000fffffffa498, bits=24, read_callback=0x20000000003b1008, client_data=0x60000000002beb20) at bitbuffer.c:1107 #1 0x2000000000123dc0 in stream_decoder_read_metadata_ ( decoder=0x60000000002beb20) at stream_decoder.c:633 #2 0x2000000000123300 in FLAC__stream_decoder_process_metadata ( decoder=0x60000000002beb20) at stream_decoder.c:427 #3 0x4000000000010320...
2015 Oct 21
1
[PATCH] VSOCK: sock_put wasn't safe to call in interrupt context
...ort.c @@ -40,13 +40,11 @@ static int vmci_transport_recv_dgram_cb(void *data, struct vmci_datagram *dg); static int vmci_transport_recv_stream_cb(void *data, struct vmci_datagram *dg); -static void vmci_transport_peer_attach_cb(u32 sub_id, - const struct vmci_event_data *ed, - void *client_data); static void vmci_transport_peer_detach_cb(u32 sub_id, const struct vmci_event_data *ed, void *client_data); static void vmci_transport_recv_pkt_work(struct work_struct *work); +static void vmci_transport_cleanup(struct work_struct *work); static int vmci_transport_recv_listen(s...
2015 Oct 21
1
[PATCH] VSOCK: sock_put wasn't safe to call in interrupt context
...ort.c @@ -40,13 +40,11 @@ static int vmci_transport_recv_dgram_cb(void *data, struct vmci_datagram *dg); static int vmci_transport_recv_stream_cb(void *data, struct vmci_datagram *dg); -static void vmci_transport_peer_attach_cb(u32 sub_id, - const struct vmci_event_data *ed, - void *client_data); static void vmci_transport_peer_detach_cb(u32 sub_id, const struct vmci_event_data *ed, void *client_data); static void vmci_transport_recv_pkt_work(struct work_struct *work); +static void vmci_transport_cleanup(struct work_struct *work); static int vmci_transport_recv_listen(s...
2004 Oct 14
2
compile errors
...rror: request for member `title' in something not a structure or union plugin.c: In function `write_callback_': plugin.c:493: error: `file_info' undeclared (first use in this function) plugin.c:493: error: syntax error before ')' token plugin.c:491: warning: unused parameter `client_data' plugin.c: In function `metadata_callback_': plugin.c:553: error: `file_info' undeclared (first use in this function) plugin.c:553: error: syntax error before ')' token plugin.c: In function `error_callback_': plugin.c:574: error: `file_info' undeclared (first use in...
2011 Dec 08
4
Error 400 on SERVER: Could not write /var/lib/puppet/ssl/ca/requests/node13.pem
...add does not exist debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/ dscl does not exist debug: Puppet::Type::User::ProviderLdap: true value when expecting false debug: Puppet::Type::File::ProviderMicrosoft_windows: feature microsoft_windows is missing debug: /File[/var/lib/puppet/client_data]/seluser: Found seluser default ''system_u'' for /var/lib/puppet/client_data debug: /File[/var/lib/puppet/client_data]/selrole: Found selrole default ''object_r'' for /var/lib/puppet/client_data debug: /File[/var/lib/puppet/client_data]/seltype: Found seltype default...
2004 Sep 10
0
http streaming in the xmms plugin
...quot;http.h" #ifdef min #undef min *************** *** 68,73 **** --- 72,106 ---- DitherContext dither_context; } file_info_struct; + typedef FLAC__StreamDecoderWriteStatus (*WriteCallback) (const void *decoder, const FLAC__Frame *frame, const FLAC__int32 * const buffer[], void *client_data); + typedef void (*MetadataCallback) (const void *decoder, const FLAC__StreamMetadata *metadata, void *client_data); + typedef void (*ErrorCallback) (const void *decoder, FLAC__StreamDecoderErrorStatus status, void *client_data); + + typedef struct { + FLAC__bool seekable; + void* (*new_decoder)...
2006 Nov 21
0
[744] trunk/wxruby2: get_data support & mem mgmt to all ControlWithItems types, using more
...const wxValidator& validator = wxDefaultValidator, </span><span class="cx"> const wxString& name = wxChoiceNameStr); </span><span class="cx"> </span><del>- </del><span class="cx"> // start client_data fixes </span><span class="cx"> %include "../shared/control_with_items.i" </span><span class="cx"> %markfunc wxChoice "mark_wxControlWithItems"; </span><span class="cx"> </span><del>-%ignore wxChoice::...
2005 May 25
0
[PATCH] Fix fuction prototypes/definitions with void argument
...XMMS__cleanup(void); static void FLAC_XMMS__get_song_info(char *filename, char **title, int *length); static void *play_loop_(void *arg); @@ -128,7 +128,7 @@ static FLAC__StreamDecoderWriteStatus wr static void metadata_callback_(const void *decoder, const FLAC__StreamMetadata *metadata, void *client_data); static void error_callback_(const void *decoder, FLAC__StreamDecoderErrorStatus status, void *client_data); -static void init_decoder_func_tables(); +static void init_decoder_func_tables(void); static decoder_t source_to_decoder_type (const char *source); InputPlugin flac_ip = @@ -181,7 +1...
2005 Sep 30
0
Re: Reg. FLAC decoding
...he PCM i get is not the proper > music. > Am I doing something wrong here? > > FLAC__StreamDecoderWriteStatus > AFLACStreamPlayer::StreamWriteCb ( > const FLAC__SeekableStreamDecoder *decoder, > const FLAC__Frame *frame, > const FLAC__int32 * const buffer[], > void *client_data) > { > int Channels, BitsPerSample, BytesPerSample; > RMstatus ret; > > AFLACStreamPlayer *pThis = (AFLACStreamPlayer *)client_data; > pThis = (AFLACStreamPlayer *)client_data; > > /* Query the m_AppPlayerPipe and check for commands from it. Act > * accordi...
2004 Aug 10
7
HTML Widget
.... I wanted to implement Wx::HtmlCell (htmlcell.t) and Wx::HtmlContainerCell (htmlcontainercell.t), but I got some errors and I have no clue how to fix them. The files are still in the package, so if someone wants to fix them... I''m not sure if I did everything right. Espsecialle with the CLIENT_DATA and WRAPPING_CONSTRUCTOR stuff... Feel free to give comments. Greetings Tobi -- GPG-Key 0xE2BEA341 - signed/encrypted mail preferred My, oh so small, homepage: http://portfolio16.de/ http://www.fli4l.de/ - ISDN- & DSL-Router on one disk! Registered FLI4L-User #00000003
2008 May 19
1
Memory leaks due to Metadata object vorbis comment API ???
...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 > size limitations */ > static FLAC__byte buffer[READSIZE/*samples*/ * 2/*bytes_per_sample*/ * > 2/*channels*/]; /* we read the WAVE data into here */ > static FLAC__int...