Displaying 20 results from an estimated 3000 matches similar to: "Streaming audio to the waveout device"
2001 Mar 14
2
Playing Problems :(
Hi all!
I've problem with playing ogg files. I'm triing to use tripple buffer
method:
+-------------+
+-| buffer 1 |-+
| +-------------+ |
| |
| +-------------+-+
| | buffer 2 |
| +-------------+-+
| |
| +-------------+-+
2001 Mar 06
2
ov_read not returning amount requested
When I am using vorbisfile on a disk file, ov_read does not always (in
fact - most of the time) read the number of bytes I request.
It doesn't seem to be dependent on the number I ask for, and the ratio
between what I request and what is read varies.
Can somebody tell me what's going on here?
TIA
Lance
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage:
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 Oct 05
2
ov_read, callbacks and 0 bytes read
How does one deal with the case when an fread callback doesn't have any
more data but is going to get more data in the future?
In particular, this is an issue when reading an incoming Ogg stream from
a socket (icecast2, in this case).
The issue is that the fread can't return 0 (that signals EOF and hoses
everything), and it doesn't have a negative code that says come back
later
2008 Sep 12
1
Echo Cancellation not working on WinCE
Hello Friends,
I am trying to use speex-1.2beta3 version for echo cancelling.
On my WinCE board I am using WaveIn/WaveOut functions to record and playback
audio.
I am receiving audio data on udp socket, then playing it on speaker using
WaveOutWrite function.
I registered callback to capture microphone data, then data chunk came from
socket ( which I played on speaker) and data captured from
2005 Aug 16
1
ov_raw_tell() not working properly!
I'm working on an application where I need to record
the current playing position and return to it later.
and I need this to be done the most efficient way, so
I used ov_raw_tell() and ov_raw_seek() because the
documentation says they are the best when speed is a
concern.
but the problem is that sometimes ov_raw_tell returns
the same value before and after calling ov_read;
here's an
2007 Nov 04
3
WaveIn/WaveOut and Speex
Hello,
I know my question has been asked before because I spent the last week
searching the web for how to use Speex in combination with
WaveIn/WaveOut and I ran into a few posts, but none of them answer the
question. There is still a lot of confusion how to use WaveIn/WaveOut
and Speex by junior developers such as myself. Even after examining code
for SpeexDec and SpeexEnc, I cannot get clear
2007 Nov 04
2
WaveIn/WaveOut and Speex
Thank you for such a quick response.
The only reason I started with Char buffers is because WaveIn and WaveOut on Windows XP accept/emit WAVEHDR structures, which store audio data in LPSTR, which is Char*.
typedef struct {
LPSTR lpData;
DWORD dwBufferLength;
...
} WAVEHDR;
When I was going from Char to float and back looked very wrong to me as well, but I was just not
2007 Nov 05
2
WaveIn/WaveOut and Speex
Evgueni,
Don't listen to this guy. The last thing someone confused about types
should use is a union. Listen, whatever types you're using, you're just
dealing with data in memory. For an array, it's just a big block of data in
memory. You need to know how that data is stored in memory. For audio data,
WAVEFORMATEX tells you that with its contents. Don't let types
2004 Sep 06
1
Plain playback
Hi all,
Perhaps a stupid question, but I just need pieces of audio from a file. I
know I have to use vorbisfile, and the example compiles, but I don't know
how to read the buffer. In fact, it's not even documented (or I'm looking at
the wrong place). I assumed it was a interleaved buffer containing unsigned
shorts, but that didn't work.
I also tried the normal decode example,
2001 Nov 22
14
Small vorbis files with vorbisfile
I think I have bumped into the small file error, or I''m doing something
stupid. The files are short audio effects for a game (embedded in our own
data format).
Sample info:
Vorbis packets: 1 (4 kb)
Samples: 28672
Samplerate: 22 kHz
Channels: 2
This is what I''m doing when I want to get a number of bytes from the stream:
The problem is that ov_pcm_tell always returns 0. And so
2007 Nov 05
2
WaveIn/WaveOut and Speex
Again, thank you for helping me. I know this might seem like a trivial matter to you and other experts in the field, but believe me, there are a lot of programmers, whose posts I saw on the web, who tried to use WaveIn/WaveOut and Speex and failed.
As I understand it, WaveIn just buffers audio data according to the bit rate specified. So, if we use waveFormat.wBitsPerSample = 8, then each Char of
2004 Apr 12
3
Decoding with 8 bit-samples
Hi!
I'd like to make a stereo 8-bit wav file
from a stereo (16 bit) ogg vorbis file
(in delphi, with the vorbisfile).
I use:
ret := ov_open_callbacks(filein,vf,nil,0,ops_callbacks);
if ret = 0 Then
begin
fileOut := TFileStream.Create(savedlg.FileName,fmCreate);
repeat
ret := ov_read(VF, pcmout, BufferSize, 0, 1, 1, nil); //'cause of the 8-bit
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
2004 Sep 21
1
Streaming from memory
How would one go about streaming an entire ogg file from memory? That is,
I'd like to read the entire file right away and then just decode as I go.
I'm currently using the various functions in vorbisfile.c which read from
files but it's causing intermittent stuttering in my game since the calls to
ov_read sometimes experience spikes in return time. I'm guessing that these
spikes
2001 Oct 04
8
OT: Licence + hi-res logotype
Hello!
I just got _very_ scared. I was certain the Ogg libraries could be used in
commercial products (I know they are used in Star Trek: Away Team and
Operation Flashpoint). I've also been told several times that it's OK, even
if they're not GPL, but now I can't find any info on the sites that tells me
so. Could you please tell me what the deal is (I've used it in a project
2000 Oct 19
1
casting/rounding ASM committed to beta3 branch
Jack, I got the asm we were working last night committed ont he beta 3 branch.
It's in use in both vorbisfile:ov_read() and the lsp lookup (when using float
lookups)
I'd like to have a patch of the other things you did in the past day or so, even if you don't want to commit yet.
Monty
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage:
2004 Jun 16
2
ogg123 volume?
Hi,
I need to adjust the output volume from ogg123 the same way that
mpg123 has the "-f n change scalefactor [32768]" option. I need to
do this within ogg123, instead of alternatives that involve pipes,
such as piping the output to sox.
I do not believe that this is currently possible in ogg123, and I'm
looking for some suggestions as to how it can be accomplished by
modifying
2004 Jun 16
2
ogg123 volume?
Hi,
I need to adjust the output volume from ogg123 the same way that
mpg123 has the "-f n change scalefactor [32768]" option. I need to
do this within ogg123, instead of alternatives that involve pipes,
such as piping the output to sox.
I do not believe that this is currently possible in ogg123, and I'm
looking for some suggestions as to how it can be accomplished by
modifying
2001 Sep 11
2
Another backtrace
I got this one this morning, but didn't notice it til now:
---
(gdb) bt
#0 0x4003be91 in vorbis_block_clear (vb=0xbffff71c) at block.c:156
#1 0x4003ce36 in vorbis_analysis_blockout (v=0xbffff71c, vb=0x8050b80)
at block.c:591
#2 0x4002ff23 in _prefetch_all_headers (vf=0xbffff540,
dataoffset=-1073749296)
at vorbisfile.c:324
#3 0x4003039c in _process_packet (vf=0xbffff540, readp=1)