472,143 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,143 software developers and data experts.

Reading portions of a wave file

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.
Aug 16 '05 #1
1 1996
On Tue, 16 Aug 2005 02:33:36 GMT, Nadie <Na***@san.rr.com> 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
inappropriate 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
Aug 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by david.kettle | last post: by
1 post views Thread by Jakub Dudek | last post: by
4 posts views Thread by vikram | last post: by
3 posts views Thread by VenuGopal | last post: by
4 posts views Thread by Erpman | last post: by
5 posts views Thread by m.topczewski | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.