Displaying 4 results from an estimated 4 matches for "decodefile".
2004 Sep 10
3
[Flac-users] Embedding the decoder... Sample code?
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?
TIA
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 described here:
http://flac.sourceforge.net/api/group__flac__file__decoder.html#_details
There is a C++ wrapper class that mak...
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
...ation and use it.
- If I have the API (again as .dll):
- I use the System.Runtime.Interop services namespace
- Add a reference to it using this code:
--- Begin Code Snip ---
Public Class SpeexDecoder
Public Declare Funtion (FunctionName) Lib "speex.dll" Alias
"DecodeFile" (ByVal strFileName as String) as (return type)
End Class
--- End Code Snip ---
... so this is used to add a reference to the function in the
API that would allow me to decode (as I don't need to encode files) and
play audio files.
Any help would be much appreciated.
Regards,
Oss...