search for: decoder_sess

Displaying 10 results from an estimated 10 matches for "decoder_sess".

2014 Sep 26
0
Patch to add buffering to decoding too
...l_specification(utils__SkipUntilSpecification *spec, const char *inbasefilename, unsigned sample_rate, FLAC__uint64 skip, FLAC__uint64 total_samples_in_input); @@ -177,7 +177,7 @@ int flac__decode_file(const char *infilename, const char *outfilename, FLAC__boo if(!DecoderSession_init_decoder(&decoder_session, infilename)) return DecoderSession_finish_error(&decoder_session); - if(!DecoderSession_process(&decoder_session)) + if(!DecoderSession_process(&decoder_session, outfilename)) return DecoderSession_finish_error(&decoder_session); return DecoderSession_finish_ok(&...
2014 Sep 26
3
Patch to add buffering to decoding too
Can you please wrap the setvbuf in _WIN32 IFDEFs too? Currently memory usage of FLAC decoding is about 1MB, so this patch is increasing memory usage tenfold, also for platforms that do not need this. It is a non-problem on my system anyway. Op 26-09-14 om 10:36 schreef Janne Hyv?rinen: > I made some changes to the previous patch. I don't know why I > originally didn't put the
2014 Sep 25
2
Patch to add buffering to decoding too
Decoding flac files is also prone to producing fragmented files. NTFS has the ability to completely avoid fragmentation if it is told the file size before hand, but that would require using special Windows-only functions. Increasing the write buffer from the default 512 bytes to 10 MB already reduces the problem tremendously. -------------- next part -------------- diff --git
2014 Sep 26
4
Patch to add buffering to decoding too
...l_specification(utils__SkipUntilSpecification *spec, const char *inbasefilename, unsigned sample_rate, FLAC__uint64 skip, FLAC__uint64 total_samples_in_input); @@ -177,7 +177,7 @@ int flac__decode_file(const char *infilename, const char *outfilename, FLAC__boo if(!DecoderSession_init_decoder(&decoder_session, infilename)) return DecoderSession_finish_error(&decoder_session); - if(!DecoderSession_process(&decoder_session)) + if(!DecoderSession_process(&decoder_session, outfilename)) return DecoderSession_finish_error(&decoder_session); return DecoderSession_finish_ok(&...
2007 Sep 08
2
Compile problems on OSX
...will put together a patch for this is you are interested. Second problem is that I get a compile error when FLAC__HAS_OGG is 0 in src/flac/decode.c: decode.c:393: error: 'options' undeclared (first use in this function) The code in question is this: #if FLAC__HAS_OGG if(decoder_session->is_ogg) { /* Some code here. */ } else #else (void)decode_options; #endif { /* More code. */ } The problem here is that conditional compiles can hide bugs. The code above re-written to turn a conditional compile into a...
2007 Jan 08
6
[PATCH 0/5] Debian patches for 1.1.3
Hi Josh, Here are all the patches that are currently applied to the Debian packages for flac. You may disagree with some of them but as the current maintainer, I'm submitting them all for your consideration. (I should've submitted them earlier, but I've been quite busy. Sorry!) Here is a listing of the patches that I'll be sending: Patch 1 fixes a simple typo in metaflac
2007 Sep 09
0
Compile problems on OSX
...others). > Second problem is that I get a compile error when FLAC__HAS_OGG is 0 > in src/flac/decode.c: > > decode.c:393: error: 'options' undeclared (first use in this > function) > > The code in question is this: > > #if FLAC__HAS_OGG > if(decoder_session->is_ogg) { > /* Some code here. */ > } > else > #else > (void)decode_options; > #endif > { > /* More code. */ > } yes, this is fixed in cvs. actually I'll probably be doing a release soon...
2014 Dec 13
3
[PATCH] for flac/decode.c
The commit http://git.xiph.org/?p=flac.git;a=commitdiff;h=99257e177eac96fa41a107b423080232f59ebe45 also requires some changes in write_iff_headers() function: currently flac don't write WAVEFORMATEXTENSIBLE header if decoder_session->channel_mask is equal to 0, 1 or 3. After the commit 99257e17 flac should do this for channel_mask equal to 0, 4 or 3. The patch fixes this. -------------------------- Also, I have a question. Currently flac complains about 24-bit .wav files if they have old WAVEFORMATEX header and not...
2014 Dec 14
0
[PATCH] for flac/decode.c
lvqcl wrote: > The commit http://git.xiph.org/?p=flac.git;a=commitdiff;h=99257e177eac96fa41a107b423080232f59ebe45 > also requires some changes in write_iff_headers() function: > > currently flac don't write WAVEFORMATEXTENSIBLE header if > decoder_session->channel_mask is equal to 0, 1 or 3. > After the commit 99257e17 flac should do this for channel_mask > equal to 0, 4 or 3. > > The patch fixes this. Applied, thanks. > -------------------------- > Also, I have a question. > > Currently flac complains about 24-bit...
2007 Sep 09
2
Compile problems on OSX
...compile error when FLAC__HAS_OGG is 0 > > in src/flac/decode.c: > > > > decode.c:393: error: 'options' undeclared (first use in this > > function) > > > > The code in question is this: > > > > #if FLAC__HAS_OGG > > if(decoder_session->is_ogg) { > > /* Some code here. */ > > } > > else > > #else > > (void)decode_options; > > #endif > > { > > /* More code. */ > > } > > yes, this is fixed in cv...