Evan Jones
2003-Jan-16 12:36 UTC
[vorbis-dev] [PATCH] libcurl detection (and a Mac OS X build problem)
vorbis-tools does not seem to perform curl detection properly. The test program it provides will build and link and run even without linking it against libcurl, (at least on my platform: Mac OS X 10.2) which I believe is an error. The following test program would be a better choice: It will fail to build and link on Mac OS X 10.2 unless the correct flags are provided. #include <stdio.h> #include <stdlib.h> #include <string.h> #include <curl/curl.h> int main () { system("touch conf.curltest"); return 0; } void func () { curl_easy_perform( (void*) 0 ); } Attached is a patch which updates the acinclude.m4 in vorbis-tools to test for curl using this program, as well as using "curl-config" to find curl and the library flags. There is a problem with Mac OS X's curl-config: it includes "-arch i386 -arch ppc" which screws up compilation, so I've added a bit of "sed" to remove any "arch" stuff that curl-config emits. Likely this is unnecessary for other platforms, and I have filed a bug with Apple's developer site, however it should be harmless (configure already uses sed extensively). This patch is being used by my fink package for vorbis-tools. It would be nice if others could test this with their curl configuration (particularly to make sure that it fails correctly), and maybe get it integrated into vorbis tools? This is a "better" way to test for libcurl, and it gets the configuration (sort of) right. Thanks, Evan Jones -------------- next part -------------- A non-text attachment was scrubbed... Name: vorbis-tools-libcurl.patch Type: application/octet-stream Size: 4927 bytes Desc: vorbis-tools-libcurl.patch Url : http://lists.xiph.org/pipermail/vorbis-dev/attachments/20030116/10f7398b/vorbis-tools-libcurl-0001.obj
Hello there, I am a new member here, and of course i have a question first thing. About myself: I have been programming for nearly 20 years, have been degreed for nearly 10, currently work programming satellite system simulators for the AirForce, and enjoy programming so much, nearly half of my free time is spent programming too. I recently used the SDK to add ogg support to an existing mp3 product. It has mp3 to ogg conversion, mp3 to wav, ogg to wav, and wav to ogg conversion support. The player has hardware volume for instantaneous volume, and has decoder volume for saving a volume/eq settings per album so they play back relatively similar sounding. The mp3 version has been working this way for several years, but cannot figure out how, (or if there is a way) to add similar support for the ogg decoder. After reading through all the docs and coming up empty, and perusing the msg archive, and finding that ogg not currently support EQ settings yet, but maybe someone knows how to do volume for now. I realize that I could use the volume as a scaling value for the hardware volume, but that would rule out volume increase for a quiet album, and would require 'downgrading' the mp3 decoder to work the same, or some screwy programming to support doing it differently per decoder. If there is no existing way to achieve volume control, it would seem I could loop through PCM buffer and multiply all values by volume ratio before passing buffer to sound card, but that would be rather CPU intensive, and would rather scale some variable used for building PCM buffer when converting from freqency values. I would be interested in being part of the EQ additions if/when it gathers enough interest. For those interesting in seeing the product this is referring to, I have had a shareware version available for about 3 years, and there is a BETA version with ogg support at: http://rbdone.home.att.net/rsmp3ogg.zip It is about 1MB. There are about a dozen small things I have to clean up before I can remove the BETA status, but is very close. It will complain about playlist, bakup, and skin files load failure, and some of the tools are still hardcoded as mp3, and wont work for ogg, but the player works great. Thanks in advance Rob D --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.