Displaying 20 results from an estimated 900 matches similar to: "ov_read error on macosx - SOLVED"
2011 Jul 15
3
ov_read error on macosx
Hi, I have this code to decode ogg data:
unsigned long PSS_OggStream::DecodeOggVorbis(OggVorbis_File
*psOggVorbisFile, char *pDecodeBuffer, unsigned long ulBufferSize, unsigned
long ulChannels)
{
int current_section;
long lDecodeSize;
unsigned long ulSamples;
short *pSamples;
unsigned long ulBytesDone = 0;
while (true)
{
#ifdef WIN32
lDecodeSize = ov_read(psOggVorbisFile,
2005 Oct 09
1
ov_read_float vs. ov_read
Hello,
Am I missing something?
float** pcm_channels;
int bitstream;
int where = ov_pcm_tell(&vf);
-> The Result is "0";
ov_read_float(&vf, &pcm_channels, 1, &bitstream);
-> pcm_channels[0][0] is "0.000338580"
ov_pcm_seek(&vf, 0);
char* buffer = new char[2];
ov_read(&vf, buffer, sizeof(buffer), 0, 2, 1, &bitstream);
short temp =
2015 Jun 27
0
Sound glitch when using libvorbisfile and libao
Hi Gunter,
I've solved the sound glitch. Since it was hard to reproduce, it took me a
while, but I eventually figured it out.
What I needed to do was fill the buffer with more data before handing it
off to ao_play. It requires lots of bookkeeping, pointer arithmetic, and a
sufficiently large buffer.
First, the bigger buffer. I just pulled this code from ogg123:
#define PRIMAGIC
2015 Jun 14
2
Sound glitch when using libvorbisfile and libao
Hi Gunter,
Thank you for your quick response. As I mentioned in the email, I cannot
dependably reproduce it. It comes and goes, and I just have to wait for it
to come up before I can try to debug it. I've found it tends to happen when
I've been taxing my sound driver, but this isn't consistent either. My
inability to consistently reproduce this has made it a nasty bug for me to
2015 Jun 14
2
Sound glitch when using libvorbisfile and libao
Hi Gunter,
I think this problem started happening when I upgraded from Debian Wheezy
to Debian Jessie. If nothing looks amiss in my code, it probably is a sound
driver problem. But since it works 100% of the time in ogg123, I feel I
must have missed some corner case.
My audio driver is almost always active. I usually have my music player
going in the background when I do my testing. The problem
2002 Jan 03
3
Suggestion for libvorbisfile: scaling
I've been experimenting with the ideas of Replay Gain[1] and find that
ogg123 doesn't have a way of specifying the scaling applied to
replayed samples (like -f in mpg123).
Looking at libvorbisfile, I see no function exactly matching this
possibly desirable behaviour.
ov_read() scales by either 128 (byte output) or 32768 (word output),
but there's nothing in between.
ov_read_float()
2003 May 12
0
vorbisfile ov_pack_pcm patch
Here's a patch to vorbisfile.c in libvorbis that splits the float to integer
pcm packing out of ov_read into it's own function.
The good stuff:
- ov_pack_pcm can be used by folks who decode to float pcm with
ov_read_float to do various sound manipulations (eg, preamp, fades,
replaygain). No more need to roll your own, which will really begin to
pay off when 24 bit output gets
2003 Apr 30
1
float to PCM packing in libvorbisfile
Is there any particular reason why ov_read() packs floats to integer PCM
inline, rather than being implemented in terms of ov_read_float() and a
separate packing fucntion?
There are obviously many advantages doing audio manipulation on the floats
before packing, but right now you have to reinvent the packing stage yourself
- in a replaygain backend that I'm working on, I ended up copying
2003 Feb 02
1
Observations about the floating point data in vorbisfile
Hello.
I noticed that when reading data with ov_read_float(), you can get
values outside [-1..1] when the stream is encoded at lower quality, but
with higher quality, the values trim down to inside [-1..1].
Looking at the plot from -q10, the data from ov_read_float seems
clipped.
I've made some plots of encoding the start of Rammsteins Feuer from the
xXx soundtrack (it's a pretty loud
2002 Jul 20
1
small mistake in docs
Hi,
in ov_read_float.html there is a small mistake:
long ov_read(OggVorbis_File *vf, float ***pcm_channels, int
*bitstream);
hould read:
long ov_read_float(OggVorbis_File *vf, float ***pcm_channels, int
samples, int *bitstream);
It seems this function has been changed (compared to the RC3). Anything
else worked fine for me with the 1.0 release.
Olaf
<p>--- >8 ----
List archives:
2012 Jun 10
1
[libtremor] ov_read is reading past file size
I have a wav file which has been converted to an ogg file with libvorbis
via ffmpeg. However I've tested a few files just to make sure.
I run a standard while loop to using ov_read to pull all the data out of
ogg file. Using 4096 as the size to read each call. Watching my debug
logs it is reading 2048 bytes each call.
When I load the wav file the data chunk for the pcm data is 167680
2005 Nov 16
0
ov_read and double buffering
I am trying, for the first time, to decode and play an ogg file with two buffers. My audio is choppy and I can't see a problem on the wavOutxxx end of things. So I am wondering about how I call ov_read. From my TRACE statements, the read seems to work perfectly, eventually returning zero. Is it a simple matter of making the same call to ov_read, aside from changing the buffer and
2006 Jun 14
1
Having problems with ov_read
Ok here is the breakdown. I am trying to impliment streaming into our game
using openAL and ogg-vorbis. In the non-streaming function when I call
ov_read on the file I should be streaming the buffer gets filled with the
correct data. However, when I run ov_read on the same OggVorbis_File when I
read the buffer gets filled with 0's. The buffer has not been zero'd and
starts filled
2000 Nov 29
1
ov_read() reading too little.
Hi,
I've ditched the idea of calling the oggvorbis .dlls, and I'm compiling
the 1.0beta3 source into my own dll. After opening as "rb" instead of
"r", the ov_open() call works. However, ov_read() seems to consistently
read less data than I ask for. My buffer is enough to hold two seconds
of data, 16 bit 44k mono, that's 176400 bytes. The first call to
ov_read()
2008 Apr 11
1
ov_read() returns OV_EINVAL (-131)
Hi,
I'm new to mailing lists, so don't argue if I do sth wrong...
I'm coding on a C++ game with Vorbis- and 5.1-Surround-compatibily. For
two channels (stereo), everything's fine, but when I try to read a
6-channel-ogg, ov_read returns -131 (OV_EINVAL). That's strange, because
as the specification says, it only returns OV_HOLE or OV_EBADLINK as
errors [1].
Have I missed
2001 Jul 05
1
Streaming buffers/ov_read question
Has anyone had experience using ov_read in a thread with streaming
directsound buffers? i have tried the following, but it just produces a
repeating garbage noise. i would appreciate some help.
notes:
test.ogg in my code was a song that i converted to the vorbis format
(Gorillaz - Cling Eastwood)
pcmData is defined like this: char pcmData[4096];
the ogg file and the directsound buffer
2000 May 15
4
ov_read bugfix (fwd)
Folks:
Granted, this slipped past my review too, but do *not* submit patches that
have not been tested. This bug was a no brainer; running the code only even
once would have found it.
The mainline of Vorbis is our face to the world. A simple mistake like this
costs us credibility when we're already going to be fighting hard against some
of the most powerful media organizations in the
2002 Jan 16
2
Problem with ov_read_float()
Greetings,
I'm having some sort of problem using ov_read_float(). Everything looks
good to me, but I'm trashing memory somehow, so clearly I'm screwing
something up. What confuses me is why it takes a ***float for the
buffer.
I call it like so:
float **buffer
bytes_read = ov_read_float(&vf, &buffer, 0)
memcpy (b, *buffer, 0);
This compiles fine, but after a few reads,
2015 Jun 14
2
Sound glitch when using libvorbisfile and libao
Hi there,
I've been grappling with this for some time, so I'm finally breaking down
and trying this list.
I'm trying to integrate libvorbisfile and libao to create a simple sound
file player, a la ogg123. To do this, I borrowed heavily from ao_example.c
and vorbisfile_example.c. I feed the buffer from ov_read into ao_play in a
simple loop. It usually works, but occasionally all it
2003 Mar 14
1
ov_read( ) return value
When I call ov_read ( ) I cannot get more then 1024 bytes decoded even when
the buffer size is 4K. The function only decodes 1024 bytes max even when I
tell it to decode 4096 bytes. Does anyone has an idea what is going on.
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to