Can audacity work in real-time?

3 Messages Forum Options Options
Permalink
张博-2
Can audacity work in real-time?
Reply Threaded More
Print post
Permalink

I want to make audacity work in real-time, when playing, the edit function such as "Cut","Copy" ,"Effect" and so on can work.

But I don't know whether it is possible.

Everybody who knows something about it,can you do me a favor?

Thanks ~ 

                ZhangBo




350万起 独栋山墅
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Audacity-devel mailing list
Audacity-devel@...
https://lists.sourceforge.net/lists/listinfo/audacity-devel
Michael Chinen
Re: Can audacity work in real-time?
Reply Threaded More
Print post
Permalink
2008/7/2 张博 <wandercloud@...>:
> I want to make audacity work in real-time, when playing, the edit function
> such as "Cut","Copy" ,"Effect" and so on can work.
>
> But I don't know whether it is possible.
It's definitely possible.  It might be useful to some users, but I
tend to pause before I edit.  The downside is that the behavior of
playing when the playing region and effect area overlap will be
non-deterministic unless you make it mutex, which makes it essentially
non-realtime again.

You will basically need to add mutexes to the every piece of code that
edits the waveclip/sequence/blockfile.  You can look at src/ondemand,
Sequence, and BlockFile if you want some examples.

Michael

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Audacity-devel mailing list
Audacity-devel@...
https://lists.sourceforge.net/lists/listinfo/audacity-devel
张博-2
Re: Can audacity work in real-time?
Reply Threaded More
Print post
Permalink

>Subject: Re: [Audacity-devel] Can audacity work in real-time?
>> I want to make audacity work in real-time, when playing, the edit function
>> such as "Cut","Copy" ,"Effect" and so on can work.
>>
>> But I don't know whether it is possible.
>It's definitely possible.  It might be useful to some users, but I
>tend to pause before I edit.  The downside is that the behavior of
>playing when the playing region and effect area overlap will be
>non-deterministic unless you make it mutex, which makes it essentially
>non-realtime again.
>
>You will basically need to add mutexes to the every piece of code that
>edits the waveclip/sequence/blockfile.  You can look at src/ondemand,
>Sequence, and BlockFile if you want some examples.
>
>Michael
>
 
Hi Micheal, Thanks for your replying.
 
what does“You can look at src/ondemand,Sequence, and BlockFile if you want some examples.” mean? Is "src/ondemand" a source file or a document?,and where is it?
 
I have known about sequence,and blockfile. Because of BlockFile , when Editing, It will make some temp files named *.auf. That's to say, both reading and writing data are from disk, which definitely  can affect the real-time.
The smaller the maxBlockSize is , the more the amount of temp files are.
The bigger  the maxBlockSize is , the worse the real-time is.
How much the maxBlockSize is proper?
 
Another question, The useage of temp files is to support Undo and Redo.
Doesn't it conflict with real-time? 


网易首款免费3D网游“天下2”,6月6日激情公测
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Audacity-devel mailing list
Audacity-devel@...
https://lists.sourceforge.net/lists/listinfo/audacity-devel