Help - Search - Members - Calendar
Full Version: Libsndfile Help!
Hydrogenaudio Forums > Lossy Audio Compression > AAC > AAC - Tech
donquicoke
I am reading the old faac code faacsrc060 downloaded from mp3-tech.org website. It turns out the compiling is painful. I downloaded the required libsndfile files from http://www.mega-nerd.com/libsndfile/win32.html and tried tp gererate the .h, .dll and .lib files according the web instructions but got the following error info.:
-----------------------------------------
D:\libsndfile-1.0.11\libsndfile-1.0.11>nmake -f Win32\Makefile.msvc

Microsoft ® Program Maintenance Utility Version 6.00.8168.0
Copyright © Microsoft Corp 1988-1998. All rights reserved.

cl.exe /nologo /MD /W1 /GX /O2 /I ""C:\Progra~1\Micros~1\VC98"\Include"
/I "src" /D "WIN32" /D "_USRDLL" /D "inline=__inline" /YX /FD /Fo".\src\Gsm610\a
dd.obj" /c ".\src\Gsm610\add.c"
add.c
.\src\Gsm610\add.c(11) : fatal error C1083: Cannot open include file: 'stdio.h':
No such file or directory
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.
------------------------------------------

Then i gave up and downloaded the three files directly from:
http://www.nuim.ie/academic/music/musictec/docs/progr.html
and added them to my project but still don't work:

Linking...
encoder.obj : error LNK2001: unresolved external symbol _sf_open_read
DebugFAAC/faac.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

It seems the sf_open_read method in library is missing ?

Anyone has experience on this?? or has the three working libsndfile files??

Please Help me OUT! THANKS!
Garf
libsndfile 1.0 and 0.x are not compatible. FAAC uses 0.x. You can find a compatible libsndfile in FAAC CVS, IIRC.
donquicoke
Thanks!

But i can't find any libsndfile files information in FAAC CVS from:

http://www.audiocoding.com/modules/mydownl...hp?cid=3&lid=20

do u have any idea where i can find these files?

Thanks!
Garf
I uploaded a copy:

http://sjeng.org/ftp/vorbis/libsndfile0_0.0.28.orig.tar.gz
donquicoke
Thanks Garf, it works!

But the resulting aac file can't be played in my Winamp 5.09, while the coded AAC file from my latest FAAC1.24 is fine. Do u know any player that works fine with old version of FAAC?

//It seems the player should at least support gain control to play old faac output
Garf
That could be due to bugs in that FAAC version. Also, a few years ago the standard for AAC headers changed. It could be that it's still using the old ones which confuses Winamp.

The "gain control not supported" is probably a generic error message from the confused player that doesn't accurately identify the real problem.

Why do you need the old FAAC version, anyway?
donquicoke
i am more interesting in the quantization scheme of the old version.... somehow it follows the LAME idea .... i found even the faad2 can't decode it .... do u have any code/player working with the old version? really aperciate your help!
Garf
If you can force it somehow to not use ADTS but ADIF or mp4 that has a good chance of working.

Perhaps even raw AAC would work.
john33
QUOTE(donquicoke @ May 23 2005, 09:15 PM)
i am more interesting in the quantization scheme of the old version.... somehow it follows the LAME idea .... i found even the faad2 can't decode it .... do u have any code/player working with the old version? really aperciate your help!
*


I just created an .aac file and an.mp4 using 1.23.5, and both play perfectly OK using the in_mp4.dll from the Rarewares mp4 page with the '1by1' player from: mpesch3's mp3 tools
Garf
QUOTE(john33 @ May 23 2005, 11:32 PM)
QUOTE(donquicoke @ May 23 2005, 09:15 PM)
i am more interesting in the quantization scheme of the old version.... somehow it follows the LAME idea .... i found even the faad2 can't decode it .... do u have any code/player working with the old version? really aperciate your help!
*


I just created an .aac file and an.mp4 using 1.23.5, and both play perfectly OK using the in_mp4.dll from the Rarewares mp4 page with the '1by1' player from: mpesch3's mp3 tools
*



Read the thread...he's working with version 0.6 not 1.23.5.
donquicoke
Thanks!

It doesn't work with my old faac code:
"Maximum number of scalefactor bands exceeded"

can u give me your 1.23.5 version? Is it using the quantization scheme of the 1.24 or the old one? i guess the 1.24 .... i am only interested in 0.60 sad.gif

donquicoke
QUOTE(Garf @ May 23 2005, 03:28 PM)
If you can force it somehow to not use ADTS but ADIF or mp4 that has a good chance of working.

Perhaps even raw AAC would work.
*



Thanks Garf!

I tried all your sujestions, but none of them works ....sad.gif how did those guys working on faac 0.60 orignally?
john33
QUOTE(donquicoke @ May 23 2005, 10:33 PM)
QUOTE(Garf @ May 23 2005, 03:28 PM)
If you can force it somehow to not use ADTS but ADIF or mp4 that has a good chance of working.

Perhaps even raw AAC would work.
*



Thanks Garf!

I tried all your sujestions, but none of them works ....sad.gif how did those guys working on faac 0.60 orignally?
*


If you d/l the faad0.50 sources from: http://www.mp3-tech.org/programmer/sources/faadsrc05.zip you will find that the in_aac.dll that compiles will play the files encoded with faac0.60. I haven't tried the faad.exe but have no reason to believe it won't work. smile.gif
donquicoke
Thanks John, I did that yesterday too. It's not surprising since faadsrc05 came along with faacsrc060.

I'm wondering what syntax changes in faacsrc060 output format decide its uniqueness ....

[/quote]
If you d/l the faad0.50 sources from: http://www.mp3-tech.org/programmer/sources/faadsrc05.zip you will find that the in_aac.dll that compiles will play the files encoded with faac0.60. I haven't tried the faad.exe but have no reason to believe it won't work. smile.gif
[/quote]
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.