similar to: Borland modification

Displaying 20 results from an estimated 2000 matches similar to: "Borland modification"

2000 Jul 14
1
Borland Builder
The following modification is needed in os.h to compile under C++Builder. It has the alloca prototype in malloc.h. #ifndef __GNUC__ #ifdef _WIN32 # ifdef __BORLANDC__ # include <malloc.h> # else # define alloca(x) (_alloca(x)) # endif # define rint(x) (floor((x)+0.5)) #endif #endif Encoding a full range pure tone (500Hz) seems to cause a domain error in sqrt(). Can anyone
2013 Apr 24
0
vorbis-psy compilation fix
This patch enables compilation with GCC 4.7.1 and --enable-shared=yes --enable-static=no --enable-vorbis-psy -------------- next part -------------- diff -r -u speex/configure.ac speex/configure.ac --- speex/configure.ac 2013-04-24 19:08:00.710564608 +0400 +++ speex/configure.ac 2013-04-24 20:04:33.589310544 +0400 @@ -204,7 +204,7 @@ AC_DEFINE([TI_C55X], , [Enable support for TI C55X DSP])
2000 Aug 31
2
More information on exception
The following block of code produces an exception. The testnew.ogg file is 10 seconds, containing pure silence encoded using mode E: http://www.cs.mun.ca/~chris3/testnew.ogg Other files and modes can cause the exception, but many files work fine. #include <stdio.h> #include "vorbis/vorbisfile.h" int main() { OggVorbis_File ov, ov2; FILE *f, *f2; f
2003 Apr 01
3
Access Violation when calling ov_clear
I get an access violation when calling ov_clear(). I know ov_open() worked because I used ov_info to get the sampling rate and number of channels in the .ogg file. I also know the FILE pointer and the OggVorbis_File structure are still in scope (they're member variables of the same class my deconstructor is in (where ov_clear() is called)). Anyone have any ideas? I opened the file using
2000 Dec 13
2
ov_clear segfaults?
Hi guys, I'm working doing the Java->JNI->OggVorbis thing. As a test to get me going, I've just written a quick routine that dumps info about the file test.ogg in the current directory. The problem arises when I call ov_clear. I get a segfault everytime. Note that I am *not* doing any decoding (ov_read) at all, just ov_comment and ov_info. Should I only call ov_clear if I have
2003 Sep 18
1
Mixing libvorbisfile with SDL
I am having no luck at all mixing libvorbisfile with the cross-platform gaming library SDL. It seems that any time I call ov_clear, the app goes unstable and crashes later in calls to glibc. This is unacceptable for obvious reasons and I was wondering if there was a way to fix it by just using libvorbis. I was going to experiment with the possibility, but I have, as yet, been unable to find
2002 Dec 09
2
ov_open/ov_test weirdness
Hi, I've been playing with a little player, and it seems I can't ov_open a file twice? heres a snipit... <p>#include <stdio.h> #include <stdlib.h> #include <errno.h> #include <vorbis/vorbisfile.h> OggVorbis_File vf; FILE *f = NULL; int main(int argc, char **argv) { char *file = NULL; int err = 0; if(argc < 2) {
2004 Sep 07
3
Introducing ov_open_callbacksp and ov_clearp
Hello, I've been looking to the libvorbisfile and got into troubles when trying to use it: I need to compile it on a PalmOS and the libvorbisfile must be compiled in ARM whereas calling code is in 68K. This implies that the interface ov_open_callback is not usable because the OggVorbis_File *vf must point to something in the target architecture (ARM) whereas the caller cannot do that. As
2001 Sep 28
0
Borland compiler issues
Where can I download stable RC2 source code? I've downloaded the nightly CVS, but it seems unusable right now. The Windows SDK does not appear to include source code or Borland compatible libraries. One thing I've noticed about the nightly CVS code is that the nested alloca() calls seem to confuse Borland's compiler. I had to change code in mapping0_forward() from:
2003 Sep 14
6
ov_clear(&vorbis) segfaults?
Hello all. I'm new to this list. I'm also new to coding with libvorbis and things, so please bear with me. :) I've been having trouble with libvorbisfile. My use of it is fairly simple, but when I try to ov_clear the vorbis file, it segfaults. I can attach or otherwise make availible some demo source code, but for now I'll just pull out relevant lines: //BEGIN PSEUDO CODE
2005 Nov 05
1
buffer overruns for small files
I wonder if anyone would have a comment on an experiment I have pretty much completed in my MFC/C++ project. With my simple libvorbis implementation, ogg decoding works just fine for files that are 10kb or larger. For anything smaller (actually, I don't have a 9kb file, so <= 8), it seems that I get an inaccurate value for ov_pcm_total. Though ov_read returns zero, I overflow the buffer
2010 Apr 26
2
Never executing loop in smallft.c
Hello list I've been studying libvorbis code and found a strange fragment in smallft.c: 38 static void drfti1(int n, float *wa, int *ifac){ 39 static int ntryh[4] = { 4,2,3,5 }; 40 static float tpi = 6.28318530717958648f; 41 float arg,argh,argld,fi; 42 int ntry=0,i,j=-1; 43 int k1, l1, l2, ib; 44 int ld, ii, ip, is, nq, nr; 45 int ido, ipm, nfm1; 46 int nl=n; 47 int nf=0;
2005 Jun 17
1
ov_open fails on Version 1.0.1
Eddie, I have been reviewing vorbis list postings, because I have been spinning my wheels for a week, trying to make a simple insertion of ogg vorbis decoding (vorbisfile) in the audio class of my MFC/C++ program. I just read your thread from April 2004. Question: Do you have anything you could send me, since I assume you succeeded in getting results? And/or could you take a look at what I
2003 Dec 15
1
Yet another vf question...
Should I ov_clear a failed ov_open/test/test_open call? The xmms plugin does an fclose on failure, and that seems to work, but I thought I ought to know for certain. (An observation: I think the quantity of questions and bugs raised along the lines of "I did open file, ov_open, ov_read, close file, open another file, ov_read, and it exploded", or "I tried to make vorbisfile go
2006 Apr 13
4
How to create a compact Speex library
--- Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> wrote: > > Sorry if this a repost but I want to create the > > smallest Speex library possible to be put in TI's > > TMS320 DSP. I'm only interested in one > configuration: > > 5.97 Kbps narrowband. What part of source code > can I > > remove? Currently, when I compiled the version >
2006 Oct 11
2
Symbian port
A couple of things to be noted on the symbian port. 1. the spokn.mmp file is missing window.c, please add that. 2. smallft.c is not required. it has global data that prevents compilation on symbian. 3. lbr_48k_tabels.c has a global variable called dummy_epic_48k_variable on line 37. this has to be commneted out too. 4. check that all tables are declared const. i will shortly post the symbian
2004 May 17
0
ov_clear Crash
Hi All, Im having troubles with ov_clear crashing or just failing to close properly. Is there anything else i should make sure im doing before i call ov_clear. My code basically consists of one ogg file running completley in its own thread where it decodes into direct sound buffers. I only run 2 threads at anyone time, and ive also noticed its only the threads that use ogg files with multiple
2003 Jul 22
6
Seeking ogg-vorbis
Hi there. I have been hearing to ogg vorbis for maybe 2 years and I can only say: it is fantastic! Right now, I'm working in a project that uses ogg vorbis as the format for recording. I have now a working recording engine (I have recorded up to 8 channels at the same time and my computer uses only about 30% of the processor, wich is great in this project), and I'm starting with the
2005 Oct 26
1
Borland C++ and [R] dyn.load() for windows
Hi, I compiled a C program file on Borland C++ 5.5 compiler to get one dll output (as instructed in the file readme.package). The C program file is just the example on page 31 of "writing R extensions": void convolve(double *a, int *na, double *b, int *nb, double *ab) { int i, j, nab = *na + *nb - 1; for(i = 0; i < nab; i++) ab[i] = 0.0; for(i = 0; i < *na; i++) for(j = 0; j
2001 Apr 05
2
Borland C++-5.5 (free) compiler does not install(?)
Hello! I'm trying to install Borland C++ 5.5 free compiler into my RH7 Linux box but I can't get it to work. Running the installer brings a blank dialog with "Prev", "Next" and "Cancel" buttons but nothing more.. and pressing the buttons doesn't do anything and the dialog doesn't close. I waited for more than 15 minutes (I read it in FAQ