search for: flac_api

Displaying 20 results from an estimated 37 matches for "flac_api".

2017 Jan 23
1
os/2 support using Watcom
...ly and as flac uses libtool... > So you're happy with this patch? > > http://lists.xiph.org/pipermail/flac-dev/2017-January/006170.html > No. Lots of errors such as ../../include/FLAC/export.h:77:18: error: expected identifier or '(' before ')' token #define FLAC_API __declspec(__cdecl) ... as GCC doesn't like the __cdecl macro. If going this route then perhaps, diff --git a/include/FLAC/export.h b/include/FLAC/export.h index d52f0bb..5d40421 100644 --- a/include/FLAC/export.h +++ b/include/FLAC/export.h @@ -66,6 +66,13 @@ #define FLAC_API __declspec(dll...
2005 May 25
0
[PATCH] Fix fuction prototypes/definitions with void argument
..._int_(void) { static const unsigned char parity_[256] = { 0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1, --- src/libFLAC/metadata_iterators.c-dist 2005-05-25 16:07:23.000000000 +0200 +++ src/libFLAC/metadata_iterators.c 2005-05-25 16:07:27.000000000 +0200 @@ -339,7 +339,7 @@ FLAC_API const char * const FLAC__Metada }; -FLAC_API FLAC__Metadata_SimpleIterator *FLAC__metadata_simple_iterator_new() +FLAC_API FLAC__Metadata_SimpleIterator *FLAC__metadata_simple_iterator_new(void) { FLAC__Metadata_SimpleIterator *iterator = (FLAC__Metadata_SimpleIterator*)calloc(1, sizeof(FLA...
2017 Jan 23
4
os/2 support using Watcom
On 01/22/17 02:00 PM, Ozkan Sezer wrote: > Question: Does emx support __declspec(dllexport) so I can adjust > these changes? Because the emx build of the dll seems to have > exported_everything_ :( GCC supports __declspec(dllexport) though it still needs a def file, with no exports. Libtool doesn't currently and as flac uses libtool... Dave
2014 May 24
2
make dllimport/dllexport attributes work with mingw (and others)
...ts this. Attached patch: declspec.diff Regards. -- O.S. -------------- next part -------------- diff --git a/include/FLAC/export.h b/include/FLAC/export.h index 2232b41..4b2418f 100644 --- a/include/FLAC/export.h +++ b/include/FLAC/export.h @@ -59,11 +59,11 @@ #if defined(FLAC__NO_DLL) #define FLAC_API -#elif defined(_MSC_VER) +#elif defined(_WIN32) /*defined(_MSC_VER)*/ #ifdef FLAC_API_EXPORTS -#define FLAC_API _declspec(dllexport) +#define FLAC_API __declspec(dllexport) #else -#define FLAC_API _declspec(dllimport) +#define FLAC_API __declspec(dllimport) #endif #elif defined(FLAC__USE_VI...
2017 Jan 22
0
os/2 support using Watcom
...gt; diff --git a/include/FLAC/export.h b/include/FLAC/export.h >>> index d52f0bb..96d5422 100644 >>> --- a/include/FLAC/export.h >>> +++ b/include/FLAC/export.h >>> @@ -69,6 +69,9 @@ >>> #elif defined(FLAC__USE_VISIBILITY_ATTR) >>> #define FLAC_API __attribute__ ((visibility ("default"))) >>> >>> +#elif defined (__WATCOMC__) && defined (__OS2__) >>> +#define FLAC_API __declspec(__cdecl) >>> + >>> #else >>> #define FLAC_API >> >> As I said, I don't kn...
2017 Jan 22
7
os/2 support using Watcom
...nly interest was building a working dll (the last patch in the set adds a makefile for it), therefore I did not touch other places: If there is interest, I can do so. Regards. -- O.S. -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-exports.h-properly-define-FLAC_API-when-building-a-d.patch Type: application/octet-stream Size: 761 bytes Desc: not available URL: <http://lists.xiph.org/pipermail/flac-dev/attachments/20170122/b0ecf40a/attachment.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: 0002-share-compat.h-prope...
2012 Mar 25
2
Trying to link against libFLAC_static.lib (windows)
...has been built. > > If not, you'd need to look into the headers, check where those problem > functions are defined. Finally, you'll need to trace back any macros > that might be potentially using __declspec(dllimport). Just to be sure, I went to export.h and exlicitly defined FLAC_API and commented out the lines #ifdef FLAC_API_EXPORTS #define FLAC_API _declspec(dllexport) #else #define FLAC_API _declspec(dllimport) I've so cleaned and rebuilt all my project files but still get the errors: 11>AudioDecoder.lib(CFlacDecoder.obj) : error LNK2019: unresolved external symbo...
2012 Dec 03
0
[PATCH 3/5] Hide symbols with gcc.
With gcc >= 4 and ELF, set default visibility to hidden and make visible only the symbols with FLAC_API or FLACPP_API. A convenience libFLAC-static.la is created for test_libFLAC as it depends on the hidden symbols. --- configure.ac | 8 +++++++- include/FLAC++/export.h | 13 +++++++++---- include/FLAC/export.h | 13 +++++++++---- src/libFLAC/Makefile.am | 10 +++++...
2014 May 04
0
Building FLAC with LTO
...d FLAC__OGG_MAPPING_NUM_HEADERS_LEN = 16; /* bits */ -------------- next part -------------- --- flac-1.3.0/include/FLAC/export.h.orig 2013-05-26 09:30:33.924201900 +0000 +++ flac-1.3.0/include/FLAC/export.h 2014-05-03 09:11:50.799298400 +0000 @@ -59,11 +59,19 @@ #if defined(FLAC__NO_DLL) #define FLAC_API -#elif defined(_MSC_VER) +#elif defined(_MSC_VER) || defined(__MINGW32__) #ifdef FLAC_API_EXPORTS -#define FLAC_API _declspec(dllexport) +#if defined(__GNUC__) +#define FLAC_API __attribute__((dllexport)) +#else +#define FLAC_API __declspec(dllexport) +#endif #else -#define FLAC_API _declspec(d...
2014 May 24
2
make dllimport/dllexport attributes work with mingw (and others)
...hanges the _MSC_VER condition to universally _WIN32: MSVC, as well >> as GCC supports this. > > MSYS/MinGW 4.8.3, 4.9.0 can't compile code from git after this patch: > > format.c:47:22: error: variable 'FLAC__VERSION_STRING' definition is marked > dllimport > FLAC_API const char *FLAC__VERSION_STRING = VERSION; > ^ > format.c:47:22: warning: 'FLAC__VERSION_STRING' redeclared without dllimport > attribute: previous dllimport ignored [-Wattributes] > format.c:49:22: error: variable 'FLAC__VENDOR_STRING' definition...
2007 Jul 14
2
PATCH : Fix missing protoypes
..._IOCallback_Read read_cb, FLAC__byte **data, FLAC__uint32 *length, FLAC__uint32 length_len) { FLAC__byte buffer[sizeof(FLAC__uint32)]; --- src/libFLAC/stream_encoder.c 2007-07-14 08:45:49 +0000 +++ src/libFLAC/stream_encoder.c 2007-07-15 00:50:25 +0000 @@ -1417,6 +1417,7 @@ return true; } +FLAC_API FLAC__bool FLAC__stream_encoder_set_do_md5(FLAC__StreamEncoder *encoder, FLAC__bool value) ; FLAC_API FLAC__bool FLAC__stream_encoder_set_do_md5(FLAC__StreamEncoder *encoder, FLAC__bool value) { FLAC__ASSERT(0 != encoder); @@ -1744,6 +1745,7 @@ * These three functions are not static, but not...
2012 Mar 26
0
Trying to link against libFLAC_static.lib (windows)
...>> If not, you'd need to look into the headers, check where those problem >> functions are defined. Finally, you'll need to trace back any macros >> that might be potentially using __declspec(dllimport). > > Just to be sure, I went to export.h and exlicitly defined FLAC_API and > commented out the lines > > #ifdef FLAC_API_EXPORTS > #define FLAC_API _declspec(dllexport) > #else > #define FLAC_API _declspec(dllimport) > > I've so cleaned and rebuilt all my project files but still get the errors: > > 11>AudioDecoder.lib(CFlacDecod...
2007 Sep 12
0
Changes to include/FLAC/metadata.h
Josh, I noticed that the prototypes of two functions in the above header file recently changed from: FLAC_API FLAC__bool FLAC__metadata_object_picture_set_mime_type (FLAC__StreamMetadata *object, const char *mime_type, FLAC__bool copy); FLAC_API FLAC__bool FLAC__metadata_object_picture_set_description(FLAC__StreamMetadata *object, const FLAC__byte *description, FLAC__bool cop...
2012 Dec 03
4
[PATCH 1/5] Remove old GNU-stack sections from nasm files.
They are not needed since the section is defined in nasm.h. --- src/libFLAC/ia32/bitreader_asm.nasm | 4 ---- src/libFLAC/ia32/cpu_asm.nasm | 4 ---- src/libFLAC/ia32/fixed_asm.nasm | 4 ---- src/libFLAC/ia32/lpc_asm.nasm | 4 ---- src/libFLAC/ia32/stream_encoder_asm.nasm | 4 ---- 5 files changed, 20 deletions(-) diff --git
2017 Jan 22
0
os/2 support using Watcom
...efined (__OS2__) Will the GCC built flac8.dll link with Watcom with something like diff --git a/include/FLAC/export.h b/include/FLAC/export.h index d52f0bb..96d5422 100644 --- a/include/FLAC/export.h +++ b/include/FLAC/export.h @@ -69,6 +69,9 @@ #elif defined(FLAC__USE_VISIBILITY_ATTR) #define FLAC_API __attribute__ ((visibility ("default"))) +#elif defined (__WATCOMC__) && defined (__OS2__) +#define FLAC_API __declspec(__cdecl) + #else #define FLAC_API Not sure if a OMF import lib is required but easy enough to create with implib or emximp Dave
2012 May 05
5
[PATCH] Optionally, allow distros to use openssl for MD5 verification
...uted from the decoded data */ /* (the rest of these are only used for seeking) */ FLAC__Frame last_frame; /* holds the info of the last frame we seeked to */ FLAC__uint64 first_frame_offset; /* hint to the seek routine of where in the stream the first audio frame starts */ @@ -322,7 +322,9 @@ FLAC_API FLAC__StreamDecoder *FLAC__stream_decoder_new(void) decoder->private_->file = 0; set_defaults_(decoder); - +#if defined(HAVE_OPENSSL) + EVP_MD_CTX_init(&decoder->private_->md5context); +#endif decoder->protected_->state = FLAC__STREAM_DECODER_UNINITIALIZED; retu...
2014 Jan 06
2
Exact FLAC subset constraints
...(first or second) is right? 0001-1110 mean 0110 and 0111 too??? (0110 mean "get 8 bit (blocksize-1) from end of header", 0111 mean "get 16 bit (blocksize-1) from end of header") Why you don't use STRICT block size checking in FLAC__format_blocksize_is_subset() like this: FLAC_API FLAC__bool FLAC__format_blocksize_is_subset(unsigned blocksize, unsigned sample_rate) { if(blocksize == 192 || blocksize == 576 || blocksize == 1152 || blocksize == 2304 || blocksize == 4608 || blocksize == 256 || blocksize == 512 || blocksize == 1024 || blocksize == 2048 || blocksize == 40...
2014 Sep 26
2
Disk fragmentation
...rs", as something that can be removed without > problem? IMHO it's better to move setvbuf() out of libFLAC/stream_encoder.c into flac/encode.c. I can see two ways to do this: 1) Add a new function to libFLAC API that have access to encoder->private_->file and can call setvbuf: FLAC_API FLAC__bool FLAC__stream_encoder_set_buffer_size(FLAC__StreamEncoder *encoder, unsigned size); 2) Rewrite EncoderSession_init_encoder() in flac/encode.c so that it opens the file, calls setvbuf and then uses FLAC__stream_encoder_init[_ogg]_stream() instead of FLAC__stream_encoder_init[_ogg]_file()...
2015 Jun 16
0
Low-level seek routines in libFLAC
...64 upper_bound; FLAC__uint64 lower_bound_sample; FLAC__uint64 upper_bound_sample; FLAC__uint64 this_frame_sample; unsigned approx_bytes_per_frame; FLAC__bool first_seek; } seek_t; /* This function initializes an object of type "struct seek_t" and sets initial lower/upper bounds. */ FLAC_API int FLAC__stream_decoder_seek_prepare(FLAC__StreamDecoder *decoder, FLAC__uint64 target_sample, FLAC__uint64 stream_length); /* This function is called in a loop until we reach the target sample. @abs_file_off On input, it's the current absolute file offset. Upon return, it contains the...
2012 Mar 23
2
Trying to link against libFLAC_static.lib (windows)
Hi. I'm trying to get a project linking to libFLAC_static.lib but I get linker errors such as the following. 6>AudioDecoder.lib(CFlacDecoder.obj) : error LNK2019: unresolved external symbol __imp__FLAC__stream_decoder_process_until_end_of_metadata referenced in function "protected: int __thiscall CFlacDecoder::CreateDecoder(void)" (?CreateDecoder at CFlacDecoder@@IAEHXZ)