At least some of those error look like Altivec instructions which of course
are not present on my G3 iBook.
For now, I'm compling with --disable-asm-optimizations.
Erik
--
+---+
Erik de Castro Lopo [EMAIL PROTECTED] (Yes it&
ate (11025).
I therefore tried to test the error return value of the set_sample_rate()
method, but found that it always returns TRUE (ie no error).
Is there someway of figuring out if a sample rate is valid?
Cheers,
Erik
--
+-----------+
Erik de Cast
On Sun, 7 Nov 2004 10:53:20 +1100
Erik de Castro Lopo <[EMAIL PROTECTED]> wrote:
> For now, I'm compling with --disable-asm-optimizations.
Oops, now I'm getting other problems:
stream_decoder.c: In function `FLAC__stream_decoder_init':
str
ate a file at a sample rate of
11025 I get an error of
FLAC__SEEKABLE_STREAM_ENCODER_STREAM_ENCODER_ERROR or
FLAC__STREAM_ENCODER_NOT_STREAMABLE
which says nothing about the sample rate.
Erik
--
+-----------+
On Thu, 11 Nov 2004 13:33:42 -0800 (PST)
Josh Coalson <[EMAIL PROTECTED]> wrote:
> --- Erik de Castro Lopo <[EMAIL PROTECTED]> wrote:
> > On Wed, 10 Nov 2004 16:08:21 -0800 (PST)
> > Josh Coalson <[EMAIL PROTECTED]> wrote:
> >
> > > > Is ther
eaking the API.
Hope this helps,
Erik
--
+-----------+
Erik de Castro Lopo [EMAIL PROTECTED] (Yes it's valid)
+---+
"If POSIX threads are a good thing, perhaps I don't want to know what
they'
ate a file at a sample rate of
11025 I get an error of
FLAC__SEEKABLE_STREAM_ENCODER_STREAM_ENCODER_ERROR or
FLAC__STREAM_ENCODER_NOT_STREAMABLE
which says nothing about the sample rate.
Erik
--
+-----------+
ate a file at a sample rate of
11025 I get an error of
FLAC__SEEKABLE_STREAM_ENCODER_STREAM_ENCODER_ERROR or
FLAC__STREAM_ENCODER_NOT_STREAMABLE
which says nothing about the sample rate.
Erik
--
+-----------+
nto my stuff.
Cheers,
Erik
--
+-------+
Erik de Castro Lopo [EMAIL PROTECTED] (Yes it's valid)
+---+
"Even Napoleon had his Watergate" -- Michael Spautz
___
Flac-dev mailing list
[EMAIL PROTECT
akefile.am
--- src/test_streams/Makefile.am25 Jan 2005 04:18:44 - 1.13
+++ src/test_streams/Makefile.am30 Jan 2005 05:23:56 -
@@ -19,8 +19,6 @@
Makefile.lite \
test_streams.dsp
-CFLAGS = @CFLAGS@
-
noinst_PROGRAMS = test_streams
test_streams_SOURCES = \
bler but there's still something screwed
up int the Makefile.am.
Erik
--
+-------+
Erik de Castro Lopo [EMAIL PROTECTED] (Yes it's valid)
+---+
"Any sufficiently complicated C
On Sun, 30 Jan 2005 14:39:18 -0800 (PST)
Josh Coalson <[EMAIL PROTECTED]> wrote:
> --- Erik de Castro Lopo <[EMAIL PROTECTED]> wrote:
> > On Sun, 30 Jan 2005 10:45:05 -0800 (PST)
> > Josh Coalson <[EMAIL PROTECTED]> wrote:
> >
> > > OK, thank
On Mon, 31 Jan 2005 09:54:31 +1100
Erik de Castro Lopo <[EMAIL PROTECTED]> wrote:
> On Sun, 30 Jan 2005 14:39:18 -0800 (PST)
> Josh Coalson <[EMAIL PROTECTED]> wrote:
>
> > do you mean --disable-asm-optimizations?
>
> Yes.
Oops, I was using --disable-asm-
--
+---+
Erik de Castro Lopo [EMAIL PROTECTED] (Yes it's valid)
+---+
"I believe C++ instills fear in programmers, fear that the interaction
of some details causes unpredictable re
t decided to commit it :-).
After manually getting rid of the -force_cpusubtype_ALL it compiles.
I also ran make check, and it seems to be passing, but obviously,
its not finished yet :-).
Erik
--
+---+
Erik de Castro Lopo [EMAIL PROTEC
On Mon, 31 Jan 2005 09:41:13 -0800 (PST)
Josh Coalson <[EMAIL PROTECTED]> wrote:
> --- Erik de Castro Lopo <[EMAIL PROTECTED]> wrote:
> > On Sun, 30 Jan 2005 20:36:15 -0800 (PST)
> > Josh Coalson <[EMAIL PROTECTED]> wrote:
> >
> > > OK, thanks, che
http://cvs.sourceforge.net/viewcvs.py/*checkout*/flac/flac/src/libFLAC/Makefile.am?rev=1.60
Cool, that still works for me on Linux with a G3 PowerPC (ie no altivec).
Erik
--
+-----------+
Erik de Castro Lopo [EMAIL
Is anyone else working on this? If so please let me
know so we can agree on how FLAC should be contained with CAF.
Cheers,
Erik
--
+-------+
Erik de Castro Lopo [EMAIL PROTECTED] (Yes it's valid)
+
dings. This is also true for
Ogg, but I don't think its true for the FLAC container format.
> which are little to none from what I've read (around hydrogenaudio),
Do you have a link? I googled but couldn't find anything.
Erik
--
+---------
AF container.
Erik--
+-------+
Erik de Castro Lopo [EMAIL PROTECTED] (Yes it's valid)
+---+
"Projects promoting programming in natural language are intrinsically
doomed to fail." -- Edsger Dijkstra
___
rs,
Erik
--
+---+
Erik de Castro Lopo
+---+
"Baldie is such a wonderful villain
The Linux/OSS community could not possibly ask for a better villain than
our man Baldie. He is absolutely perfect for the part. Just look
Erik
--
+---+
Erik de Castro Lopo
+---+
"Unix and C are the ultimate computer viruses." -- Richard P Gabriel
___
Flac-dev mailing list
Flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev
lof being lossless, it cannot even attempt to meet a bitrate
target.
Erik
--
+---+
Erik de Castro Lopo
+---+
"A mouse is a device used to point at the xterm you want to type in.
eers,
Erik
--
+---+
Erik de Castro Lopo
+---+
"When a dog, a pig, or a disbeliever touches or comes in contact with
the clothes or body [of a Muslim] while he [the disbeliever] is wet, it
becomes obligatory-
Erik de Castro Lopo wrote:
> Hi all,
>
> Its been a while since I last compiled FLAC from source, but I just
> grabbed flac-1.1.3-beta2.tar.gz compiled it and then ran "make check"
> which resulted in this:
I've run the test scripts one by one and the fir
geout().
Josh (or anyone), I'd appreciate it if you could take a look at this.
Cheers,
Erik
--
+-----------+
Erik de Castro Lopo
+---+
"life is too long to be an expert at harmful th
Erik de Castro Lopo wrote:
> Josh et al,
>
> I've been tracking down a problem with generating OggFlac files.
> I have looked into this and suspect that the FLAC__stream_encoder_finish()
> function needs to finish off the stream using a call to ogg_stream_flush()
>
I could investigate this further, but I'm really busy over the next
couple of days. I wouldn't be able to look at this until this weekend
or possibly the next.
Erik
--
+-----------+
Erik de Castro Lopo
+-
something is going wrong when I'm encoding the file. Anybody
have any idea of what I have forgotten to do during encoding?
Cheers,
Erik
--
+---+
Erik de Castro Lopo
+---+
&q
encoder, that was the correct number is
> written in the STREAMINFO block during the first pass.
Thats fine if you know at the start, but not so good if you
don't. I'll wait until that bit is fixed.
Cheers,
Erik
--
+-------
ut I know from my own code that the "dereferencing type-punned
pointer" warnings require more intrusive work to fix them.
Cheers,
Erik
--
+---+
Erik de Castro Lopo
+
zeof(void *).
Cheers,
Erik
--
+-------+
Erik de Castro Lopo
+---+
Being really good at C++ is like being really good at using rocks to
sharpen sticks." -- Thant Tessman
___
Flac-dev mailing list
Flac-dev@xiph.o
urn intgr ;
}
Hope this helps,
Erik
--
+-----------+
Erik de Castro Lopo
+---+
The National Multiple Sclerosis Society of America recently started an
advertising campaign with t
x27;
The lround funtion is part of C99 and to enable it with gcc you need
-std=c99 or -std=gnu99 on the as part of the gcc commandline.
Hope this helps,
Erik
--
+-----------+
Erik de Castro Lopo
+-
Josh Coalson wrote:
> --- Erik de Castro Lopo <[EMAIL PROTECTED]> wrote:
> > Josh Coalson wrote:
> > > the closest thing I found was ntohl() which appears to be a
> > > function call
> >
> > Avoid that like the plague.
>
> why so? on l
sions, but not the full set
of GCC extensions.
Erik
--
+-----------+
Erik de Castro Lopo
+---+
`If you want a vision of the future, it is a wireless broadband
network feeding requests for foreign
ments,
FLAC__int32 **unaligned_pointer, FLAC__int32 **aligned_pointer)
--
+-------+
Erik de Castro Lopo
+---+
"If trees could scream, would we be so cavalier about cutting them
down? We might
;
-
return convert_string(current_charset(), "UTF-8", from, to, '#');
}
int utf8_decode(const char *from, char **to)
{
- char *charset;
-
return convert_string("UTF-8", current_charset(), from, to, '?');
}
--
+------
rt.h"
#include "FLAC/metadata.h"
#include "test_libs_common/metadata_utils.h"
+#include "metadata.h"
#include
#include /* for malloc() */
#include /* for memcmp() */
--
+--------
-------
Erik de Castro Lopo
-
"If you have one apple and I have one apple, if we exchange, each will
have one apple. If you have one idea and i have one idea, if we exchange
them, each will have two ideas!" -- Attr
library must preferably be free (open source is not required, but is
> always nice).
Why not just build FLAC as a DLL and then call into the DLL from C#?
Erik
--
---------
Erik de Castro Lopo
--
Josh Coalson wrote:
> excellent, thanks for the tip. this solves the problem for
> autoconf-based builds, but still not sure how to do it for MSVC.
Sorry, whats the problem with MSVC?
Erik
--
-
Erik de Castr
Harry Sack wrote:
>
> but aren't they C++ headers en lib's?
Not C++, C.
> I have no idea how I can include a C++
> header in a C# project.
> It this even possible?
Yes. Google for "dllimport csharp".
Erik
--
---------
Josh Coalson wrote:
> --- Erik de Castro Lopo <[EMAIL PROTECTED]> wrote:
> > Josh Coalson wrote:
> >
> > > excellent, thanks for the tip. this solves the problem for
> > > autoconf-based builds, but still not sure how to do it for MSVC.
> >
> &
rrectly.
Erik
--
-----
Erik de Castro Lopo
-
"Cunnilinugus and psychiatry brought us to this."
-- Tony Soprano in HBO's "the Sopranos"
___
Flac-dev mailing list
--
-
Erik de Castro Lopo
-
"The power of accurate observation is commonly called cynicism by those
who don't have it." -- George Bernard Shaw
_
EAM_DECODER_ABORTED:
return true;
default:
--8<--8<--8<--
--
---------
ats));
}
+static
void set_file_stats_(const char *filename, struct stat *stats)
{
struct utimbuf srctime;
--- src/test_libFLAC/metadata_object.c 2007-07-14 08:45:49 +0000
+++ src/test_libFLAC/metadata_object.c 2007-07-15 01:26:52 +
@@ -23,6 +23,7 @@
#include "FLAC/assert.
Hi all,
Is seeking working for OggFlac files? I keep on getting a
FLAC__STREAM_DECODER_SEEK_ERROR.
Erik
--
-
Erik de Castro Lopo
-
"Why do they protest against F
Josh Coalson wrote:
> --- Erik de Castro Lopo <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
> >
> > I added -Wmissing-prototypes -Wstrict-prototypes to the CFLAGS and
> > found that there were a number warnings generated.
> >
> > The patch below f
s occurred, but true when the read callback
returns FLAC__STREAM_DECODER_END_OF_STREAM? Why isn't end of stream treated
like any other error?
Erik
--
---------
Erik de Castro Lopo
-
"If you have one
Erik de Castro Lopo wrote:
> I can play with this over the weekend if you like and come up
> with a new patch for configure.ac.
Here's a much cleaner patch which only adds -Wmissing-prototypes
and -Wstrict-prototypes to CFLAGS, not to CXXFLAGS.
Cheers,
Erik
--
Josh Coalson wrote:
> --- Erik de Castro Lopo <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
> >
> > Is seeking working for OggFlac files? I keep on getting a
> > FLAC__STREAM_DECODER_SEEK_ERROR.
>
> yes, it should work fine. in flac/src/test_see
?<<
>
> I have no idea what the answer to this is. The question was about flac on OS
> X
The only way to distribute FLAC encoding load across CPUS is
to use N separate flac processes to encode N separate files.
Erik
--
----------
when aliasing is
detected.
If Josh was interested in a concerted effort to increase the number of
warnings turned on by default and fix all warnings found, I would be
happy to voulnteer to help.
Cheers,
Erik
--
-
Erik de Castro L
eers,
Erik
--
-----
Erik de Castro Lopo
-
"When your hammer is C++, everything begins to look like a thumb."
-- Steve Haflich, in comp.lang.c++
___
Flac-dev mailing list
Fl
{
(void)decode_options;
/* More code. */
}
Cheers,
Erik
--
---------
Erik de Castro Lopo
-
'Unix beats Windows' - says Micr
de
paths are checked by the semantic analysis stage of the compiler
regardless of value of FLAC__HAS_OGG. It prevents conditional compile
constructs from hiding really blatantly obvious errors like this one.
Erik
--
-
Erik de Castro Lopo
echo $AM_NEEDED | $VERSIONMKINT`
- if test $ver -ge $verneeded; then
+ ver=`$ac --version < /dev/null | head -n 1 | $VERSIONGREP`
+ maj=`echo $ver | $VERSIONMKMAJ`
+ min=`echo $ver | $VERSIONMKMIN`
+ if test $maj -eq $majneeded -a $min -ge $minneeded; then
ACLOCAL=$ac
Josh Coalson wrote:
> fixed in cvs (I think, I might have messed it up editing the inline
> patch from the mail, attachments work better)
Confirmed.
Erik
--
-
Erik de Castr
Erik de Castro Lopo wrote:
> I'll look into that over the next day or so. The pkg-config method
> has the advantage of being highly robust, but is a pain for MinGW
> because you need pkg-config.
I just tested this:
./configure --with-ogg=/opt/local
and so does:
./config
-clean_002dlocal-737
and it seems that the correct way to do what you want is:
clean-local:
-rm -f *.raw *.flac *.oga *.ogg *.cmp *.aiff
Do you want to do this or should I send a patch?
Erik
--
-
Erik de Castro Lopo
ering what happened to that issue.
Erik
--
-------------
Erik de Castro Lopo
-
"Web (hosting), security and high-performance computing are the
three areas where Linux has more streng
dd_4op_' defined
but not used
In C (certainly C99, probably also C89) functions that that are defined
"static inline" are inlined if used and ignored (ie no warnings) if not
used.
Is this stuff still a work in progress?
Erik
--
---
s old :-).
It does however create a problem for the microsoft platform
where the most commonly used C compiler on that platform is
still not C99 compliant.
Erik
--
-------------
: blank line following trailing
backslash
The attached patch fixes these.
Erik
--
-
Erik de Castro Lopo
-
"I'd crawl over an acre of 'Visual This++
broken the ABI.
Since I have some experience in this matter I renew my offer to help.
Cheers,
Erik
--
-
Erik de Castro Lopo
-
"Anyone who considers arithmetical met
-style K&R function definitions which were obsoleted
by the 18 year old 1989 C standard :-).
These two warning flags have been available at least since gcc-2.95.
All the 3 and 4 series gcc compilers accept them.
Cheers,
Erik
--
-----
Erik de Castro Lopo wrote:
> There are two GCC warning flags you should enable for all the
> C code ASAP.
Sorry, I don't want to seem too pushy on this issue, but I consider
-Wmissing-prototypes a really important issue. It bit me really
badly once and has been a hobby horse of mine
Erik de Castro Lopo wrote:
> Sorry, I don't want to seem too pushy on this issue, but I consider
> -Wmissing-prototypes a really important issue. It bit me really
> badly once and has been a hobby horse of mine ever since.
I've done some more investigation of this issue. It
email:
http://lists.xiph.org/pipermail/flac-dev/2007-September/002351.html
If you allow this changes to stay, it will mean that client code
that compiled with no warnings with FLAC 1.2.0 will produce
warnings with 1.2.1.
Erik
--
-------
Avuton Olrich wrote:
> I'd love to, I've got CVS checked out, how do I run this test suite?
./configure
make
make check
Erik
--
-----
Erik d
ing to
fix some of these const-correct issues.
The functions I'm talking about were new additions in 2006:
http://flac.cvs.sourceforge.net/flac/flac/include/FLAC/metadata.h?r1=1.53&r2=1.54
and not more recently.
Cheers,
Erik
--
----
d again.
Erik
--
-----
Erik de Castro Lopo
-
"Learning OCaml is like a wormhole: a little dark, but there is
a new, bigger universe much closer than you realis
Erik de Castro Lopo wrote:
> I'm currently running the tests on :
>
> Linux x86-64
> Mac OSX PowerPC
Both passed. The 1.8GHz AMD64 took 50 minutes, the 500MHz G3 PowerPC
took 461 minutes.
Erik
--
---------
Er
wrong there.
Have you tried running it past sndfile-info which is part of
libsndfile:
http://www.mega-nerd.com/libsndfile/
Does the flac encoder you're using do small files correctly? It may
be a miscompiled FLAC encoder.
Erik
--
--------
st libsndfile pre-release here:
http://www.mega-nerd.com/tmp/libsndfile-1.0.18pre20.tar.gz
Erik
--
---------
Erik de Castro Lopo
-
"In civilian equipment, such
Erik
--
-
Erik de Castro Lopo
-
Fundamentalist : Someone who is colour blind and yet wants everyone
else to see the world with the same lack of colour.
___
Flac-dev mailing list
Fl
e? Its also the three cross-compiled
ones which are the most likely to be wrong.
Erik
--
-------------
Erik de Castro Lopo
-
"Monotheistic religion is a plagiarism of a plagiarism
un these tests on all four.
I have a saying 'untested code is broken code'. In this case
that should read 'an untested binary is a broken binary'.
Erik
--
---------
Erik de Castro Lopo
-
em would not happen again.
Erik
--
---------
Erik de Castro Lopo
-
"We must not forget that Allah's rules have to be established in all lands."
-- Imam Muzammil H. Siddiqi of the Islamic Society of North America
_
8,7 @@
*/
#include /* for SIZE_MAX */
-#if !defined _MSC_VER && !defined __MINGW32__ && !defined __EMX__
+#ifdef HAVE_STDINT_H
#include /* for SIZE_MAX in case limits.h didn't get it */
#endif
#include /* for size_t, malloc(), etc */
--
--------
Erik de Castro Lopo wrote:
> It is not possible to cross compile from Linux to windows, but the
> tests don't currently work.
Its is *now* possible ..
Erik
--
---------
Erik de
as windows binaries on a Linux system and then
use then add the appropriate file extension.
Erik
--
-
Erik de Castro Lopo
-
Gambling(n): A discretionary tax on those aslee
---8<---8<---
Does that work for MinGW?
> Hope I found the right place to submit this :~)
Yes.
Erik
--
-
Erik de Castro Lopo
-
`If you want a vision of the future, it is a wireless broad
e if it works.
Erik
--
---------
Erik de Castro Lopo
-
Linux, the UNIX defragmentation tool.
___
Flac-dev mailing list
Flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev
ik de Castro Lopo
-
"Its your crack pipe. You can put whatever you want in it."
-- Erik de Castro Lopo
___
Flac-dev mailing list
Flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev
Erik de Castro Lopo wrote:
> will surgent wrote:
>
> > Hello, I was trying to compile Flac on MinGW/Msys but got an error stating
> > SIZE_T_MAX is undefined.
> > To fix this error I edited the file "flac-1.2.1/include/share/alloc.h" and
> > made the fo
hats more, the sndfile-convert program can also convert
from FLAC to the following file formats that support 63 bit
file offsets:
Au, Caf, rf64, w64
Cheers,
Erik
--
-----
Erik
Erik
--
-
Erik de Castro Lopo
-
"If I were on life-support, I'd rather have it run by a Gameboy
than a Windows box."
-- Cliff Wells in comp.lang.python
___
Flac-
ributed from countries that don't recognize software patents?
I believe that these players are on shaky legal ground in
the US and in many other contries.
Erik
--
---------
Er
18pre24e.tar.gz
Erik
--
---------
Erik de Castro Lopo
-
"If trees could scream, would we be so cavalier about cutting them
down? We might, if they screamed all the time, for no good reason."
-- Jack Handey
_
ed CAF (as part of libsndfile) and IMO, CAf is no harder
than WAV.
Erik
--
---------
Erik de Castro Lopo
-
"Safety versus Expressiveness is a false dichotomy -- you can have both
y compiler which has one
or the other missing does not comply with the standard.
> Maybe you can try it and then fix in your lib?
Maybe you can ask SUN to fix their compiler.
Erik
--
---------
eeware btw, its free software) should be
shipping at least gcc-4.2 by now.
Erik
--
---------
Erik de Castro Lopo
-
"Well behaved women rarely make history
to
FLAC.
Erik
--
-----
Erik de Castro Lopo
-
Moore's Law: hardware speed doubles every 18 months
Gates' Law: software speed halves ev
he all of
the features of the FLAC API to the user.
Erik
--
----------
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Flac-dev mailing list
Flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev
ce 2000. I wouldn't have it any other way.
Erik
--
----------
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Flac-dev mailing list
Flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev
where and post a URL?
Cheers,
Erik
--
------
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Flac-dev mailing list
Flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev
little smaller
than these.
Cheers,
Erik
--
----------
Erik de Castro Lopo
http://www.mega-nerd.com/
___
Flac-dev mailing list
Flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev
1 - 100 of 1117 matches
Mail list logo