Distributed Real-Time Audio Processing

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

DistributedReal-TimeAudioProcessingNelsonPosseLagoAbstractComputersystemsforreal-timemultimediaprocessingrequirehighprocessingpower.Problemsthatdependonhighprocessingpowerareusuallysolvedbyusingparallelordistributedcomputingtechniques;however,thecombinationofthedicultiesofbothreal-timeandparallelprogramminghasledthedevelopmentofapplicationsforreal-timemultimediaprocessingforgeneralpurposecomputersystemstobebasedoncentralizedandsingle-processorsystems.Inseveralsystemsformultimediaprocessing,thereisaneedforlowlatencyduringtheinteractionwiththeuser,whichreinforcesthetendencytowardssingle-processordevelopment.Inthiswork,weimplementedamechanismforsynchronousanddistributedaudioprocessingwithlowlatencyonalocalareanetworkwhichmakestheuseofalowcostdistributedsystemforthiskindofprocessingpossible.Themaingoalistoallowtheuseofdistributedsystemsforrecordingandeditingofmusicalmaterialinhomeandsmallstudios,bypassingtheneedforhigh-costequipment.Thesystemweimplementedismadeoftwoparts:the rst,generic,implementedasamiddlewareforsynchronousanddistributedprocessingofcontinuousmediawithlowlatency;andthesecond,basedonthe rst,gearedtowardsaudioprocessingandcompatiblewithlegacyapplicationsbasedonthestandardLADSPAinterface.Weexpectthatfutureresearchandapplicationsthatsharetheneedsofthesystemdevelopedheremakeuseofthemiddlewarewedeveloped,bothforotherkindsofaudioprocessingaswellasfortheprocessingofothermediaforms,suchasvideo.1IntroductionInseveralcomputersystemsformultimediaprocessing(suchasinteractivesystemsforthecreationandeditionofmultimedia,particularlyaudioandmusic,orsystemsforpatternrecognitionincontinuousmedia),itishighlydesirabletobeabletodotheprocessingnotonlyinreal-time,butalsowithlowlatency.Lowlatencyprocessingmeansthatthetimeittakesforachangeintheinputdataofthecomputersystemtoproducethecorrespondingoutputshouldbeassmallaspossible;howsmallisenough,giventheusualgoalthatthelatencymustnotbeperceptiblebytheuser,variesalotwiththeapplicationandtheuser(seeSection2).Ininteractivesystems,forinstance,lowlatencyprocessingservesthepurposeofgivingtheusertheillusionthatthesystemperformsthecomputationsimmediately,whichisveryimportantsincetheusergenerallyadjustshisinputtothecomputersystemaccordingtotheoutputhereceivesfromthesystem.Lowlatencymayalsobeimportantifwewantpartofthedatatobeprocessedinreal-timebyexternaldevices(forinstance,wemaywanttorouteapreviouslycapturedaudiosignalintoananaloge ectsprocessorandrecordtheresultingsoundwithoutlosingthetiminginformationofthesignal).Asimpleexampleofasituationinwhichreal-timelow-latencyprocessingisdesirableistherecordingofanacousticmusicalinstrumentwithsomee ectprocessing(forinstance,anelectricguitarprocessedbyacustomdigitaldistorter):whileplayingtheinstrument,themusicianneedstohearthesoundbeingproduced;iftheprocessinglatencyistoolarge,themusicianwillhavedicultiestoperformcorrectly.Systemsformultimediaprocessinginreal-time,includingthosewherelowlatencyisdesirable,usu-allydemandlargeprocessingpowerfromthecomputersystem.Problemsthatdemandlargecomputing1power(asmultimediadoes)areusuallysolvedbyparallelordistributedprocessing.However,thereal-timeandlowlatencyrequirementsofmostmultimediaprocessingsystemscoupledwiththeneedforsometimesstrictsynchronizationbetweenseveralmediastreamsaswellasthecostofmultiprocessorsystemshavemademostmultimediaapplicationstobedevelopedforsingleprocessorsystems.Intheaudioandmusicprocessing eld,itisnotuncommonforsuchsystemstobecoupledwithdedicated,specializedhardwareinordertoboostthesystemperformance.Suchhardware,however,isusuallyproprietaryandexpensive:forexample,asingleprocessingboardfortheProToolsHDsystemcosts4timesasmuchasacompletemid-rangedesktopPCintheUSA1.Onsmallerstudioswithoutaccesstohigh-endequipment,itisrelativelycommonforthecomputingpowerduringaudioeditingtobeexceeded;whenthishappens,usuallypartoftheprocessingisdoneinnon-realtimemodeandtheprocessedresultissavedtodisk,whichisinconvenient,sincethepossibilityofinteractiveexperimentationislost.Giventheeconomicadvantageandexibilityo eredbygeneral-purposecomputersystems,beingabletoprocessmultimediadatainadistributedsystemwouldbeuseful,allowinguserstogobeyondtheperformancelimitsofsingleprocessorsystemsinamorecost-e ectiveway.Homeandsmallmusicrecordingstudios,whichusuallycannota ordtheexpensiveproprietarysolutions,wouldbene tfromtheuseofsmallclustersofolderandinexpensivecomputerstoincreasetheirprocessingpoweratalowcost.Inthiswork,wedevelopedamechanismfordistributedaudioprocessingonaLANwithlowlatencywhichiscompatiblewithlegacyapplicationsintheLinuxenvironmentusinggeneralpurpose,lowcosthardwareequipment.Linuxwaschosenforseveralreasonsbeyondits(many)technicalmerits,suchas(Kon,2001;Raymond,2001;SilveiraandCassino,2003):itslowcost;thefullavailabilityofthesourcecodeforboththeoperatingsystemkernelandtheapplicationsthatrunontopofit;thecommunityinvolvementinthedevelopmentofthesystem;thesocialbene tthatfreesoftwarecanbringaboutaspartofastrategyfordigitalinclusionofthepoorerpopulation;Thesystemisbasedontwolayers:the rst,generic,i

1 / 27
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功