1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214 |
- /*** Autogenerated by WIDL 7.7 from include/xaudio2.idl - Do not edit ***/
- #ifdef _WIN32
- #ifndef __REQUIRED_RPCNDR_H_VERSION__
- #define __REQUIRED_RPCNDR_H_VERSION__ 475
- #endif
- #include <rpc.h>
- #include <rpcndr.h>
- #endif
- #ifndef COM_NO_WINDOWS_H
- #include <windows.h>
- #include <ole2.h>
- #endif
- #ifndef __xaudio2_h__
- #define __xaudio2_h__
- /* Forward declarations */
- #ifndef __XAudio20_FWD_DEFINED__
- #define __XAudio20_FWD_DEFINED__
- #ifdef __cplusplus
- typedef class XAudio20 XAudio20;
- #else
- typedef struct XAudio20 XAudio20;
- #endif /* defined __cplusplus */
- #endif /* defined __XAudio20_FWD_DEFINED__ */
- #ifndef __XAudio21_FWD_DEFINED__
- #define __XAudio21_FWD_DEFINED__
- #ifdef __cplusplus
- typedef class XAudio21 XAudio21;
- #else
- typedef struct XAudio21 XAudio21;
- #endif /* defined __cplusplus */
- #endif /* defined __XAudio21_FWD_DEFINED__ */
- #ifndef __XAudio22_FWD_DEFINED__
- #define __XAudio22_FWD_DEFINED__
- #ifdef __cplusplus
- typedef class XAudio22 XAudio22;
- #else
- typedef struct XAudio22 XAudio22;
- #endif /* defined __cplusplus */
- #endif /* defined __XAudio22_FWD_DEFINED__ */
- #ifndef __XAudio23_FWD_DEFINED__
- #define __XAudio23_FWD_DEFINED__
- #ifdef __cplusplus
- typedef class XAudio23 XAudio23;
- #else
- typedef struct XAudio23 XAudio23;
- #endif /* defined __cplusplus */
- #endif /* defined __XAudio23_FWD_DEFINED__ */
- #ifndef __XAudio24_FWD_DEFINED__
- #define __XAudio24_FWD_DEFINED__
- #ifdef __cplusplus
- typedef class XAudio24 XAudio24;
- #else
- typedef struct XAudio24 XAudio24;
- #endif /* defined __cplusplus */
- #endif /* defined __XAudio24_FWD_DEFINED__ */
- #ifndef __XAudio25_FWD_DEFINED__
- #define __XAudio25_FWD_DEFINED__
- #ifdef __cplusplus
- typedef class XAudio25 XAudio25;
- #else
- typedef struct XAudio25 XAudio25;
- #endif /* defined __cplusplus */
- #endif /* defined __XAudio25_FWD_DEFINED__ */
- #ifndef __XAudio26_FWD_DEFINED__
- #define __XAudio26_FWD_DEFINED__
- #ifdef __cplusplus
- typedef class XAudio26 XAudio26;
- #else
- typedef struct XAudio26 XAudio26;
- #endif /* defined __cplusplus */
- #endif /* defined __XAudio26_FWD_DEFINED__ */
- #ifndef __XAudio27_FWD_DEFINED__
- #define __XAudio27_FWD_DEFINED__
- #ifdef __cplusplus
- typedef class XAudio27 XAudio27;
- #else
- typedef struct XAudio27 XAudio27;
- #endif /* defined __cplusplus */
- #endif /* defined __XAudio27_FWD_DEFINED__ */
- #ifndef __XAudio2Debug_FWD_DEFINED__
- #define __XAudio2Debug_FWD_DEFINED__
- #ifdef __cplusplus
- typedef class XAudio2Debug XAudio2Debug;
- #else
- typedef struct XAudio2Debug XAudio2Debug;
- #endif /* defined __cplusplus */
- #endif /* defined __XAudio2Debug_FWD_DEFINED__ */
- #ifndef __IXAudio2EngineCallback_FWD_DEFINED__
- #define __IXAudio2EngineCallback_FWD_DEFINED__
- typedef interface IXAudio2EngineCallback IXAudio2EngineCallback;
- #ifdef __cplusplus
- interface IXAudio2EngineCallback;
- #endif /* __cplusplus */
- #endif
- #ifndef __IXAudio20Voice_FWD_DEFINED__
- #define __IXAudio20Voice_FWD_DEFINED__
- typedef interface IXAudio20Voice IXAudio20Voice;
- #ifdef __cplusplus
- interface IXAudio20Voice;
- #endif /* __cplusplus */
- #endif
- #ifndef __IXAudio23Voice_FWD_DEFINED__
- #define __IXAudio23Voice_FWD_DEFINED__
- typedef interface IXAudio23Voice IXAudio23Voice;
- #ifdef __cplusplus
- interface IXAudio23Voice;
- #endif /* __cplusplus */
- #endif
- #ifndef __IXAudio27Voice_FWD_DEFINED__
- #define __IXAudio27Voice_FWD_DEFINED__
- typedef interface IXAudio27Voice IXAudio27Voice;
- #ifdef __cplusplus
- interface IXAudio27Voice;
- #endif /* __cplusplus */
- #endif
- #ifndef __IXAudio2Voice_FWD_DEFINED__
- #define __IXAudio2Voice_FWD_DEFINED__
- typedef interface IXAudio2Voice IXAudio2Voice;
- #ifdef __cplusplus
- interface IXAudio2Voice;
- #endif /* __cplusplus */
- #endif
- #ifndef __IXAudio20SourceVoice_FWD_DEFINED__
- #define __IXAudio20SourceVoice_FWD_DEFINED__
- typedef interface IXAudio20SourceVoice IXAudio20SourceVoice;
- #ifdef __cplusplus
- interface IXAudio20SourceVoice;
- #endif /* __cplusplus */
- #endif
- #ifndef __IXAudio23SourceVoice_FWD_DEFINED__
- #define __IXAudio23SourceVoice_FWD_DEFINED__
- typedef interface IXAudio23SourceVoice IXAudio23SourceVoice;
- #ifdef __cplusplus
- interface IXAudio23SourceVoice;
- #endif /* __cplusplus */
- #endif
- #ifndef __IXAudio27SourceVoice_FWD_DEFINED__
- #define __IXAudio27SourceVoice_FWD_DEFINED__
- typedef interface IXAudio27SourceVoice IXAudio27SourceVoice;
- #ifdef __cplusplus
- interface IXAudio27SourceVoice;
- #endif /* __cplusplus */
- #endif
- #ifndef __IXAudio2SourceVoice_FWD_DEFINED__
- #define __IXAudio2SourceVoice_FWD_DEFINED__
- typedef interface IXAudio2SourceVoice IXAudio2SourceVoice;
- #ifdef __cplusplus
- interface IXAudio2SourceVoice;
- #endif /* __cplusplus */
- #endif
- #ifndef __IXAudio20SubmixVoice_FWD_DEFINED__
- #define __IXAudio20SubmixVoice_FWD_DEFINED__
- typedef interface IXAudio20SubmixVoice IXAudio20SubmixVoice;
- #ifdef __cplusplus
- interface IXAudio20SubmixVoice;
- #endif /* __cplusplus */
- #endif
- #ifndef __IXAudio23SubmixVoice_FWD_DEFINED__
- #define __IXAudio23SubmixVoice_FWD_DEFINED__
- typedef interface IXAudio23SubmixVoice IXAudio23SubmixVoice;
- #ifdef __cplusplus
- interface IXAudio23SubmixVoice;
- #endif /* __cplusplus */
- #endif
- #ifndef __IXAudio27SubmixVoice_FWD_DEFINED__
- #define __IXAudio27SubmixVoice_FWD_DEFINED__
- typedef interface IXAudio27SubmixVoice IXAudio27SubmixVoice;
- #ifdef __cplusplus
- interface IXAudio27SubmixVoice;
- #endif /* __cplusplus */
- #endif
- #ifndef __IXAudio2SubmixVoice_FWD_DEFINED__
- #define __IXAudio2SubmixVoice_FWD_DEFINED__
- typedef interface IXAudio2SubmixVoice IXAudio2SubmixVoice;
- #ifdef __cplusplus
- interface IXAudio2SubmixVoice;
- #endif /* __cplusplus */
- #endif
- #ifndef __IXAudio20MasteringVoice_FWD_DEFINED__
- #define __IXAudio20MasteringVoice_FWD_DEFINED__
- typedef interface IXAudio20MasteringVoice IXAudio20MasteringVoice;
- #ifdef __cplusplus
- interface IXAudio20MasteringVoice;
- #endif /* __cplusplus */
- #endif
- #ifndef __IXAudio23MasteringVoice_FWD_DEFINED__
- #define __IXAudio23MasteringVoice_FWD_DEFINED__
- typedef interface IXAudio23MasteringVoice IXAudio23MasteringVoice;
- #ifdef __cplusplus
- interface IXAudio23MasteringVoice;
- #endif /* __cplusplus */
- #endif
- #ifndef __IXAudio27MasteringVoice_FWD_DEFINED__
- #define __IXAudio27MasteringVoice_FWD_DEFINED__
- typedef interface IXAudio27MasteringVoice IXAudio27MasteringVoice;
- #ifdef __cplusplus
- interface IXAudio27MasteringVoice;
- #endif /* __cplusplus */
- #endif
- #ifndef __IXAudio2MasteringVoice_FWD_DEFINED__
- #define __IXAudio2MasteringVoice_FWD_DEFINED__
- typedef interface IXAudio2MasteringVoice IXAudio2MasteringVoice;
- #ifdef __cplusplus
- interface IXAudio2MasteringVoice;
- #endif /* __cplusplus */
- #endif
- #ifndef __IXAudio20VoiceCallback_FWD_DEFINED__
- #define __IXAudio20VoiceCallback_FWD_DEFINED__
- typedef interface IXAudio20VoiceCallback IXAudio20VoiceCallback;
- #ifdef __cplusplus
- interface IXAudio20VoiceCallback;
- #endif /* __cplusplus */
- #endif
- #ifndef __IXAudio2VoiceCallback_FWD_DEFINED__
- #define __IXAudio2VoiceCallback_FWD_DEFINED__
- typedef interface IXAudio2VoiceCallback IXAudio2VoiceCallback;
- #ifdef __cplusplus
- interface IXAudio2VoiceCallback;
- #endif /* __cplusplus */
- #endif
- #ifndef __IXAudio20_FWD_DEFINED__
- #define __IXAudio20_FWD_DEFINED__
- typedef interface IXAudio20 IXAudio20;
- #ifdef __cplusplus
- interface IXAudio20;
- #endif /* __cplusplus */
- #endif
- #ifndef __IXAudio22_FWD_DEFINED__
- #define __IXAudio22_FWD_DEFINED__
- typedef interface IXAudio22 IXAudio22;
- #ifdef __cplusplus
- interface IXAudio22;
- #endif /* __cplusplus */
- #endif
- #ifndef __IXAudio23_FWD_DEFINED__
- #define __IXAudio23_FWD_DEFINED__
- typedef interface IXAudio23 IXAudio23;
- #ifdef __cplusplus
- interface IXAudio23;
- #endif /* __cplusplus */
- #endif
- #ifndef __IXAudio27_FWD_DEFINED__
- #define __IXAudio27_FWD_DEFINED__
- typedef interface IXAudio27 IXAudio27;
- #ifdef __cplusplus
- interface IXAudio27;
- #endif /* __cplusplus */
- #endif
- #ifndef __IXAudio2_FWD_DEFINED__
- #define __IXAudio2_FWD_DEFINED__
- typedef interface IXAudio2 IXAudio2;
- #ifdef __cplusplus
- interface IXAudio2;
- #endif /* __cplusplus */
- #endif
- /* Headers for imported files */
- #include <unknwn.h>
- #include <mmdeviceapi.h>
- #include <audiosessiontypes.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include <pshpack1.h>
- /*****************************************************************************
- * XAudio20 coclass
- */
- DEFINE_GUID(CLSID_XAudio20, 0xfac23f48, 0x31f5, 0x45a8, 0xb4,0x9b, 0x52,0x25,0xd6,0x14,0x01,0xaa);
- #ifdef __cplusplus
- class DECLSPEC_UUID("fac23f48-31f5-45a8-b49b-5225d61401aa") XAudio20;
- #ifdef __CRT_UUID_DECL
- __CRT_UUID_DECL(XAudio20, 0xfac23f48, 0x31f5, 0x45a8, 0xb4,0x9b, 0x52,0x25,0xd6,0x14,0x01,0xaa)
- #endif
- #endif
- /*****************************************************************************
- * XAudio21 coclass
- */
- DEFINE_GUID(CLSID_XAudio21, 0xe21a7345, 0xeb21, 0x468e, 0xbe,0x50, 0x80,0x4d,0xb9,0x7c,0xf7,0x08);
- #ifdef __cplusplus
- class DECLSPEC_UUID("e21a7345-eb21-468e-be50-804db97cf708") XAudio21;
- #ifdef __CRT_UUID_DECL
- __CRT_UUID_DECL(XAudio21, 0xe21a7345, 0xeb21, 0x468e, 0xbe,0x50, 0x80,0x4d,0xb9,0x7c,0xf7,0x08)
- #endif
- #endif
- /*****************************************************************************
- * XAudio22 coclass
- */
- DEFINE_GUID(CLSID_XAudio22, 0xb802058a, 0x464a, 0x42db, 0xbc,0x10, 0xb6,0x50,0xd6,0xf2,0x58,0x6a);
- #ifdef __cplusplus
- class DECLSPEC_UUID("b802058a-464a-42db-bc10-b650d6f2586a") XAudio22;
- #ifdef __CRT_UUID_DECL
- __CRT_UUID_DECL(XAudio22, 0xb802058a, 0x464a, 0x42db, 0xbc,0x10, 0xb6,0x50,0xd6,0xf2,0x58,0x6a)
- #endif
- #endif
- /*****************************************************************************
- * XAudio23 coclass
- */
- DEFINE_GUID(CLSID_XAudio23, 0x4c5e637a, 0x16c7, 0x4de3, 0x9c,0x46, 0x5e,0xd2,0x21,0x81,0x96,0x2d);
- #ifdef __cplusplus
- class DECLSPEC_UUID("4c5e637a-16c7-4de3-9c46-5ed22181962d") XAudio23;
- #ifdef __CRT_UUID_DECL
- __CRT_UUID_DECL(XAudio23, 0x4c5e637a, 0x16c7, 0x4de3, 0x9c,0x46, 0x5e,0xd2,0x21,0x81,0x96,0x2d)
- #endif
- #endif
- /*****************************************************************************
- * XAudio24 coclass
- */
- DEFINE_GUID(CLSID_XAudio24, 0x03219e78, 0x5bc3, 0x44d1, 0xb9,0x2e, 0xf6,0x3d,0x89,0xcc,0x65,0x26);
- #ifdef __cplusplus
- class DECLSPEC_UUID("03219e78-5bc3-44d1-b92e-f63d89cc6526") XAudio24;
- #ifdef __CRT_UUID_DECL
- __CRT_UUID_DECL(XAudio24, 0x03219e78, 0x5bc3, 0x44d1, 0xb9,0x2e, 0xf6,0x3d,0x89,0xcc,0x65,0x26)
- #endif
- #endif
- /*****************************************************************************
- * XAudio25 coclass
- */
- DEFINE_GUID(CLSID_XAudio25, 0x4c9b6dde, 0x6809, 0x46e6, 0xa2,0x78, 0x9b,0x6a,0x97,0x58,0x86,0x70);
- #ifdef __cplusplus
- class DECLSPEC_UUID("4c9b6dde-6809-46e6-a278-9b6a97588670") XAudio25;
- #ifdef __CRT_UUID_DECL
- __CRT_UUID_DECL(XAudio25, 0x4c9b6dde, 0x6809, 0x46e6, 0xa2,0x78, 0x9b,0x6a,0x97,0x58,0x86,0x70)
- #endif
- #endif
- /*****************************************************************************
- * XAudio26 coclass
- */
- DEFINE_GUID(CLSID_XAudio26, 0x3eda9b49, 0x2085, 0x498b, 0x9b,0xb2, 0x39,0xa6,0x77,0x84,0x93,0xde);
- #ifdef __cplusplus
- class DECLSPEC_UUID("3eda9b49-2085-498b-9bb2-39a6778493de") XAudio26;
- #ifdef __CRT_UUID_DECL
- __CRT_UUID_DECL(XAudio26, 0x3eda9b49, 0x2085, 0x498b, 0x9b,0xb2, 0x39,0xa6,0x77,0x84,0x93,0xde)
- #endif
- #endif
- /*****************************************************************************
- * XAudio27 coclass
- */
- DEFINE_GUID(CLSID_XAudio27, 0x5a508685, 0xa254, 0x4fba, 0x9b,0x82, 0x9a,0x24,0xb0,0x03,0x06,0xaf);
- #ifdef __cplusplus
- class DECLSPEC_UUID("5a508685-a254-4fba-9b82-9a24b00306af") XAudio27;
- #ifdef __CRT_UUID_DECL
- __CRT_UUID_DECL(XAudio27, 0x5a508685, 0xa254, 0x4fba, 0x9b,0x82, 0x9a,0x24,0xb0,0x03,0x06,0xaf)
- #endif
- #endif
- /*****************************************************************************
- * XAudio2Debug coclass
- */
- DEFINE_GUID(CLSID_XAudio2Debug, 0xdb05ea35, 0x0329, 0x4d4b, 0xa5,0x3a, 0x6d,0xea,0xd0,0x3d,0x38,0x52);
- #ifdef __cplusplus
- class DECLSPEC_UUID("db05ea35-0329-4d4b-a53a-6dead03d3852") XAudio2Debug;
- #ifdef __CRT_UUID_DECL
- __CRT_UUID_DECL(XAudio2Debug, 0xdb05ea35, 0x0329, 0x4d4b, 0xa5,0x3a, 0x6d,0xea,0xd0,0x3d,0x38,0x52)
- #endif
- #endif
- #if 0
- typedef struct WAVEFORMATEX {
- WORD wFormatTag;
- WORD nChannels;
- DWORD nSamplesPerSec;
- DWORD nAvgBytesPerSec;
- WORD nBlockAlign;
- WORD wBitsPerSample;
- WORD cbSize;
- } WAVEFORMATEX;
- typedef struct __WIDL_xaudio2_generated_name_00000020 {
- WAVEFORMATEX Format;
- union {
- WORD wValidBitsPerSample;
- WORD wSamplesPerBlock;
- WORD wReserved;
- } Samples;
- DWORD dwChannelMask;
- GUID SubFormat;
- } WAVEFORMATEXTENSIBLE;
- typedef struct __WIDL_xaudio2_generated_name_00000020 *PWAVEFORMATEXTENSIBLE;
- #else
- #include <mmreg.h>
- #endif
- #ifndef __IXAudio2Voice_FWD_DEFINED__
- #define __IXAudio2Voice_FWD_DEFINED__
- typedef interface IXAudio2Voice IXAudio2Voice;
- #ifdef __cplusplus
- interface IXAudio2Voice;
- #endif /* __cplusplus */
- #endif
- typedef enum XAUDIO2_WINDOWS_PROCESSOR_SPECIFIER {
- Processor1 = 0x1,
- Processor2 = 0x2,
- Processor3 = 0x4,
- Processor4 = 0x8,
- Processor5 = 0x10,
- Processor6 = 0x20,
- Processor7 = 0x40,
- Processor8 = 0x80,
- Processor9 = 0x100,
- Processor10 = 0x200,
- Processor11 = 0x400,
- Processor12 = 0x800,
- Processor13 = 0x1000,
- Processor14 = 0x2000,
- Processor15 = 0x4000,
- Processor16 = 0x8000,
- Processor17 = 0x10000,
- Processor18 = 0x20000,
- Processor19 = 0x40000,
- Processor20 = 0x80000,
- Processor21 = 0x100000,
- Processor22 = 0x200000,
- Processor23 = 0x400000,
- Processor24 = 0x800000,
- Processor25 = 0x1000000,
- Processor26 = 0x2000000,
- Processor27 = 0x4000000,
- Processor28 = 0x8000000,
- Processor29 = 0x10000000,
- Processor30 = 0x20000000,
- Processor31 = 0x40000000,
- Processor32 = 0x80000000,
- XAUDIO2_ANY_PROCESSOR = 0xffffffff,
- XAUDIO2_DEFAULT_PROCESSOR = XAUDIO2_ANY_PROCESSOR
- } XAUDIO2_WINDOWS_PROCESSOR_SPECIFIER;
- typedef enum XAUDIO2_WINDOWS_PROCESSOR_SPECIFIER XAUDIO2_PROCESSOR;
- typedef struct XAUDIO2_PERFORMANCE_DATA {
- UINT64 AudioCyclesSinceLastQuery;
- UINT64 TotalCyclesSinceLastQuery;
- UINT32 MinimumCyclesPerQuantum;
- UINT32 MaximumCyclesPerQuantum;
- UINT32 MemoryUsageInBytes;
- UINT32 CurrentLatencyInSamples;
- UINT32 GlitchesSinceEngineStarted;
- UINT32 ActiveSourceVoiceCount;
- UINT32 TotalSourceVoiceCount;
- UINT32 ActiveSubmixVoiceCount;
- UINT32 ActiveResamplerCount;
- UINT32 ActiveMatrixMixCount;
- UINT32 ActiveXmaSourceVoices;
- UINT32 ActiveXmaStreams;
- } XAUDIO2_PERFORMANCE_DATA;
- typedef struct XAUDIO22_PERFORMANCE_DATA {
- UINT64 AudioCyclesSinceLastQuery;
- UINT64 TotalCyclesSinceLastQuery;
- UINT32 MinimumCyclesPerQuantum;
- UINT32 MaximumCyclesPerQuantum;
- UINT32 MemoryUsageInBytes;
- UINT32 CurrentLatencyInSamples;
- UINT32 GlitchesSinceEngineStarted;
- UINT32 ActiveSourceVoiceCount;
- UINT32 TotalSourceVoiceCount;
- UINT32 ActiveSubmixVoiceCount;
- UINT32 TotalSubmixVoiceCount;
- UINT32 ActiveXmaSourceVoices;
- UINT32 ActiveXmaStreams;
- } XAUDIO22_PERFORMANCE_DATA;
- typedef struct XAUDIO20_PERFORMANCE_DATA {
- UINT64 AudioCyclesSinceLastQuery;
- UINT64 TotalCyclesSinceLastQuery;
- UINT32 MinimumCyclesPerQuantum;
- UINT32 MaximumCyclesPerQuantum;
- UINT32 MemoryUsageInBytes;
- UINT32 CurrentLatencyInSamples;
- UINT32 GlitchesSinceLastQuery;
- UINT32 ActiveSourceVoiceCount;
- UINT32 TotalSourceVoiceCount;
- UINT32 ActiveSubmixVoiceCount;
- UINT32 TotalSubmixVoiceCount;
- UINT32 ActiveXmaSourceVoices;
- UINT32 ActiveXmaStreams;
- } XAUDIO20_PERFORMANCE_DATA;
- typedef enum XAUDIO2_DEVICE_ROLE {
- NotDefaultDevice = 0x0,
- DefaultConsoleDevice = 0x1,
- DefaultMultimediaDevice = 0x2,
- DefaultCommunicationsDevice = 0x4,
- DefaultGameDevice = 0x8,
- GlobalDefaultDevice = 0xf,
- InvalidDeviceRole = ~GlobalDefaultDevice
- } XAUDIO2_DEVICE_ROLE;
- typedef struct XAUDIO2_DEVICE_DETAILS {
- WCHAR DeviceID[256];
- WCHAR DisplayName[256];
- XAUDIO2_DEVICE_ROLE Role;
- WAVEFORMATEXTENSIBLE OutputFormat;
- } XAUDIO2_DEVICE_DETAILS;
- typedef struct XAUDIO27_VOICE_DETAILS {
- UINT32 CreationFlags;
- UINT32 InputChannels;
- UINT32 InputSampleRate;
- } XAUDIO27_VOICE_DETAILS;
- typedef struct XAUDIO2_VOICE_DETAILS {
- UINT32 CreationFlags;
- UINT32 ActiveFlags;
- UINT32 InputChannels;
- UINT32 InputSampleRate;
- } XAUDIO2_VOICE_DETAILS;
- typedef struct XAUDIO2_SEND_DESCRIPTOR {
- UINT32 Flags;
- IXAudio2Voice *pOutputVoice;
- } XAUDIO2_SEND_DESCRIPTOR;
- typedef struct XAUDIO23_VOICE_SENDS {
- UINT32 OutputCount;
- IXAudio2Voice **pOutputVoices;
- } XAUDIO23_VOICE_SENDS;
- typedef struct XAUDIO2_VOICE_SENDS {
- UINT32 SendCount;
- XAUDIO2_SEND_DESCRIPTOR *pSends;
- } XAUDIO2_VOICE_SENDS;
- typedef struct XAUDIO2_EFFECT_DESCRIPTOR {
- IUnknown *pEffect;
- WINBOOL InitialState;
- UINT32 OutputChannels;
- } XAUDIO2_EFFECT_DESCRIPTOR;
- typedef struct XAUDIO2_EFFECT_CHAIN {
- UINT32 EffectCount;
- XAUDIO2_EFFECT_DESCRIPTOR *pEffectDescriptors;
- } XAUDIO2_EFFECT_CHAIN;
- #define XAUDIO2_MAX_BUFFER_BYTES (0x80000000)
- #define XAUDIO2_MAX_QUEUED_BUFFERS (64)
- #define XAUDIO2_MAX_BUFFERS_SYSTEM (2)
- #define XAUDIO2_MAX_AUDIO_CHANNELS (64)
- #define XAUDIO2_MIN_SAMPLE_RATE (1000)
- #define XAUDIO2_MAX_SAMPLE_RATE (200000)
- #define XAUDIO2_MAX_VOLUME_LEVEL (16777216.0000000)
- #define XAUDIO2_MIN_FREQ_RATIO (1 / 1024.00000000000)
- #define XAUDIO2_MAX_FREQ_RATIO (1024.00000000000)
- #define XAUDIO2_DEFAULT_FREQ_RATIO (2.00000000000000)
- #define XAUDIO2_MAX_FILTER_ONEOVERQ (1.50000000000000)
- #define XAUDIO2_MAX_FILTER_FREQUENCY (1.00000000000000)
- #define XAUDIO2_MAX_LOOP_COUNT (254)
- #define XAUDIO20_MAX_LOOP_COUNT (0x100000)
- #define XAUDIO2_COMMIT_NOW (0)
- #define XAUDIO2_COMMIT_ALL (0)
- #define XAUDIO2_INVALID_OPSET (0xffffffff)
- #define XAUDIO2_NO_LOOP_REGION (0)
- #define XAUDIO2_LOOP_INFINITE (255)
- #define XAUDIO20_LOOP_INFINITE ((UINT)-1)
- #define XAUDIO2_DEFAULT_CHANNELS (0)
- #define XAUDIO2_DEFAULT_SAMPLERATE (0)
- /*****************************************************************************
- * IXAudio2EngineCallback interface
- */
- #ifndef __IXAudio2EngineCallback_INTERFACE_DEFINED__
- #define __IXAudio2EngineCallback_INTERFACE_DEFINED__
- #if defined(__cplusplus) && !defined(CINTERFACE)
- interface IXAudio2EngineCallback
- {
- BEGIN_INTERFACE
- virtual void STDMETHODCALLTYPE OnProcessingPassStart(
- ) = 0;
- virtual void STDMETHODCALLTYPE OnProcessingPassEnd(
- ) = 0;
- virtual void STDMETHODCALLTYPE OnCriticalError(
- HRESULT Error) = 0;
- END_INTERFACE
- };
- #else
- typedef struct IXAudio2EngineCallbackVtbl {
- BEGIN_INTERFACE
- /*** IXAudio2EngineCallback methods ***/
- void (STDMETHODCALLTYPE *OnProcessingPassStart)(
- IXAudio2EngineCallback *This);
- void (STDMETHODCALLTYPE *OnProcessingPassEnd)(
- IXAudio2EngineCallback *This);
- void (STDMETHODCALLTYPE *OnCriticalError)(
- IXAudio2EngineCallback *This,
- HRESULT Error);
- END_INTERFACE
- } IXAudio2EngineCallbackVtbl;
- interface IXAudio2EngineCallback {
- CONST_VTBL IXAudio2EngineCallbackVtbl* lpVtbl;
- };
- #ifdef COBJMACROS
- #ifndef WIDL_C_INLINE_WRAPPERS
- /*** IXAudio2EngineCallback methods ***/
- #define IXAudio2EngineCallback_OnProcessingPassStart(This) (This)->lpVtbl->OnProcessingPassStart(This)
- #define IXAudio2EngineCallback_OnProcessingPassEnd(This) (This)->lpVtbl->OnProcessingPassEnd(This)
- #define IXAudio2EngineCallback_OnCriticalError(This,Error) (This)->lpVtbl->OnCriticalError(This,Error)
- #else
- /*** IXAudio2EngineCallback methods ***/
- static FORCEINLINE void IXAudio2EngineCallback_OnProcessingPassStart(IXAudio2EngineCallback* This) {
- This->lpVtbl->OnProcessingPassStart(This);
- }
- static FORCEINLINE void IXAudio2EngineCallback_OnProcessingPassEnd(IXAudio2EngineCallback* This) {
- This->lpVtbl->OnProcessingPassEnd(This);
- }
- static FORCEINLINE void IXAudio2EngineCallback_OnCriticalError(IXAudio2EngineCallback* This,HRESULT Error) {
- This->lpVtbl->OnCriticalError(This,Error);
- }
- #endif
- #endif
- #endif
- #endif /* __IXAudio2EngineCallback_INTERFACE_DEFINED__ */
- typedef enum XAUDIO2_FILTER_TYPE {
- LowPassFilter = 0,
- BandPassFilter = 1,
- HighPassFilter = 2,
- NotchFilter = 3
- } XAUDIO2_FILTER_TYPE;
- typedef struct XAUDIO2_FILTER_PARAMETERS {
- XAUDIO2_FILTER_TYPE Type;
- float Frequency;
- float OneOverQ;
- } XAUDIO2_FILTER_PARAMETERS;
- /*****************************************************************************
- * IXAudio20Voice interface
- */
- #ifndef __IXAudio20Voice_INTERFACE_DEFINED__
- #define __IXAudio20Voice_INTERFACE_DEFINED__
- #if defined(__cplusplus) && !defined(CINTERFACE)
- interface IXAudio20Voice
- {
- BEGIN_INTERFACE
- virtual void STDMETHODCALLTYPE GetVoiceDetails(
- XAUDIO27_VOICE_DETAILS *pVoiceDetails) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetOutputVoices(
- const XAUDIO23_VOICE_SENDS *pSendList) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetEffectChain(
- const XAUDIO2_EFFECT_CHAIN *pEffectChain) = 0;
- virtual HRESULT STDMETHODCALLTYPE EnableEffect(
- UINT32 EffectIndex,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual HRESULT STDMETHODCALLTYPE DisableEffect(
- UINT32 EffectIndex,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetEffectState(
- UINT32 EffectIndex,
- WINBOOL *pEnabled) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetEffectParameters(
- UINT32 EffectIndex,
- const void *pParameters,
- UINT32 ParametersByteSize,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual HRESULT STDMETHODCALLTYPE GetEffectParameters(
- UINT32 EffectIndex,
- void *pParameters,
- UINT32 ParametersByteSize) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetFilterParameters(
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetFilterParameters(
- XAUDIO2_FILTER_PARAMETERS *pParameters) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetVolume(
- float Volume,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetVolume(
- float *pVolume) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetChannelVolumes(
- UINT32 Channels,
- const float *pVolumes,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetChannelVolumes(
- UINT32 Channels,
- float *pVolumes) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetOutputMatrix(
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- const float *pLevelMatrix,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual HRESULT STDMETHODCALLTYPE GetOutputMatrix(
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- float *pLevelMatrix) = 0;
- virtual void STDMETHODCALLTYPE DestroyVoice(
- ) = 0;
- END_INTERFACE
- };
- #else
- typedef struct IXAudio20VoiceVtbl {
- BEGIN_INTERFACE
- /*** IXAudio20Voice methods ***/
- void (STDMETHODCALLTYPE *GetVoiceDetails)(
- IXAudio20Voice *This,
- XAUDIO27_VOICE_DETAILS *pVoiceDetails);
- HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
- IXAudio20Voice *This,
- const XAUDIO23_VOICE_SENDS *pSendList);
- HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
- IXAudio20Voice *This,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *EnableEffect)(
- IXAudio20Voice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *DisableEffect)(
- IXAudio20Voice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetEffectState)(
- IXAudio20Voice *This,
- UINT32 EffectIndex,
- WINBOOL *pEnabled);
- HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
- IXAudio20Voice *This,
- UINT32 EffectIndex,
- const void *pParameters,
- UINT32 ParametersByteSize,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
- IXAudio20Voice *This,
- UINT32 EffectIndex,
- void *pParameters,
- UINT32 ParametersByteSize);
- HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
- IXAudio20Voice *This,
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetFilterParameters)(
- IXAudio20Voice *This,
- XAUDIO2_FILTER_PARAMETERS *pParameters);
- HRESULT (STDMETHODCALLTYPE *SetVolume)(
- IXAudio20Voice *This,
- float Volume,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetVolume)(
- IXAudio20Voice *This,
- float *pVolume);
- HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
- IXAudio20Voice *This,
- UINT32 Channels,
- const float *pVolumes,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetChannelVolumes)(
- IXAudio20Voice *This,
- UINT32 Channels,
- float *pVolumes);
- HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
- IXAudio20Voice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- const float *pLevelMatrix,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *GetOutputMatrix)(
- IXAudio20Voice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- float *pLevelMatrix);
- void (STDMETHODCALLTYPE *DestroyVoice)(
- IXAudio20Voice *This);
- END_INTERFACE
- } IXAudio20VoiceVtbl;
- interface IXAudio20Voice {
- CONST_VTBL IXAudio20VoiceVtbl* lpVtbl;
- };
- #ifdef COBJMACROS
- #ifndef WIDL_C_INLINE_WRAPPERS
- /*** IXAudio20Voice methods ***/
- #define IXAudio20Voice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
- #define IXAudio20Voice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
- #define IXAudio20Voice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
- #define IXAudio20Voice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
- #define IXAudio20Voice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
- #define IXAudio20Voice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
- #define IXAudio20Voice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
- #define IXAudio20Voice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
- #define IXAudio20Voice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
- #define IXAudio20Voice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
- #define IXAudio20Voice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
- #define IXAudio20Voice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
- #define IXAudio20Voice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
- #define IXAudio20Voice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
- #define IXAudio20Voice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
- #define IXAudio20Voice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
- #define IXAudio20Voice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
- #else
- /*** IXAudio20Voice methods ***/
- static FORCEINLINE void IXAudio20Voice_GetVoiceDetails(IXAudio20Voice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
- This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
- }
- static FORCEINLINE HRESULT IXAudio20Voice_SetOutputVoices(IXAudio20Voice* This,const XAUDIO23_VOICE_SENDS *pSendList) {
- return This->lpVtbl->SetOutputVoices(This,pSendList);
- }
- static FORCEINLINE HRESULT IXAudio20Voice_SetEffectChain(IXAudio20Voice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->SetEffectChain(This,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio20Voice_EnableEffect(IXAudio20Voice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio20Voice_DisableEffect(IXAudio20Voice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE void IXAudio20Voice_GetEffectState(IXAudio20Voice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
- This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
- }
- static FORCEINLINE HRESULT IXAudio20Voice_SetEffectParameters(IXAudio20Voice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
- return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio20Voice_GetEffectParameters(IXAudio20Voice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
- return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
- }
- static FORCEINLINE HRESULT IXAudio20Voice_SetFilterParameters(IXAudio20Voice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
- return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
- }
- static FORCEINLINE void IXAudio20Voice_GetFilterParameters(IXAudio20Voice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
- This->lpVtbl->GetFilterParameters(This,pParameters);
- }
- static FORCEINLINE HRESULT IXAudio20Voice_SetVolume(IXAudio20Voice* This,float Volume,UINT32 OperationSet) {
- return This->lpVtbl->SetVolume(This,Volume,OperationSet);
- }
- static FORCEINLINE void IXAudio20Voice_GetVolume(IXAudio20Voice* This,float *pVolume) {
- This->lpVtbl->GetVolume(This,pVolume);
- }
- static FORCEINLINE HRESULT IXAudio20Voice_SetChannelVolumes(IXAudio20Voice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
- return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
- }
- static FORCEINLINE void IXAudio20Voice_GetChannelVolumes(IXAudio20Voice* This,UINT32 Channels,float *pVolumes) {
- This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
- }
- static FORCEINLINE HRESULT IXAudio20Voice_SetOutputMatrix(IXAudio20Voice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
- return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio20Voice_GetOutputMatrix(IXAudio20Voice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
- return This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
- }
- static FORCEINLINE void IXAudio20Voice_DestroyVoice(IXAudio20Voice* This) {
- This->lpVtbl->DestroyVoice(This);
- }
- #endif
- #endif
- #endif
- #endif /* __IXAudio20Voice_INTERFACE_DEFINED__ */
- /*****************************************************************************
- * IXAudio23Voice interface
- */
- #ifndef __IXAudio23Voice_INTERFACE_DEFINED__
- #define __IXAudio23Voice_INTERFACE_DEFINED__
- #if defined(__cplusplus) && !defined(CINTERFACE)
- interface IXAudio23Voice
- {
- BEGIN_INTERFACE
- virtual void STDMETHODCALLTYPE GetVoiceDetails(
- XAUDIO27_VOICE_DETAILS *pVoiceDetails) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetOutputVoices(
- const XAUDIO23_VOICE_SENDS *pSendList) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetEffectChain(
- const XAUDIO2_EFFECT_CHAIN *pEffectChain) = 0;
- virtual HRESULT STDMETHODCALLTYPE EnableEffect(
- UINT32 EffectIndex,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual HRESULT STDMETHODCALLTYPE DisableEffect(
- UINT32 EffectIndex,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetEffectState(
- UINT32 EffectIndex,
- WINBOOL *pEnabled) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetEffectParameters(
- UINT32 EffectIndex,
- const void *pParameters,
- UINT32 ParametersByteSize,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual HRESULT STDMETHODCALLTYPE GetEffectParameters(
- UINT32 EffectIndex,
- void *pParameters,
- UINT32 ParametersByteSize) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetFilterParameters(
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetFilterParameters(
- XAUDIO2_FILTER_PARAMETERS *pParameters) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetVolume(
- float Volume,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetVolume(
- float *pVolume) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetChannelVolumes(
- UINT32 Channels,
- const float *pVolumes,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetChannelVolumes(
- UINT32 Channels,
- float *pVolumes) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetOutputMatrix(
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- const float *pLevelMatrix,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetOutputMatrix(
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- float *pLevelMatrix) = 0;
- virtual void STDMETHODCALLTYPE DestroyVoice(
- ) = 0;
- END_INTERFACE
- };
- #else
- typedef struct IXAudio23VoiceVtbl {
- BEGIN_INTERFACE
- /*** IXAudio23Voice methods ***/
- void (STDMETHODCALLTYPE *GetVoiceDetails)(
- IXAudio23Voice *This,
- XAUDIO27_VOICE_DETAILS *pVoiceDetails);
- HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
- IXAudio23Voice *This,
- const XAUDIO23_VOICE_SENDS *pSendList);
- HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
- IXAudio23Voice *This,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *EnableEffect)(
- IXAudio23Voice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *DisableEffect)(
- IXAudio23Voice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetEffectState)(
- IXAudio23Voice *This,
- UINT32 EffectIndex,
- WINBOOL *pEnabled);
- HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
- IXAudio23Voice *This,
- UINT32 EffectIndex,
- const void *pParameters,
- UINT32 ParametersByteSize,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
- IXAudio23Voice *This,
- UINT32 EffectIndex,
- void *pParameters,
- UINT32 ParametersByteSize);
- HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
- IXAudio23Voice *This,
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetFilterParameters)(
- IXAudio23Voice *This,
- XAUDIO2_FILTER_PARAMETERS *pParameters);
- HRESULT (STDMETHODCALLTYPE *SetVolume)(
- IXAudio23Voice *This,
- float Volume,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetVolume)(
- IXAudio23Voice *This,
- float *pVolume);
- HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
- IXAudio23Voice *This,
- UINT32 Channels,
- const float *pVolumes,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetChannelVolumes)(
- IXAudio23Voice *This,
- UINT32 Channels,
- float *pVolumes);
- HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
- IXAudio23Voice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- const float *pLevelMatrix,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetOutputMatrix)(
- IXAudio23Voice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- float *pLevelMatrix);
- void (STDMETHODCALLTYPE *DestroyVoice)(
- IXAudio23Voice *This);
- END_INTERFACE
- } IXAudio23VoiceVtbl;
- interface IXAudio23Voice {
- CONST_VTBL IXAudio23VoiceVtbl* lpVtbl;
- };
- #ifdef COBJMACROS
- #ifndef WIDL_C_INLINE_WRAPPERS
- /*** IXAudio23Voice methods ***/
- #define IXAudio23Voice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
- #define IXAudio23Voice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
- #define IXAudio23Voice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
- #define IXAudio23Voice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
- #define IXAudio23Voice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
- #define IXAudio23Voice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
- #define IXAudio23Voice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
- #define IXAudio23Voice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
- #define IXAudio23Voice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
- #define IXAudio23Voice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
- #define IXAudio23Voice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
- #define IXAudio23Voice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
- #define IXAudio23Voice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
- #define IXAudio23Voice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
- #define IXAudio23Voice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
- #define IXAudio23Voice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
- #define IXAudio23Voice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
- #else
- /*** IXAudio23Voice methods ***/
- static FORCEINLINE void IXAudio23Voice_GetVoiceDetails(IXAudio23Voice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
- This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
- }
- static FORCEINLINE HRESULT IXAudio23Voice_SetOutputVoices(IXAudio23Voice* This,const XAUDIO23_VOICE_SENDS *pSendList) {
- return This->lpVtbl->SetOutputVoices(This,pSendList);
- }
- static FORCEINLINE HRESULT IXAudio23Voice_SetEffectChain(IXAudio23Voice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->SetEffectChain(This,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio23Voice_EnableEffect(IXAudio23Voice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio23Voice_DisableEffect(IXAudio23Voice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE void IXAudio23Voice_GetEffectState(IXAudio23Voice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
- This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
- }
- static FORCEINLINE HRESULT IXAudio23Voice_SetEffectParameters(IXAudio23Voice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
- return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio23Voice_GetEffectParameters(IXAudio23Voice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
- return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
- }
- static FORCEINLINE HRESULT IXAudio23Voice_SetFilterParameters(IXAudio23Voice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
- return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
- }
- static FORCEINLINE void IXAudio23Voice_GetFilterParameters(IXAudio23Voice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
- This->lpVtbl->GetFilterParameters(This,pParameters);
- }
- static FORCEINLINE HRESULT IXAudio23Voice_SetVolume(IXAudio23Voice* This,float Volume,UINT32 OperationSet) {
- return This->lpVtbl->SetVolume(This,Volume,OperationSet);
- }
- static FORCEINLINE void IXAudio23Voice_GetVolume(IXAudio23Voice* This,float *pVolume) {
- This->lpVtbl->GetVolume(This,pVolume);
- }
- static FORCEINLINE HRESULT IXAudio23Voice_SetChannelVolumes(IXAudio23Voice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
- return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
- }
- static FORCEINLINE void IXAudio23Voice_GetChannelVolumes(IXAudio23Voice* This,UINT32 Channels,float *pVolumes) {
- This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
- }
- static FORCEINLINE HRESULT IXAudio23Voice_SetOutputMatrix(IXAudio23Voice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
- return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
- }
- static FORCEINLINE void IXAudio23Voice_GetOutputMatrix(IXAudio23Voice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
- This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
- }
- static FORCEINLINE void IXAudio23Voice_DestroyVoice(IXAudio23Voice* This) {
- This->lpVtbl->DestroyVoice(This);
- }
- #endif
- #endif
- #endif
- #endif /* __IXAudio23Voice_INTERFACE_DEFINED__ */
- /*****************************************************************************
- * IXAudio27Voice interface
- */
- #ifndef __IXAudio27Voice_INTERFACE_DEFINED__
- #define __IXAudio27Voice_INTERFACE_DEFINED__
- #if defined(__cplusplus) && !defined(CINTERFACE)
- interface IXAudio27Voice
- {
- BEGIN_INTERFACE
- virtual void STDMETHODCALLTYPE GetVoiceDetails(
- XAUDIO27_VOICE_DETAILS *pVoiceDetails) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetOutputVoices(
- const XAUDIO2_VOICE_SENDS *pSendList) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetEffectChain(
- const XAUDIO2_EFFECT_CHAIN *pEffectChain) = 0;
- virtual HRESULT STDMETHODCALLTYPE EnableEffect(
- UINT32 EffectIndex,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual HRESULT STDMETHODCALLTYPE DisableEffect(
- UINT32 EffectIndex,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetEffectState(
- UINT32 EffectIndex,
- WINBOOL *pEnabled) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetEffectParameters(
- UINT32 EffectIndex,
- const void *pParameters,
- UINT32 ParametersByteSize,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual HRESULT STDMETHODCALLTYPE GetEffectParameters(
- UINT32 EffectIndex,
- void *pParameters,
- UINT32 ParametersByteSize) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetFilterParameters(
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetFilterParameters(
- XAUDIO2_FILTER_PARAMETERS *pParameters) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetOutputFilterParameters(
- IXAudio2Voice *pDestinationVoice,
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetOutputFilterParameters(
- IXAudio2Voice *pDestinationVoice,
- XAUDIO2_FILTER_PARAMETERS *pParameters) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetVolume(
- float Volume,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetVolume(
- float *pVolume) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetChannelVolumes(
- UINT32 Channels,
- const float *pVolumes,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetChannelVolumes(
- UINT32 Channels,
- float *pVolumes) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetOutputMatrix(
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- const float *pLevelMatrix,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetOutputMatrix(
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- float *pLevelMatrix) = 0;
- virtual void STDMETHODCALLTYPE DestroyVoice(
- ) = 0;
- END_INTERFACE
- };
- #else
- typedef struct IXAudio27VoiceVtbl {
- BEGIN_INTERFACE
- /*** IXAudio27Voice methods ***/
- void (STDMETHODCALLTYPE *GetVoiceDetails)(
- IXAudio27Voice *This,
- XAUDIO27_VOICE_DETAILS *pVoiceDetails);
- HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
- IXAudio27Voice *This,
- const XAUDIO2_VOICE_SENDS *pSendList);
- HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
- IXAudio27Voice *This,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *EnableEffect)(
- IXAudio27Voice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *DisableEffect)(
- IXAudio27Voice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetEffectState)(
- IXAudio27Voice *This,
- UINT32 EffectIndex,
- WINBOOL *pEnabled);
- HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
- IXAudio27Voice *This,
- UINT32 EffectIndex,
- const void *pParameters,
- UINT32 ParametersByteSize,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
- IXAudio27Voice *This,
- UINT32 EffectIndex,
- void *pParameters,
- UINT32 ParametersByteSize);
- HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
- IXAudio27Voice *This,
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetFilterParameters)(
- IXAudio27Voice *This,
- XAUDIO2_FILTER_PARAMETERS *pParameters);
- HRESULT (STDMETHODCALLTYPE *SetOutputFilterParameters)(
- IXAudio27Voice *This,
- IXAudio2Voice *pDestinationVoice,
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetOutputFilterParameters)(
- IXAudio27Voice *This,
- IXAudio2Voice *pDestinationVoice,
- XAUDIO2_FILTER_PARAMETERS *pParameters);
- HRESULT (STDMETHODCALLTYPE *SetVolume)(
- IXAudio27Voice *This,
- float Volume,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetVolume)(
- IXAudio27Voice *This,
- float *pVolume);
- HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
- IXAudio27Voice *This,
- UINT32 Channels,
- const float *pVolumes,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetChannelVolumes)(
- IXAudio27Voice *This,
- UINT32 Channels,
- float *pVolumes);
- HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
- IXAudio27Voice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- const float *pLevelMatrix,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetOutputMatrix)(
- IXAudio27Voice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- float *pLevelMatrix);
- void (STDMETHODCALLTYPE *DestroyVoice)(
- IXAudio27Voice *This);
- END_INTERFACE
- } IXAudio27VoiceVtbl;
- interface IXAudio27Voice {
- CONST_VTBL IXAudio27VoiceVtbl* lpVtbl;
- };
- #ifdef COBJMACROS
- #ifndef WIDL_C_INLINE_WRAPPERS
- /*** IXAudio27Voice methods ***/
- #define IXAudio27Voice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
- #define IXAudio27Voice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
- #define IXAudio27Voice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
- #define IXAudio27Voice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
- #define IXAudio27Voice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
- #define IXAudio27Voice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
- #define IXAudio27Voice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
- #define IXAudio27Voice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
- #define IXAudio27Voice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
- #define IXAudio27Voice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
- #define IXAudio27Voice_SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet) (This)->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet)
- #define IXAudio27Voice_GetOutputFilterParameters(This,pDestinationVoice,pParameters) (This)->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters)
- #define IXAudio27Voice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
- #define IXAudio27Voice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
- #define IXAudio27Voice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
- #define IXAudio27Voice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
- #define IXAudio27Voice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
- #define IXAudio27Voice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
- #define IXAudio27Voice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
- #else
- /*** IXAudio27Voice methods ***/
- static FORCEINLINE void IXAudio27Voice_GetVoiceDetails(IXAudio27Voice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
- This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
- }
- static FORCEINLINE HRESULT IXAudio27Voice_SetOutputVoices(IXAudio27Voice* This,const XAUDIO2_VOICE_SENDS *pSendList) {
- return This->lpVtbl->SetOutputVoices(This,pSendList);
- }
- static FORCEINLINE HRESULT IXAudio27Voice_SetEffectChain(IXAudio27Voice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->SetEffectChain(This,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio27Voice_EnableEffect(IXAudio27Voice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio27Voice_DisableEffect(IXAudio27Voice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE void IXAudio27Voice_GetEffectState(IXAudio27Voice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
- This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
- }
- static FORCEINLINE HRESULT IXAudio27Voice_SetEffectParameters(IXAudio27Voice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
- return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio27Voice_GetEffectParameters(IXAudio27Voice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
- return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
- }
- static FORCEINLINE HRESULT IXAudio27Voice_SetFilterParameters(IXAudio27Voice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
- return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
- }
- static FORCEINLINE void IXAudio27Voice_GetFilterParameters(IXAudio27Voice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
- This->lpVtbl->GetFilterParameters(This,pParameters);
- }
- static FORCEINLINE HRESULT IXAudio27Voice_SetOutputFilterParameters(IXAudio27Voice* This,IXAudio2Voice *pDestinationVoice,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
- return This->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet);
- }
- static FORCEINLINE void IXAudio27Voice_GetOutputFilterParameters(IXAudio27Voice* This,IXAudio2Voice *pDestinationVoice,XAUDIO2_FILTER_PARAMETERS *pParameters) {
- This->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters);
- }
- static FORCEINLINE HRESULT IXAudio27Voice_SetVolume(IXAudio27Voice* This,float Volume,UINT32 OperationSet) {
- return This->lpVtbl->SetVolume(This,Volume,OperationSet);
- }
- static FORCEINLINE void IXAudio27Voice_GetVolume(IXAudio27Voice* This,float *pVolume) {
- This->lpVtbl->GetVolume(This,pVolume);
- }
- static FORCEINLINE HRESULT IXAudio27Voice_SetChannelVolumes(IXAudio27Voice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
- return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
- }
- static FORCEINLINE void IXAudio27Voice_GetChannelVolumes(IXAudio27Voice* This,UINT32 Channels,float *pVolumes) {
- This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
- }
- static FORCEINLINE HRESULT IXAudio27Voice_SetOutputMatrix(IXAudio27Voice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
- return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
- }
- static FORCEINLINE void IXAudio27Voice_GetOutputMatrix(IXAudio27Voice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
- This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
- }
- static FORCEINLINE void IXAudio27Voice_DestroyVoice(IXAudio27Voice* This) {
- This->lpVtbl->DestroyVoice(This);
- }
- #endif
- #endif
- #endif
- #endif /* __IXAudio27Voice_INTERFACE_DEFINED__ */
- /*****************************************************************************
- * IXAudio2Voice interface
- */
- #ifndef __IXAudio2Voice_INTERFACE_DEFINED__
- #define __IXAudio2Voice_INTERFACE_DEFINED__
- #if defined(__cplusplus) && !defined(CINTERFACE)
- interface IXAudio2Voice
- {
- BEGIN_INTERFACE
- virtual void STDMETHODCALLTYPE GetVoiceDetails(
- XAUDIO2_VOICE_DETAILS *pVoiceDetails) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetOutputVoices(
- const XAUDIO2_VOICE_SENDS *pSendList) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetEffectChain(
- const XAUDIO2_EFFECT_CHAIN *pEffectChain) = 0;
- virtual HRESULT STDMETHODCALLTYPE EnableEffect(
- UINT32 EffectIndex,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual HRESULT STDMETHODCALLTYPE DisableEffect(
- UINT32 EffectIndex,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetEffectState(
- UINT32 EffectIndex,
- WINBOOL *pEnabled) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetEffectParameters(
- UINT32 EffectIndex,
- const void *pParameters,
- UINT32 ParametersByteSize,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual HRESULT STDMETHODCALLTYPE GetEffectParameters(
- UINT32 EffectIndex,
- void *pParameters,
- UINT32 ParametersByteSize) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetFilterParameters(
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetFilterParameters(
- XAUDIO2_FILTER_PARAMETERS *pParameters) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetOutputFilterParameters(
- IXAudio2Voice *pDestinationVoice,
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetOutputFilterParameters(
- IXAudio2Voice *pDestinationVoice,
- XAUDIO2_FILTER_PARAMETERS *pParameters) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetVolume(
- float Volume,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetVolume(
- float *pVolume) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetChannelVolumes(
- UINT32 Channels,
- const float *pVolumes,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetChannelVolumes(
- UINT32 Channels,
- float *pVolumes) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetOutputMatrix(
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- const float *pLevelMatrix,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetOutputMatrix(
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- float *pLevelMatrix) = 0;
- virtual void STDMETHODCALLTYPE DestroyVoice(
- ) = 0;
- END_INTERFACE
- };
- #else
- typedef struct IXAudio2VoiceVtbl {
- BEGIN_INTERFACE
- /*** IXAudio2Voice methods ***/
- void (STDMETHODCALLTYPE *GetVoiceDetails)(
- IXAudio2Voice *This,
- XAUDIO2_VOICE_DETAILS *pVoiceDetails);
- HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
- IXAudio2Voice *This,
- const XAUDIO2_VOICE_SENDS *pSendList);
- HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
- IXAudio2Voice *This,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *EnableEffect)(
- IXAudio2Voice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *DisableEffect)(
- IXAudio2Voice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetEffectState)(
- IXAudio2Voice *This,
- UINT32 EffectIndex,
- WINBOOL *pEnabled);
- HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
- IXAudio2Voice *This,
- UINT32 EffectIndex,
- const void *pParameters,
- UINT32 ParametersByteSize,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
- IXAudio2Voice *This,
- UINT32 EffectIndex,
- void *pParameters,
- UINT32 ParametersByteSize);
- HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
- IXAudio2Voice *This,
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetFilterParameters)(
- IXAudio2Voice *This,
- XAUDIO2_FILTER_PARAMETERS *pParameters);
- HRESULT (STDMETHODCALLTYPE *SetOutputFilterParameters)(
- IXAudio2Voice *This,
- IXAudio2Voice *pDestinationVoice,
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetOutputFilterParameters)(
- IXAudio2Voice *This,
- IXAudio2Voice *pDestinationVoice,
- XAUDIO2_FILTER_PARAMETERS *pParameters);
- HRESULT (STDMETHODCALLTYPE *SetVolume)(
- IXAudio2Voice *This,
- float Volume,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetVolume)(
- IXAudio2Voice *This,
- float *pVolume);
- HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
- IXAudio2Voice *This,
- UINT32 Channels,
- const float *pVolumes,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetChannelVolumes)(
- IXAudio2Voice *This,
- UINT32 Channels,
- float *pVolumes);
- HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
- IXAudio2Voice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- const float *pLevelMatrix,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetOutputMatrix)(
- IXAudio2Voice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- float *pLevelMatrix);
- void (STDMETHODCALLTYPE *DestroyVoice)(
- IXAudio2Voice *This);
- END_INTERFACE
- } IXAudio2VoiceVtbl;
- interface IXAudio2Voice {
- CONST_VTBL IXAudio2VoiceVtbl* lpVtbl;
- };
- #ifdef COBJMACROS
- #ifndef WIDL_C_INLINE_WRAPPERS
- /*** IXAudio2Voice methods ***/
- #define IXAudio2Voice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
- #define IXAudio2Voice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
- #define IXAudio2Voice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
- #define IXAudio2Voice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
- #define IXAudio2Voice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
- #define IXAudio2Voice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
- #define IXAudio2Voice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
- #define IXAudio2Voice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
- #define IXAudio2Voice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
- #define IXAudio2Voice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
- #define IXAudio2Voice_SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet) (This)->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet)
- #define IXAudio2Voice_GetOutputFilterParameters(This,pDestinationVoice,pParameters) (This)->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters)
- #define IXAudio2Voice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
- #define IXAudio2Voice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
- #define IXAudio2Voice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
- #define IXAudio2Voice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
- #define IXAudio2Voice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
- #define IXAudio2Voice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
- #define IXAudio2Voice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
- #else
- /*** IXAudio2Voice methods ***/
- static FORCEINLINE void IXAudio2Voice_GetVoiceDetails(IXAudio2Voice* This,XAUDIO2_VOICE_DETAILS *pVoiceDetails) {
- This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
- }
- static FORCEINLINE HRESULT IXAudio2Voice_SetOutputVoices(IXAudio2Voice* This,const XAUDIO2_VOICE_SENDS *pSendList) {
- return This->lpVtbl->SetOutputVoices(This,pSendList);
- }
- static FORCEINLINE HRESULT IXAudio2Voice_SetEffectChain(IXAudio2Voice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->SetEffectChain(This,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio2Voice_EnableEffect(IXAudio2Voice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio2Voice_DisableEffect(IXAudio2Voice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE void IXAudio2Voice_GetEffectState(IXAudio2Voice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
- This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
- }
- static FORCEINLINE HRESULT IXAudio2Voice_SetEffectParameters(IXAudio2Voice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
- return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio2Voice_GetEffectParameters(IXAudio2Voice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
- return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
- }
- static FORCEINLINE HRESULT IXAudio2Voice_SetFilterParameters(IXAudio2Voice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
- return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
- }
- static FORCEINLINE void IXAudio2Voice_GetFilterParameters(IXAudio2Voice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
- This->lpVtbl->GetFilterParameters(This,pParameters);
- }
- static FORCEINLINE HRESULT IXAudio2Voice_SetOutputFilterParameters(IXAudio2Voice* This,IXAudio2Voice *pDestinationVoice,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
- return This->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet);
- }
- static FORCEINLINE void IXAudio2Voice_GetOutputFilterParameters(IXAudio2Voice* This,IXAudio2Voice *pDestinationVoice,XAUDIO2_FILTER_PARAMETERS *pParameters) {
- This->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters);
- }
- static FORCEINLINE HRESULT IXAudio2Voice_SetVolume(IXAudio2Voice* This,float Volume,UINT32 OperationSet) {
- return This->lpVtbl->SetVolume(This,Volume,OperationSet);
- }
- static FORCEINLINE void IXAudio2Voice_GetVolume(IXAudio2Voice* This,float *pVolume) {
- This->lpVtbl->GetVolume(This,pVolume);
- }
- static FORCEINLINE HRESULT IXAudio2Voice_SetChannelVolumes(IXAudio2Voice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
- return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
- }
- static FORCEINLINE void IXAudio2Voice_GetChannelVolumes(IXAudio2Voice* This,UINT32 Channels,float *pVolumes) {
- This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
- }
- static FORCEINLINE HRESULT IXAudio2Voice_SetOutputMatrix(IXAudio2Voice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
- return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
- }
- static FORCEINLINE void IXAudio2Voice_GetOutputMatrix(IXAudio2Voice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
- This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
- }
- static FORCEINLINE void IXAudio2Voice_DestroyVoice(IXAudio2Voice* This) {
- This->lpVtbl->DestroyVoice(This);
- }
- #endif
- #endif
- #endif
- #endif /* __IXAudio2Voice_INTERFACE_DEFINED__ */
- typedef struct XAUDIO2_BUFFER {
- UINT32 Flags;
- UINT32 AudioBytes;
- const BYTE *pAudioData;
- UINT32 PlayBegin;
- UINT32 PlayLength;
- UINT32 LoopBegin;
- UINT32 LoopLength;
- UINT32 LoopCount;
- void *pContext;
- } XAUDIO2_BUFFER;
- typedef struct XAUDIO2_BUFFER_WMA {
- const UINT32 *pDecodedPacketCumulativeBytes;
- UINT32 PacketCount;
- } XAUDIO2_BUFFER_WMA;
- typedef struct XAUDIO2_VOICE_STATE {
- void *pCurrentBufferContext;
- UINT32 BuffersQueued;
- UINT64 SamplesPlayed;
- } XAUDIO2_VOICE_STATE;
- /*****************************************************************************
- * IXAudio20SourceVoice interface
- */
- #ifndef __IXAudio20SourceVoice_INTERFACE_DEFINED__
- #define __IXAudio20SourceVoice_INTERFACE_DEFINED__
- #if defined(__cplusplus) && !defined(CINTERFACE)
- interface IXAudio20SourceVoice : public IXAudio20Voice
- {
- virtual HRESULT STDMETHODCALLTYPE Start(
- UINT32 Flags = 0,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual HRESULT STDMETHODCALLTYPE Stop(
- UINT32 Flags = 0,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual HRESULT STDMETHODCALLTYPE SubmitSourceBuffer(
- const XAUDIO2_BUFFER *pBuffer,
- const XAUDIO2_BUFFER_WMA *pBufferWMA = 0) = 0;
- virtual HRESULT STDMETHODCALLTYPE FlushSourceBuffers(
- ) = 0;
- virtual HRESULT STDMETHODCALLTYPE Discontinuity(
- ) = 0;
- virtual HRESULT STDMETHODCALLTYPE ExitLoop(
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetState(
- XAUDIO2_VOICE_STATE *pVoiceState) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetFrequencyRatio(
- float Ratio,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetFrequencyRatio(
- float *pRatio) = 0;
- };
- #else
- typedef struct IXAudio20SourceVoiceVtbl {
- BEGIN_INTERFACE
- /*** IXAudio20Voice methods ***/
- void (STDMETHODCALLTYPE *GetVoiceDetails)(
- IXAudio20SourceVoice *This,
- XAUDIO27_VOICE_DETAILS *pVoiceDetails);
- HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
- IXAudio20SourceVoice *This,
- const XAUDIO23_VOICE_SENDS *pSendList);
- HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
- IXAudio20SourceVoice *This,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *EnableEffect)(
- IXAudio20SourceVoice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *DisableEffect)(
- IXAudio20SourceVoice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetEffectState)(
- IXAudio20SourceVoice *This,
- UINT32 EffectIndex,
- WINBOOL *pEnabled);
- HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
- IXAudio20SourceVoice *This,
- UINT32 EffectIndex,
- const void *pParameters,
- UINT32 ParametersByteSize,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
- IXAudio20SourceVoice *This,
- UINT32 EffectIndex,
- void *pParameters,
- UINT32 ParametersByteSize);
- HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
- IXAudio20SourceVoice *This,
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetFilterParameters)(
- IXAudio20SourceVoice *This,
- XAUDIO2_FILTER_PARAMETERS *pParameters);
- HRESULT (STDMETHODCALLTYPE *SetVolume)(
- IXAudio20SourceVoice *This,
- float Volume,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetVolume)(
- IXAudio20SourceVoice *This,
- float *pVolume);
- HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
- IXAudio20SourceVoice *This,
- UINT32 Channels,
- const float *pVolumes,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetChannelVolumes)(
- IXAudio20SourceVoice *This,
- UINT32 Channels,
- float *pVolumes);
- HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
- IXAudio20SourceVoice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- const float *pLevelMatrix,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *GetOutputMatrix)(
- IXAudio20SourceVoice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- float *pLevelMatrix);
- void (STDMETHODCALLTYPE *DestroyVoice)(
- IXAudio20SourceVoice *This);
- /*** IXAudio20SourceVoice methods ***/
- HRESULT (STDMETHODCALLTYPE *Start)(
- IXAudio20SourceVoice *This,
- UINT32 Flags,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *Stop)(
- IXAudio20SourceVoice *This,
- UINT32 Flags,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *SubmitSourceBuffer)(
- IXAudio20SourceVoice *This,
- const XAUDIO2_BUFFER *pBuffer,
- const XAUDIO2_BUFFER_WMA *pBufferWMA);
- HRESULT (STDMETHODCALLTYPE *FlushSourceBuffers)(
- IXAudio20SourceVoice *This);
- HRESULT (STDMETHODCALLTYPE *Discontinuity)(
- IXAudio20SourceVoice *This);
- HRESULT (STDMETHODCALLTYPE *ExitLoop)(
- IXAudio20SourceVoice *This,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetState)(
- IXAudio20SourceVoice *This,
- XAUDIO2_VOICE_STATE *pVoiceState);
- HRESULT (STDMETHODCALLTYPE *SetFrequencyRatio)(
- IXAudio20SourceVoice *This,
- float Ratio,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetFrequencyRatio)(
- IXAudio20SourceVoice *This,
- float *pRatio);
- END_INTERFACE
- } IXAudio20SourceVoiceVtbl;
- interface IXAudio20SourceVoice {
- CONST_VTBL IXAudio20SourceVoiceVtbl* lpVtbl;
- };
- #ifdef COBJMACROS
- #ifndef WIDL_C_INLINE_WRAPPERS
- /*** IXAudio20Voice methods ***/
- #define IXAudio20SourceVoice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
- #define IXAudio20SourceVoice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
- #define IXAudio20SourceVoice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
- #define IXAudio20SourceVoice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
- #define IXAudio20SourceVoice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
- #define IXAudio20SourceVoice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
- #define IXAudio20SourceVoice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
- #define IXAudio20SourceVoice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
- #define IXAudio20SourceVoice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
- #define IXAudio20SourceVoice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
- #define IXAudio20SourceVoice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
- #define IXAudio20SourceVoice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
- #define IXAudio20SourceVoice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
- #define IXAudio20SourceVoice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
- #define IXAudio20SourceVoice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
- #define IXAudio20SourceVoice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
- #define IXAudio20SourceVoice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
- /*** IXAudio20SourceVoice methods ***/
- #define IXAudio20SourceVoice_Start(This,Flags,OperationSet) (This)->lpVtbl->Start(This,Flags,OperationSet)
- #define IXAudio20SourceVoice_Stop(This,Flags,OperationSet) (This)->lpVtbl->Stop(This,Flags,OperationSet)
- #define IXAudio20SourceVoice_SubmitSourceBuffer(This,pBuffer,pBufferWMA) (This)->lpVtbl->SubmitSourceBuffer(This,pBuffer,pBufferWMA)
- #define IXAudio20SourceVoice_FlushSourceBuffers(This) (This)->lpVtbl->FlushSourceBuffers(This)
- #define IXAudio20SourceVoice_Discontinuity(This) (This)->lpVtbl->Discontinuity(This)
- #define IXAudio20SourceVoice_ExitLoop(This,OperationSet) (This)->lpVtbl->ExitLoop(This,OperationSet)
- #define IXAudio20SourceVoice_GetState(This,pVoiceState) (This)->lpVtbl->GetState(This,pVoiceState)
- #define IXAudio20SourceVoice_SetFrequencyRatio(This,Ratio,OperationSet) (This)->lpVtbl->SetFrequencyRatio(This,Ratio,OperationSet)
- #define IXAudio20SourceVoice_GetFrequencyRatio(This,pRatio) (This)->lpVtbl->GetFrequencyRatio(This,pRatio)
- #else
- /*** IXAudio20Voice methods ***/
- static FORCEINLINE void IXAudio20SourceVoice_GetVoiceDetails(IXAudio20SourceVoice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
- This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
- }
- static FORCEINLINE HRESULT IXAudio20SourceVoice_SetOutputVoices(IXAudio20SourceVoice* This,const XAUDIO23_VOICE_SENDS *pSendList) {
- return This->lpVtbl->SetOutputVoices(This,pSendList);
- }
- static FORCEINLINE HRESULT IXAudio20SourceVoice_SetEffectChain(IXAudio20SourceVoice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->SetEffectChain(This,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio20SourceVoice_EnableEffect(IXAudio20SourceVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio20SourceVoice_DisableEffect(IXAudio20SourceVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE void IXAudio20SourceVoice_GetEffectState(IXAudio20SourceVoice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
- This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
- }
- static FORCEINLINE HRESULT IXAudio20SourceVoice_SetEffectParameters(IXAudio20SourceVoice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
- return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio20SourceVoice_GetEffectParameters(IXAudio20SourceVoice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
- return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
- }
- static FORCEINLINE HRESULT IXAudio20SourceVoice_SetFilterParameters(IXAudio20SourceVoice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
- return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
- }
- static FORCEINLINE void IXAudio20SourceVoice_GetFilterParameters(IXAudio20SourceVoice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
- This->lpVtbl->GetFilterParameters(This,pParameters);
- }
- static FORCEINLINE HRESULT IXAudio20SourceVoice_SetVolume(IXAudio20SourceVoice* This,float Volume,UINT32 OperationSet) {
- return This->lpVtbl->SetVolume(This,Volume,OperationSet);
- }
- static FORCEINLINE void IXAudio20SourceVoice_GetVolume(IXAudio20SourceVoice* This,float *pVolume) {
- This->lpVtbl->GetVolume(This,pVolume);
- }
- static FORCEINLINE HRESULT IXAudio20SourceVoice_SetChannelVolumes(IXAudio20SourceVoice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
- return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
- }
- static FORCEINLINE void IXAudio20SourceVoice_GetChannelVolumes(IXAudio20SourceVoice* This,UINT32 Channels,float *pVolumes) {
- This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
- }
- static FORCEINLINE HRESULT IXAudio20SourceVoice_SetOutputMatrix(IXAudio20SourceVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
- return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio20SourceVoice_GetOutputMatrix(IXAudio20SourceVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
- return This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
- }
- static FORCEINLINE void IXAudio20SourceVoice_DestroyVoice(IXAudio20SourceVoice* This) {
- This->lpVtbl->DestroyVoice(This);
- }
- /*** IXAudio20SourceVoice methods ***/
- static FORCEINLINE HRESULT IXAudio20SourceVoice_Start(IXAudio20SourceVoice* This,UINT32 Flags,UINT32 OperationSet) {
- return This->lpVtbl->Start(This,Flags,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio20SourceVoice_Stop(IXAudio20SourceVoice* This,UINT32 Flags,UINT32 OperationSet) {
- return This->lpVtbl->Stop(This,Flags,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio20SourceVoice_SubmitSourceBuffer(IXAudio20SourceVoice* This,const XAUDIO2_BUFFER *pBuffer,const XAUDIO2_BUFFER_WMA *pBufferWMA) {
- return This->lpVtbl->SubmitSourceBuffer(This,pBuffer,pBufferWMA);
- }
- static FORCEINLINE HRESULT IXAudio20SourceVoice_FlushSourceBuffers(IXAudio20SourceVoice* This) {
- return This->lpVtbl->FlushSourceBuffers(This);
- }
- static FORCEINLINE HRESULT IXAudio20SourceVoice_Discontinuity(IXAudio20SourceVoice* This) {
- return This->lpVtbl->Discontinuity(This);
- }
- static FORCEINLINE HRESULT IXAudio20SourceVoice_ExitLoop(IXAudio20SourceVoice* This,UINT32 OperationSet) {
- return This->lpVtbl->ExitLoop(This,OperationSet);
- }
- static FORCEINLINE void IXAudio20SourceVoice_GetState(IXAudio20SourceVoice* This,XAUDIO2_VOICE_STATE *pVoiceState) {
- This->lpVtbl->GetState(This,pVoiceState);
- }
- static FORCEINLINE HRESULT IXAudio20SourceVoice_SetFrequencyRatio(IXAudio20SourceVoice* This,float Ratio,UINT32 OperationSet) {
- return This->lpVtbl->SetFrequencyRatio(This,Ratio,OperationSet);
- }
- static FORCEINLINE void IXAudio20SourceVoice_GetFrequencyRatio(IXAudio20SourceVoice* This,float *pRatio) {
- This->lpVtbl->GetFrequencyRatio(This,pRatio);
- }
- #endif
- #endif
- #endif
- #endif /* __IXAudio20SourceVoice_INTERFACE_DEFINED__ */
- /*****************************************************************************
- * IXAudio23SourceVoice interface
- */
- #ifndef __IXAudio23SourceVoice_INTERFACE_DEFINED__
- #define __IXAudio23SourceVoice_INTERFACE_DEFINED__
- #if defined(__cplusplus) && !defined(CINTERFACE)
- interface IXAudio23SourceVoice : public IXAudio23Voice
- {
- virtual HRESULT STDMETHODCALLTYPE Start(
- UINT32 Flags = 0,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual HRESULT STDMETHODCALLTYPE Stop(
- UINT32 Flags = 0,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual HRESULT STDMETHODCALLTYPE SubmitSourceBuffer(
- const XAUDIO2_BUFFER *pBuffer,
- const XAUDIO2_BUFFER_WMA *pBufferWMA = 0) = 0;
- virtual HRESULT STDMETHODCALLTYPE FlushSourceBuffers(
- ) = 0;
- virtual HRESULT STDMETHODCALLTYPE Discontinuity(
- ) = 0;
- virtual HRESULT STDMETHODCALLTYPE ExitLoop(
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetState(
- XAUDIO2_VOICE_STATE *pVoiceState) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetFrequencyRatio(
- float Ratio,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetFrequencyRatio(
- float *pRatio) = 0;
- };
- #else
- typedef struct IXAudio23SourceVoiceVtbl {
- BEGIN_INTERFACE
- /*** IXAudio23Voice methods ***/
- void (STDMETHODCALLTYPE *GetVoiceDetails)(
- IXAudio23SourceVoice *This,
- XAUDIO27_VOICE_DETAILS *pVoiceDetails);
- HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
- IXAudio23SourceVoice *This,
- const XAUDIO23_VOICE_SENDS *pSendList);
- HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
- IXAudio23SourceVoice *This,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *EnableEffect)(
- IXAudio23SourceVoice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *DisableEffect)(
- IXAudio23SourceVoice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetEffectState)(
- IXAudio23SourceVoice *This,
- UINT32 EffectIndex,
- WINBOOL *pEnabled);
- HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
- IXAudio23SourceVoice *This,
- UINT32 EffectIndex,
- const void *pParameters,
- UINT32 ParametersByteSize,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
- IXAudio23SourceVoice *This,
- UINT32 EffectIndex,
- void *pParameters,
- UINT32 ParametersByteSize);
- HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
- IXAudio23SourceVoice *This,
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetFilterParameters)(
- IXAudio23SourceVoice *This,
- XAUDIO2_FILTER_PARAMETERS *pParameters);
- HRESULT (STDMETHODCALLTYPE *SetVolume)(
- IXAudio23SourceVoice *This,
- float Volume,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetVolume)(
- IXAudio23SourceVoice *This,
- float *pVolume);
- HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
- IXAudio23SourceVoice *This,
- UINT32 Channels,
- const float *pVolumes,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetChannelVolumes)(
- IXAudio23SourceVoice *This,
- UINT32 Channels,
- float *pVolumes);
- HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
- IXAudio23SourceVoice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- const float *pLevelMatrix,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetOutputMatrix)(
- IXAudio23SourceVoice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- float *pLevelMatrix);
- void (STDMETHODCALLTYPE *DestroyVoice)(
- IXAudio23SourceVoice *This);
- /*** IXAudio23SourceVoice methods ***/
- HRESULT (STDMETHODCALLTYPE *Start)(
- IXAudio23SourceVoice *This,
- UINT32 Flags,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *Stop)(
- IXAudio23SourceVoice *This,
- UINT32 Flags,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *SubmitSourceBuffer)(
- IXAudio23SourceVoice *This,
- const XAUDIO2_BUFFER *pBuffer,
- const XAUDIO2_BUFFER_WMA *pBufferWMA);
- HRESULT (STDMETHODCALLTYPE *FlushSourceBuffers)(
- IXAudio23SourceVoice *This);
- HRESULT (STDMETHODCALLTYPE *Discontinuity)(
- IXAudio23SourceVoice *This);
- HRESULT (STDMETHODCALLTYPE *ExitLoop)(
- IXAudio23SourceVoice *This,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetState)(
- IXAudio23SourceVoice *This,
- XAUDIO2_VOICE_STATE *pVoiceState);
- HRESULT (STDMETHODCALLTYPE *SetFrequencyRatio)(
- IXAudio23SourceVoice *This,
- float Ratio,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetFrequencyRatio)(
- IXAudio23SourceVoice *This,
- float *pRatio);
- END_INTERFACE
- } IXAudio23SourceVoiceVtbl;
- interface IXAudio23SourceVoice {
- CONST_VTBL IXAudio23SourceVoiceVtbl* lpVtbl;
- };
- #ifdef COBJMACROS
- #ifndef WIDL_C_INLINE_WRAPPERS
- /*** IXAudio23Voice methods ***/
- #define IXAudio23SourceVoice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
- #define IXAudio23SourceVoice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
- #define IXAudio23SourceVoice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
- #define IXAudio23SourceVoice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
- #define IXAudio23SourceVoice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
- #define IXAudio23SourceVoice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
- #define IXAudio23SourceVoice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
- #define IXAudio23SourceVoice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
- #define IXAudio23SourceVoice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
- #define IXAudio23SourceVoice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
- #define IXAudio23SourceVoice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
- #define IXAudio23SourceVoice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
- #define IXAudio23SourceVoice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
- #define IXAudio23SourceVoice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
- #define IXAudio23SourceVoice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
- #define IXAudio23SourceVoice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
- #define IXAudio23SourceVoice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
- /*** IXAudio23SourceVoice methods ***/
- #define IXAudio23SourceVoice_Start(This,Flags,OperationSet) (This)->lpVtbl->Start(This,Flags,OperationSet)
- #define IXAudio23SourceVoice_Stop(This,Flags,OperationSet) (This)->lpVtbl->Stop(This,Flags,OperationSet)
- #define IXAudio23SourceVoice_SubmitSourceBuffer(This,pBuffer,pBufferWMA) (This)->lpVtbl->SubmitSourceBuffer(This,pBuffer,pBufferWMA)
- #define IXAudio23SourceVoice_FlushSourceBuffers(This) (This)->lpVtbl->FlushSourceBuffers(This)
- #define IXAudio23SourceVoice_Discontinuity(This) (This)->lpVtbl->Discontinuity(This)
- #define IXAudio23SourceVoice_ExitLoop(This,OperationSet) (This)->lpVtbl->ExitLoop(This,OperationSet)
- #define IXAudio23SourceVoice_GetState(This,pVoiceState) (This)->lpVtbl->GetState(This,pVoiceState)
- #define IXAudio23SourceVoice_SetFrequencyRatio(This,Ratio,OperationSet) (This)->lpVtbl->SetFrequencyRatio(This,Ratio,OperationSet)
- #define IXAudio23SourceVoice_GetFrequencyRatio(This,pRatio) (This)->lpVtbl->GetFrequencyRatio(This,pRatio)
- #else
- /*** IXAudio23Voice methods ***/
- static FORCEINLINE void IXAudio23SourceVoice_GetVoiceDetails(IXAudio23SourceVoice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
- This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
- }
- static FORCEINLINE HRESULT IXAudio23SourceVoice_SetOutputVoices(IXAudio23SourceVoice* This,const XAUDIO23_VOICE_SENDS *pSendList) {
- return This->lpVtbl->SetOutputVoices(This,pSendList);
- }
- static FORCEINLINE HRESULT IXAudio23SourceVoice_SetEffectChain(IXAudio23SourceVoice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->SetEffectChain(This,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio23SourceVoice_EnableEffect(IXAudio23SourceVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio23SourceVoice_DisableEffect(IXAudio23SourceVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE void IXAudio23SourceVoice_GetEffectState(IXAudio23SourceVoice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
- This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
- }
- static FORCEINLINE HRESULT IXAudio23SourceVoice_SetEffectParameters(IXAudio23SourceVoice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
- return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio23SourceVoice_GetEffectParameters(IXAudio23SourceVoice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
- return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
- }
- static FORCEINLINE HRESULT IXAudio23SourceVoice_SetFilterParameters(IXAudio23SourceVoice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
- return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
- }
- static FORCEINLINE void IXAudio23SourceVoice_GetFilterParameters(IXAudio23SourceVoice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
- This->lpVtbl->GetFilterParameters(This,pParameters);
- }
- static FORCEINLINE HRESULT IXAudio23SourceVoice_SetVolume(IXAudio23SourceVoice* This,float Volume,UINT32 OperationSet) {
- return This->lpVtbl->SetVolume(This,Volume,OperationSet);
- }
- static FORCEINLINE void IXAudio23SourceVoice_GetVolume(IXAudio23SourceVoice* This,float *pVolume) {
- This->lpVtbl->GetVolume(This,pVolume);
- }
- static FORCEINLINE HRESULT IXAudio23SourceVoice_SetChannelVolumes(IXAudio23SourceVoice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
- return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
- }
- static FORCEINLINE void IXAudio23SourceVoice_GetChannelVolumes(IXAudio23SourceVoice* This,UINT32 Channels,float *pVolumes) {
- This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
- }
- static FORCEINLINE HRESULT IXAudio23SourceVoice_SetOutputMatrix(IXAudio23SourceVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
- return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
- }
- static FORCEINLINE void IXAudio23SourceVoice_GetOutputMatrix(IXAudio23SourceVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
- This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
- }
- static FORCEINLINE void IXAudio23SourceVoice_DestroyVoice(IXAudio23SourceVoice* This) {
- This->lpVtbl->DestroyVoice(This);
- }
- /*** IXAudio23SourceVoice methods ***/
- static FORCEINLINE HRESULT IXAudio23SourceVoice_Start(IXAudio23SourceVoice* This,UINT32 Flags,UINT32 OperationSet) {
- return This->lpVtbl->Start(This,Flags,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio23SourceVoice_Stop(IXAudio23SourceVoice* This,UINT32 Flags,UINT32 OperationSet) {
- return This->lpVtbl->Stop(This,Flags,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio23SourceVoice_SubmitSourceBuffer(IXAudio23SourceVoice* This,const XAUDIO2_BUFFER *pBuffer,const XAUDIO2_BUFFER_WMA *pBufferWMA) {
- return This->lpVtbl->SubmitSourceBuffer(This,pBuffer,pBufferWMA);
- }
- static FORCEINLINE HRESULT IXAudio23SourceVoice_FlushSourceBuffers(IXAudio23SourceVoice* This) {
- return This->lpVtbl->FlushSourceBuffers(This);
- }
- static FORCEINLINE HRESULT IXAudio23SourceVoice_Discontinuity(IXAudio23SourceVoice* This) {
- return This->lpVtbl->Discontinuity(This);
- }
- static FORCEINLINE HRESULT IXAudio23SourceVoice_ExitLoop(IXAudio23SourceVoice* This,UINT32 OperationSet) {
- return This->lpVtbl->ExitLoop(This,OperationSet);
- }
- static FORCEINLINE void IXAudio23SourceVoice_GetState(IXAudio23SourceVoice* This,XAUDIO2_VOICE_STATE *pVoiceState) {
- This->lpVtbl->GetState(This,pVoiceState);
- }
- static FORCEINLINE HRESULT IXAudio23SourceVoice_SetFrequencyRatio(IXAudio23SourceVoice* This,float Ratio,UINT32 OperationSet) {
- return This->lpVtbl->SetFrequencyRatio(This,Ratio,OperationSet);
- }
- static FORCEINLINE void IXAudio23SourceVoice_GetFrequencyRatio(IXAudio23SourceVoice* This,float *pRatio) {
- This->lpVtbl->GetFrequencyRatio(This,pRatio);
- }
- #endif
- #endif
- #endif
- #endif /* __IXAudio23SourceVoice_INTERFACE_DEFINED__ */
- /*****************************************************************************
- * IXAudio27SourceVoice interface
- */
- #ifndef __IXAudio27SourceVoice_INTERFACE_DEFINED__
- #define __IXAudio27SourceVoice_INTERFACE_DEFINED__
- #if defined(__cplusplus) && !defined(CINTERFACE)
- interface IXAudio27SourceVoice : public IXAudio27Voice
- {
- virtual HRESULT STDMETHODCALLTYPE Start(
- UINT32 Flags = 0,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual HRESULT STDMETHODCALLTYPE Stop(
- UINT32 Flags = 0,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual HRESULT STDMETHODCALLTYPE SubmitSourceBuffer(
- const XAUDIO2_BUFFER *pBuffer,
- const XAUDIO2_BUFFER_WMA *pBufferWMA = 0) = 0;
- virtual HRESULT STDMETHODCALLTYPE FlushSourceBuffers(
- ) = 0;
- virtual HRESULT STDMETHODCALLTYPE Discontinuity(
- ) = 0;
- virtual HRESULT STDMETHODCALLTYPE ExitLoop(
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetState(
- XAUDIO2_VOICE_STATE *pVoiceState) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetFrequencyRatio(
- float Ratio,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetFrequencyRatio(
- float *pRatio) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetSourceSampleRate(
- UINT32 NewSourceSampleRate) = 0;
- };
- #else
- typedef struct IXAudio27SourceVoiceVtbl {
- BEGIN_INTERFACE
- /*** IXAudio27Voice methods ***/
- void (STDMETHODCALLTYPE *GetVoiceDetails)(
- IXAudio27SourceVoice *This,
- XAUDIO27_VOICE_DETAILS *pVoiceDetails);
- HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
- IXAudio27SourceVoice *This,
- const XAUDIO2_VOICE_SENDS *pSendList);
- HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
- IXAudio27SourceVoice *This,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *EnableEffect)(
- IXAudio27SourceVoice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *DisableEffect)(
- IXAudio27SourceVoice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetEffectState)(
- IXAudio27SourceVoice *This,
- UINT32 EffectIndex,
- WINBOOL *pEnabled);
- HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
- IXAudio27SourceVoice *This,
- UINT32 EffectIndex,
- const void *pParameters,
- UINT32 ParametersByteSize,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
- IXAudio27SourceVoice *This,
- UINT32 EffectIndex,
- void *pParameters,
- UINT32 ParametersByteSize);
- HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
- IXAudio27SourceVoice *This,
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetFilterParameters)(
- IXAudio27SourceVoice *This,
- XAUDIO2_FILTER_PARAMETERS *pParameters);
- HRESULT (STDMETHODCALLTYPE *SetOutputFilterParameters)(
- IXAudio27SourceVoice *This,
- IXAudio2Voice *pDestinationVoice,
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetOutputFilterParameters)(
- IXAudio27SourceVoice *This,
- IXAudio2Voice *pDestinationVoice,
- XAUDIO2_FILTER_PARAMETERS *pParameters);
- HRESULT (STDMETHODCALLTYPE *SetVolume)(
- IXAudio27SourceVoice *This,
- float Volume,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetVolume)(
- IXAudio27SourceVoice *This,
- float *pVolume);
- HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
- IXAudio27SourceVoice *This,
- UINT32 Channels,
- const float *pVolumes,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetChannelVolumes)(
- IXAudio27SourceVoice *This,
- UINT32 Channels,
- float *pVolumes);
- HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
- IXAudio27SourceVoice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- const float *pLevelMatrix,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetOutputMatrix)(
- IXAudio27SourceVoice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- float *pLevelMatrix);
- void (STDMETHODCALLTYPE *DestroyVoice)(
- IXAudio27SourceVoice *This);
- /*** IXAudio27SourceVoice methods ***/
- HRESULT (STDMETHODCALLTYPE *Start)(
- IXAudio27SourceVoice *This,
- UINT32 Flags,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *Stop)(
- IXAudio27SourceVoice *This,
- UINT32 Flags,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *SubmitSourceBuffer)(
- IXAudio27SourceVoice *This,
- const XAUDIO2_BUFFER *pBuffer,
- const XAUDIO2_BUFFER_WMA *pBufferWMA);
- HRESULT (STDMETHODCALLTYPE *FlushSourceBuffers)(
- IXAudio27SourceVoice *This);
- HRESULT (STDMETHODCALLTYPE *Discontinuity)(
- IXAudio27SourceVoice *This);
- HRESULT (STDMETHODCALLTYPE *ExitLoop)(
- IXAudio27SourceVoice *This,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetState)(
- IXAudio27SourceVoice *This,
- XAUDIO2_VOICE_STATE *pVoiceState);
- HRESULT (STDMETHODCALLTYPE *SetFrequencyRatio)(
- IXAudio27SourceVoice *This,
- float Ratio,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetFrequencyRatio)(
- IXAudio27SourceVoice *This,
- float *pRatio);
- HRESULT (STDMETHODCALLTYPE *SetSourceSampleRate)(
- IXAudio27SourceVoice *This,
- UINT32 NewSourceSampleRate);
- END_INTERFACE
- } IXAudio27SourceVoiceVtbl;
- interface IXAudio27SourceVoice {
- CONST_VTBL IXAudio27SourceVoiceVtbl* lpVtbl;
- };
- #ifdef COBJMACROS
- #ifndef WIDL_C_INLINE_WRAPPERS
- /*** IXAudio27Voice methods ***/
- #define IXAudio27SourceVoice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
- #define IXAudio27SourceVoice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
- #define IXAudio27SourceVoice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
- #define IXAudio27SourceVoice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
- #define IXAudio27SourceVoice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
- #define IXAudio27SourceVoice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
- #define IXAudio27SourceVoice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
- #define IXAudio27SourceVoice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
- #define IXAudio27SourceVoice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
- #define IXAudio27SourceVoice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
- #define IXAudio27SourceVoice_SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet) (This)->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet)
- #define IXAudio27SourceVoice_GetOutputFilterParameters(This,pDestinationVoice,pParameters) (This)->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters)
- #define IXAudio27SourceVoice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
- #define IXAudio27SourceVoice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
- #define IXAudio27SourceVoice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
- #define IXAudio27SourceVoice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
- #define IXAudio27SourceVoice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
- #define IXAudio27SourceVoice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
- #define IXAudio27SourceVoice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
- /*** IXAudio27SourceVoice methods ***/
- #define IXAudio27SourceVoice_Start(This,Flags,OperationSet) (This)->lpVtbl->Start(This,Flags,OperationSet)
- #define IXAudio27SourceVoice_Stop(This,Flags,OperationSet) (This)->lpVtbl->Stop(This,Flags,OperationSet)
- #define IXAudio27SourceVoice_SubmitSourceBuffer(This,pBuffer,pBufferWMA) (This)->lpVtbl->SubmitSourceBuffer(This,pBuffer,pBufferWMA)
- #define IXAudio27SourceVoice_FlushSourceBuffers(This) (This)->lpVtbl->FlushSourceBuffers(This)
- #define IXAudio27SourceVoice_Discontinuity(This) (This)->lpVtbl->Discontinuity(This)
- #define IXAudio27SourceVoice_ExitLoop(This,OperationSet) (This)->lpVtbl->ExitLoop(This,OperationSet)
- #define IXAudio27SourceVoice_GetState(This,pVoiceState) (This)->lpVtbl->GetState(This,pVoiceState)
- #define IXAudio27SourceVoice_SetFrequencyRatio(This,Ratio,OperationSet) (This)->lpVtbl->SetFrequencyRatio(This,Ratio,OperationSet)
- #define IXAudio27SourceVoice_GetFrequencyRatio(This,pRatio) (This)->lpVtbl->GetFrequencyRatio(This,pRatio)
- #define IXAudio27SourceVoice_SetSourceSampleRate(This,NewSourceSampleRate) (This)->lpVtbl->SetSourceSampleRate(This,NewSourceSampleRate)
- #else
- /*** IXAudio27Voice methods ***/
- static FORCEINLINE void IXAudio27SourceVoice_GetVoiceDetails(IXAudio27SourceVoice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
- This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
- }
- static FORCEINLINE HRESULT IXAudio27SourceVoice_SetOutputVoices(IXAudio27SourceVoice* This,const XAUDIO2_VOICE_SENDS *pSendList) {
- return This->lpVtbl->SetOutputVoices(This,pSendList);
- }
- static FORCEINLINE HRESULT IXAudio27SourceVoice_SetEffectChain(IXAudio27SourceVoice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->SetEffectChain(This,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio27SourceVoice_EnableEffect(IXAudio27SourceVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio27SourceVoice_DisableEffect(IXAudio27SourceVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE void IXAudio27SourceVoice_GetEffectState(IXAudio27SourceVoice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
- This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
- }
- static FORCEINLINE HRESULT IXAudio27SourceVoice_SetEffectParameters(IXAudio27SourceVoice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
- return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio27SourceVoice_GetEffectParameters(IXAudio27SourceVoice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
- return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
- }
- static FORCEINLINE HRESULT IXAudio27SourceVoice_SetFilterParameters(IXAudio27SourceVoice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
- return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
- }
- static FORCEINLINE void IXAudio27SourceVoice_GetFilterParameters(IXAudio27SourceVoice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
- This->lpVtbl->GetFilterParameters(This,pParameters);
- }
- static FORCEINLINE HRESULT IXAudio27SourceVoice_SetOutputFilterParameters(IXAudio27SourceVoice* This,IXAudio2Voice *pDestinationVoice,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
- return This->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet);
- }
- static FORCEINLINE void IXAudio27SourceVoice_GetOutputFilterParameters(IXAudio27SourceVoice* This,IXAudio2Voice *pDestinationVoice,XAUDIO2_FILTER_PARAMETERS *pParameters) {
- This->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters);
- }
- static FORCEINLINE HRESULT IXAudio27SourceVoice_SetVolume(IXAudio27SourceVoice* This,float Volume,UINT32 OperationSet) {
- return This->lpVtbl->SetVolume(This,Volume,OperationSet);
- }
- static FORCEINLINE void IXAudio27SourceVoice_GetVolume(IXAudio27SourceVoice* This,float *pVolume) {
- This->lpVtbl->GetVolume(This,pVolume);
- }
- static FORCEINLINE HRESULT IXAudio27SourceVoice_SetChannelVolumes(IXAudio27SourceVoice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
- return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
- }
- static FORCEINLINE void IXAudio27SourceVoice_GetChannelVolumes(IXAudio27SourceVoice* This,UINT32 Channels,float *pVolumes) {
- This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
- }
- static FORCEINLINE HRESULT IXAudio27SourceVoice_SetOutputMatrix(IXAudio27SourceVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
- return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
- }
- static FORCEINLINE void IXAudio27SourceVoice_GetOutputMatrix(IXAudio27SourceVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
- This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
- }
- static FORCEINLINE void IXAudio27SourceVoice_DestroyVoice(IXAudio27SourceVoice* This) {
- This->lpVtbl->DestroyVoice(This);
- }
- /*** IXAudio27SourceVoice methods ***/
- static FORCEINLINE HRESULT IXAudio27SourceVoice_Start(IXAudio27SourceVoice* This,UINT32 Flags,UINT32 OperationSet) {
- return This->lpVtbl->Start(This,Flags,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio27SourceVoice_Stop(IXAudio27SourceVoice* This,UINT32 Flags,UINT32 OperationSet) {
- return This->lpVtbl->Stop(This,Flags,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio27SourceVoice_SubmitSourceBuffer(IXAudio27SourceVoice* This,const XAUDIO2_BUFFER *pBuffer,const XAUDIO2_BUFFER_WMA *pBufferWMA) {
- return This->lpVtbl->SubmitSourceBuffer(This,pBuffer,pBufferWMA);
- }
- static FORCEINLINE HRESULT IXAudio27SourceVoice_FlushSourceBuffers(IXAudio27SourceVoice* This) {
- return This->lpVtbl->FlushSourceBuffers(This);
- }
- static FORCEINLINE HRESULT IXAudio27SourceVoice_Discontinuity(IXAudio27SourceVoice* This) {
- return This->lpVtbl->Discontinuity(This);
- }
- static FORCEINLINE HRESULT IXAudio27SourceVoice_ExitLoop(IXAudio27SourceVoice* This,UINT32 OperationSet) {
- return This->lpVtbl->ExitLoop(This,OperationSet);
- }
- static FORCEINLINE void IXAudio27SourceVoice_GetState(IXAudio27SourceVoice* This,XAUDIO2_VOICE_STATE *pVoiceState) {
- This->lpVtbl->GetState(This,pVoiceState);
- }
- static FORCEINLINE HRESULT IXAudio27SourceVoice_SetFrequencyRatio(IXAudio27SourceVoice* This,float Ratio,UINT32 OperationSet) {
- return This->lpVtbl->SetFrequencyRatio(This,Ratio,OperationSet);
- }
- static FORCEINLINE void IXAudio27SourceVoice_GetFrequencyRatio(IXAudio27SourceVoice* This,float *pRatio) {
- This->lpVtbl->GetFrequencyRatio(This,pRatio);
- }
- static FORCEINLINE HRESULT IXAudio27SourceVoice_SetSourceSampleRate(IXAudio27SourceVoice* This,UINT32 NewSourceSampleRate) {
- return This->lpVtbl->SetSourceSampleRate(This,NewSourceSampleRate);
- }
- #endif
- #endif
- #endif
- #endif /* __IXAudio27SourceVoice_INTERFACE_DEFINED__ */
- /*****************************************************************************
- * IXAudio2SourceVoice interface
- */
- #ifndef __IXAudio2SourceVoice_INTERFACE_DEFINED__
- #define __IXAudio2SourceVoice_INTERFACE_DEFINED__
- #if defined(__cplusplus) && !defined(CINTERFACE)
- interface IXAudio2SourceVoice : public IXAudio2Voice
- {
- virtual HRESULT STDMETHODCALLTYPE Start(
- UINT32 Flags = 0,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual HRESULT STDMETHODCALLTYPE Stop(
- UINT32 Flags = 0,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual HRESULT STDMETHODCALLTYPE SubmitSourceBuffer(
- const XAUDIO2_BUFFER *pBuffer,
- const XAUDIO2_BUFFER_WMA *pBufferWMA = 0) = 0;
- virtual HRESULT STDMETHODCALLTYPE FlushSourceBuffers(
- ) = 0;
- virtual HRESULT STDMETHODCALLTYPE Discontinuity(
- ) = 0;
- virtual HRESULT STDMETHODCALLTYPE ExitLoop(
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetState(
- XAUDIO2_VOICE_STATE *pVoiceState,
- UINT32 Flags = 0) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetFrequencyRatio(
- float Ratio,
- UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
- virtual void STDMETHODCALLTYPE GetFrequencyRatio(
- float *pRatio) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetSourceSampleRate(
- UINT32 NewSourceSampleRate) = 0;
- };
- #else
- typedef struct IXAudio2SourceVoiceVtbl {
- BEGIN_INTERFACE
- /*** IXAudio2Voice methods ***/
- void (STDMETHODCALLTYPE *GetVoiceDetails)(
- IXAudio2SourceVoice *This,
- XAUDIO2_VOICE_DETAILS *pVoiceDetails);
- HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
- IXAudio2SourceVoice *This,
- const XAUDIO2_VOICE_SENDS *pSendList);
- HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
- IXAudio2SourceVoice *This,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *EnableEffect)(
- IXAudio2SourceVoice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *DisableEffect)(
- IXAudio2SourceVoice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetEffectState)(
- IXAudio2SourceVoice *This,
- UINT32 EffectIndex,
- WINBOOL *pEnabled);
- HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
- IXAudio2SourceVoice *This,
- UINT32 EffectIndex,
- const void *pParameters,
- UINT32 ParametersByteSize,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
- IXAudio2SourceVoice *This,
- UINT32 EffectIndex,
- void *pParameters,
- UINT32 ParametersByteSize);
- HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
- IXAudio2SourceVoice *This,
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetFilterParameters)(
- IXAudio2SourceVoice *This,
- XAUDIO2_FILTER_PARAMETERS *pParameters);
- HRESULT (STDMETHODCALLTYPE *SetOutputFilterParameters)(
- IXAudio2SourceVoice *This,
- IXAudio2Voice *pDestinationVoice,
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetOutputFilterParameters)(
- IXAudio2SourceVoice *This,
- IXAudio2Voice *pDestinationVoice,
- XAUDIO2_FILTER_PARAMETERS *pParameters);
- HRESULT (STDMETHODCALLTYPE *SetVolume)(
- IXAudio2SourceVoice *This,
- float Volume,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetVolume)(
- IXAudio2SourceVoice *This,
- float *pVolume);
- HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
- IXAudio2SourceVoice *This,
- UINT32 Channels,
- const float *pVolumes,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetChannelVolumes)(
- IXAudio2SourceVoice *This,
- UINT32 Channels,
- float *pVolumes);
- HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
- IXAudio2SourceVoice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- const float *pLevelMatrix,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetOutputMatrix)(
- IXAudio2SourceVoice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- float *pLevelMatrix);
- void (STDMETHODCALLTYPE *DestroyVoice)(
- IXAudio2SourceVoice *This);
- /*** IXAudio2SourceVoice methods ***/
- HRESULT (STDMETHODCALLTYPE *Start)(
- IXAudio2SourceVoice *This,
- UINT32 Flags,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *Stop)(
- IXAudio2SourceVoice *This,
- UINT32 Flags,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *SubmitSourceBuffer)(
- IXAudio2SourceVoice *This,
- const XAUDIO2_BUFFER *pBuffer,
- const XAUDIO2_BUFFER_WMA *pBufferWMA);
- HRESULT (STDMETHODCALLTYPE *FlushSourceBuffers)(
- IXAudio2SourceVoice *This);
- HRESULT (STDMETHODCALLTYPE *Discontinuity)(
- IXAudio2SourceVoice *This);
- HRESULT (STDMETHODCALLTYPE *ExitLoop)(
- IXAudio2SourceVoice *This,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetState)(
- IXAudio2SourceVoice *This,
- XAUDIO2_VOICE_STATE *pVoiceState,
- UINT32 Flags);
- HRESULT (STDMETHODCALLTYPE *SetFrequencyRatio)(
- IXAudio2SourceVoice *This,
- float Ratio,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetFrequencyRatio)(
- IXAudio2SourceVoice *This,
- float *pRatio);
- HRESULT (STDMETHODCALLTYPE *SetSourceSampleRate)(
- IXAudio2SourceVoice *This,
- UINT32 NewSourceSampleRate);
- END_INTERFACE
- } IXAudio2SourceVoiceVtbl;
- interface IXAudio2SourceVoice {
- CONST_VTBL IXAudio2SourceVoiceVtbl* lpVtbl;
- };
- #ifdef COBJMACROS
- #ifndef WIDL_C_INLINE_WRAPPERS
- /*** IXAudio2Voice methods ***/
- #define IXAudio2SourceVoice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
- #define IXAudio2SourceVoice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
- #define IXAudio2SourceVoice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
- #define IXAudio2SourceVoice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
- #define IXAudio2SourceVoice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
- #define IXAudio2SourceVoice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
- #define IXAudio2SourceVoice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
- #define IXAudio2SourceVoice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
- #define IXAudio2SourceVoice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
- #define IXAudio2SourceVoice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
- #define IXAudio2SourceVoice_SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet) (This)->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet)
- #define IXAudio2SourceVoice_GetOutputFilterParameters(This,pDestinationVoice,pParameters) (This)->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters)
- #define IXAudio2SourceVoice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
- #define IXAudio2SourceVoice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
- #define IXAudio2SourceVoice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
- #define IXAudio2SourceVoice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
- #define IXAudio2SourceVoice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
- #define IXAudio2SourceVoice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
- #define IXAudio2SourceVoice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
- /*** IXAudio2SourceVoice methods ***/
- #define IXAudio2SourceVoice_Start(This,Flags,OperationSet) (This)->lpVtbl->Start(This,Flags,OperationSet)
- #define IXAudio2SourceVoice_Stop(This,Flags,OperationSet) (This)->lpVtbl->Stop(This,Flags,OperationSet)
- #define IXAudio2SourceVoice_SubmitSourceBuffer(This,pBuffer,pBufferWMA) (This)->lpVtbl->SubmitSourceBuffer(This,pBuffer,pBufferWMA)
- #define IXAudio2SourceVoice_FlushSourceBuffers(This) (This)->lpVtbl->FlushSourceBuffers(This)
- #define IXAudio2SourceVoice_Discontinuity(This) (This)->lpVtbl->Discontinuity(This)
- #define IXAudio2SourceVoice_ExitLoop(This,OperationSet) (This)->lpVtbl->ExitLoop(This,OperationSet)
- #define IXAudio2SourceVoice_GetState(This,pVoiceState,Flags) (This)->lpVtbl->GetState(This,pVoiceState,Flags)
- #define IXAudio2SourceVoice_SetFrequencyRatio(This,Ratio,OperationSet) (This)->lpVtbl->SetFrequencyRatio(This,Ratio,OperationSet)
- #define IXAudio2SourceVoice_GetFrequencyRatio(This,pRatio) (This)->lpVtbl->GetFrequencyRatio(This,pRatio)
- #define IXAudio2SourceVoice_SetSourceSampleRate(This,NewSourceSampleRate) (This)->lpVtbl->SetSourceSampleRate(This,NewSourceSampleRate)
- #else
- /*** IXAudio2Voice methods ***/
- static FORCEINLINE void IXAudio2SourceVoice_GetVoiceDetails(IXAudio2SourceVoice* This,XAUDIO2_VOICE_DETAILS *pVoiceDetails) {
- This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
- }
- static FORCEINLINE HRESULT IXAudio2SourceVoice_SetOutputVoices(IXAudio2SourceVoice* This,const XAUDIO2_VOICE_SENDS *pSendList) {
- return This->lpVtbl->SetOutputVoices(This,pSendList);
- }
- static FORCEINLINE HRESULT IXAudio2SourceVoice_SetEffectChain(IXAudio2SourceVoice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->SetEffectChain(This,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio2SourceVoice_EnableEffect(IXAudio2SourceVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio2SourceVoice_DisableEffect(IXAudio2SourceVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE void IXAudio2SourceVoice_GetEffectState(IXAudio2SourceVoice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
- This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
- }
- static FORCEINLINE HRESULT IXAudio2SourceVoice_SetEffectParameters(IXAudio2SourceVoice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
- return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio2SourceVoice_GetEffectParameters(IXAudio2SourceVoice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
- return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
- }
- static FORCEINLINE HRESULT IXAudio2SourceVoice_SetFilterParameters(IXAudio2SourceVoice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
- return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
- }
- static FORCEINLINE void IXAudio2SourceVoice_GetFilterParameters(IXAudio2SourceVoice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
- This->lpVtbl->GetFilterParameters(This,pParameters);
- }
- static FORCEINLINE HRESULT IXAudio2SourceVoice_SetOutputFilterParameters(IXAudio2SourceVoice* This,IXAudio2Voice *pDestinationVoice,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
- return This->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet);
- }
- static FORCEINLINE void IXAudio2SourceVoice_GetOutputFilterParameters(IXAudio2SourceVoice* This,IXAudio2Voice *pDestinationVoice,XAUDIO2_FILTER_PARAMETERS *pParameters) {
- This->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters);
- }
- static FORCEINLINE HRESULT IXAudio2SourceVoice_SetVolume(IXAudio2SourceVoice* This,float Volume,UINT32 OperationSet) {
- return This->lpVtbl->SetVolume(This,Volume,OperationSet);
- }
- static FORCEINLINE void IXAudio2SourceVoice_GetVolume(IXAudio2SourceVoice* This,float *pVolume) {
- This->lpVtbl->GetVolume(This,pVolume);
- }
- static FORCEINLINE HRESULT IXAudio2SourceVoice_SetChannelVolumes(IXAudio2SourceVoice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
- return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
- }
- static FORCEINLINE void IXAudio2SourceVoice_GetChannelVolumes(IXAudio2SourceVoice* This,UINT32 Channels,float *pVolumes) {
- This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
- }
- static FORCEINLINE HRESULT IXAudio2SourceVoice_SetOutputMatrix(IXAudio2SourceVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
- return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
- }
- static FORCEINLINE void IXAudio2SourceVoice_GetOutputMatrix(IXAudio2SourceVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
- This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
- }
- static FORCEINLINE void IXAudio2SourceVoice_DestroyVoice(IXAudio2SourceVoice* This) {
- This->lpVtbl->DestroyVoice(This);
- }
- /*** IXAudio2SourceVoice methods ***/
- static FORCEINLINE HRESULT IXAudio2SourceVoice_Start(IXAudio2SourceVoice* This,UINT32 Flags,UINT32 OperationSet) {
- return This->lpVtbl->Start(This,Flags,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio2SourceVoice_Stop(IXAudio2SourceVoice* This,UINT32 Flags,UINT32 OperationSet) {
- return This->lpVtbl->Stop(This,Flags,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio2SourceVoice_SubmitSourceBuffer(IXAudio2SourceVoice* This,const XAUDIO2_BUFFER *pBuffer,const XAUDIO2_BUFFER_WMA *pBufferWMA) {
- return This->lpVtbl->SubmitSourceBuffer(This,pBuffer,pBufferWMA);
- }
- static FORCEINLINE HRESULT IXAudio2SourceVoice_FlushSourceBuffers(IXAudio2SourceVoice* This) {
- return This->lpVtbl->FlushSourceBuffers(This);
- }
- static FORCEINLINE HRESULT IXAudio2SourceVoice_Discontinuity(IXAudio2SourceVoice* This) {
- return This->lpVtbl->Discontinuity(This);
- }
- static FORCEINLINE HRESULT IXAudio2SourceVoice_ExitLoop(IXAudio2SourceVoice* This,UINT32 OperationSet) {
- return This->lpVtbl->ExitLoop(This,OperationSet);
- }
- static FORCEINLINE void IXAudio2SourceVoice_GetState(IXAudio2SourceVoice* This,XAUDIO2_VOICE_STATE *pVoiceState,UINT32 Flags) {
- This->lpVtbl->GetState(This,pVoiceState,Flags);
- }
- static FORCEINLINE HRESULT IXAudio2SourceVoice_SetFrequencyRatio(IXAudio2SourceVoice* This,float Ratio,UINT32 OperationSet) {
- return This->lpVtbl->SetFrequencyRatio(This,Ratio,OperationSet);
- }
- static FORCEINLINE void IXAudio2SourceVoice_GetFrequencyRatio(IXAudio2SourceVoice* This,float *pRatio) {
- This->lpVtbl->GetFrequencyRatio(This,pRatio);
- }
- static FORCEINLINE HRESULT IXAudio2SourceVoice_SetSourceSampleRate(IXAudio2SourceVoice* This,UINT32 NewSourceSampleRate) {
- return This->lpVtbl->SetSourceSampleRate(This,NewSourceSampleRate);
- }
- #endif
- #endif
- #endif
- #endif /* __IXAudio2SourceVoice_INTERFACE_DEFINED__ */
- /*****************************************************************************
- * IXAudio20SubmixVoice interface
- */
- #ifndef __IXAudio20SubmixVoice_INTERFACE_DEFINED__
- #define __IXAudio20SubmixVoice_INTERFACE_DEFINED__
- #if defined(__cplusplus) && !defined(CINTERFACE)
- interface IXAudio20SubmixVoice : public IXAudio20Voice
- {
- };
- #else
- typedef struct IXAudio20SubmixVoiceVtbl {
- BEGIN_INTERFACE
- /*** IXAudio20Voice methods ***/
- void (STDMETHODCALLTYPE *GetVoiceDetails)(
- IXAudio20SubmixVoice *This,
- XAUDIO27_VOICE_DETAILS *pVoiceDetails);
- HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
- IXAudio20SubmixVoice *This,
- const XAUDIO23_VOICE_SENDS *pSendList);
- HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
- IXAudio20SubmixVoice *This,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *EnableEffect)(
- IXAudio20SubmixVoice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *DisableEffect)(
- IXAudio20SubmixVoice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetEffectState)(
- IXAudio20SubmixVoice *This,
- UINT32 EffectIndex,
- WINBOOL *pEnabled);
- HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
- IXAudio20SubmixVoice *This,
- UINT32 EffectIndex,
- const void *pParameters,
- UINT32 ParametersByteSize,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
- IXAudio20SubmixVoice *This,
- UINT32 EffectIndex,
- void *pParameters,
- UINT32 ParametersByteSize);
- HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
- IXAudio20SubmixVoice *This,
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetFilterParameters)(
- IXAudio20SubmixVoice *This,
- XAUDIO2_FILTER_PARAMETERS *pParameters);
- HRESULT (STDMETHODCALLTYPE *SetVolume)(
- IXAudio20SubmixVoice *This,
- float Volume,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetVolume)(
- IXAudio20SubmixVoice *This,
- float *pVolume);
- HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
- IXAudio20SubmixVoice *This,
- UINT32 Channels,
- const float *pVolumes,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetChannelVolumes)(
- IXAudio20SubmixVoice *This,
- UINT32 Channels,
- float *pVolumes);
- HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
- IXAudio20SubmixVoice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- const float *pLevelMatrix,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *GetOutputMatrix)(
- IXAudio20SubmixVoice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- float *pLevelMatrix);
- void (STDMETHODCALLTYPE *DestroyVoice)(
- IXAudio20SubmixVoice *This);
- END_INTERFACE
- } IXAudio20SubmixVoiceVtbl;
- interface IXAudio20SubmixVoice {
- CONST_VTBL IXAudio20SubmixVoiceVtbl* lpVtbl;
- };
- #ifdef COBJMACROS
- #ifndef WIDL_C_INLINE_WRAPPERS
- /*** IXAudio20Voice methods ***/
- #define IXAudio20SubmixVoice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
- #define IXAudio20SubmixVoice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
- #define IXAudio20SubmixVoice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
- #define IXAudio20SubmixVoice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
- #define IXAudio20SubmixVoice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
- #define IXAudio20SubmixVoice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
- #define IXAudio20SubmixVoice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
- #define IXAudio20SubmixVoice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
- #define IXAudio20SubmixVoice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
- #define IXAudio20SubmixVoice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
- #define IXAudio20SubmixVoice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
- #define IXAudio20SubmixVoice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
- #define IXAudio20SubmixVoice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
- #define IXAudio20SubmixVoice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
- #define IXAudio20SubmixVoice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
- #define IXAudio20SubmixVoice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
- #define IXAudio20SubmixVoice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
- #else
- /*** IXAudio20Voice methods ***/
- static FORCEINLINE void IXAudio20SubmixVoice_GetVoiceDetails(IXAudio20SubmixVoice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
- This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
- }
- static FORCEINLINE HRESULT IXAudio20SubmixVoice_SetOutputVoices(IXAudio20SubmixVoice* This,const XAUDIO23_VOICE_SENDS *pSendList) {
- return This->lpVtbl->SetOutputVoices(This,pSendList);
- }
- static FORCEINLINE HRESULT IXAudio20SubmixVoice_SetEffectChain(IXAudio20SubmixVoice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->SetEffectChain(This,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio20SubmixVoice_EnableEffect(IXAudio20SubmixVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio20SubmixVoice_DisableEffect(IXAudio20SubmixVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE void IXAudio20SubmixVoice_GetEffectState(IXAudio20SubmixVoice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
- This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
- }
- static FORCEINLINE HRESULT IXAudio20SubmixVoice_SetEffectParameters(IXAudio20SubmixVoice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
- return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio20SubmixVoice_GetEffectParameters(IXAudio20SubmixVoice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
- return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
- }
- static FORCEINLINE HRESULT IXAudio20SubmixVoice_SetFilterParameters(IXAudio20SubmixVoice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
- return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
- }
- static FORCEINLINE void IXAudio20SubmixVoice_GetFilterParameters(IXAudio20SubmixVoice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
- This->lpVtbl->GetFilterParameters(This,pParameters);
- }
- static FORCEINLINE HRESULT IXAudio20SubmixVoice_SetVolume(IXAudio20SubmixVoice* This,float Volume,UINT32 OperationSet) {
- return This->lpVtbl->SetVolume(This,Volume,OperationSet);
- }
- static FORCEINLINE void IXAudio20SubmixVoice_GetVolume(IXAudio20SubmixVoice* This,float *pVolume) {
- This->lpVtbl->GetVolume(This,pVolume);
- }
- static FORCEINLINE HRESULT IXAudio20SubmixVoice_SetChannelVolumes(IXAudio20SubmixVoice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
- return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
- }
- static FORCEINLINE void IXAudio20SubmixVoice_GetChannelVolumes(IXAudio20SubmixVoice* This,UINT32 Channels,float *pVolumes) {
- This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
- }
- static FORCEINLINE HRESULT IXAudio20SubmixVoice_SetOutputMatrix(IXAudio20SubmixVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
- return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio20SubmixVoice_GetOutputMatrix(IXAudio20SubmixVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
- return This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
- }
- static FORCEINLINE void IXAudio20SubmixVoice_DestroyVoice(IXAudio20SubmixVoice* This) {
- This->lpVtbl->DestroyVoice(This);
- }
- #endif
- #endif
- #endif
- #endif /* __IXAudio20SubmixVoice_INTERFACE_DEFINED__ */
- /*****************************************************************************
- * IXAudio23SubmixVoice interface
- */
- #ifndef __IXAudio23SubmixVoice_INTERFACE_DEFINED__
- #define __IXAudio23SubmixVoice_INTERFACE_DEFINED__
- #if defined(__cplusplus) && !defined(CINTERFACE)
- interface IXAudio23SubmixVoice : public IXAudio23Voice
- {
- };
- #else
- typedef struct IXAudio23SubmixVoiceVtbl {
- BEGIN_INTERFACE
- /*** IXAudio23Voice methods ***/
- void (STDMETHODCALLTYPE *GetVoiceDetails)(
- IXAudio23SubmixVoice *This,
- XAUDIO27_VOICE_DETAILS *pVoiceDetails);
- HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
- IXAudio23SubmixVoice *This,
- const XAUDIO23_VOICE_SENDS *pSendList);
- HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
- IXAudio23SubmixVoice *This,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *EnableEffect)(
- IXAudio23SubmixVoice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *DisableEffect)(
- IXAudio23SubmixVoice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetEffectState)(
- IXAudio23SubmixVoice *This,
- UINT32 EffectIndex,
- WINBOOL *pEnabled);
- HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
- IXAudio23SubmixVoice *This,
- UINT32 EffectIndex,
- const void *pParameters,
- UINT32 ParametersByteSize,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
- IXAudio23SubmixVoice *This,
- UINT32 EffectIndex,
- void *pParameters,
- UINT32 ParametersByteSize);
- HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
- IXAudio23SubmixVoice *This,
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetFilterParameters)(
- IXAudio23SubmixVoice *This,
- XAUDIO2_FILTER_PARAMETERS *pParameters);
- HRESULT (STDMETHODCALLTYPE *SetVolume)(
- IXAudio23SubmixVoice *This,
- float Volume,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetVolume)(
- IXAudio23SubmixVoice *This,
- float *pVolume);
- HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
- IXAudio23SubmixVoice *This,
- UINT32 Channels,
- const float *pVolumes,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetChannelVolumes)(
- IXAudio23SubmixVoice *This,
- UINT32 Channels,
- float *pVolumes);
- HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
- IXAudio23SubmixVoice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- const float *pLevelMatrix,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetOutputMatrix)(
- IXAudio23SubmixVoice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- float *pLevelMatrix);
- void (STDMETHODCALLTYPE *DestroyVoice)(
- IXAudio23SubmixVoice *This);
- END_INTERFACE
- } IXAudio23SubmixVoiceVtbl;
- interface IXAudio23SubmixVoice {
- CONST_VTBL IXAudio23SubmixVoiceVtbl* lpVtbl;
- };
- #ifdef COBJMACROS
- #ifndef WIDL_C_INLINE_WRAPPERS
- /*** IXAudio23Voice methods ***/
- #define IXAudio23SubmixVoice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
- #define IXAudio23SubmixVoice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
- #define IXAudio23SubmixVoice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
- #define IXAudio23SubmixVoice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
- #define IXAudio23SubmixVoice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
- #define IXAudio23SubmixVoice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
- #define IXAudio23SubmixVoice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
- #define IXAudio23SubmixVoice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
- #define IXAudio23SubmixVoice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
- #define IXAudio23SubmixVoice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
- #define IXAudio23SubmixVoice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
- #define IXAudio23SubmixVoice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
- #define IXAudio23SubmixVoice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
- #define IXAudio23SubmixVoice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
- #define IXAudio23SubmixVoice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
- #define IXAudio23SubmixVoice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
- #define IXAudio23SubmixVoice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
- #else
- /*** IXAudio23Voice methods ***/
- static FORCEINLINE void IXAudio23SubmixVoice_GetVoiceDetails(IXAudio23SubmixVoice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
- This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
- }
- static FORCEINLINE HRESULT IXAudio23SubmixVoice_SetOutputVoices(IXAudio23SubmixVoice* This,const XAUDIO23_VOICE_SENDS *pSendList) {
- return This->lpVtbl->SetOutputVoices(This,pSendList);
- }
- static FORCEINLINE HRESULT IXAudio23SubmixVoice_SetEffectChain(IXAudio23SubmixVoice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->SetEffectChain(This,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio23SubmixVoice_EnableEffect(IXAudio23SubmixVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio23SubmixVoice_DisableEffect(IXAudio23SubmixVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE void IXAudio23SubmixVoice_GetEffectState(IXAudio23SubmixVoice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
- This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
- }
- static FORCEINLINE HRESULT IXAudio23SubmixVoice_SetEffectParameters(IXAudio23SubmixVoice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
- return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio23SubmixVoice_GetEffectParameters(IXAudio23SubmixVoice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
- return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
- }
- static FORCEINLINE HRESULT IXAudio23SubmixVoice_SetFilterParameters(IXAudio23SubmixVoice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
- return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
- }
- static FORCEINLINE void IXAudio23SubmixVoice_GetFilterParameters(IXAudio23SubmixVoice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
- This->lpVtbl->GetFilterParameters(This,pParameters);
- }
- static FORCEINLINE HRESULT IXAudio23SubmixVoice_SetVolume(IXAudio23SubmixVoice* This,float Volume,UINT32 OperationSet) {
- return This->lpVtbl->SetVolume(This,Volume,OperationSet);
- }
- static FORCEINLINE void IXAudio23SubmixVoice_GetVolume(IXAudio23SubmixVoice* This,float *pVolume) {
- This->lpVtbl->GetVolume(This,pVolume);
- }
- static FORCEINLINE HRESULT IXAudio23SubmixVoice_SetChannelVolumes(IXAudio23SubmixVoice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
- return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
- }
- static FORCEINLINE void IXAudio23SubmixVoice_GetChannelVolumes(IXAudio23SubmixVoice* This,UINT32 Channels,float *pVolumes) {
- This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
- }
- static FORCEINLINE HRESULT IXAudio23SubmixVoice_SetOutputMatrix(IXAudio23SubmixVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
- return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
- }
- static FORCEINLINE void IXAudio23SubmixVoice_GetOutputMatrix(IXAudio23SubmixVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
- This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
- }
- static FORCEINLINE void IXAudio23SubmixVoice_DestroyVoice(IXAudio23SubmixVoice* This) {
- This->lpVtbl->DestroyVoice(This);
- }
- #endif
- #endif
- #endif
- #endif /* __IXAudio23SubmixVoice_INTERFACE_DEFINED__ */
- /*****************************************************************************
- * IXAudio27SubmixVoice interface
- */
- #ifndef __IXAudio27SubmixVoice_INTERFACE_DEFINED__
- #define __IXAudio27SubmixVoice_INTERFACE_DEFINED__
- #if defined(__cplusplus) && !defined(CINTERFACE)
- interface IXAudio27SubmixVoice : public IXAudio27Voice
- {
- };
- #else
- typedef struct IXAudio27SubmixVoiceVtbl {
- BEGIN_INTERFACE
- /*** IXAudio27Voice methods ***/
- void (STDMETHODCALLTYPE *GetVoiceDetails)(
- IXAudio27SubmixVoice *This,
- XAUDIO27_VOICE_DETAILS *pVoiceDetails);
- HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
- IXAudio27SubmixVoice *This,
- const XAUDIO2_VOICE_SENDS *pSendList);
- HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
- IXAudio27SubmixVoice *This,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *EnableEffect)(
- IXAudio27SubmixVoice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *DisableEffect)(
- IXAudio27SubmixVoice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetEffectState)(
- IXAudio27SubmixVoice *This,
- UINT32 EffectIndex,
- WINBOOL *pEnabled);
- HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
- IXAudio27SubmixVoice *This,
- UINT32 EffectIndex,
- const void *pParameters,
- UINT32 ParametersByteSize,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
- IXAudio27SubmixVoice *This,
- UINT32 EffectIndex,
- void *pParameters,
- UINT32 ParametersByteSize);
- HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
- IXAudio27SubmixVoice *This,
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetFilterParameters)(
- IXAudio27SubmixVoice *This,
- XAUDIO2_FILTER_PARAMETERS *pParameters);
- HRESULT (STDMETHODCALLTYPE *SetOutputFilterParameters)(
- IXAudio27SubmixVoice *This,
- IXAudio2Voice *pDestinationVoice,
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetOutputFilterParameters)(
- IXAudio27SubmixVoice *This,
- IXAudio2Voice *pDestinationVoice,
- XAUDIO2_FILTER_PARAMETERS *pParameters);
- HRESULT (STDMETHODCALLTYPE *SetVolume)(
- IXAudio27SubmixVoice *This,
- float Volume,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetVolume)(
- IXAudio27SubmixVoice *This,
- float *pVolume);
- HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
- IXAudio27SubmixVoice *This,
- UINT32 Channels,
- const float *pVolumes,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetChannelVolumes)(
- IXAudio27SubmixVoice *This,
- UINT32 Channels,
- float *pVolumes);
- HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
- IXAudio27SubmixVoice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- const float *pLevelMatrix,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetOutputMatrix)(
- IXAudio27SubmixVoice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- float *pLevelMatrix);
- void (STDMETHODCALLTYPE *DestroyVoice)(
- IXAudio27SubmixVoice *This);
- END_INTERFACE
- } IXAudio27SubmixVoiceVtbl;
- interface IXAudio27SubmixVoice {
- CONST_VTBL IXAudio27SubmixVoiceVtbl* lpVtbl;
- };
- #ifdef COBJMACROS
- #ifndef WIDL_C_INLINE_WRAPPERS
- /*** IXAudio27Voice methods ***/
- #define IXAudio27SubmixVoice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
- #define IXAudio27SubmixVoice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
- #define IXAudio27SubmixVoice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
- #define IXAudio27SubmixVoice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
- #define IXAudio27SubmixVoice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
- #define IXAudio27SubmixVoice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
- #define IXAudio27SubmixVoice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
- #define IXAudio27SubmixVoice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
- #define IXAudio27SubmixVoice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
- #define IXAudio27SubmixVoice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
- #define IXAudio27SubmixVoice_SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet) (This)->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet)
- #define IXAudio27SubmixVoice_GetOutputFilterParameters(This,pDestinationVoice,pParameters) (This)->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters)
- #define IXAudio27SubmixVoice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
- #define IXAudio27SubmixVoice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
- #define IXAudio27SubmixVoice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
- #define IXAudio27SubmixVoice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
- #define IXAudio27SubmixVoice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
- #define IXAudio27SubmixVoice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
- #define IXAudio27SubmixVoice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
- #else
- /*** IXAudio27Voice methods ***/
- static FORCEINLINE void IXAudio27SubmixVoice_GetVoiceDetails(IXAudio27SubmixVoice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
- This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
- }
- static FORCEINLINE HRESULT IXAudio27SubmixVoice_SetOutputVoices(IXAudio27SubmixVoice* This,const XAUDIO2_VOICE_SENDS *pSendList) {
- return This->lpVtbl->SetOutputVoices(This,pSendList);
- }
- static FORCEINLINE HRESULT IXAudio27SubmixVoice_SetEffectChain(IXAudio27SubmixVoice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->SetEffectChain(This,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio27SubmixVoice_EnableEffect(IXAudio27SubmixVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio27SubmixVoice_DisableEffect(IXAudio27SubmixVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE void IXAudio27SubmixVoice_GetEffectState(IXAudio27SubmixVoice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
- This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
- }
- static FORCEINLINE HRESULT IXAudio27SubmixVoice_SetEffectParameters(IXAudio27SubmixVoice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
- return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio27SubmixVoice_GetEffectParameters(IXAudio27SubmixVoice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
- return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
- }
- static FORCEINLINE HRESULT IXAudio27SubmixVoice_SetFilterParameters(IXAudio27SubmixVoice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
- return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
- }
- static FORCEINLINE void IXAudio27SubmixVoice_GetFilterParameters(IXAudio27SubmixVoice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
- This->lpVtbl->GetFilterParameters(This,pParameters);
- }
- static FORCEINLINE HRESULT IXAudio27SubmixVoice_SetOutputFilterParameters(IXAudio27SubmixVoice* This,IXAudio2Voice *pDestinationVoice,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
- return This->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet);
- }
- static FORCEINLINE void IXAudio27SubmixVoice_GetOutputFilterParameters(IXAudio27SubmixVoice* This,IXAudio2Voice *pDestinationVoice,XAUDIO2_FILTER_PARAMETERS *pParameters) {
- This->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters);
- }
- static FORCEINLINE HRESULT IXAudio27SubmixVoice_SetVolume(IXAudio27SubmixVoice* This,float Volume,UINT32 OperationSet) {
- return This->lpVtbl->SetVolume(This,Volume,OperationSet);
- }
- static FORCEINLINE void IXAudio27SubmixVoice_GetVolume(IXAudio27SubmixVoice* This,float *pVolume) {
- This->lpVtbl->GetVolume(This,pVolume);
- }
- static FORCEINLINE HRESULT IXAudio27SubmixVoice_SetChannelVolumes(IXAudio27SubmixVoice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
- return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
- }
- static FORCEINLINE void IXAudio27SubmixVoice_GetChannelVolumes(IXAudio27SubmixVoice* This,UINT32 Channels,float *pVolumes) {
- This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
- }
- static FORCEINLINE HRESULT IXAudio27SubmixVoice_SetOutputMatrix(IXAudio27SubmixVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
- return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
- }
- static FORCEINLINE void IXAudio27SubmixVoice_GetOutputMatrix(IXAudio27SubmixVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
- This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
- }
- static FORCEINLINE void IXAudio27SubmixVoice_DestroyVoice(IXAudio27SubmixVoice* This) {
- This->lpVtbl->DestroyVoice(This);
- }
- #endif
- #endif
- #endif
- #endif /* __IXAudio27SubmixVoice_INTERFACE_DEFINED__ */
- /*****************************************************************************
- * IXAudio2SubmixVoice interface
- */
- #ifndef __IXAudio2SubmixVoice_INTERFACE_DEFINED__
- #define __IXAudio2SubmixVoice_INTERFACE_DEFINED__
- #if defined(__cplusplus) && !defined(CINTERFACE)
- interface IXAudio2SubmixVoice : public IXAudio2Voice
- {
- };
- #else
- typedef struct IXAudio2SubmixVoiceVtbl {
- BEGIN_INTERFACE
- /*** IXAudio2Voice methods ***/
- void (STDMETHODCALLTYPE *GetVoiceDetails)(
- IXAudio2SubmixVoice *This,
- XAUDIO2_VOICE_DETAILS *pVoiceDetails);
- HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
- IXAudio2SubmixVoice *This,
- const XAUDIO2_VOICE_SENDS *pSendList);
- HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
- IXAudio2SubmixVoice *This,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *EnableEffect)(
- IXAudio2SubmixVoice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *DisableEffect)(
- IXAudio2SubmixVoice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetEffectState)(
- IXAudio2SubmixVoice *This,
- UINT32 EffectIndex,
- WINBOOL *pEnabled);
- HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
- IXAudio2SubmixVoice *This,
- UINT32 EffectIndex,
- const void *pParameters,
- UINT32 ParametersByteSize,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
- IXAudio2SubmixVoice *This,
- UINT32 EffectIndex,
- void *pParameters,
- UINT32 ParametersByteSize);
- HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
- IXAudio2SubmixVoice *This,
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetFilterParameters)(
- IXAudio2SubmixVoice *This,
- XAUDIO2_FILTER_PARAMETERS *pParameters);
- HRESULT (STDMETHODCALLTYPE *SetOutputFilterParameters)(
- IXAudio2SubmixVoice *This,
- IXAudio2Voice *pDestinationVoice,
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetOutputFilterParameters)(
- IXAudio2SubmixVoice *This,
- IXAudio2Voice *pDestinationVoice,
- XAUDIO2_FILTER_PARAMETERS *pParameters);
- HRESULT (STDMETHODCALLTYPE *SetVolume)(
- IXAudio2SubmixVoice *This,
- float Volume,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetVolume)(
- IXAudio2SubmixVoice *This,
- float *pVolume);
- HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
- IXAudio2SubmixVoice *This,
- UINT32 Channels,
- const float *pVolumes,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetChannelVolumes)(
- IXAudio2SubmixVoice *This,
- UINT32 Channels,
- float *pVolumes);
- HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
- IXAudio2SubmixVoice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- const float *pLevelMatrix,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetOutputMatrix)(
- IXAudio2SubmixVoice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- float *pLevelMatrix);
- void (STDMETHODCALLTYPE *DestroyVoice)(
- IXAudio2SubmixVoice *This);
- END_INTERFACE
- } IXAudio2SubmixVoiceVtbl;
- interface IXAudio2SubmixVoice {
- CONST_VTBL IXAudio2SubmixVoiceVtbl* lpVtbl;
- };
- #ifdef COBJMACROS
- #ifndef WIDL_C_INLINE_WRAPPERS
- /*** IXAudio2Voice methods ***/
- #define IXAudio2SubmixVoice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
- #define IXAudio2SubmixVoice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
- #define IXAudio2SubmixVoice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
- #define IXAudio2SubmixVoice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
- #define IXAudio2SubmixVoice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
- #define IXAudio2SubmixVoice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
- #define IXAudio2SubmixVoice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
- #define IXAudio2SubmixVoice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
- #define IXAudio2SubmixVoice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
- #define IXAudio2SubmixVoice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
- #define IXAudio2SubmixVoice_SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet) (This)->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet)
- #define IXAudio2SubmixVoice_GetOutputFilterParameters(This,pDestinationVoice,pParameters) (This)->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters)
- #define IXAudio2SubmixVoice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
- #define IXAudio2SubmixVoice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
- #define IXAudio2SubmixVoice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
- #define IXAudio2SubmixVoice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
- #define IXAudio2SubmixVoice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
- #define IXAudio2SubmixVoice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
- #define IXAudio2SubmixVoice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
- #else
- /*** IXAudio2Voice methods ***/
- static FORCEINLINE void IXAudio2SubmixVoice_GetVoiceDetails(IXAudio2SubmixVoice* This,XAUDIO2_VOICE_DETAILS *pVoiceDetails) {
- This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
- }
- static FORCEINLINE HRESULT IXAudio2SubmixVoice_SetOutputVoices(IXAudio2SubmixVoice* This,const XAUDIO2_VOICE_SENDS *pSendList) {
- return This->lpVtbl->SetOutputVoices(This,pSendList);
- }
- static FORCEINLINE HRESULT IXAudio2SubmixVoice_SetEffectChain(IXAudio2SubmixVoice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->SetEffectChain(This,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio2SubmixVoice_EnableEffect(IXAudio2SubmixVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio2SubmixVoice_DisableEffect(IXAudio2SubmixVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE void IXAudio2SubmixVoice_GetEffectState(IXAudio2SubmixVoice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
- This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
- }
- static FORCEINLINE HRESULT IXAudio2SubmixVoice_SetEffectParameters(IXAudio2SubmixVoice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
- return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio2SubmixVoice_GetEffectParameters(IXAudio2SubmixVoice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
- return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
- }
- static FORCEINLINE HRESULT IXAudio2SubmixVoice_SetFilterParameters(IXAudio2SubmixVoice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
- return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
- }
- static FORCEINLINE void IXAudio2SubmixVoice_GetFilterParameters(IXAudio2SubmixVoice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
- This->lpVtbl->GetFilterParameters(This,pParameters);
- }
- static FORCEINLINE HRESULT IXAudio2SubmixVoice_SetOutputFilterParameters(IXAudio2SubmixVoice* This,IXAudio2Voice *pDestinationVoice,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
- return This->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet);
- }
- static FORCEINLINE void IXAudio2SubmixVoice_GetOutputFilterParameters(IXAudio2SubmixVoice* This,IXAudio2Voice *pDestinationVoice,XAUDIO2_FILTER_PARAMETERS *pParameters) {
- This->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters);
- }
- static FORCEINLINE HRESULT IXAudio2SubmixVoice_SetVolume(IXAudio2SubmixVoice* This,float Volume,UINT32 OperationSet) {
- return This->lpVtbl->SetVolume(This,Volume,OperationSet);
- }
- static FORCEINLINE void IXAudio2SubmixVoice_GetVolume(IXAudio2SubmixVoice* This,float *pVolume) {
- This->lpVtbl->GetVolume(This,pVolume);
- }
- static FORCEINLINE HRESULT IXAudio2SubmixVoice_SetChannelVolumes(IXAudio2SubmixVoice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
- return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
- }
- static FORCEINLINE void IXAudio2SubmixVoice_GetChannelVolumes(IXAudio2SubmixVoice* This,UINT32 Channels,float *pVolumes) {
- This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
- }
- static FORCEINLINE HRESULT IXAudio2SubmixVoice_SetOutputMatrix(IXAudio2SubmixVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
- return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
- }
- static FORCEINLINE void IXAudio2SubmixVoice_GetOutputMatrix(IXAudio2SubmixVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
- This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
- }
- static FORCEINLINE void IXAudio2SubmixVoice_DestroyVoice(IXAudio2SubmixVoice* This) {
- This->lpVtbl->DestroyVoice(This);
- }
- #endif
- #endif
- #endif
- #endif /* __IXAudio2SubmixVoice_INTERFACE_DEFINED__ */
- /*****************************************************************************
- * IXAudio20MasteringVoice interface
- */
- #ifndef __IXAudio20MasteringVoice_INTERFACE_DEFINED__
- #define __IXAudio20MasteringVoice_INTERFACE_DEFINED__
- #if defined(__cplusplus) && !defined(CINTERFACE)
- interface IXAudio20MasteringVoice : public IXAudio20Voice
- {
- };
- #else
- typedef struct IXAudio20MasteringVoiceVtbl {
- BEGIN_INTERFACE
- /*** IXAudio20Voice methods ***/
- void (STDMETHODCALLTYPE *GetVoiceDetails)(
- IXAudio20MasteringVoice *This,
- XAUDIO27_VOICE_DETAILS *pVoiceDetails);
- HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
- IXAudio20MasteringVoice *This,
- const XAUDIO23_VOICE_SENDS *pSendList);
- HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
- IXAudio20MasteringVoice *This,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *EnableEffect)(
- IXAudio20MasteringVoice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *DisableEffect)(
- IXAudio20MasteringVoice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetEffectState)(
- IXAudio20MasteringVoice *This,
- UINT32 EffectIndex,
- WINBOOL *pEnabled);
- HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
- IXAudio20MasteringVoice *This,
- UINT32 EffectIndex,
- const void *pParameters,
- UINT32 ParametersByteSize,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
- IXAudio20MasteringVoice *This,
- UINT32 EffectIndex,
- void *pParameters,
- UINT32 ParametersByteSize);
- HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
- IXAudio20MasteringVoice *This,
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetFilterParameters)(
- IXAudio20MasteringVoice *This,
- XAUDIO2_FILTER_PARAMETERS *pParameters);
- HRESULT (STDMETHODCALLTYPE *SetVolume)(
- IXAudio20MasteringVoice *This,
- float Volume,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetVolume)(
- IXAudio20MasteringVoice *This,
- float *pVolume);
- HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
- IXAudio20MasteringVoice *This,
- UINT32 Channels,
- const float *pVolumes,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetChannelVolumes)(
- IXAudio20MasteringVoice *This,
- UINT32 Channels,
- float *pVolumes);
- HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
- IXAudio20MasteringVoice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- const float *pLevelMatrix,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *GetOutputMatrix)(
- IXAudio20MasteringVoice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- float *pLevelMatrix);
- void (STDMETHODCALLTYPE *DestroyVoice)(
- IXAudio20MasteringVoice *This);
- END_INTERFACE
- } IXAudio20MasteringVoiceVtbl;
- interface IXAudio20MasteringVoice {
- CONST_VTBL IXAudio20MasteringVoiceVtbl* lpVtbl;
- };
- #ifdef COBJMACROS
- #ifndef WIDL_C_INLINE_WRAPPERS
- /*** IXAudio20Voice methods ***/
- #define IXAudio20MasteringVoice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
- #define IXAudio20MasteringVoice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
- #define IXAudio20MasteringVoice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
- #define IXAudio20MasteringVoice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
- #define IXAudio20MasteringVoice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
- #define IXAudio20MasteringVoice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
- #define IXAudio20MasteringVoice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
- #define IXAudio20MasteringVoice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
- #define IXAudio20MasteringVoice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
- #define IXAudio20MasteringVoice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
- #define IXAudio20MasteringVoice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
- #define IXAudio20MasteringVoice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
- #define IXAudio20MasteringVoice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
- #define IXAudio20MasteringVoice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
- #define IXAudio20MasteringVoice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
- #define IXAudio20MasteringVoice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
- #define IXAudio20MasteringVoice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
- #else
- /*** IXAudio20Voice methods ***/
- static FORCEINLINE void IXAudio20MasteringVoice_GetVoiceDetails(IXAudio20MasteringVoice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
- This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
- }
- static FORCEINLINE HRESULT IXAudio20MasteringVoice_SetOutputVoices(IXAudio20MasteringVoice* This,const XAUDIO23_VOICE_SENDS *pSendList) {
- return This->lpVtbl->SetOutputVoices(This,pSendList);
- }
- static FORCEINLINE HRESULT IXAudio20MasteringVoice_SetEffectChain(IXAudio20MasteringVoice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->SetEffectChain(This,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio20MasteringVoice_EnableEffect(IXAudio20MasteringVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio20MasteringVoice_DisableEffect(IXAudio20MasteringVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE void IXAudio20MasteringVoice_GetEffectState(IXAudio20MasteringVoice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
- This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
- }
- static FORCEINLINE HRESULT IXAudio20MasteringVoice_SetEffectParameters(IXAudio20MasteringVoice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
- return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio20MasteringVoice_GetEffectParameters(IXAudio20MasteringVoice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
- return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
- }
- static FORCEINLINE HRESULT IXAudio20MasteringVoice_SetFilterParameters(IXAudio20MasteringVoice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
- return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
- }
- static FORCEINLINE void IXAudio20MasteringVoice_GetFilterParameters(IXAudio20MasteringVoice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
- This->lpVtbl->GetFilterParameters(This,pParameters);
- }
- static FORCEINLINE HRESULT IXAudio20MasteringVoice_SetVolume(IXAudio20MasteringVoice* This,float Volume,UINT32 OperationSet) {
- return This->lpVtbl->SetVolume(This,Volume,OperationSet);
- }
- static FORCEINLINE void IXAudio20MasteringVoice_GetVolume(IXAudio20MasteringVoice* This,float *pVolume) {
- This->lpVtbl->GetVolume(This,pVolume);
- }
- static FORCEINLINE HRESULT IXAudio20MasteringVoice_SetChannelVolumes(IXAudio20MasteringVoice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
- return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
- }
- static FORCEINLINE void IXAudio20MasteringVoice_GetChannelVolumes(IXAudio20MasteringVoice* This,UINT32 Channels,float *pVolumes) {
- This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
- }
- static FORCEINLINE HRESULT IXAudio20MasteringVoice_SetOutputMatrix(IXAudio20MasteringVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
- return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio20MasteringVoice_GetOutputMatrix(IXAudio20MasteringVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
- return This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
- }
- static FORCEINLINE void IXAudio20MasteringVoice_DestroyVoice(IXAudio20MasteringVoice* This) {
- This->lpVtbl->DestroyVoice(This);
- }
- #endif
- #endif
- #endif
- #endif /* __IXAudio20MasteringVoice_INTERFACE_DEFINED__ */
- /*****************************************************************************
- * IXAudio23MasteringVoice interface
- */
- #ifndef __IXAudio23MasteringVoice_INTERFACE_DEFINED__
- #define __IXAudio23MasteringVoice_INTERFACE_DEFINED__
- #if defined(__cplusplus) && !defined(CINTERFACE)
- interface IXAudio23MasteringVoice : public IXAudio23Voice
- {
- };
- #else
- typedef struct IXAudio23MasteringVoiceVtbl {
- BEGIN_INTERFACE
- /*** IXAudio23Voice methods ***/
- void (STDMETHODCALLTYPE *GetVoiceDetails)(
- IXAudio23MasteringVoice *This,
- XAUDIO27_VOICE_DETAILS *pVoiceDetails);
- HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
- IXAudio23MasteringVoice *This,
- const XAUDIO23_VOICE_SENDS *pSendList);
- HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
- IXAudio23MasteringVoice *This,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *EnableEffect)(
- IXAudio23MasteringVoice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *DisableEffect)(
- IXAudio23MasteringVoice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetEffectState)(
- IXAudio23MasteringVoice *This,
- UINT32 EffectIndex,
- WINBOOL *pEnabled);
- HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
- IXAudio23MasteringVoice *This,
- UINT32 EffectIndex,
- const void *pParameters,
- UINT32 ParametersByteSize,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
- IXAudio23MasteringVoice *This,
- UINT32 EffectIndex,
- void *pParameters,
- UINT32 ParametersByteSize);
- HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
- IXAudio23MasteringVoice *This,
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetFilterParameters)(
- IXAudio23MasteringVoice *This,
- XAUDIO2_FILTER_PARAMETERS *pParameters);
- HRESULT (STDMETHODCALLTYPE *SetVolume)(
- IXAudio23MasteringVoice *This,
- float Volume,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetVolume)(
- IXAudio23MasteringVoice *This,
- float *pVolume);
- HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
- IXAudio23MasteringVoice *This,
- UINT32 Channels,
- const float *pVolumes,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetChannelVolumes)(
- IXAudio23MasteringVoice *This,
- UINT32 Channels,
- float *pVolumes);
- HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
- IXAudio23MasteringVoice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- const float *pLevelMatrix,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetOutputMatrix)(
- IXAudio23MasteringVoice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- float *pLevelMatrix);
- void (STDMETHODCALLTYPE *DestroyVoice)(
- IXAudio23MasteringVoice *This);
- END_INTERFACE
- } IXAudio23MasteringVoiceVtbl;
- interface IXAudio23MasteringVoice {
- CONST_VTBL IXAudio23MasteringVoiceVtbl* lpVtbl;
- };
- #ifdef COBJMACROS
- #ifndef WIDL_C_INLINE_WRAPPERS
- /*** IXAudio23Voice methods ***/
- #define IXAudio23MasteringVoice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
- #define IXAudio23MasteringVoice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
- #define IXAudio23MasteringVoice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
- #define IXAudio23MasteringVoice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
- #define IXAudio23MasteringVoice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
- #define IXAudio23MasteringVoice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
- #define IXAudio23MasteringVoice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
- #define IXAudio23MasteringVoice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
- #define IXAudio23MasteringVoice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
- #define IXAudio23MasteringVoice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
- #define IXAudio23MasteringVoice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
- #define IXAudio23MasteringVoice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
- #define IXAudio23MasteringVoice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
- #define IXAudio23MasteringVoice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
- #define IXAudio23MasteringVoice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
- #define IXAudio23MasteringVoice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
- #define IXAudio23MasteringVoice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
- #else
- /*** IXAudio23Voice methods ***/
- static FORCEINLINE void IXAudio23MasteringVoice_GetVoiceDetails(IXAudio23MasteringVoice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
- This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
- }
- static FORCEINLINE HRESULT IXAudio23MasteringVoice_SetOutputVoices(IXAudio23MasteringVoice* This,const XAUDIO23_VOICE_SENDS *pSendList) {
- return This->lpVtbl->SetOutputVoices(This,pSendList);
- }
- static FORCEINLINE HRESULT IXAudio23MasteringVoice_SetEffectChain(IXAudio23MasteringVoice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->SetEffectChain(This,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio23MasteringVoice_EnableEffect(IXAudio23MasteringVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio23MasteringVoice_DisableEffect(IXAudio23MasteringVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE void IXAudio23MasteringVoice_GetEffectState(IXAudio23MasteringVoice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
- This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
- }
- static FORCEINLINE HRESULT IXAudio23MasteringVoice_SetEffectParameters(IXAudio23MasteringVoice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
- return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio23MasteringVoice_GetEffectParameters(IXAudio23MasteringVoice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
- return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
- }
- static FORCEINLINE HRESULT IXAudio23MasteringVoice_SetFilterParameters(IXAudio23MasteringVoice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
- return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
- }
- static FORCEINLINE void IXAudio23MasteringVoice_GetFilterParameters(IXAudio23MasteringVoice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
- This->lpVtbl->GetFilterParameters(This,pParameters);
- }
- static FORCEINLINE HRESULT IXAudio23MasteringVoice_SetVolume(IXAudio23MasteringVoice* This,float Volume,UINT32 OperationSet) {
- return This->lpVtbl->SetVolume(This,Volume,OperationSet);
- }
- static FORCEINLINE void IXAudio23MasteringVoice_GetVolume(IXAudio23MasteringVoice* This,float *pVolume) {
- This->lpVtbl->GetVolume(This,pVolume);
- }
- static FORCEINLINE HRESULT IXAudio23MasteringVoice_SetChannelVolumes(IXAudio23MasteringVoice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
- return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
- }
- static FORCEINLINE void IXAudio23MasteringVoice_GetChannelVolumes(IXAudio23MasteringVoice* This,UINT32 Channels,float *pVolumes) {
- This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
- }
- static FORCEINLINE HRESULT IXAudio23MasteringVoice_SetOutputMatrix(IXAudio23MasteringVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
- return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
- }
- static FORCEINLINE void IXAudio23MasteringVoice_GetOutputMatrix(IXAudio23MasteringVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
- This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
- }
- static FORCEINLINE void IXAudio23MasteringVoice_DestroyVoice(IXAudio23MasteringVoice* This) {
- This->lpVtbl->DestroyVoice(This);
- }
- #endif
- #endif
- #endif
- #endif /* __IXAudio23MasteringVoice_INTERFACE_DEFINED__ */
- /*****************************************************************************
- * IXAudio27MasteringVoice interface
- */
- #ifndef __IXAudio27MasteringVoice_INTERFACE_DEFINED__
- #define __IXAudio27MasteringVoice_INTERFACE_DEFINED__
- #if defined(__cplusplus) && !defined(CINTERFACE)
- interface IXAudio27MasteringVoice : public IXAudio27Voice
- {
- };
- #else
- typedef struct IXAudio27MasteringVoiceVtbl {
- BEGIN_INTERFACE
- /*** IXAudio27Voice methods ***/
- void (STDMETHODCALLTYPE *GetVoiceDetails)(
- IXAudio27MasteringVoice *This,
- XAUDIO27_VOICE_DETAILS *pVoiceDetails);
- HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
- IXAudio27MasteringVoice *This,
- const XAUDIO2_VOICE_SENDS *pSendList);
- HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
- IXAudio27MasteringVoice *This,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *EnableEffect)(
- IXAudio27MasteringVoice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *DisableEffect)(
- IXAudio27MasteringVoice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetEffectState)(
- IXAudio27MasteringVoice *This,
- UINT32 EffectIndex,
- WINBOOL *pEnabled);
- HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
- IXAudio27MasteringVoice *This,
- UINT32 EffectIndex,
- const void *pParameters,
- UINT32 ParametersByteSize,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
- IXAudio27MasteringVoice *This,
- UINT32 EffectIndex,
- void *pParameters,
- UINT32 ParametersByteSize);
- HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
- IXAudio27MasteringVoice *This,
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetFilterParameters)(
- IXAudio27MasteringVoice *This,
- XAUDIO2_FILTER_PARAMETERS *pParameters);
- HRESULT (STDMETHODCALLTYPE *SetOutputFilterParameters)(
- IXAudio27MasteringVoice *This,
- IXAudio2Voice *pDestinationVoice,
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetOutputFilterParameters)(
- IXAudio27MasteringVoice *This,
- IXAudio2Voice *pDestinationVoice,
- XAUDIO2_FILTER_PARAMETERS *pParameters);
- HRESULT (STDMETHODCALLTYPE *SetVolume)(
- IXAudio27MasteringVoice *This,
- float Volume,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetVolume)(
- IXAudio27MasteringVoice *This,
- float *pVolume);
- HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
- IXAudio27MasteringVoice *This,
- UINT32 Channels,
- const float *pVolumes,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetChannelVolumes)(
- IXAudio27MasteringVoice *This,
- UINT32 Channels,
- float *pVolumes);
- HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
- IXAudio27MasteringVoice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- const float *pLevelMatrix,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetOutputMatrix)(
- IXAudio27MasteringVoice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- float *pLevelMatrix);
- void (STDMETHODCALLTYPE *DestroyVoice)(
- IXAudio27MasteringVoice *This);
- END_INTERFACE
- } IXAudio27MasteringVoiceVtbl;
- interface IXAudio27MasteringVoice {
- CONST_VTBL IXAudio27MasteringVoiceVtbl* lpVtbl;
- };
- #ifdef COBJMACROS
- #ifndef WIDL_C_INLINE_WRAPPERS
- /*** IXAudio27Voice methods ***/
- #define IXAudio27MasteringVoice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
- #define IXAudio27MasteringVoice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
- #define IXAudio27MasteringVoice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
- #define IXAudio27MasteringVoice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
- #define IXAudio27MasteringVoice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
- #define IXAudio27MasteringVoice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
- #define IXAudio27MasteringVoice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
- #define IXAudio27MasteringVoice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
- #define IXAudio27MasteringVoice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
- #define IXAudio27MasteringVoice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
- #define IXAudio27MasteringVoice_SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet) (This)->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet)
- #define IXAudio27MasteringVoice_GetOutputFilterParameters(This,pDestinationVoice,pParameters) (This)->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters)
- #define IXAudio27MasteringVoice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
- #define IXAudio27MasteringVoice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
- #define IXAudio27MasteringVoice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
- #define IXAudio27MasteringVoice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
- #define IXAudio27MasteringVoice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
- #define IXAudio27MasteringVoice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
- #define IXAudio27MasteringVoice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
- #else
- /*** IXAudio27Voice methods ***/
- static FORCEINLINE void IXAudio27MasteringVoice_GetVoiceDetails(IXAudio27MasteringVoice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
- This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
- }
- static FORCEINLINE HRESULT IXAudio27MasteringVoice_SetOutputVoices(IXAudio27MasteringVoice* This,const XAUDIO2_VOICE_SENDS *pSendList) {
- return This->lpVtbl->SetOutputVoices(This,pSendList);
- }
- static FORCEINLINE HRESULT IXAudio27MasteringVoice_SetEffectChain(IXAudio27MasteringVoice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->SetEffectChain(This,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio27MasteringVoice_EnableEffect(IXAudio27MasteringVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio27MasteringVoice_DisableEffect(IXAudio27MasteringVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE void IXAudio27MasteringVoice_GetEffectState(IXAudio27MasteringVoice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
- This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
- }
- static FORCEINLINE HRESULT IXAudio27MasteringVoice_SetEffectParameters(IXAudio27MasteringVoice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
- return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio27MasteringVoice_GetEffectParameters(IXAudio27MasteringVoice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
- return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
- }
- static FORCEINLINE HRESULT IXAudio27MasteringVoice_SetFilterParameters(IXAudio27MasteringVoice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
- return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
- }
- static FORCEINLINE void IXAudio27MasteringVoice_GetFilterParameters(IXAudio27MasteringVoice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
- This->lpVtbl->GetFilterParameters(This,pParameters);
- }
- static FORCEINLINE HRESULT IXAudio27MasteringVoice_SetOutputFilterParameters(IXAudio27MasteringVoice* This,IXAudio2Voice *pDestinationVoice,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
- return This->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet);
- }
- static FORCEINLINE void IXAudio27MasteringVoice_GetOutputFilterParameters(IXAudio27MasteringVoice* This,IXAudio2Voice *pDestinationVoice,XAUDIO2_FILTER_PARAMETERS *pParameters) {
- This->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters);
- }
- static FORCEINLINE HRESULT IXAudio27MasteringVoice_SetVolume(IXAudio27MasteringVoice* This,float Volume,UINT32 OperationSet) {
- return This->lpVtbl->SetVolume(This,Volume,OperationSet);
- }
- static FORCEINLINE void IXAudio27MasteringVoice_GetVolume(IXAudio27MasteringVoice* This,float *pVolume) {
- This->lpVtbl->GetVolume(This,pVolume);
- }
- static FORCEINLINE HRESULT IXAudio27MasteringVoice_SetChannelVolumes(IXAudio27MasteringVoice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
- return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
- }
- static FORCEINLINE void IXAudio27MasteringVoice_GetChannelVolumes(IXAudio27MasteringVoice* This,UINT32 Channels,float *pVolumes) {
- This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
- }
- static FORCEINLINE HRESULT IXAudio27MasteringVoice_SetOutputMatrix(IXAudio27MasteringVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
- return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
- }
- static FORCEINLINE void IXAudio27MasteringVoice_GetOutputMatrix(IXAudio27MasteringVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
- This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
- }
- static FORCEINLINE void IXAudio27MasteringVoice_DestroyVoice(IXAudio27MasteringVoice* This) {
- This->lpVtbl->DestroyVoice(This);
- }
- #endif
- #endif
- #endif
- #endif /* __IXAudio27MasteringVoice_INTERFACE_DEFINED__ */
- /*****************************************************************************
- * IXAudio2MasteringVoice interface
- */
- #ifndef __IXAudio2MasteringVoice_INTERFACE_DEFINED__
- #define __IXAudio2MasteringVoice_INTERFACE_DEFINED__
- #if defined(__cplusplus) && !defined(CINTERFACE)
- interface IXAudio2MasteringVoice : public IXAudio2Voice
- {
- virtual void STDMETHODCALLTYPE GetChannelMask(
- DWORD *pChannelMask) = 0;
- };
- #else
- typedef struct IXAudio2MasteringVoiceVtbl {
- BEGIN_INTERFACE
- /*** IXAudio2Voice methods ***/
- void (STDMETHODCALLTYPE *GetVoiceDetails)(
- IXAudio2MasteringVoice *This,
- XAUDIO2_VOICE_DETAILS *pVoiceDetails);
- HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
- IXAudio2MasteringVoice *This,
- const XAUDIO2_VOICE_SENDS *pSendList);
- HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
- IXAudio2MasteringVoice *This,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *EnableEffect)(
- IXAudio2MasteringVoice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *DisableEffect)(
- IXAudio2MasteringVoice *This,
- UINT32 EffectIndex,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetEffectState)(
- IXAudio2MasteringVoice *This,
- UINT32 EffectIndex,
- WINBOOL *pEnabled);
- HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
- IXAudio2MasteringVoice *This,
- UINT32 EffectIndex,
- const void *pParameters,
- UINT32 ParametersByteSize,
- UINT32 OperationSet);
- HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
- IXAudio2MasteringVoice *This,
- UINT32 EffectIndex,
- void *pParameters,
- UINT32 ParametersByteSize);
- HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
- IXAudio2MasteringVoice *This,
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetFilterParameters)(
- IXAudio2MasteringVoice *This,
- XAUDIO2_FILTER_PARAMETERS *pParameters);
- HRESULT (STDMETHODCALLTYPE *SetOutputFilterParameters)(
- IXAudio2MasteringVoice *This,
- IXAudio2Voice *pDestinationVoice,
- const XAUDIO2_FILTER_PARAMETERS *pParameters,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetOutputFilterParameters)(
- IXAudio2MasteringVoice *This,
- IXAudio2Voice *pDestinationVoice,
- XAUDIO2_FILTER_PARAMETERS *pParameters);
- HRESULT (STDMETHODCALLTYPE *SetVolume)(
- IXAudio2MasteringVoice *This,
- float Volume,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetVolume)(
- IXAudio2MasteringVoice *This,
- float *pVolume);
- HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
- IXAudio2MasteringVoice *This,
- UINT32 Channels,
- const float *pVolumes,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetChannelVolumes)(
- IXAudio2MasteringVoice *This,
- UINT32 Channels,
- float *pVolumes);
- HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
- IXAudio2MasteringVoice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- const float *pLevelMatrix,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetOutputMatrix)(
- IXAudio2MasteringVoice *This,
- IXAudio2Voice *pDestinationVoice,
- UINT32 SourceChannels,
- UINT32 DestinationChannels,
- float *pLevelMatrix);
- void (STDMETHODCALLTYPE *DestroyVoice)(
- IXAudio2MasteringVoice *This);
- /*** IXAudio2MasteringVoice methods ***/
- void (STDMETHODCALLTYPE *GetChannelMask)(
- IXAudio2MasteringVoice *This,
- DWORD *pChannelMask);
- END_INTERFACE
- } IXAudio2MasteringVoiceVtbl;
- interface IXAudio2MasteringVoice {
- CONST_VTBL IXAudio2MasteringVoiceVtbl* lpVtbl;
- };
- #ifdef COBJMACROS
- #ifndef WIDL_C_INLINE_WRAPPERS
- /*** IXAudio2Voice methods ***/
- #define IXAudio2MasteringVoice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
- #define IXAudio2MasteringVoice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
- #define IXAudio2MasteringVoice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
- #define IXAudio2MasteringVoice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
- #define IXAudio2MasteringVoice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
- #define IXAudio2MasteringVoice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
- #define IXAudio2MasteringVoice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
- #define IXAudio2MasteringVoice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
- #define IXAudio2MasteringVoice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
- #define IXAudio2MasteringVoice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
- #define IXAudio2MasteringVoice_SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet) (This)->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet)
- #define IXAudio2MasteringVoice_GetOutputFilterParameters(This,pDestinationVoice,pParameters) (This)->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters)
- #define IXAudio2MasteringVoice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
- #define IXAudio2MasteringVoice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
- #define IXAudio2MasteringVoice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
- #define IXAudio2MasteringVoice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
- #define IXAudio2MasteringVoice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
- #define IXAudio2MasteringVoice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
- #define IXAudio2MasteringVoice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
- /*** IXAudio2MasteringVoice methods ***/
- #define IXAudio2MasteringVoice_GetChannelMask(This,pChannelMask) (This)->lpVtbl->GetChannelMask(This,pChannelMask)
- #else
- /*** IXAudio2Voice methods ***/
- static FORCEINLINE void IXAudio2MasteringVoice_GetVoiceDetails(IXAudio2MasteringVoice* This,XAUDIO2_VOICE_DETAILS *pVoiceDetails) {
- This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
- }
- static FORCEINLINE HRESULT IXAudio2MasteringVoice_SetOutputVoices(IXAudio2MasteringVoice* This,const XAUDIO2_VOICE_SENDS *pSendList) {
- return This->lpVtbl->SetOutputVoices(This,pSendList);
- }
- static FORCEINLINE HRESULT IXAudio2MasteringVoice_SetEffectChain(IXAudio2MasteringVoice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->SetEffectChain(This,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio2MasteringVoice_EnableEffect(IXAudio2MasteringVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio2MasteringVoice_DisableEffect(IXAudio2MasteringVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
- return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
- }
- static FORCEINLINE void IXAudio2MasteringVoice_GetEffectState(IXAudio2MasteringVoice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
- This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
- }
- static FORCEINLINE HRESULT IXAudio2MasteringVoice_SetEffectParameters(IXAudio2MasteringVoice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
- return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
- }
- static FORCEINLINE HRESULT IXAudio2MasteringVoice_GetEffectParameters(IXAudio2MasteringVoice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
- return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
- }
- static FORCEINLINE HRESULT IXAudio2MasteringVoice_SetFilterParameters(IXAudio2MasteringVoice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
- return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
- }
- static FORCEINLINE void IXAudio2MasteringVoice_GetFilterParameters(IXAudio2MasteringVoice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
- This->lpVtbl->GetFilterParameters(This,pParameters);
- }
- static FORCEINLINE HRESULT IXAudio2MasteringVoice_SetOutputFilterParameters(IXAudio2MasteringVoice* This,IXAudio2Voice *pDestinationVoice,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
- return This->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet);
- }
- static FORCEINLINE void IXAudio2MasteringVoice_GetOutputFilterParameters(IXAudio2MasteringVoice* This,IXAudio2Voice *pDestinationVoice,XAUDIO2_FILTER_PARAMETERS *pParameters) {
- This->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters);
- }
- static FORCEINLINE HRESULT IXAudio2MasteringVoice_SetVolume(IXAudio2MasteringVoice* This,float Volume,UINT32 OperationSet) {
- return This->lpVtbl->SetVolume(This,Volume,OperationSet);
- }
- static FORCEINLINE void IXAudio2MasteringVoice_GetVolume(IXAudio2MasteringVoice* This,float *pVolume) {
- This->lpVtbl->GetVolume(This,pVolume);
- }
- static FORCEINLINE HRESULT IXAudio2MasteringVoice_SetChannelVolumes(IXAudio2MasteringVoice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
- return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
- }
- static FORCEINLINE void IXAudio2MasteringVoice_GetChannelVolumes(IXAudio2MasteringVoice* This,UINT32 Channels,float *pVolumes) {
- This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
- }
- static FORCEINLINE HRESULT IXAudio2MasteringVoice_SetOutputMatrix(IXAudio2MasteringVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
- return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
- }
- static FORCEINLINE void IXAudio2MasteringVoice_GetOutputMatrix(IXAudio2MasteringVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
- This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
- }
- static FORCEINLINE void IXAudio2MasteringVoice_DestroyVoice(IXAudio2MasteringVoice* This) {
- This->lpVtbl->DestroyVoice(This);
- }
- /*** IXAudio2MasteringVoice methods ***/
- static FORCEINLINE void IXAudio2MasteringVoice_GetChannelMask(IXAudio2MasteringVoice* This,DWORD *pChannelMask) {
- This->lpVtbl->GetChannelMask(This,pChannelMask);
- }
- #endif
- #endif
- #endif
- #endif /* __IXAudio2MasteringVoice_INTERFACE_DEFINED__ */
- /*****************************************************************************
- * IXAudio20VoiceCallback interface
- */
- #ifndef __IXAudio20VoiceCallback_INTERFACE_DEFINED__
- #define __IXAudio20VoiceCallback_INTERFACE_DEFINED__
- #if defined(__cplusplus) && !defined(CINTERFACE)
- interface IXAudio20VoiceCallback
- {
- BEGIN_INTERFACE
- virtual void STDMETHODCALLTYPE OnVoiceProcessingPassStart(
- ) = 0;
- virtual void STDMETHODCALLTYPE OnVoiceProcessingPassEnd(
- ) = 0;
- virtual void STDMETHODCALLTYPE OnStreamEnd(
- ) = 0;
- virtual void STDMETHODCALLTYPE OnBufferStart(
- void *pBufferContext) = 0;
- virtual void STDMETHODCALLTYPE OnBufferEnd(
- void *pBufferContext) = 0;
- virtual void STDMETHODCALLTYPE OnLoopEnd(
- void *pBufferContext) = 0;
- virtual void STDMETHODCALLTYPE OnVoiceError(
- void *pBuffercontext,
- HRESULT Error) = 0;
- END_INTERFACE
- };
- #else
- typedef struct IXAudio20VoiceCallbackVtbl {
- BEGIN_INTERFACE
- /*** IXAudio20VoiceCallback methods ***/
- void (STDMETHODCALLTYPE *OnVoiceProcessingPassStart)(
- IXAudio20VoiceCallback *This);
- void (STDMETHODCALLTYPE *OnVoiceProcessingPassEnd)(
- IXAudio20VoiceCallback *This);
- void (STDMETHODCALLTYPE *OnStreamEnd)(
- IXAudio20VoiceCallback *This);
- void (STDMETHODCALLTYPE *OnBufferStart)(
- IXAudio20VoiceCallback *This,
- void *pBufferContext);
- void (STDMETHODCALLTYPE *OnBufferEnd)(
- IXAudio20VoiceCallback *This,
- void *pBufferContext);
- void (STDMETHODCALLTYPE *OnLoopEnd)(
- IXAudio20VoiceCallback *This,
- void *pBufferContext);
- void (STDMETHODCALLTYPE *OnVoiceError)(
- IXAudio20VoiceCallback *This,
- void *pBuffercontext,
- HRESULT Error);
- END_INTERFACE
- } IXAudio20VoiceCallbackVtbl;
- interface IXAudio20VoiceCallback {
- CONST_VTBL IXAudio20VoiceCallbackVtbl* lpVtbl;
- };
- #ifdef COBJMACROS
- #ifndef WIDL_C_INLINE_WRAPPERS
- /*** IXAudio20VoiceCallback methods ***/
- #define IXAudio20VoiceCallback_OnVoiceProcessingPassStart(This) (This)->lpVtbl->OnVoiceProcessingPassStart(This)
- #define IXAudio20VoiceCallback_OnVoiceProcessingPassEnd(This) (This)->lpVtbl->OnVoiceProcessingPassEnd(This)
- #define IXAudio20VoiceCallback_OnStreamEnd(This) (This)->lpVtbl->OnStreamEnd(This)
- #define IXAudio20VoiceCallback_OnBufferStart(This,pBufferContext) (This)->lpVtbl->OnBufferStart(This,pBufferContext)
- #define IXAudio20VoiceCallback_OnBufferEnd(This,pBufferContext) (This)->lpVtbl->OnBufferEnd(This,pBufferContext)
- #define IXAudio20VoiceCallback_OnLoopEnd(This,pBufferContext) (This)->lpVtbl->OnLoopEnd(This,pBufferContext)
- #define IXAudio20VoiceCallback_OnVoiceError(This,pBuffercontext,Error) (This)->lpVtbl->OnVoiceError(This,pBuffercontext,Error)
- #else
- /*** IXAudio20VoiceCallback methods ***/
- static FORCEINLINE void IXAudio20VoiceCallback_OnVoiceProcessingPassStart(IXAudio20VoiceCallback* This) {
- This->lpVtbl->OnVoiceProcessingPassStart(This);
- }
- static FORCEINLINE void IXAudio20VoiceCallback_OnVoiceProcessingPassEnd(IXAudio20VoiceCallback* This) {
- This->lpVtbl->OnVoiceProcessingPassEnd(This);
- }
- static FORCEINLINE void IXAudio20VoiceCallback_OnStreamEnd(IXAudio20VoiceCallback* This) {
- This->lpVtbl->OnStreamEnd(This);
- }
- static FORCEINLINE void IXAudio20VoiceCallback_OnBufferStart(IXAudio20VoiceCallback* This,void *pBufferContext) {
- This->lpVtbl->OnBufferStart(This,pBufferContext);
- }
- static FORCEINLINE void IXAudio20VoiceCallback_OnBufferEnd(IXAudio20VoiceCallback* This,void *pBufferContext) {
- This->lpVtbl->OnBufferEnd(This,pBufferContext);
- }
- static FORCEINLINE void IXAudio20VoiceCallback_OnLoopEnd(IXAudio20VoiceCallback* This,void *pBufferContext) {
- This->lpVtbl->OnLoopEnd(This,pBufferContext);
- }
- static FORCEINLINE void IXAudio20VoiceCallback_OnVoiceError(IXAudio20VoiceCallback* This,void *pBuffercontext,HRESULT Error) {
- This->lpVtbl->OnVoiceError(This,pBuffercontext,Error);
- }
- #endif
- #endif
- #endif
- #endif /* __IXAudio20VoiceCallback_INTERFACE_DEFINED__ */
- /*****************************************************************************
- * IXAudio2VoiceCallback interface
- */
- #ifndef __IXAudio2VoiceCallback_INTERFACE_DEFINED__
- #define __IXAudio2VoiceCallback_INTERFACE_DEFINED__
- #if defined(__cplusplus) && !defined(CINTERFACE)
- interface IXAudio2VoiceCallback
- {
- BEGIN_INTERFACE
- virtual void STDMETHODCALLTYPE OnVoiceProcessingPassStart(
- UINT32 BytesRequired) = 0;
- virtual void STDMETHODCALLTYPE OnVoiceProcessingPassEnd(
- ) = 0;
- virtual void STDMETHODCALLTYPE OnStreamEnd(
- ) = 0;
- virtual void STDMETHODCALLTYPE OnBufferStart(
- void *pBufferContext) = 0;
- virtual void STDMETHODCALLTYPE OnBufferEnd(
- void *pBufferContext) = 0;
- virtual void STDMETHODCALLTYPE OnLoopEnd(
- void *pBufferContext) = 0;
- virtual void STDMETHODCALLTYPE OnVoiceError(
- void *pBuffercontext,
- HRESULT Error) = 0;
- END_INTERFACE
- };
- #else
- typedef struct IXAudio2VoiceCallbackVtbl {
- BEGIN_INTERFACE
- /*** IXAudio2VoiceCallback methods ***/
- void (STDMETHODCALLTYPE *OnVoiceProcessingPassStart)(
- IXAudio2VoiceCallback *This,
- UINT32 BytesRequired);
- void (STDMETHODCALLTYPE *OnVoiceProcessingPassEnd)(
- IXAudio2VoiceCallback *This);
- void (STDMETHODCALLTYPE *OnStreamEnd)(
- IXAudio2VoiceCallback *This);
- void (STDMETHODCALLTYPE *OnBufferStart)(
- IXAudio2VoiceCallback *This,
- void *pBufferContext);
- void (STDMETHODCALLTYPE *OnBufferEnd)(
- IXAudio2VoiceCallback *This,
- void *pBufferContext);
- void (STDMETHODCALLTYPE *OnLoopEnd)(
- IXAudio2VoiceCallback *This,
- void *pBufferContext);
- void (STDMETHODCALLTYPE *OnVoiceError)(
- IXAudio2VoiceCallback *This,
- void *pBuffercontext,
- HRESULT Error);
- END_INTERFACE
- } IXAudio2VoiceCallbackVtbl;
- interface IXAudio2VoiceCallback {
- CONST_VTBL IXAudio2VoiceCallbackVtbl* lpVtbl;
- };
- #ifdef COBJMACROS
- #ifndef WIDL_C_INLINE_WRAPPERS
- /*** IXAudio2VoiceCallback methods ***/
- #define IXAudio2VoiceCallback_OnVoiceProcessingPassStart(This,BytesRequired) (This)->lpVtbl->OnVoiceProcessingPassStart(This,BytesRequired)
- #define IXAudio2VoiceCallback_OnVoiceProcessingPassEnd(This) (This)->lpVtbl->OnVoiceProcessingPassEnd(This)
- #define IXAudio2VoiceCallback_OnStreamEnd(This) (This)->lpVtbl->OnStreamEnd(This)
- #define IXAudio2VoiceCallback_OnBufferStart(This,pBufferContext) (This)->lpVtbl->OnBufferStart(This,pBufferContext)
- #define IXAudio2VoiceCallback_OnBufferEnd(This,pBufferContext) (This)->lpVtbl->OnBufferEnd(This,pBufferContext)
- #define IXAudio2VoiceCallback_OnLoopEnd(This,pBufferContext) (This)->lpVtbl->OnLoopEnd(This,pBufferContext)
- #define IXAudio2VoiceCallback_OnVoiceError(This,pBuffercontext,Error) (This)->lpVtbl->OnVoiceError(This,pBuffercontext,Error)
- #else
- /*** IXAudio2VoiceCallback methods ***/
- static FORCEINLINE void IXAudio2VoiceCallback_OnVoiceProcessingPassStart(IXAudio2VoiceCallback* This,UINT32 BytesRequired) {
- This->lpVtbl->OnVoiceProcessingPassStart(This,BytesRequired);
- }
- static FORCEINLINE void IXAudio2VoiceCallback_OnVoiceProcessingPassEnd(IXAudio2VoiceCallback* This) {
- This->lpVtbl->OnVoiceProcessingPassEnd(This);
- }
- static FORCEINLINE void IXAudio2VoiceCallback_OnStreamEnd(IXAudio2VoiceCallback* This) {
- This->lpVtbl->OnStreamEnd(This);
- }
- static FORCEINLINE void IXAudio2VoiceCallback_OnBufferStart(IXAudio2VoiceCallback* This,void *pBufferContext) {
- This->lpVtbl->OnBufferStart(This,pBufferContext);
- }
- static FORCEINLINE void IXAudio2VoiceCallback_OnBufferEnd(IXAudio2VoiceCallback* This,void *pBufferContext) {
- This->lpVtbl->OnBufferEnd(This,pBufferContext);
- }
- static FORCEINLINE void IXAudio2VoiceCallback_OnLoopEnd(IXAudio2VoiceCallback* This,void *pBufferContext) {
- This->lpVtbl->OnLoopEnd(This,pBufferContext);
- }
- static FORCEINLINE void IXAudio2VoiceCallback_OnVoiceError(IXAudio2VoiceCallback* This,void *pBuffercontext,HRESULT Error) {
- This->lpVtbl->OnVoiceError(This,pBuffercontext,Error);
- }
- #endif
- #endif
- #endif
- #endif /* __IXAudio2VoiceCallback_INTERFACE_DEFINED__ */
- typedef struct XAUDIO2_DEBUG_CONFIGURATION {
- UINT32 TraceMask;
- UINT32 BreakMask;
- WINBOOL LogThreadID;
- WINBOOL LogFileline;
- WINBOOL LogFunctionName;
- WINBOOL LogTiming;
- } XAUDIO2_DEBUG_CONFIGURATION;
- /*****************************************************************************
- * IXAudio20 interface
- */
- #ifndef __IXAudio20_INTERFACE_DEFINED__
- #define __IXAudio20_INTERFACE_DEFINED__
- DEFINE_GUID(IID_IXAudio20, 0x8bcf1f58, 0x9fe7, 0x4583, 0x8a,0xc6, 0xe2,0xad,0xc4,0x65,0xc8,0xbb);
- #if defined(__cplusplus) && !defined(CINTERFACE)
- MIDL_INTERFACE("8bcf1f58-9fe7-4583-8ac6-e2adc465c8bb")
- IXAudio20 : public IUnknown
- {
- virtual HRESULT STDMETHODCALLTYPE GetDeviceCount(
- UINT32 *pCount) = 0;
- virtual HRESULT STDMETHODCALLTYPE GetDeviceDetails(
- UINT32 Index,
- XAUDIO2_DEVICE_DETAILS *pDeviceDetails) = 0;
- virtual HRESULT STDMETHODCALLTYPE Initialize(
- UINT32 Flags = 0,
- XAUDIO2_PROCESSOR XAudio2Processor = XAUDIO2_DEFAULT_PROCESSOR) = 0;
- virtual HRESULT STDMETHODCALLTYPE RegisterForCallbacks(
- IXAudio2EngineCallback *pCallback) = 0;
- virtual void STDMETHODCALLTYPE UnregisterForCallbacks(
- IXAudio2EngineCallback *pCallback) = 0;
- virtual HRESULT STDMETHODCALLTYPE CreateSourceVoice(
- IXAudio2SourceVoice **ppSourceVoice,
- const WAVEFORMATEX *pSourceFormat,
- UINT32 Flags = 0,
- float MaxFrequencyRatio = XAUDIO2_DEFAULT_FREQ_RATIO,
- IXAudio2VoiceCallback *pCallback = 0,
- const XAUDIO23_VOICE_SENDS *pSendList = 0,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
- virtual HRESULT STDMETHODCALLTYPE CreateSubmixVoice(
- IXAudio2SubmixVoice **ppSubmixVoice,
- UINT32 InputChannels,
- UINT32 InputSampleRate,
- UINT32 Flags = 0,
- UINT32 ProcessingStage = 0,
- const XAUDIO23_VOICE_SENDS *pSendList = 0,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
- virtual HRESULT STDMETHODCALLTYPE CreateMasteringVoice(
- IXAudio2MasteringVoice **ppMasteringVoice,
- UINT32 InputChannels = XAUDIO2_DEFAULT_CHANNELS,
- UINT32 InputSampleRate = XAUDIO2_DEFAULT_SAMPLERATE,
- UINT32 Flags = 0,
- UINT32 DeviceIndex = 0,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
- virtual HRESULT STDMETHODCALLTYPE StartEngine(
- ) = 0;
- virtual void STDMETHODCALLTYPE StopEngine(
- ) = 0;
- virtual HRESULT STDMETHODCALLTYPE CommitChanges(
- UINT32 OperationSet) = 0;
- virtual void STDMETHODCALLTYPE GetPerformanceData(
- XAUDIO20_PERFORMANCE_DATA *pPerfData) = 0;
- virtual void STDMETHODCALLTYPE SetDebugConfiguration(
- const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,
- void *pReserved = 0) = 0;
- };
- #ifdef __CRT_UUID_DECL
- __CRT_UUID_DECL(IXAudio20, 0x8bcf1f58, 0x9fe7, 0x4583, 0x8a,0xc6, 0xe2,0xad,0xc4,0x65,0xc8,0xbb)
- #endif
- #else
- typedef struct IXAudio20Vtbl {
- BEGIN_INTERFACE
- /*** IUnknown methods ***/
- HRESULT (STDMETHODCALLTYPE *QueryInterface)(
- IXAudio20 *This,
- REFIID riid,
- void **ppvObject);
- ULONG (STDMETHODCALLTYPE *AddRef)(
- IXAudio20 *This);
- ULONG (STDMETHODCALLTYPE *Release)(
- IXAudio20 *This);
- /*** IXAudio20 methods ***/
- HRESULT (STDMETHODCALLTYPE *GetDeviceCount)(
- IXAudio20 *This,
- UINT32 *pCount);
- HRESULT (STDMETHODCALLTYPE *GetDeviceDetails)(
- IXAudio20 *This,
- UINT32 Index,
- XAUDIO2_DEVICE_DETAILS *pDeviceDetails);
- HRESULT (STDMETHODCALLTYPE *Initialize)(
- IXAudio20 *This,
- UINT32 Flags,
- XAUDIO2_PROCESSOR XAudio2Processor);
- HRESULT (STDMETHODCALLTYPE *RegisterForCallbacks)(
- IXAudio20 *This,
- IXAudio2EngineCallback *pCallback);
- void (STDMETHODCALLTYPE *UnregisterForCallbacks)(
- IXAudio20 *This,
- IXAudio2EngineCallback *pCallback);
- HRESULT (STDMETHODCALLTYPE *CreateSourceVoice)(
- IXAudio20 *This,
- IXAudio2SourceVoice **ppSourceVoice,
- const WAVEFORMATEX *pSourceFormat,
- UINT32 Flags,
- float MaxFrequencyRatio,
- IXAudio2VoiceCallback *pCallback,
- const XAUDIO23_VOICE_SENDS *pSendList,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *CreateSubmixVoice)(
- IXAudio20 *This,
- IXAudio2SubmixVoice **ppSubmixVoice,
- UINT32 InputChannels,
- UINT32 InputSampleRate,
- UINT32 Flags,
- UINT32 ProcessingStage,
- const XAUDIO23_VOICE_SENDS *pSendList,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *CreateMasteringVoice)(
- IXAudio20 *This,
- IXAudio2MasteringVoice **ppMasteringVoice,
- UINT32 InputChannels,
- UINT32 InputSampleRate,
- UINT32 Flags,
- UINT32 DeviceIndex,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *StartEngine)(
- IXAudio20 *This);
- void (STDMETHODCALLTYPE *StopEngine)(
- IXAudio20 *This);
- HRESULT (STDMETHODCALLTYPE *CommitChanges)(
- IXAudio20 *This,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetPerformanceData)(
- IXAudio20 *This,
- XAUDIO20_PERFORMANCE_DATA *pPerfData);
- void (STDMETHODCALLTYPE *SetDebugConfiguration)(
- IXAudio20 *This,
- const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,
- void *pReserved);
- END_INTERFACE
- } IXAudio20Vtbl;
- interface IXAudio20 {
- CONST_VTBL IXAudio20Vtbl* lpVtbl;
- };
- #ifdef COBJMACROS
- #ifndef WIDL_C_INLINE_WRAPPERS
- /*** IUnknown methods ***/
- #define IXAudio20_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
- #define IXAudio20_AddRef(This) (This)->lpVtbl->AddRef(This)
- #define IXAudio20_Release(This) (This)->lpVtbl->Release(This)
- /*** IXAudio20 methods ***/
- #define IXAudio20_GetDeviceCount(This,pCount) (This)->lpVtbl->GetDeviceCount(This,pCount)
- #define IXAudio20_GetDeviceDetails(This,Index,pDeviceDetails) (This)->lpVtbl->GetDeviceDetails(This,Index,pDeviceDetails)
- #define IXAudio20_Initialize(This,Flags,XAudio2Processor) (This)->lpVtbl->Initialize(This,Flags,XAudio2Processor)
- #define IXAudio20_RegisterForCallbacks(This,pCallback) (This)->lpVtbl->RegisterForCallbacks(This,pCallback)
- #define IXAudio20_UnregisterForCallbacks(This,pCallback) (This)->lpVtbl->UnregisterForCallbacks(This,pCallback)
- #define IXAudio20_CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain) (This)->lpVtbl->CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain)
- #define IXAudio20_CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain) (This)->lpVtbl->CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain)
- #define IXAudio20_CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain) (This)->lpVtbl->CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain)
- #define IXAudio20_StartEngine(This) (This)->lpVtbl->StartEngine(This)
- #define IXAudio20_StopEngine(This) (This)->lpVtbl->StopEngine(This)
- #define IXAudio20_CommitChanges(This,OperationSet) (This)->lpVtbl->CommitChanges(This,OperationSet)
- #define IXAudio20_GetPerformanceData(This,pPerfData) (This)->lpVtbl->GetPerformanceData(This,pPerfData)
- #define IXAudio20_SetDebugConfiguration(This,pDebugConfiguration,pReserved) (This)->lpVtbl->SetDebugConfiguration(This,pDebugConfiguration,pReserved)
- #else
- /*** IUnknown methods ***/
- static FORCEINLINE HRESULT IXAudio20_QueryInterface(IXAudio20* This,REFIID riid,void **ppvObject) {
- return This->lpVtbl->QueryInterface(This,riid,ppvObject);
- }
- static FORCEINLINE ULONG IXAudio20_AddRef(IXAudio20* This) {
- return This->lpVtbl->AddRef(This);
- }
- static FORCEINLINE ULONG IXAudio20_Release(IXAudio20* This) {
- return This->lpVtbl->Release(This);
- }
- /*** IXAudio20 methods ***/
- static FORCEINLINE HRESULT IXAudio20_GetDeviceCount(IXAudio20* This,UINT32 *pCount) {
- return This->lpVtbl->GetDeviceCount(This,pCount);
- }
- static FORCEINLINE HRESULT IXAudio20_GetDeviceDetails(IXAudio20* This,UINT32 Index,XAUDIO2_DEVICE_DETAILS *pDeviceDetails) {
- return This->lpVtbl->GetDeviceDetails(This,Index,pDeviceDetails);
- }
- static FORCEINLINE HRESULT IXAudio20_Initialize(IXAudio20* This,UINT32 Flags,XAUDIO2_PROCESSOR XAudio2Processor) {
- return This->lpVtbl->Initialize(This,Flags,XAudio2Processor);
- }
- static FORCEINLINE HRESULT IXAudio20_RegisterForCallbacks(IXAudio20* This,IXAudio2EngineCallback *pCallback) {
- return This->lpVtbl->RegisterForCallbacks(This,pCallback);
- }
- static FORCEINLINE void IXAudio20_UnregisterForCallbacks(IXAudio20* This,IXAudio2EngineCallback *pCallback) {
- This->lpVtbl->UnregisterForCallbacks(This,pCallback);
- }
- static FORCEINLINE HRESULT IXAudio20_CreateSourceVoice(IXAudio20* This,IXAudio2SourceVoice **ppSourceVoice,const WAVEFORMATEX *pSourceFormat,UINT32 Flags,float MaxFrequencyRatio,IXAudio2VoiceCallback *pCallback,const XAUDIO23_VOICE_SENDS *pSendList,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio20_CreateSubmixVoice(IXAudio20* This,IXAudio2SubmixVoice **ppSubmixVoice,UINT32 InputChannels,UINT32 InputSampleRate,UINT32 Flags,UINT32 ProcessingStage,const XAUDIO23_VOICE_SENDS *pSendList,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio20_CreateMasteringVoice(IXAudio20* This,IXAudio2MasteringVoice **ppMasteringVoice,UINT32 InputChannels,UINT32 InputSampleRate,UINT32 Flags,UINT32 DeviceIndex,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio20_StartEngine(IXAudio20* This) {
- return This->lpVtbl->StartEngine(This);
- }
- static FORCEINLINE void IXAudio20_StopEngine(IXAudio20* This) {
- This->lpVtbl->StopEngine(This);
- }
- static FORCEINLINE HRESULT IXAudio20_CommitChanges(IXAudio20* This,UINT32 OperationSet) {
- return This->lpVtbl->CommitChanges(This,OperationSet);
- }
- static FORCEINLINE void IXAudio20_GetPerformanceData(IXAudio20* This,XAUDIO20_PERFORMANCE_DATA *pPerfData) {
- This->lpVtbl->GetPerformanceData(This,pPerfData);
- }
- static FORCEINLINE void IXAudio20_SetDebugConfiguration(IXAudio20* This,const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,void *pReserved) {
- This->lpVtbl->SetDebugConfiguration(This,pDebugConfiguration,pReserved);
- }
- #endif
- #endif
- #endif
- #endif /* __IXAudio20_INTERFACE_DEFINED__ */
- /*****************************************************************************
- * IXAudio22 interface
- */
- #ifndef __IXAudio22_INTERFACE_DEFINED__
- #define __IXAudio22_INTERFACE_DEFINED__
- DEFINE_GUID(IID_IXAudio22, 0x8bcf1f58, 0x9fe7, 0x4583, 0x8a,0xc6, 0xe2,0xad,0xc4,0x65,0xc8,0xbb);
- #if defined(__cplusplus) && !defined(CINTERFACE)
- MIDL_INTERFACE("8bcf1f58-9fe7-4583-8ac6-e2adc465c8bb")
- IXAudio22 : public IUnknown
- {
- virtual HRESULT STDMETHODCALLTYPE GetDeviceCount(
- UINT32 *pCount) = 0;
- virtual HRESULT STDMETHODCALLTYPE GetDeviceDetails(
- UINT32 Index,
- XAUDIO2_DEVICE_DETAILS *pDeviceDetails) = 0;
- virtual HRESULT STDMETHODCALLTYPE Initialize(
- UINT32 Flags = 0,
- XAUDIO2_PROCESSOR XAudio2Processor = XAUDIO2_DEFAULT_PROCESSOR) = 0;
- virtual HRESULT STDMETHODCALLTYPE RegisterForCallbacks(
- IXAudio2EngineCallback *pCallback) = 0;
- virtual void STDMETHODCALLTYPE UnregisterForCallbacks(
- IXAudio2EngineCallback *pCallback) = 0;
- virtual HRESULT STDMETHODCALLTYPE CreateSourceVoice(
- IXAudio2SourceVoice **ppSourceVoice,
- const WAVEFORMATEX *pSourceFormat,
- UINT32 Flags = 0,
- float MaxFrequencyRatio = XAUDIO2_DEFAULT_FREQ_RATIO,
- IXAudio2VoiceCallback *pCallback = 0,
- const XAUDIO23_VOICE_SENDS *pSendList = 0,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
- virtual HRESULT STDMETHODCALLTYPE CreateSubmixVoice(
- IXAudio2SubmixVoice **ppSubmixVoice,
- UINT32 InputChannels,
- UINT32 InputSampleRate,
- UINT32 Flags = 0,
- UINT32 ProcessingStage = 0,
- const XAUDIO23_VOICE_SENDS *pSendList = 0,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
- virtual HRESULT STDMETHODCALLTYPE CreateMasteringVoice(
- IXAudio2MasteringVoice **ppMasteringVoice,
- UINT32 InputChannels = XAUDIO2_DEFAULT_CHANNELS,
- UINT32 InputSampleRate = XAUDIO2_DEFAULT_SAMPLERATE,
- UINT32 Flags = 0,
- UINT32 DeviceIndex = 0,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
- virtual HRESULT STDMETHODCALLTYPE StartEngine(
- ) = 0;
- virtual void STDMETHODCALLTYPE StopEngine(
- ) = 0;
- virtual HRESULT STDMETHODCALLTYPE CommitChanges(
- UINT32 OperationSet) = 0;
- virtual void STDMETHODCALLTYPE GetPerformanceData(
- XAUDIO22_PERFORMANCE_DATA *pPerfData) = 0;
- virtual void STDMETHODCALLTYPE SetDebugConfiguration(
- const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,
- void *pReserved = 0) = 0;
- };
- #ifdef __CRT_UUID_DECL
- __CRT_UUID_DECL(IXAudio22, 0x8bcf1f58, 0x9fe7, 0x4583, 0x8a,0xc6, 0xe2,0xad,0xc4,0x65,0xc8,0xbb)
- #endif
- #else
- typedef struct IXAudio22Vtbl {
- BEGIN_INTERFACE
- /*** IUnknown methods ***/
- HRESULT (STDMETHODCALLTYPE *QueryInterface)(
- IXAudio22 *This,
- REFIID riid,
- void **ppvObject);
- ULONG (STDMETHODCALLTYPE *AddRef)(
- IXAudio22 *This);
- ULONG (STDMETHODCALLTYPE *Release)(
- IXAudio22 *This);
- /*** IXAudio22 methods ***/
- HRESULT (STDMETHODCALLTYPE *GetDeviceCount)(
- IXAudio22 *This,
- UINT32 *pCount);
- HRESULT (STDMETHODCALLTYPE *GetDeviceDetails)(
- IXAudio22 *This,
- UINT32 Index,
- XAUDIO2_DEVICE_DETAILS *pDeviceDetails);
- HRESULT (STDMETHODCALLTYPE *Initialize)(
- IXAudio22 *This,
- UINT32 Flags,
- XAUDIO2_PROCESSOR XAudio2Processor);
- HRESULT (STDMETHODCALLTYPE *RegisterForCallbacks)(
- IXAudio22 *This,
- IXAudio2EngineCallback *pCallback);
- void (STDMETHODCALLTYPE *UnregisterForCallbacks)(
- IXAudio22 *This,
- IXAudio2EngineCallback *pCallback);
- HRESULT (STDMETHODCALLTYPE *CreateSourceVoice)(
- IXAudio22 *This,
- IXAudio2SourceVoice **ppSourceVoice,
- const WAVEFORMATEX *pSourceFormat,
- UINT32 Flags,
- float MaxFrequencyRatio,
- IXAudio2VoiceCallback *pCallback,
- const XAUDIO23_VOICE_SENDS *pSendList,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *CreateSubmixVoice)(
- IXAudio22 *This,
- IXAudio2SubmixVoice **ppSubmixVoice,
- UINT32 InputChannels,
- UINT32 InputSampleRate,
- UINT32 Flags,
- UINT32 ProcessingStage,
- const XAUDIO23_VOICE_SENDS *pSendList,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *CreateMasteringVoice)(
- IXAudio22 *This,
- IXAudio2MasteringVoice **ppMasteringVoice,
- UINT32 InputChannels,
- UINT32 InputSampleRate,
- UINT32 Flags,
- UINT32 DeviceIndex,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *StartEngine)(
- IXAudio22 *This);
- void (STDMETHODCALLTYPE *StopEngine)(
- IXAudio22 *This);
- HRESULT (STDMETHODCALLTYPE *CommitChanges)(
- IXAudio22 *This,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetPerformanceData)(
- IXAudio22 *This,
- XAUDIO22_PERFORMANCE_DATA *pPerfData);
- void (STDMETHODCALLTYPE *SetDebugConfiguration)(
- IXAudio22 *This,
- const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,
- void *pReserved);
- END_INTERFACE
- } IXAudio22Vtbl;
- interface IXAudio22 {
- CONST_VTBL IXAudio22Vtbl* lpVtbl;
- };
- #ifdef COBJMACROS
- #ifndef WIDL_C_INLINE_WRAPPERS
- /*** IUnknown methods ***/
- #define IXAudio22_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
- #define IXAudio22_AddRef(This) (This)->lpVtbl->AddRef(This)
- #define IXAudio22_Release(This) (This)->lpVtbl->Release(This)
- /*** IXAudio22 methods ***/
- #define IXAudio22_GetDeviceCount(This,pCount) (This)->lpVtbl->GetDeviceCount(This,pCount)
- #define IXAudio22_GetDeviceDetails(This,Index,pDeviceDetails) (This)->lpVtbl->GetDeviceDetails(This,Index,pDeviceDetails)
- #define IXAudio22_Initialize(This,Flags,XAudio2Processor) (This)->lpVtbl->Initialize(This,Flags,XAudio2Processor)
- #define IXAudio22_RegisterForCallbacks(This,pCallback) (This)->lpVtbl->RegisterForCallbacks(This,pCallback)
- #define IXAudio22_UnregisterForCallbacks(This,pCallback) (This)->lpVtbl->UnregisterForCallbacks(This,pCallback)
- #define IXAudio22_CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain) (This)->lpVtbl->CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain)
- #define IXAudio22_CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain) (This)->lpVtbl->CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain)
- #define IXAudio22_CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain) (This)->lpVtbl->CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain)
- #define IXAudio22_StartEngine(This) (This)->lpVtbl->StartEngine(This)
- #define IXAudio22_StopEngine(This) (This)->lpVtbl->StopEngine(This)
- #define IXAudio22_CommitChanges(This,OperationSet) (This)->lpVtbl->CommitChanges(This,OperationSet)
- #define IXAudio22_GetPerformanceData(This,pPerfData) (This)->lpVtbl->GetPerformanceData(This,pPerfData)
- #define IXAudio22_SetDebugConfiguration(This,pDebugConfiguration,pReserved) (This)->lpVtbl->SetDebugConfiguration(This,pDebugConfiguration,pReserved)
- #else
- /*** IUnknown methods ***/
- static FORCEINLINE HRESULT IXAudio22_QueryInterface(IXAudio22* This,REFIID riid,void **ppvObject) {
- return This->lpVtbl->QueryInterface(This,riid,ppvObject);
- }
- static FORCEINLINE ULONG IXAudio22_AddRef(IXAudio22* This) {
- return This->lpVtbl->AddRef(This);
- }
- static FORCEINLINE ULONG IXAudio22_Release(IXAudio22* This) {
- return This->lpVtbl->Release(This);
- }
- /*** IXAudio22 methods ***/
- static FORCEINLINE HRESULT IXAudio22_GetDeviceCount(IXAudio22* This,UINT32 *pCount) {
- return This->lpVtbl->GetDeviceCount(This,pCount);
- }
- static FORCEINLINE HRESULT IXAudio22_GetDeviceDetails(IXAudio22* This,UINT32 Index,XAUDIO2_DEVICE_DETAILS *pDeviceDetails) {
- return This->lpVtbl->GetDeviceDetails(This,Index,pDeviceDetails);
- }
- static FORCEINLINE HRESULT IXAudio22_Initialize(IXAudio22* This,UINT32 Flags,XAUDIO2_PROCESSOR XAudio2Processor) {
- return This->lpVtbl->Initialize(This,Flags,XAudio2Processor);
- }
- static FORCEINLINE HRESULT IXAudio22_RegisterForCallbacks(IXAudio22* This,IXAudio2EngineCallback *pCallback) {
- return This->lpVtbl->RegisterForCallbacks(This,pCallback);
- }
- static FORCEINLINE void IXAudio22_UnregisterForCallbacks(IXAudio22* This,IXAudio2EngineCallback *pCallback) {
- This->lpVtbl->UnregisterForCallbacks(This,pCallback);
- }
- static FORCEINLINE HRESULT IXAudio22_CreateSourceVoice(IXAudio22* This,IXAudio2SourceVoice **ppSourceVoice,const WAVEFORMATEX *pSourceFormat,UINT32 Flags,float MaxFrequencyRatio,IXAudio2VoiceCallback *pCallback,const XAUDIO23_VOICE_SENDS *pSendList,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio22_CreateSubmixVoice(IXAudio22* This,IXAudio2SubmixVoice **ppSubmixVoice,UINT32 InputChannels,UINT32 InputSampleRate,UINT32 Flags,UINT32 ProcessingStage,const XAUDIO23_VOICE_SENDS *pSendList,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio22_CreateMasteringVoice(IXAudio22* This,IXAudio2MasteringVoice **ppMasteringVoice,UINT32 InputChannels,UINT32 InputSampleRate,UINT32 Flags,UINT32 DeviceIndex,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio22_StartEngine(IXAudio22* This) {
- return This->lpVtbl->StartEngine(This);
- }
- static FORCEINLINE void IXAudio22_StopEngine(IXAudio22* This) {
- This->lpVtbl->StopEngine(This);
- }
- static FORCEINLINE HRESULT IXAudio22_CommitChanges(IXAudio22* This,UINT32 OperationSet) {
- return This->lpVtbl->CommitChanges(This,OperationSet);
- }
- static FORCEINLINE void IXAudio22_GetPerformanceData(IXAudio22* This,XAUDIO22_PERFORMANCE_DATA *pPerfData) {
- This->lpVtbl->GetPerformanceData(This,pPerfData);
- }
- static FORCEINLINE void IXAudio22_SetDebugConfiguration(IXAudio22* This,const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,void *pReserved) {
- This->lpVtbl->SetDebugConfiguration(This,pDebugConfiguration,pReserved);
- }
- #endif
- #endif
- #endif
- #endif /* __IXAudio22_INTERFACE_DEFINED__ */
- /*****************************************************************************
- * IXAudio23 interface
- */
- #ifndef __IXAudio23_INTERFACE_DEFINED__
- #define __IXAudio23_INTERFACE_DEFINED__
- DEFINE_GUID(IID_IXAudio23, 0x8bcf1f58, 0x9fe7, 0x4583, 0x8a,0xc6, 0xe2,0xad,0xc4,0x65,0xc8,0xbb);
- #if defined(__cplusplus) && !defined(CINTERFACE)
- MIDL_INTERFACE("8bcf1f58-9fe7-4583-8ac6-e2adc465c8bb")
- IXAudio23 : public IUnknown
- {
- virtual HRESULT STDMETHODCALLTYPE GetDeviceCount(
- UINT32 *pCount) = 0;
- virtual HRESULT STDMETHODCALLTYPE GetDeviceDetails(
- UINT32 Index,
- XAUDIO2_DEVICE_DETAILS *pDeviceDetails) = 0;
- virtual HRESULT STDMETHODCALLTYPE Initialize(
- UINT32 Flags = 0,
- XAUDIO2_PROCESSOR XAudio2Processor = XAUDIO2_DEFAULT_PROCESSOR) = 0;
- virtual HRESULT STDMETHODCALLTYPE RegisterForCallbacks(
- IXAudio2EngineCallback *pCallback) = 0;
- virtual void STDMETHODCALLTYPE UnregisterForCallbacks(
- IXAudio2EngineCallback *pCallback) = 0;
- virtual HRESULT STDMETHODCALLTYPE CreateSourceVoice(
- IXAudio2SourceVoice **ppSourceVoice,
- const WAVEFORMATEX *pSourceFormat,
- UINT32 Flags = 0,
- float MaxFrequencyRatio = XAUDIO2_DEFAULT_FREQ_RATIO,
- IXAudio2VoiceCallback *pCallback = 0,
- const XAUDIO23_VOICE_SENDS *pSendList = 0,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
- virtual HRESULT STDMETHODCALLTYPE CreateSubmixVoice(
- IXAudio2SubmixVoice **ppSubmixVoice,
- UINT32 InputChannels,
- UINT32 InputSampleRate,
- UINT32 Flags = 0,
- UINT32 ProcessingStage = 0,
- const XAUDIO23_VOICE_SENDS *pSendList = 0,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
- virtual HRESULT STDMETHODCALLTYPE CreateMasteringVoice(
- IXAudio2MasteringVoice **ppMasteringVoice,
- UINT32 InputChannels = XAUDIO2_DEFAULT_CHANNELS,
- UINT32 InputSampleRate = XAUDIO2_DEFAULT_SAMPLERATE,
- UINT32 Flags = 0,
- UINT32 DeviceIndex = 0,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
- virtual HRESULT STDMETHODCALLTYPE StartEngine(
- ) = 0;
- virtual void STDMETHODCALLTYPE StopEngine(
- ) = 0;
- virtual HRESULT STDMETHODCALLTYPE CommitChanges(
- UINT32 OperationSet) = 0;
- virtual void STDMETHODCALLTYPE GetPerformanceData(
- XAUDIO2_PERFORMANCE_DATA *pPerfData) = 0;
- virtual void STDMETHODCALLTYPE SetDebugConfiguration(
- const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,
- void *pReserved = 0) = 0;
- };
- #ifdef __CRT_UUID_DECL
- __CRT_UUID_DECL(IXAudio23, 0x8bcf1f58, 0x9fe7, 0x4583, 0x8a,0xc6, 0xe2,0xad,0xc4,0x65,0xc8,0xbb)
- #endif
- #else
- typedef struct IXAudio23Vtbl {
- BEGIN_INTERFACE
- /*** IUnknown methods ***/
- HRESULT (STDMETHODCALLTYPE *QueryInterface)(
- IXAudio23 *This,
- REFIID riid,
- void **ppvObject);
- ULONG (STDMETHODCALLTYPE *AddRef)(
- IXAudio23 *This);
- ULONG (STDMETHODCALLTYPE *Release)(
- IXAudio23 *This);
- /*** IXAudio23 methods ***/
- HRESULT (STDMETHODCALLTYPE *GetDeviceCount)(
- IXAudio23 *This,
- UINT32 *pCount);
- HRESULT (STDMETHODCALLTYPE *GetDeviceDetails)(
- IXAudio23 *This,
- UINT32 Index,
- XAUDIO2_DEVICE_DETAILS *pDeviceDetails);
- HRESULT (STDMETHODCALLTYPE *Initialize)(
- IXAudio23 *This,
- UINT32 Flags,
- XAUDIO2_PROCESSOR XAudio2Processor);
- HRESULT (STDMETHODCALLTYPE *RegisterForCallbacks)(
- IXAudio23 *This,
- IXAudio2EngineCallback *pCallback);
- void (STDMETHODCALLTYPE *UnregisterForCallbacks)(
- IXAudio23 *This,
- IXAudio2EngineCallback *pCallback);
- HRESULT (STDMETHODCALLTYPE *CreateSourceVoice)(
- IXAudio23 *This,
- IXAudio2SourceVoice **ppSourceVoice,
- const WAVEFORMATEX *pSourceFormat,
- UINT32 Flags,
- float MaxFrequencyRatio,
- IXAudio2VoiceCallback *pCallback,
- const XAUDIO23_VOICE_SENDS *pSendList,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *CreateSubmixVoice)(
- IXAudio23 *This,
- IXAudio2SubmixVoice **ppSubmixVoice,
- UINT32 InputChannels,
- UINT32 InputSampleRate,
- UINT32 Flags,
- UINT32 ProcessingStage,
- const XAUDIO23_VOICE_SENDS *pSendList,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *CreateMasteringVoice)(
- IXAudio23 *This,
- IXAudio2MasteringVoice **ppMasteringVoice,
- UINT32 InputChannels,
- UINT32 InputSampleRate,
- UINT32 Flags,
- UINT32 DeviceIndex,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *StartEngine)(
- IXAudio23 *This);
- void (STDMETHODCALLTYPE *StopEngine)(
- IXAudio23 *This);
- HRESULT (STDMETHODCALLTYPE *CommitChanges)(
- IXAudio23 *This,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetPerformanceData)(
- IXAudio23 *This,
- XAUDIO2_PERFORMANCE_DATA *pPerfData);
- void (STDMETHODCALLTYPE *SetDebugConfiguration)(
- IXAudio23 *This,
- const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,
- void *pReserved);
- END_INTERFACE
- } IXAudio23Vtbl;
- interface IXAudio23 {
- CONST_VTBL IXAudio23Vtbl* lpVtbl;
- };
- #ifdef COBJMACROS
- #ifndef WIDL_C_INLINE_WRAPPERS
- /*** IUnknown methods ***/
- #define IXAudio23_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
- #define IXAudio23_AddRef(This) (This)->lpVtbl->AddRef(This)
- #define IXAudio23_Release(This) (This)->lpVtbl->Release(This)
- /*** IXAudio23 methods ***/
- #define IXAudio23_GetDeviceCount(This,pCount) (This)->lpVtbl->GetDeviceCount(This,pCount)
- #define IXAudio23_GetDeviceDetails(This,Index,pDeviceDetails) (This)->lpVtbl->GetDeviceDetails(This,Index,pDeviceDetails)
- #define IXAudio23_Initialize(This,Flags,XAudio2Processor) (This)->lpVtbl->Initialize(This,Flags,XAudio2Processor)
- #define IXAudio23_RegisterForCallbacks(This,pCallback) (This)->lpVtbl->RegisterForCallbacks(This,pCallback)
- #define IXAudio23_UnregisterForCallbacks(This,pCallback) (This)->lpVtbl->UnregisterForCallbacks(This,pCallback)
- #define IXAudio23_CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain) (This)->lpVtbl->CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain)
- #define IXAudio23_CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain) (This)->lpVtbl->CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain)
- #define IXAudio23_CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain) (This)->lpVtbl->CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain)
- #define IXAudio23_StartEngine(This) (This)->lpVtbl->StartEngine(This)
- #define IXAudio23_StopEngine(This) (This)->lpVtbl->StopEngine(This)
- #define IXAudio23_CommitChanges(This,OperationSet) (This)->lpVtbl->CommitChanges(This,OperationSet)
- #define IXAudio23_GetPerformanceData(This,pPerfData) (This)->lpVtbl->GetPerformanceData(This,pPerfData)
- #define IXAudio23_SetDebugConfiguration(This,pDebugConfiguration,pReserved) (This)->lpVtbl->SetDebugConfiguration(This,pDebugConfiguration,pReserved)
- #else
- /*** IUnknown methods ***/
- static FORCEINLINE HRESULT IXAudio23_QueryInterface(IXAudio23* This,REFIID riid,void **ppvObject) {
- return This->lpVtbl->QueryInterface(This,riid,ppvObject);
- }
- static FORCEINLINE ULONG IXAudio23_AddRef(IXAudio23* This) {
- return This->lpVtbl->AddRef(This);
- }
- static FORCEINLINE ULONG IXAudio23_Release(IXAudio23* This) {
- return This->lpVtbl->Release(This);
- }
- /*** IXAudio23 methods ***/
- static FORCEINLINE HRESULT IXAudio23_GetDeviceCount(IXAudio23* This,UINT32 *pCount) {
- return This->lpVtbl->GetDeviceCount(This,pCount);
- }
- static FORCEINLINE HRESULT IXAudio23_GetDeviceDetails(IXAudio23* This,UINT32 Index,XAUDIO2_DEVICE_DETAILS *pDeviceDetails) {
- return This->lpVtbl->GetDeviceDetails(This,Index,pDeviceDetails);
- }
- static FORCEINLINE HRESULT IXAudio23_Initialize(IXAudio23* This,UINT32 Flags,XAUDIO2_PROCESSOR XAudio2Processor) {
- return This->lpVtbl->Initialize(This,Flags,XAudio2Processor);
- }
- static FORCEINLINE HRESULT IXAudio23_RegisterForCallbacks(IXAudio23* This,IXAudio2EngineCallback *pCallback) {
- return This->lpVtbl->RegisterForCallbacks(This,pCallback);
- }
- static FORCEINLINE void IXAudio23_UnregisterForCallbacks(IXAudio23* This,IXAudio2EngineCallback *pCallback) {
- This->lpVtbl->UnregisterForCallbacks(This,pCallback);
- }
- static FORCEINLINE HRESULT IXAudio23_CreateSourceVoice(IXAudio23* This,IXAudio2SourceVoice **ppSourceVoice,const WAVEFORMATEX *pSourceFormat,UINT32 Flags,float MaxFrequencyRatio,IXAudio2VoiceCallback *pCallback,const XAUDIO23_VOICE_SENDS *pSendList,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio23_CreateSubmixVoice(IXAudio23* This,IXAudio2SubmixVoice **ppSubmixVoice,UINT32 InputChannels,UINT32 InputSampleRate,UINT32 Flags,UINT32 ProcessingStage,const XAUDIO23_VOICE_SENDS *pSendList,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio23_CreateMasteringVoice(IXAudio23* This,IXAudio2MasteringVoice **ppMasteringVoice,UINT32 InputChannels,UINT32 InputSampleRate,UINT32 Flags,UINT32 DeviceIndex,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio23_StartEngine(IXAudio23* This) {
- return This->lpVtbl->StartEngine(This);
- }
- static FORCEINLINE void IXAudio23_StopEngine(IXAudio23* This) {
- This->lpVtbl->StopEngine(This);
- }
- static FORCEINLINE HRESULT IXAudio23_CommitChanges(IXAudio23* This,UINT32 OperationSet) {
- return This->lpVtbl->CommitChanges(This,OperationSet);
- }
- static FORCEINLINE void IXAudio23_GetPerformanceData(IXAudio23* This,XAUDIO2_PERFORMANCE_DATA *pPerfData) {
- This->lpVtbl->GetPerformanceData(This,pPerfData);
- }
- static FORCEINLINE void IXAudio23_SetDebugConfiguration(IXAudio23* This,const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,void *pReserved) {
- This->lpVtbl->SetDebugConfiguration(This,pDebugConfiguration,pReserved);
- }
- #endif
- #endif
- #endif
- #endif /* __IXAudio23_INTERFACE_DEFINED__ */
- /*****************************************************************************
- * IXAudio27 interface
- */
- #ifndef __IXAudio27_INTERFACE_DEFINED__
- #define __IXAudio27_INTERFACE_DEFINED__
- DEFINE_GUID(IID_IXAudio27, 0x8bcf1f58, 0x9fe7, 0x4583, 0x8a,0xc6, 0xe2,0xad,0xc4,0x65,0xc8,0xbb);
- #if defined(__cplusplus) && !defined(CINTERFACE)
- MIDL_INTERFACE("8bcf1f58-9fe7-4583-8ac6-e2adc465c8bb")
- IXAudio27 : public IUnknown
- {
- virtual HRESULT STDMETHODCALLTYPE GetDeviceCount(
- UINT32 *pCount) = 0;
- virtual HRESULT STDMETHODCALLTYPE GetDeviceDetails(
- UINT32 Index,
- XAUDIO2_DEVICE_DETAILS *pDeviceDetails) = 0;
- virtual HRESULT STDMETHODCALLTYPE Initialize(
- UINT32 Flags = 0,
- XAUDIO2_PROCESSOR XAudio2Processor = XAUDIO2_DEFAULT_PROCESSOR) = 0;
- virtual HRESULT STDMETHODCALLTYPE RegisterForCallbacks(
- IXAudio2EngineCallback *pCallback) = 0;
- virtual void STDMETHODCALLTYPE UnregisterForCallbacks(
- IXAudio2EngineCallback *pCallback) = 0;
- virtual HRESULT STDMETHODCALLTYPE CreateSourceVoice(
- IXAudio2SourceVoice **ppSourceVoice,
- const WAVEFORMATEX *pSourceFormat,
- UINT32 Flags = 0,
- float MaxFrequencyRatio = XAUDIO2_DEFAULT_FREQ_RATIO,
- IXAudio2VoiceCallback *pCallback = 0,
- const XAUDIO2_VOICE_SENDS *pSendList = 0,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
- virtual HRESULT STDMETHODCALLTYPE CreateSubmixVoice(
- IXAudio2SubmixVoice **ppSubmixVoice,
- UINT32 InputChannels,
- UINT32 InputSampleRate,
- UINT32 Flags = 0,
- UINT32 ProcessingStage = 0,
- const XAUDIO2_VOICE_SENDS *pSendList = 0,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
- virtual HRESULT STDMETHODCALLTYPE CreateMasteringVoice(
- IXAudio2MasteringVoice **ppMasteringVoice,
- UINT32 InputChannels = XAUDIO2_DEFAULT_CHANNELS,
- UINT32 InputSampleRate = XAUDIO2_DEFAULT_SAMPLERATE,
- UINT32 Flags = 0,
- UINT32 DeviceIndex = 0,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
- virtual HRESULT STDMETHODCALLTYPE StartEngine(
- ) = 0;
- virtual void STDMETHODCALLTYPE StopEngine(
- ) = 0;
- virtual HRESULT STDMETHODCALLTYPE CommitChanges(
- UINT32 OperationSet) = 0;
- virtual void STDMETHODCALLTYPE GetPerformanceData(
- XAUDIO2_PERFORMANCE_DATA *pPerfData) = 0;
- virtual void STDMETHODCALLTYPE SetDebugConfiguration(
- const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,
- void *pReserved = 0) = 0;
- };
- #ifdef __CRT_UUID_DECL
- __CRT_UUID_DECL(IXAudio27, 0x8bcf1f58, 0x9fe7, 0x4583, 0x8a,0xc6, 0xe2,0xad,0xc4,0x65,0xc8,0xbb)
- #endif
- #else
- typedef struct IXAudio27Vtbl {
- BEGIN_INTERFACE
- /*** IUnknown methods ***/
- HRESULT (STDMETHODCALLTYPE *QueryInterface)(
- IXAudio27 *This,
- REFIID riid,
- void **ppvObject);
- ULONG (STDMETHODCALLTYPE *AddRef)(
- IXAudio27 *This);
- ULONG (STDMETHODCALLTYPE *Release)(
- IXAudio27 *This);
- /*** IXAudio27 methods ***/
- HRESULT (STDMETHODCALLTYPE *GetDeviceCount)(
- IXAudio27 *This,
- UINT32 *pCount);
- HRESULT (STDMETHODCALLTYPE *GetDeviceDetails)(
- IXAudio27 *This,
- UINT32 Index,
- XAUDIO2_DEVICE_DETAILS *pDeviceDetails);
- HRESULT (STDMETHODCALLTYPE *Initialize)(
- IXAudio27 *This,
- UINT32 Flags,
- XAUDIO2_PROCESSOR XAudio2Processor);
- HRESULT (STDMETHODCALLTYPE *RegisterForCallbacks)(
- IXAudio27 *This,
- IXAudio2EngineCallback *pCallback);
- void (STDMETHODCALLTYPE *UnregisterForCallbacks)(
- IXAudio27 *This,
- IXAudio2EngineCallback *pCallback);
- HRESULT (STDMETHODCALLTYPE *CreateSourceVoice)(
- IXAudio27 *This,
- IXAudio2SourceVoice **ppSourceVoice,
- const WAVEFORMATEX *pSourceFormat,
- UINT32 Flags,
- float MaxFrequencyRatio,
- IXAudio2VoiceCallback *pCallback,
- const XAUDIO2_VOICE_SENDS *pSendList,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *CreateSubmixVoice)(
- IXAudio27 *This,
- IXAudio2SubmixVoice **ppSubmixVoice,
- UINT32 InputChannels,
- UINT32 InputSampleRate,
- UINT32 Flags,
- UINT32 ProcessingStage,
- const XAUDIO2_VOICE_SENDS *pSendList,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *CreateMasteringVoice)(
- IXAudio27 *This,
- IXAudio2MasteringVoice **ppMasteringVoice,
- UINT32 InputChannels,
- UINT32 InputSampleRate,
- UINT32 Flags,
- UINT32 DeviceIndex,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *StartEngine)(
- IXAudio27 *This);
- void (STDMETHODCALLTYPE *StopEngine)(
- IXAudio27 *This);
- HRESULT (STDMETHODCALLTYPE *CommitChanges)(
- IXAudio27 *This,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetPerformanceData)(
- IXAudio27 *This,
- XAUDIO2_PERFORMANCE_DATA *pPerfData);
- void (STDMETHODCALLTYPE *SetDebugConfiguration)(
- IXAudio27 *This,
- const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,
- void *pReserved);
- END_INTERFACE
- } IXAudio27Vtbl;
- interface IXAudio27 {
- CONST_VTBL IXAudio27Vtbl* lpVtbl;
- };
- #ifdef COBJMACROS
- #ifndef WIDL_C_INLINE_WRAPPERS
- /*** IUnknown methods ***/
- #define IXAudio27_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
- #define IXAudio27_AddRef(This) (This)->lpVtbl->AddRef(This)
- #define IXAudio27_Release(This) (This)->lpVtbl->Release(This)
- /*** IXAudio27 methods ***/
- #define IXAudio27_GetDeviceCount(This,pCount) (This)->lpVtbl->GetDeviceCount(This,pCount)
- #define IXAudio27_GetDeviceDetails(This,Index,pDeviceDetails) (This)->lpVtbl->GetDeviceDetails(This,Index,pDeviceDetails)
- #define IXAudio27_Initialize(This,Flags,XAudio2Processor) (This)->lpVtbl->Initialize(This,Flags,XAudio2Processor)
- #define IXAudio27_RegisterForCallbacks(This,pCallback) (This)->lpVtbl->RegisterForCallbacks(This,pCallback)
- #define IXAudio27_UnregisterForCallbacks(This,pCallback) (This)->lpVtbl->UnregisterForCallbacks(This,pCallback)
- #define IXAudio27_CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain) (This)->lpVtbl->CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain)
- #define IXAudio27_CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain) (This)->lpVtbl->CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain)
- #define IXAudio27_CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain) (This)->lpVtbl->CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain)
- #define IXAudio27_StartEngine(This) (This)->lpVtbl->StartEngine(This)
- #define IXAudio27_StopEngine(This) (This)->lpVtbl->StopEngine(This)
- #define IXAudio27_CommitChanges(This,OperationSet) (This)->lpVtbl->CommitChanges(This,OperationSet)
- #define IXAudio27_GetPerformanceData(This,pPerfData) (This)->lpVtbl->GetPerformanceData(This,pPerfData)
- #define IXAudio27_SetDebugConfiguration(This,pDebugConfiguration,pReserved) (This)->lpVtbl->SetDebugConfiguration(This,pDebugConfiguration,pReserved)
- #else
- /*** IUnknown methods ***/
- static FORCEINLINE HRESULT IXAudio27_QueryInterface(IXAudio27* This,REFIID riid,void **ppvObject) {
- return This->lpVtbl->QueryInterface(This,riid,ppvObject);
- }
- static FORCEINLINE ULONG IXAudio27_AddRef(IXAudio27* This) {
- return This->lpVtbl->AddRef(This);
- }
- static FORCEINLINE ULONG IXAudio27_Release(IXAudio27* This) {
- return This->lpVtbl->Release(This);
- }
- /*** IXAudio27 methods ***/
- static FORCEINLINE HRESULT IXAudio27_GetDeviceCount(IXAudio27* This,UINT32 *pCount) {
- return This->lpVtbl->GetDeviceCount(This,pCount);
- }
- static FORCEINLINE HRESULT IXAudio27_GetDeviceDetails(IXAudio27* This,UINT32 Index,XAUDIO2_DEVICE_DETAILS *pDeviceDetails) {
- return This->lpVtbl->GetDeviceDetails(This,Index,pDeviceDetails);
- }
- static FORCEINLINE HRESULT IXAudio27_Initialize(IXAudio27* This,UINT32 Flags,XAUDIO2_PROCESSOR XAudio2Processor) {
- return This->lpVtbl->Initialize(This,Flags,XAudio2Processor);
- }
- static FORCEINLINE HRESULT IXAudio27_RegisterForCallbacks(IXAudio27* This,IXAudio2EngineCallback *pCallback) {
- return This->lpVtbl->RegisterForCallbacks(This,pCallback);
- }
- static FORCEINLINE void IXAudio27_UnregisterForCallbacks(IXAudio27* This,IXAudio2EngineCallback *pCallback) {
- This->lpVtbl->UnregisterForCallbacks(This,pCallback);
- }
- static FORCEINLINE HRESULT IXAudio27_CreateSourceVoice(IXAudio27* This,IXAudio2SourceVoice **ppSourceVoice,const WAVEFORMATEX *pSourceFormat,UINT32 Flags,float MaxFrequencyRatio,IXAudio2VoiceCallback *pCallback,const XAUDIO2_VOICE_SENDS *pSendList,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio27_CreateSubmixVoice(IXAudio27* This,IXAudio2SubmixVoice **ppSubmixVoice,UINT32 InputChannels,UINT32 InputSampleRate,UINT32 Flags,UINT32 ProcessingStage,const XAUDIO2_VOICE_SENDS *pSendList,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio27_CreateMasteringVoice(IXAudio27* This,IXAudio2MasteringVoice **ppMasteringVoice,UINT32 InputChannels,UINT32 InputSampleRate,UINT32 Flags,UINT32 DeviceIndex,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio27_StartEngine(IXAudio27* This) {
- return This->lpVtbl->StartEngine(This);
- }
- static FORCEINLINE void IXAudio27_StopEngine(IXAudio27* This) {
- This->lpVtbl->StopEngine(This);
- }
- static FORCEINLINE HRESULT IXAudio27_CommitChanges(IXAudio27* This,UINT32 OperationSet) {
- return This->lpVtbl->CommitChanges(This,OperationSet);
- }
- static FORCEINLINE void IXAudio27_GetPerformanceData(IXAudio27* This,XAUDIO2_PERFORMANCE_DATA *pPerfData) {
- This->lpVtbl->GetPerformanceData(This,pPerfData);
- }
- static FORCEINLINE void IXAudio27_SetDebugConfiguration(IXAudio27* This,const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,void *pReserved) {
- This->lpVtbl->SetDebugConfiguration(This,pDebugConfiguration,pReserved);
- }
- #endif
- #endif
- #endif
- #endif /* __IXAudio27_INTERFACE_DEFINED__ */
- DEFINE_GUID(IID_IXAudio28, 0x60d8dac8, 0x5aa1, 0x4e8e, 0xb5, 0x97, 0x2f, 0x5e, 0x28, 0x83, 0xd4, 0x84);
- /*****************************************************************************
- * IXAudio2 interface
- */
- #ifndef __IXAudio2_INTERFACE_DEFINED__
- #define __IXAudio2_INTERFACE_DEFINED__
- DEFINE_GUID(IID_IXAudio2, 0x2b02e3cf, 0x2e0b, 0x4ec3, 0xbe,0x45, 0x1b,0x2a,0x3f,0xe7,0x21,0x0d);
- #if defined(__cplusplus) && !defined(CINTERFACE)
- MIDL_INTERFACE("2b02e3cf-2e0b-4ec3-be45-1b2a3fe7210d")
- IXAudio2 : public IUnknown
- {
- virtual HRESULT STDMETHODCALLTYPE RegisterForCallbacks(
- IXAudio2EngineCallback *pCallback) = 0;
- virtual void STDMETHODCALLTYPE UnregisterForCallbacks(
- IXAudio2EngineCallback *pCallback) = 0;
- virtual HRESULT STDMETHODCALLTYPE CreateSourceVoice(
- IXAudio2SourceVoice **ppSourceVoice,
- const WAVEFORMATEX *pSourceFormat,
- UINT32 Flags = 0,
- float MaxFrequencyRatio = XAUDIO2_DEFAULT_FREQ_RATIO,
- IXAudio2VoiceCallback *pCallback = 0,
- const XAUDIO2_VOICE_SENDS *pSendList = 0,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
- virtual HRESULT STDMETHODCALLTYPE CreateSubmixVoice(
- IXAudio2SubmixVoice **ppSubmixVoice,
- UINT32 InputChannels,
- UINT32 InputSampleRate,
- UINT32 Flags = 0,
- UINT32 ProcessingStage = 0,
- const XAUDIO2_VOICE_SENDS *pSendList = 0,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
- virtual HRESULT STDMETHODCALLTYPE CreateMasteringVoice(
- IXAudio2MasteringVoice **ppMasteringVoice,
- UINT32 InputChannels = XAUDIO2_DEFAULT_CHANNELS,
- UINT32 InputSampleRate = XAUDIO2_DEFAULT_SAMPLERATE,
- UINT32 Flags = 0,
- LPCWSTR DeviceId = 0,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0,
- AUDIO_STREAM_CATEGORY StreamCategory = AudioCategory_GameEffects) = 0;
- virtual HRESULT STDMETHODCALLTYPE StartEngine(
- ) = 0;
- virtual void STDMETHODCALLTYPE StopEngine(
- ) = 0;
- virtual HRESULT STDMETHODCALLTYPE CommitChanges(
- UINT32 OperationSet) = 0;
- virtual void STDMETHODCALLTYPE GetPerformanceData(
- XAUDIO2_PERFORMANCE_DATA *pPerfData) = 0;
- virtual void STDMETHODCALLTYPE SetDebugConfiguration(
- const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,
- void *pReserved = 0) = 0;
- };
- #ifdef __CRT_UUID_DECL
- __CRT_UUID_DECL(IXAudio2, 0x2b02e3cf, 0x2e0b, 0x4ec3, 0xbe,0x45, 0x1b,0x2a,0x3f,0xe7,0x21,0x0d)
- #endif
- #else
- typedef struct IXAudio2Vtbl {
- BEGIN_INTERFACE
- /*** IUnknown methods ***/
- HRESULT (STDMETHODCALLTYPE *QueryInterface)(
- IXAudio2 *This,
- REFIID riid,
- void **ppvObject);
- ULONG (STDMETHODCALLTYPE *AddRef)(
- IXAudio2 *This);
- ULONG (STDMETHODCALLTYPE *Release)(
- IXAudio2 *This);
- /*** IXAudio2 methods ***/
- HRESULT (STDMETHODCALLTYPE *RegisterForCallbacks)(
- IXAudio2 *This,
- IXAudio2EngineCallback *pCallback);
- void (STDMETHODCALLTYPE *UnregisterForCallbacks)(
- IXAudio2 *This,
- IXAudio2EngineCallback *pCallback);
- HRESULT (STDMETHODCALLTYPE *CreateSourceVoice)(
- IXAudio2 *This,
- IXAudio2SourceVoice **ppSourceVoice,
- const WAVEFORMATEX *pSourceFormat,
- UINT32 Flags,
- float MaxFrequencyRatio,
- IXAudio2VoiceCallback *pCallback,
- const XAUDIO2_VOICE_SENDS *pSendList,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *CreateSubmixVoice)(
- IXAudio2 *This,
- IXAudio2SubmixVoice **ppSubmixVoice,
- UINT32 InputChannels,
- UINT32 InputSampleRate,
- UINT32 Flags,
- UINT32 ProcessingStage,
- const XAUDIO2_VOICE_SENDS *pSendList,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain);
- HRESULT (STDMETHODCALLTYPE *CreateMasteringVoice)(
- IXAudio2 *This,
- IXAudio2MasteringVoice **ppMasteringVoice,
- UINT32 InputChannels,
- UINT32 InputSampleRate,
- UINT32 Flags,
- LPCWSTR DeviceId,
- const XAUDIO2_EFFECT_CHAIN *pEffectChain,
- AUDIO_STREAM_CATEGORY StreamCategory);
- HRESULT (STDMETHODCALLTYPE *StartEngine)(
- IXAudio2 *This);
- void (STDMETHODCALLTYPE *StopEngine)(
- IXAudio2 *This);
- HRESULT (STDMETHODCALLTYPE *CommitChanges)(
- IXAudio2 *This,
- UINT32 OperationSet);
- void (STDMETHODCALLTYPE *GetPerformanceData)(
- IXAudio2 *This,
- XAUDIO2_PERFORMANCE_DATA *pPerfData);
- void (STDMETHODCALLTYPE *SetDebugConfiguration)(
- IXAudio2 *This,
- const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,
- void *pReserved);
- END_INTERFACE
- } IXAudio2Vtbl;
- interface IXAudio2 {
- CONST_VTBL IXAudio2Vtbl* lpVtbl;
- };
- #ifdef COBJMACROS
- #ifndef WIDL_C_INLINE_WRAPPERS
- /*** IUnknown methods ***/
- #define IXAudio2_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
- #define IXAudio2_AddRef(This) (This)->lpVtbl->AddRef(This)
- #define IXAudio2_Release(This) (This)->lpVtbl->Release(This)
- /*** IXAudio2 methods ***/
- #define IXAudio2_RegisterForCallbacks(This,pCallback) (This)->lpVtbl->RegisterForCallbacks(This,pCallback)
- #define IXAudio2_UnregisterForCallbacks(This,pCallback) (This)->lpVtbl->UnregisterForCallbacks(This,pCallback)
- #define IXAudio2_CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain) (This)->lpVtbl->CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain)
- #define IXAudio2_CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain) (This)->lpVtbl->CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain)
- #define IXAudio2_CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceId,pEffectChain,StreamCategory) (This)->lpVtbl->CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceId,pEffectChain,StreamCategory)
- #define IXAudio2_StartEngine(This) (This)->lpVtbl->StartEngine(This)
- #define IXAudio2_StopEngine(This) (This)->lpVtbl->StopEngine(This)
- #define IXAudio2_CommitChanges(This,OperationSet) (This)->lpVtbl->CommitChanges(This,OperationSet)
- #define IXAudio2_GetPerformanceData(This,pPerfData) (This)->lpVtbl->GetPerformanceData(This,pPerfData)
- #define IXAudio2_SetDebugConfiguration(This,pDebugConfiguration,pReserved) (This)->lpVtbl->SetDebugConfiguration(This,pDebugConfiguration,pReserved)
- #else
- /*** IUnknown methods ***/
- static FORCEINLINE HRESULT IXAudio2_QueryInterface(IXAudio2* This,REFIID riid,void **ppvObject) {
- return This->lpVtbl->QueryInterface(This,riid,ppvObject);
- }
- static FORCEINLINE ULONG IXAudio2_AddRef(IXAudio2* This) {
- return This->lpVtbl->AddRef(This);
- }
- static FORCEINLINE ULONG IXAudio2_Release(IXAudio2* This) {
- return This->lpVtbl->Release(This);
- }
- /*** IXAudio2 methods ***/
- static FORCEINLINE HRESULT IXAudio2_RegisterForCallbacks(IXAudio2* This,IXAudio2EngineCallback *pCallback) {
- return This->lpVtbl->RegisterForCallbacks(This,pCallback);
- }
- static FORCEINLINE void IXAudio2_UnregisterForCallbacks(IXAudio2* This,IXAudio2EngineCallback *pCallback) {
- This->lpVtbl->UnregisterForCallbacks(This,pCallback);
- }
- static FORCEINLINE HRESULT IXAudio2_CreateSourceVoice(IXAudio2* This,IXAudio2SourceVoice **ppSourceVoice,const WAVEFORMATEX *pSourceFormat,UINT32 Flags,float MaxFrequencyRatio,IXAudio2VoiceCallback *pCallback,const XAUDIO2_VOICE_SENDS *pSendList,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio2_CreateSubmixVoice(IXAudio2* This,IXAudio2SubmixVoice **ppSubmixVoice,UINT32 InputChannels,UINT32 InputSampleRate,UINT32 Flags,UINT32 ProcessingStage,const XAUDIO2_VOICE_SENDS *pSendList,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
- return This->lpVtbl->CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain);
- }
- static FORCEINLINE HRESULT IXAudio2_CreateMasteringVoice(IXAudio2* This,IXAudio2MasteringVoice **ppMasteringVoice,UINT32 InputChannels,UINT32 InputSampleRate,UINT32 Flags,LPCWSTR DeviceId,const XAUDIO2_EFFECT_CHAIN *pEffectChain,AUDIO_STREAM_CATEGORY StreamCategory) {
- return This->lpVtbl->CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceId,pEffectChain,StreamCategory);
- }
- static FORCEINLINE HRESULT IXAudio2_StartEngine(IXAudio2* This) {
- return This->lpVtbl->StartEngine(This);
- }
- static FORCEINLINE void IXAudio2_StopEngine(IXAudio2* This) {
- This->lpVtbl->StopEngine(This);
- }
- static FORCEINLINE HRESULT IXAudio2_CommitChanges(IXAudio2* This,UINT32 OperationSet) {
- return This->lpVtbl->CommitChanges(This,OperationSet);
- }
- static FORCEINLINE void IXAudio2_GetPerformanceData(IXAudio2* This,XAUDIO2_PERFORMANCE_DATA *pPerfData) {
- This->lpVtbl->GetPerformanceData(This,pPerfData);
- }
- static FORCEINLINE void IXAudio2_SetDebugConfiguration(IXAudio2* This,const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,void *pReserved) {
- This->lpVtbl->SetDebugConfiguration(This,pDebugConfiguration,pReserved);
- }
- #endif
- #endif
- #endif
- #endif /* __IXAudio2_INTERFACE_DEFINED__ */
- #define XAUDIO2_DEBUG_ENGINE (1)
- #define XAUDIO2_VOICE_NOPITCH (2)
- #define XAUDIO2_VOICE_NOSRC (4)
- #define XAUDIO2_VOICE_USEFILTER (8)
- #define XAUDIO2_VOICE_MUSIC (16)
- #define XAUDIO2_PLAY_TAILS (32)
- #define XAUDIO2_END_OF_STREAM (64)
- #define XAUDIO2_SEND_USEFILTER (128)
- #define XAUDIO2_VOICE_NOSAMPLESPLAYED (256)
- #define XAUDIO2_DEFAULT_FILTER_TYPE (LowPassFilter)
- #define XAUDIO2_DEFAULT_FILTER_FREQUENCY (XAUDIO2_MAX_FILTER_FREQUENCY)
- #define XAUDIO2_DEFAULT_FILTER_ONEOVERQ (1.00000000000000)
- #define XAUDIO2_QUANTUM_NUMERATOR (1)
- #define XAUDIO2_QUANTUM_DENOMINATOR (100)
- #define XAUDIO2_QUANTUM_MS ((1000.00000000000 * XAUDIO2_QUANTUM_NUMERATOR) / XAUDIO2_QUANTUM_DENOMINATOR)
- #define XAUDIO2_E_INVALID_CALL ((HRESULT)0x88960001)
- #define XAUDIO2_E_XMA_DECODER_ERROR ((HRESULT)0x88960002)
- #define XAUDIO2_E_XAPO_CREATION_FAILED ((HRESULT)0x88960003)
- #define XAUDIO2_E_DEVICE_INVALIDATED ((HRESULT)0x88960004)
- #define XAUDIO20_E_XMA_DECODER_ERROR ((HRESULT)0x88960001)
- #define XAUDIO20_E_XAPO_CREATION_FAILED ((HRESULT)0x88960002)
- #define XAUDIO20_E_DEVICE_INVALIDATED ((HRESULT)0x88960003)
- #ifdef XAUDIO2_HELPER_FUNCTIONS
- #define _USE_MATH_DEFINES
- #include <math.h>
- inline static float XAudio2DecibelsToAmplitudeRatio(float decibels) { return powf(10.0f, decibels/20.0f); }
- inline static float XAudio2AmplitudeRatioToDecibels(float volume) { if (volume == 0) { return -3.402823466e+38f; } return 20.0f * log10f(volume); }
- inline static float XAudio2SemitonesToFrequencyRatio(float semitones) { return powf(2.0f, semitones/12.0f); }
- inline static float XAudio2FrequencyRatioToSemitones(float freqratio) { return 39.86313713864835f * log10f(freqratio); }
- inline static float XAudio2CutoffFrequencyToRadians(float cutofffreq, UINT32 samplerate) { if ((UINT32)(cutofffreq * 6.0f) >= samplerate) { return XAUDIO2_MAX_FILTER_FREQUENCY; } return 2.0f * sinf((float)M_PI * cutofffreq / samplerate); }
- inline static float XAudio2RadiansToCutoffFrequency(float radians, float samplerate) { return samplerate * asinf(radians/2.0f) / (float)M_PI; }
- #endif
- HRESULT WINAPI XAudio2Create(IXAudio2** pxaudio2, UINT32 flags, XAUDIO2_PROCESSOR processor);
- #include <poppack.h>
- /* Begin additional prototypes for all interfaces */
- /* End additional prototypes */
- #ifdef __cplusplus
- }
- #endif
- #endif /* __xaudio2_h__ */
|