Greeting list readers,
I noticed that the wave read object has an *implementation dependent*
setpos(pos) method. When reading audio files, it is useful to be able
to set the position to a specific sample. While setpos(pos) may do this
on certain implementations (haven't tried it), it would not be a
reliable way to do it in a platform independent manner.
Is anyone familiar with an alternative wave package that would let one
arbitrarily access portions of a wave file? Clearly, one can read in up
to the desired point, but when the file is very large, this becomes an
inappropriate way of doing things.
Thanks,
Marie
If you have a suggestion and prefer to send e-mail, please send it to
"nospam" with the domain from the bogus address listed above. 1 2084
On Tue, 16 Aug 2005 02:33:36 GMT, Nadie <Na***@san.rr.c om> wrote: Greeting list readers,
I noticed that the wave read object has an *implementation dependent* setpos(pos) method. When reading audio files, it is useful to be able to set the position to a specific sample. While setpos(pos) may do this on certain implementations (haven't tried it), it would not be a reliable way to do it in a platform independent manner.
How do you know this? I don't know either way, but superficially it
looks like the wave.py author tried to do "the right thing." Is anyone familiar with an alternative wave package that would let one arbitrarily access portions of a wave file? Clearly, one can read in up to the desired point, but when the file is very large, this becomes an inappropriat e way of doing things.
Why don't you at least try setpos, and fix it if there's a problem?
Or report on the problem you _actually_ encounter, which could be useful.
That much can't be much harder than looking for an alternative, and may
inspire others to help make/find a workable solution for you.
Regards,
Bengt Richter This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: david.kettle |
last post by:
Hello Python World!
I've been playing with the 'wave' and 'audioop' modules in the library,
and I have a question. When I tried to read a "wav" file with samples
in 32-bit float, I got the following error:
Traceback (most recent call last):
File "Play.py", line 111, in ?
playWAV(sys.argv)
File "Play.py", line 69, in playWAV
|
by: Jakub Dudek |
last post by:
Hi,
I am trying to read wave date (the 16 bits audio words) from a wave file
using c++. I have tried using the mmsystems library. I got to the point
where I read the wave data chunk into a character array using mmioread.
This array does not make much sense to me however, I don't really understand
the format. Anyone has an idea as to how to extract the 16 bit words from
the character array returned by mmioread?
Alos, any other...
|
by: vikram |
last post by:
in a stereo type of wave file
i want to know what is this left & right info in a wave file???
how do i read the left & right info from a .wav file to a buffer..
|
by: VenuGopal |
last post by:
hi,
i want to store the WAVE FILE CONTENTS in an XML.
How do i do it?
thanks
Venugopal
|
by: Erpman |
last post by:
I am trying to access the data with in a wav file. I am testing with very
small files in order to keep the code simple to start with.
Basically, im writing the entire wav file to a byte using a fileStream.
The problem is that when reading back the data word by word and printing the
results on a general form, once the data chunk header has been read, i.e,
"data" and "chunk size", all the rest of the bytes in the array have the
value...
| |
by: m.topczewski |
last post by:
Hello, I'm a beginner in c++, i have to write a program that will take
couple of segments from one wave file, and store them in another wave
file to be played back later.
Here's the code i have written:
#include "stdafx.h"
#include <cstdlib>
#include <iostream>
|
by: Simrat Kaur Sandhu |
last post by:
hello friends
can anybody tell me how to read data from a wave file..
i have writen code as ...
class file
{
private:
FILE *fp;
char id;
char *sound_buffer; //four bytes to hold 'RIFF'
long int size; //32 bit value to hold file size
|
by: homevista |
last post by:
PART III: Putting things together
In part I we examined the modem to verify that it supported voice. If so, we took a note about the voice data format that we would use. In the second part, we prepared a wave file and implemented a piece of code in C# to be used by HomeZIX to read the wave file into a buffer. Now, it’s time to put things together to send out that buffer as an audio stream over the phone line to a designated phone number.
...
|
by: subhakohila |
last post by:
Hi,
Can any one help me to read the wave file and pass through the modem to the telephone line....I tried with some set of codings but its returning some garbage values....
The coding i used to read the file is..
public byte ReadWavefile(string filename)
{
if (filename.Length > 0)
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |