search for: sf_info

Displaying 8 results from an estimated 8 matches for "sf_info".

Did you mean: fs_info
2013 Dec 04
1
endian problems with AIFF and WAV
...e <string.h> #include <limits.h> #include <ao/ao.h> #include <sndfile.h> #include <math.h> ao_device *device; ao_sample_format format; int main(int argc, char *argv[]) { int default_driver; int frames_read; int *buffer; SNDFILE *sndfile; SF_INFO sf_info; FILE *fp; if (argc != 2) { printf("usage: %s <filename>\n", argv[0]); exit(1); } ao_initialize(); default_driver = ao_default_driver_id(); fp = fopen(argv[1], "rb"); if (fp == NULL) { printf("Cannot open %s.\n&...
2010 Jan 05
3
FLAC C API / Visual Studio 2008 FILE* Issue
...the following: > ** > ** #include <windows.h> > ** #define ENABLE_SNDFILE_WINDOWS_PROTOTYPES 1 > ** #including <sndfile.h> > */ > #if ENABLE_SNDFILE_WINDOWS_PROTOTYPES > SNDFILE* sf_wchar_open (LPCWSTR wpath, int mode, SF_INFO *sfinfo) ; > #endif > > There is a windows binary installer in the main web page (one for each of > 32 and 64 bit windows). > > The only downside to this is that libsndfile does not expose the all of > the features of the FLAC API to the user. > > Erik > -- > ---...
2010 Jan 05
2
FLAC C API / Visual Studio 2008 FILE* Issue
Hello, I am currently learning the FLAC C API and had the code working with FLAC__stream_decoder_init_file. However, since I'd need the Unicode filename support, I tried _wfopen_s in combination with FLAC__stream_decoder_init_FILE, however I get a runtime crash as sonn as I call FLAC__stream_decoder_process_until_end_of_stream. The same code (partially taken from the examples) is working
2011 Mar 10
4
Wav to Ogg Vorbis conversion
Dear experts, I am trying to use an example I found here: http://svn.xiph.org/trunk/vorbis/examples/encoder_example.c Could you please tell me what float** buffer is needed for (I don't see it used anywhere). Also, could you please tell me what this code is doing: for(i=0;i<bytes/4;i++){ buffer[0][i]=((readbuffer[i*4+1]<<8)|
2010 Jan 05
0
FLAC C API / Visual Studio 2008 FILE* Issue
...** ** In order for this to work, you need to do the following: ** ** #include <windows.h> ** #define ENABLE_SNDFILE_WINDOWS_PROTOTYPES 1 ** #including <sndfile.h> */ #if ENABLE_SNDFILE_WINDOWS_PROTOTYPES SNDFILE* sf_wchar_open (LPCWSTR wpath, int mode, SF_INFO *sfinfo) ; #endif There is a windows binary installer in the main web page (one for each of 32 and 64 bit windows). The only downside to this is that libsndfile does not expose the all of the features of the FLAC API to the user. Erik -- -----------------------------------------------------...
2010 Jan 05
0
FLAC C API / Visual Studio 2008 FILE* Issue
...* >> ** #include <windows.h> >> ** #define ENABLE_SNDFILE_WINDOWS_PROTOTYPES 1 >> ** #including <sndfile.h> >> */ >> #if ENABLE_SNDFILE_WINDOWS_PROTOTYPES >> SNDFILE* sf_wchar_open (LPCWSTR wpath, int mode, SF_INFO *sfinfo) ; >> #endif >> >> There is a windows binary installer in the main web page (one for each >> of >> 32 and 64 bit windows). >> >> The only downside to this is that libsndfile does not expose the all of >> the features of the FLAC API to the...
2008 Nov 03
0
No subject
...#include <windows.h> >> ** #define ENABLE_SNDFILE_WINDOWS_PROTOTYPES 1 >> ** #including <sndfile.h> >> */ >> #if ENABLE_SNDFILE_WINDOWS_PROTOTYPES >> SNDFILE* sf_wchar_open (LPCWSTR wpath, int mode, SF_INFO = *sfinfo) ; >> #endif >> >> There is a windows binary installer in the main web page (one for = each >> of >> 32 and 64 bit windows). >> >> The only downside to this is that libsndfile does not expose the = all of >&gt...
2010 Jan 06
4
FLAC C API / Visual Studio 2008 FILE* Issue
...#include <windows.h> > >> ** #define ENABLE_SNDFILE_WINDOWS_PROTOTYPES 1 > >> ** #including <sndfile.h> > >> */ > >> #if ENABLE_SNDFILE_WINDOWS_PROTOTYPES > >> SNDFILE* sf_wchar_open (LPCWSTR wpath, int mode, SF_INFO *sfinfo) ; > >> #endif > >> > >> There is a windows binary installer in the main web page (one for each > >> of > >> 32 and 64 bit windows). > >> > >> The only downside to this is that libsndfile does not expose the all of > >&...