Displaying 11 results from an estimated 11 matches similar to: "[Flac-users] Embedding the decoder... Sample code?"
2004 Sep 10
0
[Flac-users] Embedding the decoder... Sample code?
--- Daniel Tartaglia <daniel_t@earthlink.net> wrote:
> I'm looking for sample code for using flac in my program. I want to
> be
> able to decode a flac file to PCM. Something like:
>
> bool decodeFile( const char* pathNameOfFile, voud** data );
>
> How would I complete the above function?
Have you seen the API documentation? The process for the
file decoder is
2004 Sep 10
1
[Flac-users] Embedding the decoder... Sample code?
So, I wrote the code to decompress a flac file using the C interface.
Everything seems to work alright, except the sound doesn't play
right... I have some questions about the write callback function...
Assuming a 16 bit mono sound, how should I copy the buffer out into my
own buffer? Right now I'm simply copying the FLAC__int32* into my own
FLAC__int32*...
Could this be an endian
2004 Sep 10
1
[Flac-users] Flac linking woes...
On my Windows machine, when I try to link libFLAC.lib into my project,
it comes back with LNK2005 errors. Could it be that the .lib in
sourceforge has MSVCRTD.lib linked into it accidentally?
2004 Sep 10
1
flac reports error unnecessarily
I'm embedding flac in a Samba VFS application. flac gets called to
decompress files, which Samba serves up to the client as WAV files. Every
time a Windows client browses a folder, it opens music files to read the
header, and then it closes them without reading the entire file. I'm
accessing flac via popen/pclose.
Each time I close the pipe to flac 'prematurely' (i.e.
2013 Oct 06
1
Encoder off by one
If you encode with
int iByteSizeEncoded = opus_encode(m_enc, m_ShortsInput,
(1920/sizeof(short)), m_EncodedBytes, (960*6));
... the byte size is 120.
I thought that an odd value like 359 has to be a fault on my side.
I thought it would be a multiple of something.
So 359 is really correct???
Thank you for clearing this up.
Am 06.10.2013 16:50, schrieb Jean-Marc Valin:
> Why
2004 Aug 06
2
Speex API for use with .Net applications
Hi,
I'm Ossama Khayat, an Arab .Net Framework developer.
I'm interested in building an API or COM component, of the speex codec,
that is suitable for use in a Windows Forms application.
This will be used in an Open Source project that will hopefully be
hosted in Source Forge one done.
I tried downloading the source code and compiling it but really couldn't
do much with it, especially
2004 Sep 10
5
0.9 problems
Problems in FLAC 0.9:
- On alpha, flac immediately dumps core for both encoding and
decoding (FreeBSD/alpha).
- The distribution Makefile.in files haven't been generated with
"automake --include-deps". The resulting Makefiles aren't fully
portable; in particular they break with BSD make. In the future,
care should be taken to use "--include-deps".
- What is
2004 Sep 10
6
OS X compile errors
I just tried to compile FLAC 1.0.5 beta1 under Apple's X11 v0.1
(released today) and it didn't work. The error message was:
file_decoder.c: In function `_declspec':
file_decoder.c:477: warning: unused parameter `dllimport'
file_decoder.c:478: warning: unused parameter
`FLAC__file_decoder_process_until_end_of_file'
make[4]: *** [file_decoder.lo] Error 1
make[3]: ***
2005 Nov 11
3
how to include FLAC in a CoreAudio wave player
Hi everyone,
I'm still new at this audio development thing in OSX
as all of my prior experience is in database
applications. I'm also new to C++ and the Xcode
environment, which makes things interesting as I
learn.
There is a CoreAudio wave player written in C++ to
which I would like to add FLAC playback support. I
have looked through the libFLAC++ API and think I have
an idea of what
2004 Sep 10
3
0.9 problems
On Sat, May 19, 2001 at 12:55:08AM -0400, Matt Zimmerman wrote:
> On Sat, May 19, 2001 at 02:05:14AM +0000, Christian Weisgerber wrote:
>
> > Problems in FLAC 0.9:
> >
> > - On alpha, flac immediately dumps core for both encoding and
> > decoding (FreeBSD/alpha).
>
> I have reproduced this on Debian/alpha as well. I will spend some time
> debugging it
2004 Sep 10
0
OS X compile errors
This is a problem with the code that does DLL on windows.
The 'off' switch assumes "unix" is #defined by the compiler,
which it isn't on Darwin.
I am going to check in a fix soon that will be in flac-1.0.5-beta2.
In the meantime you can manually add -Dunix to the two assignments
of OUR_CFLAGS_TAIL in configure.
Josh
--- Glenn <glenn@meaning.com> wrote:
>
> I