octave-maintainers
[Top][All Lists]
Advanced

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

Re: gsoc2013 octave audio system


From: Mike Miller
Subject: Re: gsoc2013 octave audio system
Date: Thu, 18 Apr 2013 10:37:54 -0400

On Thu, Apr 18, 2013 at 4:00 AM, Vytautas Jancauskas wrote:
> I don't know a great deal about octave to c++ interface, but would
> something like this be possible:
>
> player = audioplayer(function)?
>
> where function is a function portaudio would call when we need to fill
> in an audio buffer. This would allow playing large amounts of data
> without keeping it all in memory at once.

If you mean overloading the constructor so it could accept either an
array type or a function type, then yes that is definitely possible.
See for example bsxfun or cellfun.

-- 
mike


reply via email to

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