octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Taking care of old audio functions


From: Mike Miller
Subject: Taking care of old audio functions
Date: Sun, 11 Jan 2015 23:20:53 -0500
User-agent: Mutt/1.5.23 (2014-03-12)

All,

Now that we have modern audio support in the Octave default branch, what
should we do with the older legacy audio function files?

Here are the functions I'm looking at in scripts/audio:

 * loadaudio
 * playaudio
 * record
 * saveaudio
 * setaudio
 * wavread
 * wavwrite

Some of these are correct but duplicate functionality in the new-style
classes and functions, and some are just unmaintainable.

My suggestion would be to keep but rewrite the record, wavread, and
wavwrite function files as wrappers around the new-style functions. Both
wavread and wavwrite are still present in current versions of Matlab.

The rest, loadaudio, saveaudio, playaudio, and setaudio, should probably
be deprecated. The first three are fully replaced by the new functions.
The setaudio function looks like it is supposed to set the sound card
volume, by shelling out to a command that I don't have on my Debian
system. I don't see any equivalent function on TMW's web site.

We can also implement the missing functions sound and soundsc as simple
function file wrappers around the audioplayer class.

Thoughts?

-- 
mike

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]