xaudio2.h 271 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214
  1. /*** Autogenerated by WIDL 7.7 from include/xaudio2.idl - Do not edit ***/
  2. #ifdef _WIN32
  3. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  4. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  5. #endif
  6. #include <rpc.h>
  7. #include <rpcndr.h>
  8. #endif
  9. #ifndef COM_NO_WINDOWS_H
  10. #include <windows.h>
  11. #include <ole2.h>
  12. #endif
  13. #ifndef __xaudio2_h__
  14. #define __xaudio2_h__
  15. /* Forward declarations */
  16. #ifndef __XAudio20_FWD_DEFINED__
  17. #define __XAudio20_FWD_DEFINED__
  18. #ifdef __cplusplus
  19. typedef class XAudio20 XAudio20;
  20. #else
  21. typedef struct XAudio20 XAudio20;
  22. #endif /* defined __cplusplus */
  23. #endif /* defined __XAudio20_FWD_DEFINED__ */
  24. #ifndef __XAudio21_FWD_DEFINED__
  25. #define __XAudio21_FWD_DEFINED__
  26. #ifdef __cplusplus
  27. typedef class XAudio21 XAudio21;
  28. #else
  29. typedef struct XAudio21 XAudio21;
  30. #endif /* defined __cplusplus */
  31. #endif /* defined __XAudio21_FWD_DEFINED__ */
  32. #ifndef __XAudio22_FWD_DEFINED__
  33. #define __XAudio22_FWD_DEFINED__
  34. #ifdef __cplusplus
  35. typedef class XAudio22 XAudio22;
  36. #else
  37. typedef struct XAudio22 XAudio22;
  38. #endif /* defined __cplusplus */
  39. #endif /* defined __XAudio22_FWD_DEFINED__ */
  40. #ifndef __XAudio23_FWD_DEFINED__
  41. #define __XAudio23_FWD_DEFINED__
  42. #ifdef __cplusplus
  43. typedef class XAudio23 XAudio23;
  44. #else
  45. typedef struct XAudio23 XAudio23;
  46. #endif /* defined __cplusplus */
  47. #endif /* defined __XAudio23_FWD_DEFINED__ */
  48. #ifndef __XAudio24_FWD_DEFINED__
  49. #define __XAudio24_FWD_DEFINED__
  50. #ifdef __cplusplus
  51. typedef class XAudio24 XAudio24;
  52. #else
  53. typedef struct XAudio24 XAudio24;
  54. #endif /* defined __cplusplus */
  55. #endif /* defined __XAudio24_FWD_DEFINED__ */
  56. #ifndef __XAudio25_FWD_DEFINED__
  57. #define __XAudio25_FWD_DEFINED__
  58. #ifdef __cplusplus
  59. typedef class XAudio25 XAudio25;
  60. #else
  61. typedef struct XAudio25 XAudio25;
  62. #endif /* defined __cplusplus */
  63. #endif /* defined __XAudio25_FWD_DEFINED__ */
  64. #ifndef __XAudio26_FWD_DEFINED__
  65. #define __XAudio26_FWD_DEFINED__
  66. #ifdef __cplusplus
  67. typedef class XAudio26 XAudio26;
  68. #else
  69. typedef struct XAudio26 XAudio26;
  70. #endif /* defined __cplusplus */
  71. #endif /* defined __XAudio26_FWD_DEFINED__ */
  72. #ifndef __XAudio27_FWD_DEFINED__
  73. #define __XAudio27_FWD_DEFINED__
  74. #ifdef __cplusplus
  75. typedef class XAudio27 XAudio27;
  76. #else
  77. typedef struct XAudio27 XAudio27;
  78. #endif /* defined __cplusplus */
  79. #endif /* defined __XAudio27_FWD_DEFINED__ */
  80. #ifndef __XAudio2Debug_FWD_DEFINED__
  81. #define __XAudio2Debug_FWD_DEFINED__
  82. #ifdef __cplusplus
  83. typedef class XAudio2Debug XAudio2Debug;
  84. #else
  85. typedef struct XAudio2Debug XAudio2Debug;
  86. #endif /* defined __cplusplus */
  87. #endif /* defined __XAudio2Debug_FWD_DEFINED__ */
  88. #ifndef __IXAudio2EngineCallback_FWD_DEFINED__
  89. #define __IXAudio2EngineCallback_FWD_DEFINED__
  90. typedef interface IXAudio2EngineCallback IXAudio2EngineCallback;
  91. #ifdef __cplusplus
  92. interface IXAudio2EngineCallback;
  93. #endif /* __cplusplus */
  94. #endif
  95. #ifndef __IXAudio20Voice_FWD_DEFINED__
  96. #define __IXAudio20Voice_FWD_DEFINED__
  97. typedef interface IXAudio20Voice IXAudio20Voice;
  98. #ifdef __cplusplus
  99. interface IXAudio20Voice;
  100. #endif /* __cplusplus */
  101. #endif
  102. #ifndef __IXAudio23Voice_FWD_DEFINED__
  103. #define __IXAudio23Voice_FWD_DEFINED__
  104. typedef interface IXAudio23Voice IXAudio23Voice;
  105. #ifdef __cplusplus
  106. interface IXAudio23Voice;
  107. #endif /* __cplusplus */
  108. #endif
  109. #ifndef __IXAudio27Voice_FWD_DEFINED__
  110. #define __IXAudio27Voice_FWD_DEFINED__
  111. typedef interface IXAudio27Voice IXAudio27Voice;
  112. #ifdef __cplusplus
  113. interface IXAudio27Voice;
  114. #endif /* __cplusplus */
  115. #endif
  116. #ifndef __IXAudio2Voice_FWD_DEFINED__
  117. #define __IXAudio2Voice_FWD_DEFINED__
  118. typedef interface IXAudio2Voice IXAudio2Voice;
  119. #ifdef __cplusplus
  120. interface IXAudio2Voice;
  121. #endif /* __cplusplus */
  122. #endif
  123. #ifndef __IXAudio20SourceVoice_FWD_DEFINED__
  124. #define __IXAudio20SourceVoice_FWD_DEFINED__
  125. typedef interface IXAudio20SourceVoice IXAudio20SourceVoice;
  126. #ifdef __cplusplus
  127. interface IXAudio20SourceVoice;
  128. #endif /* __cplusplus */
  129. #endif
  130. #ifndef __IXAudio23SourceVoice_FWD_DEFINED__
  131. #define __IXAudio23SourceVoice_FWD_DEFINED__
  132. typedef interface IXAudio23SourceVoice IXAudio23SourceVoice;
  133. #ifdef __cplusplus
  134. interface IXAudio23SourceVoice;
  135. #endif /* __cplusplus */
  136. #endif
  137. #ifndef __IXAudio27SourceVoice_FWD_DEFINED__
  138. #define __IXAudio27SourceVoice_FWD_DEFINED__
  139. typedef interface IXAudio27SourceVoice IXAudio27SourceVoice;
  140. #ifdef __cplusplus
  141. interface IXAudio27SourceVoice;
  142. #endif /* __cplusplus */
  143. #endif
  144. #ifndef __IXAudio2SourceVoice_FWD_DEFINED__
  145. #define __IXAudio2SourceVoice_FWD_DEFINED__
  146. typedef interface IXAudio2SourceVoice IXAudio2SourceVoice;
  147. #ifdef __cplusplus
  148. interface IXAudio2SourceVoice;
  149. #endif /* __cplusplus */
  150. #endif
  151. #ifndef __IXAudio20SubmixVoice_FWD_DEFINED__
  152. #define __IXAudio20SubmixVoice_FWD_DEFINED__
  153. typedef interface IXAudio20SubmixVoice IXAudio20SubmixVoice;
  154. #ifdef __cplusplus
  155. interface IXAudio20SubmixVoice;
  156. #endif /* __cplusplus */
  157. #endif
  158. #ifndef __IXAudio23SubmixVoice_FWD_DEFINED__
  159. #define __IXAudio23SubmixVoice_FWD_DEFINED__
  160. typedef interface IXAudio23SubmixVoice IXAudio23SubmixVoice;
  161. #ifdef __cplusplus
  162. interface IXAudio23SubmixVoice;
  163. #endif /* __cplusplus */
  164. #endif
  165. #ifndef __IXAudio27SubmixVoice_FWD_DEFINED__
  166. #define __IXAudio27SubmixVoice_FWD_DEFINED__
  167. typedef interface IXAudio27SubmixVoice IXAudio27SubmixVoice;
  168. #ifdef __cplusplus
  169. interface IXAudio27SubmixVoice;
  170. #endif /* __cplusplus */
  171. #endif
  172. #ifndef __IXAudio2SubmixVoice_FWD_DEFINED__
  173. #define __IXAudio2SubmixVoice_FWD_DEFINED__
  174. typedef interface IXAudio2SubmixVoice IXAudio2SubmixVoice;
  175. #ifdef __cplusplus
  176. interface IXAudio2SubmixVoice;
  177. #endif /* __cplusplus */
  178. #endif
  179. #ifndef __IXAudio20MasteringVoice_FWD_DEFINED__
  180. #define __IXAudio20MasteringVoice_FWD_DEFINED__
  181. typedef interface IXAudio20MasteringVoice IXAudio20MasteringVoice;
  182. #ifdef __cplusplus
  183. interface IXAudio20MasteringVoice;
  184. #endif /* __cplusplus */
  185. #endif
  186. #ifndef __IXAudio23MasteringVoice_FWD_DEFINED__
  187. #define __IXAudio23MasteringVoice_FWD_DEFINED__
  188. typedef interface IXAudio23MasteringVoice IXAudio23MasteringVoice;
  189. #ifdef __cplusplus
  190. interface IXAudio23MasteringVoice;
  191. #endif /* __cplusplus */
  192. #endif
  193. #ifndef __IXAudio27MasteringVoice_FWD_DEFINED__
  194. #define __IXAudio27MasteringVoice_FWD_DEFINED__
  195. typedef interface IXAudio27MasteringVoice IXAudio27MasteringVoice;
  196. #ifdef __cplusplus
  197. interface IXAudio27MasteringVoice;
  198. #endif /* __cplusplus */
  199. #endif
  200. #ifndef __IXAudio2MasteringVoice_FWD_DEFINED__
  201. #define __IXAudio2MasteringVoice_FWD_DEFINED__
  202. typedef interface IXAudio2MasteringVoice IXAudio2MasteringVoice;
  203. #ifdef __cplusplus
  204. interface IXAudio2MasteringVoice;
  205. #endif /* __cplusplus */
  206. #endif
  207. #ifndef __IXAudio20VoiceCallback_FWD_DEFINED__
  208. #define __IXAudio20VoiceCallback_FWD_DEFINED__
  209. typedef interface IXAudio20VoiceCallback IXAudio20VoiceCallback;
  210. #ifdef __cplusplus
  211. interface IXAudio20VoiceCallback;
  212. #endif /* __cplusplus */
  213. #endif
  214. #ifndef __IXAudio2VoiceCallback_FWD_DEFINED__
  215. #define __IXAudio2VoiceCallback_FWD_DEFINED__
  216. typedef interface IXAudio2VoiceCallback IXAudio2VoiceCallback;
  217. #ifdef __cplusplus
  218. interface IXAudio2VoiceCallback;
  219. #endif /* __cplusplus */
  220. #endif
  221. #ifndef __IXAudio20_FWD_DEFINED__
  222. #define __IXAudio20_FWD_DEFINED__
  223. typedef interface IXAudio20 IXAudio20;
  224. #ifdef __cplusplus
  225. interface IXAudio20;
  226. #endif /* __cplusplus */
  227. #endif
  228. #ifndef __IXAudio22_FWD_DEFINED__
  229. #define __IXAudio22_FWD_DEFINED__
  230. typedef interface IXAudio22 IXAudio22;
  231. #ifdef __cplusplus
  232. interface IXAudio22;
  233. #endif /* __cplusplus */
  234. #endif
  235. #ifndef __IXAudio23_FWD_DEFINED__
  236. #define __IXAudio23_FWD_DEFINED__
  237. typedef interface IXAudio23 IXAudio23;
  238. #ifdef __cplusplus
  239. interface IXAudio23;
  240. #endif /* __cplusplus */
  241. #endif
  242. #ifndef __IXAudio27_FWD_DEFINED__
  243. #define __IXAudio27_FWD_DEFINED__
  244. typedef interface IXAudio27 IXAudio27;
  245. #ifdef __cplusplus
  246. interface IXAudio27;
  247. #endif /* __cplusplus */
  248. #endif
  249. #ifndef __IXAudio2_FWD_DEFINED__
  250. #define __IXAudio2_FWD_DEFINED__
  251. typedef interface IXAudio2 IXAudio2;
  252. #ifdef __cplusplus
  253. interface IXAudio2;
  254. #endif /* __cplusplus */
  255. #endif
  256. /* Headers for imported files */
  257. #include <unknwn.h>
  258. #include <mmdeviceapi.h>
  259. #include <audiosessiontypes.h>
  260. #ifdef __cplusplus
  261. extern "C" {
  262. #endif
  263. #include <pshpack1.h>
  264. /*****************************************************************************
  265. * XAudio20 coclass
  266. */
  267. DEFINE_GUID(CLSID_XAudio20, 0xfac23f48, 0x31f5, 0x45a8, 0xb4,0x9b, 0x52,0x25,0xd6,0x14,0x01,0xaa);
  268. #ifdef __cplusplus
  269. class DECLSPEC_UUID("fac23f48-31f5-45a8-b49b-5225d61401aa") XAudio20;
  270. #ifdef __CRT_UUID_DECL
  271. __CRT_UUID_DECL(XAudio20, 0xfac23f48, 0x31f5, 0x45a8, 0xb4,0x9b, 0x52,0x25,0xd6,0x14,0x01,0xaa)
  272. #endif
  273. #endif
  274. /*****************************************************************************
  275. * XAudio21 coclass
  276. */
  277. DEFINE_GUID(CLSID_XAudio21, 0xe21a7345, 0xeb21, 0x468e, 0xbe,0x50, 0x80,0x4d,0xb9,0x7c,0xf7,0x08);
  278. #ifdef __cplusplus
  279. class DECLSPEC_UUID("e21a7345-eb21-468e-be50-804db97cf708") XAudio21;
  280. #ifdef __CRT_UUID_DECL
  281. __CRT_UUID_DECL(XAudio21, 0xe21a7345, 0xeb21, 0x468e, 0xbe,0x50, 0x80,0x4d,0xb9,0x7c,0xf7,0x08)
  282. #endif
  283. #endif
  284. /*****************************************************************************
  285. * XAudio22 coclass
  286. */
  287. DEFINE_GUID(CLSID_XAudio22, 0xb802058a, 0x464a, 0x42db, 0xbc,0x10, 0xb6,0x50,0xd6,0xf2,0x58,0x6a);
  288. #ifdef __cplusplus
  289. class DECLSPEC_UUID("b802058a-464a-42db-bc10-b650d6f2586a") XAudio22;
  290. #ifdef __CRT_UUID_DECL
  291. __CRT_UUID_DECL(XAudio22, 0xb802058a, 0x464a, 0x42db, 0xbc,0x10, 0xb6,0x50,0xd6,0xf2,0x58,0x6a)
  292. #endif
  293. #endif
  294. /*****************************************************************************
  295. * XAudio23 coclass
  296. */
  297. DEFINE_GUID(CLSID_XAudio23, 0x4c5e637a, 0x16c7, 0x4de3, 0x9c,0x46, 0x5e,0xd2,0x21,0x81,0x96,0x2d);
  298. #ifdef __cplusplus
  299. class DECLSPEC_UUID("4c5e637a-16c7-4de3-9c46-5ed22181962d") XAudio23;
  300. #ifdef __CRT_UUID_DECL
  301. __CRT_UUID_DECL(XAudio23, 0x4c5e637a, 0x16c7, 0x4de3, 0x9c,0x46, 0x5e,0xd2,0x21,0x81,0x96,0x2d)
  302. #endif
  303. #endif
  304. /*****************************************************************************
  305. * XAudio24 coclass
  306. */
  307. DEFINE_GUID(CLSID_XAudio24, 0x03219e78, 0x5bc3, 0x44d1, 0xb9,0x2e, 0xf6,0x3d,0x89,0xcc,0x65,0x26);
  308. #ifdef __cplusplus
  309. class DECLSPEC_UUID("03219e78-5bc3-44d1-b92e-f63d89cc6526") XAudio24;
  310. #ifdef __CRT_UUID_DECL
  311. __CRT_UUID_DECL(XAudio24, 0x03219e78, 0x5bc3, 0x44d1, 0xb9,0x2e, 0xf6,0x3d,0x89,0xcc,0x65,0x26)
  312. #endif
  313. #endif
  314. /*****************************************************************************
  315. * XAudio25 coclass
  316. */
  317. DEFINE_GUID(CLSID_XAudio25, 0x4c9b6dde, 0x6809, 0x46e6, 0xa2,0x78, 0x9b,0x6a,0x97,0x58,0x86,0x70);
  318. #ifdef __cplusplus
  319. class DECLSPEC_UUID("4c9b6dde-6809-46e6-a278-9b6a97588670") XAudio25;
  320. #ifdef __CRT_UUID_DECL
  321. __CRT_UUID_DECL(XAudio25, 0x4c9b6dde, 0x6809, 0x46e6, 0xa2,0x78, 0x9b,0x6a,0x97,0x58,0x86,0x70)
  322. #endif
  323. #endif
  324. /*****************************************************************************
  325. * XAudio26 coclass
  326. */
  327. DEFINE_GUID(CLSID_XAudio26, 0x3eda9b49, 0x2085, 0x498b, 0x9b,0xb2, 0x39,0xa6,0x77,0x84,0x93,0xde);
  328. #ifdef __cplusplus
  329. class DECLSPEC_UUID("3eda9b49-2085-498b-9bb2-39a6778493de") XAudio26;
  330. #ifdef __CRT_UUID_DECL
  331. __CRT_UUID_DECL(XAudio26, 0x3eda9b49, 0x2085, 0x498b, 0x9b,0xb2, 0x39,0xa6,0x77,0x84,0x93,0xde)
  332. #endif
  333. #endif
  334. /*****************************************************************************
  335. * XAudio27 coclass
  336. */
  337. DEFINE_GUID(CLSID_XAudio27, 0x5a508685, 0xa254, 0x4fba, 0x9b,0x82, 0x9a,0x24,0xb0,0x03,0x06,0xaf);
  338. #ifdef __cplusplus
  339. class DECLSPEC_UUID("5a508685-a254-4fba-9b82-9a24b00306af") XAudio27;
  340. #ifdef __CRT_UUID_DECL
  341. __CRT_UUID_DECL(XAudio27, 0x5a508685, 0xa254, 0x4fba, 0x9b,0x82, 0x9a,0x24,0xb0,0x03,0x06,0xaf)
  342. #endif
  343. #endif
  344. /*****************************************************************************
  345. * XAudio2Debug coclass
  346. */
  347. DEFINE_GUID(CLSID_XAudio2Debug, 0xdb05ea35, 0x0329, 0x4d4b, 0xa5,0x3a, 0x6d,0xea,0xd0,0x3d,0x38,0x52);
  348. #ifdef __cplusplus
  349. class DECLSPEC_UUID("db05ea35-0329-4d4b-a53a-6dead03d3852") XAudio2Debug;
  350. #ifdef __CRT_UUID_DECL
  351. __CRT_UUID_DECL(XAudio2Debug, 0xdb05ea35, 0x0329, 0x4d4b, 0xa5,0x3a, 0x6d,0xea,0xd0,0x3d,0x38,0x52)
  352. #endif
  353. #endif
  354. #if 0
  355. typedef struct WAVEFORMATEX {
  356. WORD wFormatTag;
  357. WORD nChannels;
  358. DWORD nSamplesPerSec;
  359. DWORD nAvgBytesPerSec;
  360. WORD nBlockAlign;
  361. WORD wBitsPerSample;
  362. WORD cbSize;
  363. } WAVEFORMATEX;
  364. typedef struct __WIDL_xaudio2_generated_name_00000020 {
  365. WAVEFORMATEX Format;
  366. union {
  367. WORD wValidBitsPerSample;
  368. WORD wSamplesPerBlock;
  369. WORD wReserved;
  370. } Samples;
  371. DWORD dwChannelMask;
  372. GUID SubFormat;
  373. } WAVEFORMATEXTENSIBLE;
  374. typedef struct __WIDL_xaudio2_generated_name_00000020 *PWAVEFORMATEXTENSIBLE;
  375. #else
  376. #include <mmreg.h>
  377. #endif
  378. #ifndef __IXAudio2Voice_FWD_DEFINED__
  379. #define __IXAudio2Voice_FWD_DEFINED__
  380. typedef interface IXAudio2Voice IXAudio2Voice;
  381. #ifdef __cplusplus
  382. interface IXAudio2Voice;
  383. #endif /* __cplusplus */
  384. #endif
  385. typedef enum XAUDIO2_WINDOWS_PROCESSOR_SPECIFIER {
  386. Processor1 = 0x1,
  387. Processor2 = 0x2,
  388. Processor3 = 0x4,
  389. Processor4 = 0x8,
  390. Processor5 = 0x10,
  391. Processor6 = 0x20,
  392. Processor7 = 0x40,
  393. Processor8 = 0x80,
  394. Processor9 = 0x100,
  395. Processor10 = 0x200,
  396. Processor11 = 0x400,
  397. Processor12 = 0x800,
  398. Processor13 = 0x1000,
  399. Processor14 = 0x2000,
  400. Processor15 = 0x4000,
  401. Processor16 = 0x8000,
  402. Processor17 = 0x10000,
  403. Processor18 = 0x20000,
  404. Processor19 = 0x40000,
  405. Processor20 = 0x80000,
  406. Processor21 = 0x100000,
  407. Processor22 = 0x200000,
  408. Processor23 = 0x400000,
  409. Processor24 = 0x800000,
  410. Processor25 = 0x1000000,
  411. Processor26 = 0x2000000,
  412. Processor27 = 0x4000000,
  413. Processor28 = 0x8000000,
  414. Processor29 = 0x10000000,
  415. Processor30 = 0x20000000,
  416. Processor31 = 0x40000000,
  417. Processor32 = 0x80000000,
  418. XAUDIO2_ANY_PROCESSOR = 0xffffffff,
  419. XAUDIO2_DEFAULT_PROCESSOR = XAUDIO2_ANY_PROCESSOR
  420. } XAUDIO2_WINDOWS_PROCESSOR_SPECIFIER;
  421. typedef enum XAUDIO2_WINDOWS_PROCESSOR_SPECIFIER XAUDIO2_PROCESSOR;
  422. typedef struct XAUDIO2_PERFORMANCE_DATA {
  423. UINT64 AudioCyclesSinceLastQuery;
  424. UINT64 TotalCyclesSinceLastQuery;
  425. UINT32 MinimumCyclesPerQuantum;
  426. UINT32 MaximumCyclesPerQuantum;
  427. UINT32 MemoryUsageInBytes;
  428. UINT32 CurrentLatencyInSamples;
  429. UINT32 GlitchesSinceEngineStarted;
  430. UINT32 ActiveSourceVoiceCount;
  431. UINT32 TotalSourceVoiceCount;
  432. UINT32 ActiveSubmixVoiceCount;
  433. UINT32 ActiveResamplerCount;
  434. UINT32 ActiveMatrixMixCount;
  435. UINT32 ActiveXmaSourceVoices;
  436. UINT32 ActiveXmaStreams;
  437. } XAUDIO2_PERFORMANCE_DATA;
  438. typedef struct XAUDIO22_PERFORMANCE_DATA {
  439. UINT64 AudioCyclesSinceLastQuery;
  440. UINT64 TotalCyclesSinceLastQuery;
  441. UINT32 MinimumCyclesPerQuantum;
  442. UINT32 MaximumCyclesPerQuantum;
  443. UINT32 MemoryUsageInBytes;
  444. UINT32 CurrentLatencyInSamples;
  445. UINT32 GlitchesSinceEngineStarted;
  446. UINT32 ActiveSourceVoiceCount;
  447. UINT32 TotalSourceVoiceCount;
  448. UINT32 ActiveSubmixVoiceCount;
  449. UINT32 TotalSubmixVoiceCount;
  450. UINT32 ActiveXmaSourceVoices;
  451. UINT32 ActiveXmaStreams;
  452. } XAUDIO22_PERFORMANCE_DATA;
  453. typedef struct XAUDIO20_PERFORMANCE_DATA {
  454. UINT64 AudioCyclesSinceLastQuery;
  455. UINT64 TotalCyclesSinceLastQuery;
  456. UINT32 MinimumCyclesPerQuantum;
  457. UINT32 MaximumCyclesPerQuantum;
  458. UINT32 MemoryUsageInBytes;
  459. UINT32 CurrentLatencyInSamples;
  460. UINT32 GlitchesSinceLastQuery;
  461. UINT32 ActiveSourceVoiceCount;
  462. UINT32 TotalSourceVoiceCount;
  463. UINT32 ActiveSubmixVoiceCount;
  464. UINT32 TotalSubmixVoiceCount;
  465. UINT32 ActiveXmaSourceVoices;
  466. UINT32 ActiveXmaStreams;
  467. } XAUDIO20_PERFORMANCE_DATA;
  468. typedef enum XAUDIO2_DEVICE_ROLE {
  469. NotDefaultDevice = 0x0,
  470. DefaultConsoleDevice = 0x1,
  471. DefaultMultimediaDevice = 0x2,
  472. DefaultCommunicationsDevice = 0x4,
  473. DefaultGameDevice = 0x8,
  474. GlobalDefaultDevice = 0xf,
  475. InvalidDeviceRole = ~GlobalDefaultDevice
  476. } XAUDIO2_DEVICE_ROLE;
  477. typedef struct XAUDIO2_DEVICE_DETAILS {
  478. WCHAR DeviceID[256];
  479. WCHAR DisplayName[256];
  480. XAUDIO2_DEVICE_ROLE Role;
  481. WAVEFORMATEXTENSIBLE OutputFormat;
  482. } XAUDIO2_DEVICE_DETAILS;
  483. typedef struct XAUDIO27_VOICE_DETAILS {
  484. UINT32 CreationFlags;
  485. UINT32 InputChannels;
  486. UINT32 InputSampleRate;
  487. } XAUDIO27_VOICE_DETAILS;
  488. typedef struct XAUDIO2_VOICE_DETAILS {
  489. UINT32 CreationFlags;
  490. UINT32 ActiveFlags;
  491. UINT32 InputChannels;
  492. UINT32 InputSampleRate;
  493. } XAUDIO2_VOICE_DETAILS;
  494. typedef struct XAUDIO2_SEND_DESCRIPTOR {
  495. UINT32 Flags;
  496. IXAudio2Voice *pOutputVoice;
  497. } XAUDIO2_SEND_DESCRIPTOR;
  498. typedef struct XAUDIO23_VOICE_SENDS {
  499. UINT32 OutputCount;
  500. IXAudio2Voice **pOutputVoices;
  501. } XAUDIO23_VOICE_SENDS;
  502. typedef struct XAUDIO2_VOICE_SENDS {
  503. UINT32 SendCount;
  504. XAUDIO2_SEND_DESCRIPTOR *pSends;
  505. } XAUDIO2_VOICE_SENDS;
  506. typedef struct XAUDIO2_EFFECT_DESCRIPTOR {
  507. IUnknown *pEffect;
  508. WINBOOL InitialState;
  509. UINT32 OutputChannels;
  510. } XAUDIO2_EFFECT_DESCRIPTOR;
  511. typedef struct XAUDIO2_EFFECT_CHAIN {
  512. UINT32 EffectCount;
  513. XAUDIO2_EFFECT_DESCRIPTOR *pEffectDescriptors;
  514. } XAUDIO2_EFFECT_CHAIN;
  515. #define XAUDIO2_MAX_BUFFER_BYTES (0x80000000)
  516. #define XAUDIO2_MAX_QUEUED_BUFFERS (64)
  517. #define XAUDIO2_MAX_BUFFERS_SYSTEM (2)
  518. #define XAUDIO2_MAX_AUDIO_CHANNELS (64)
  519. #define XAUDIO2_MIN_SAMPLE_RATE (1000)
  520. #define XAUDIO2_MAX_SAMPLE_RATE (200000)
  521. #define XAUDIO2_MAX_VOLUME_LEVEL (16777216.0000000)
  522. #define XAUDIO2_MIN_FREQ_RATIO (1 / 1024.00000000000)
  523. #define XAUDIO2_MAX_FREQ_RATIO (1024.00000000000)
  524. #define XAUDIO2_DEFAULT_FREQ_RATIO (2.00000000000000)
  525. #define XAUDIO2_MAX_FILTER_ONEOVERQ (1.50000000000000)
  526. #define XAUDIO2_MAX_FILTER_FREQUENCY (1.00000000000000)
  527. #define XAUDIO2_MAX_LOOP_COUNT (254)
  528. #define XAUDIO20_MAX_LOOP_COUNT (0x100000)
  529. #define XAUDIO2_COMMIT_NOW (0)
  530. #define XAUDIO2_COMMIT_ALL (0)
  531. #define XAUDIO2_INVALID_OPSET (0xffffffff)
  532. #define XAUDIO2_NO_LOOP_REGION (0)
  533. #define XAUDIO2_LOOP_INFINITE (255)
  534. #define XAUDIO20_LOOP_INFINITE ((UINT)-1)
  535. #define XAUDIO2_DEFAULT_CHANNELS (0)
  536. #define XAUDIO2_DEFAULT_SAMPLERATE (0)
  537. /*****************************************************************************
  538. * IXAudio2EngineCallback interface
  539. */
  540. #ifndef __IXAudio2EngineCallback_INTERFACE_DEFINED__
  541. #define __IXAudio2EngineCallback_INTERFACE_DEFINED__
  542. #if defined(__cplusplus) && !defined(CINTERFACE)
  543. interface IXAudio2EngineCallback
  544. {
  545. BEGIN_INTERFACE
  546. virtual void STDMETHODCALLTYPE OnProcessingPassStart(
  547. ) = 0;
  548. virtual void STDMETHODCALLTYPE OnProcessingPassEnd(
  549. ) = 0;
  550. virtual void STDMETHODCALLTYPE OnCriticalError(
  551. HRESULT Error) = 0;
  552. END_INTERFACE
  553. };
  554. #else
  555. typedef struct IXAudio2EngineCallbackVtbl {
  556. BEGIN_INTERFACE
  557. /*** IXAudio2EngineCallback methods ***/
  558. void (STDMETHODCALLTYPE *OnProcessingPassStart)(
  559. IXAudio2EngineCallback *This);
  560. void (STDMETHODCALLTYPE *OnProcessingPassEnd)(
  561. IXAudio2EngineCallback *This);
  562. void (STDMETHODCALLTYPE *OnCriticalError)(
  563. IXAudio2EngineCallback *This,
  564. HRESULT Error);
  565. END_INTERFACE
  566. } IXAudio2EngineCallbackVtbl;
  567. interface IXAudio2EngineCallback {
  568. CONST_VTBL IXAudio2EngineCallbackVtbl* lpVtbl;
  569. };
  570. #ifdef COBJMACROS
  571. #ifndef WIDL_C_INLINE_WRAPPERS
  572. /*** IXAudio2EngineCallback methods ***/
  573. #define IXAudio2EngineCallback_OnProcessingPassStart(This) (This)->lpVtbl->OnProcessingPassStart(This)
  574. #define IXAudio2EngineCallback_OnProcessingPassEnd(This) (This)->lpVtbl->OnProcessingPassEnd(This)
  575. #define IXAudio2EngineCallback_OnCriticalError(This,Error) (This)->lpVtbl->OnCriticalError(This,Error)
  576. #else
  577. /*** IXAudio2EngineCallback methods ***/
  578. static FORCEINLINE void IXAudio2EngineCallback_OnProcessingPassStart(IXAudio2EngineCallback* This) {
  579. This->lpVtbl->OnProcessingPassStart(This);
  580. }
  581. static FORCEINLINE void IXAudio2EngineCallback_OnProcessingPassEnd(IXAudio2EngineCallback* This) {
  582. This->lpVtbl->OnProcessingPassEnd(This);
  583. }
  584. static FORCEINLINE void IXAudio2EngineCallback_OnCriticalError(IXAudio2EngineCallback* This,HRESULT Error) {
  585. This->lpVtbl->OnCriticalError(This,Error);
  586. }
  587. #endif
  588. #endif
  589. #endif
  590. #endif /* __IXAudio2EngineCallback_INTERFACE_DEFINED__ */
  591. typedef enum XAUDIO2_FILTER_TYPE {
  592. LowPassFilter = 0,
  593. BandPassFilter = 1,
  594. HighPassFilter = 2,
  595. NotchFilter = 3
  596. } XAUDIO2_FILTER_TYPE;
  597. typedef struct XAUDIO2_FILTER_PARAMETERS {
  598. XAUDIO2_FILTER_TYPE Type;
  599. float Frequency;
  600. float OneOverQ;
  601. } XAUDIO2_FILTER_PARAMETERS;
  602. /*****************************************************************************
  603. * IXAudio20Voice interface
  604. */
  605. #ifndef __IXAudio20Voice_INTERFACE_DEFINED__
  606. #define __IXAudio20Voice_INTERFACE_DEFINED__
  607. #if defined(__cplusplus) && !defined(CINTERFACE)
  608. interface IXAudio20Voice
  609. {
  610. BEGIN_INTERFACE
  611. virtual void STDMETHODCALLTYPE GetVoiceDetails(
  612. XAUDIO27_VOICE_DETAILS *pVoiceDetails) = 0;
  613. virtual HRESULT STDMETHODCALLTYPE SetOutputVoices(
  614. const XAUDIO23_VOICE_SENDS *pSendList) = 0;
  615. virtual HRESULT STDMETHODCALLTYPE SetEffectChain(
  616. const XAUDIO2_EFFECT_CHAIN *pEffectChain) = 0;
  617. virtual HRESULT STDMETHODCALLTYPE EnableEffect(
  618. UINT32 EffectIndex,
  619. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  620. virtual HRESULT STDMETHODCALLTYPE DisableEffect(
  621. UINT32 EffectIndex,
  622. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  623. virtual void STDMETHODCALLTYPE GetEffectState(
  624. UINT32 EffectIndex,
  625. WINBOOL *pEnabled) = 0;
  626. virtual HRESULT STDMETHODCALLTYPE SetEffectParameters(
  627. UINT32 EffectIndex,
  628. const void *pParameters,
  629. UINT32 ParametersByteSize,
  630. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  631. virtual HRESULT STDMETHODCALLTYPE GetEffectParameters(
  632. UINT32 EffectIndex,
  633. void *pParameters,
  634. UINT32 ParametersByteSize) = 0;
  635. virtual HRESULT STDMETHODCALLTYPE SetFilterParameters(
  636. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  637. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  638. virtual void STDMETHODCALLTYPE GetFilterParameters(
  639. XAUDIO2_FILTER_PARAMETERS *pParameters) = 0;
  640. virtual HRESULT STDMETHODCALLTYPE SetVolume(
  641. float Volume,
  642. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  643. virtual void STDMETHODCALLTYPE GetVolume(
  644. float *pVolume) = 0;
  645. virtual HRESULT STDMETHODCALLTYPE SetChannelVolumes(
  646. UINT32 Channels,
  647. const float *pVolumes,
  648. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  649. virtual void STDMETHODCALLTYPE GetChannelVolumes(
  650. UINT32 Channels,
  651. float *pVolumes) = 0;
  652. virtual HRESULT STDMETHODCALLTYPE SetOutputMatrix(
  653. IXAudio2Voice *pDestinationVoice,
  654. UINT32 SourceChannels,
  655. UINT32 DestinationChannels,
  656. const float *pLevelMatrix,
  657. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  658. virtual HRESULT STDMETHODCALLTYPE GetOutputMatrix(
  659. IXAudio2Voice *pDestinationVoice,
  660. UINT32 SourceChannels,
  661. UINT32 DestinationChannels,
  662. float *pLevelMatrix) = 0;
  663. virtual void STDMETHODCALLTYPE DestroyVoice(
  664. ) = 0;
  665. END_INTERFACE
  666. };
  667. #else
  668. typedef struct IXAudio20VoiceVtbl {
  669. BEGIN_INTERFACE
  670. /*** IXAudio20Voice methods ***/
  671. void (STDMETHODCALLTYPE *GetVoiceDetails)(
  672. IXAudio20Voice *This,
  673. XAUDIO27_VOICE_DETAILS *pVoiceDetails);
  674. HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
  675. IXAudio20Voice *This,
  676. const XAUDIO23_VOICE_SENDS *pSendList);
  677. HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
  678. IXAudio20Voice *This,
  679. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  680. HRESULT (STDMETHODCALLTYPE *EnableEffect)(
  681. IXAudio20Voice *This,
  682. UINT32 EffectIndex,
  683. UINT32 OperationSet);
  684. HRESULT (STDMETHODCALLTYPE *DisableEffect)(
  685. IXAudio20Voice *This,
  686. UINT32 EffectIndex,
  687. UINT32 OperationSet);
  688. void (STDMETHODCALLTYPE *GetEffectState)(
  689. IXAudio20Voice *This,
  690. UINT32 EffectIndex,
  691. WINBOOL *pEnabled);
  692. HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
  693. IXAudio20Voice *This,
  694. UINT32 EffectIndex,
  695. const void *pParameters,
  696. UINT32 ParametersByteSize,
  697. UINT32 OperationSet);
  698. HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
  699. IXAudio20Voice *This,
  700. UINT32 EffectIndex,
  701. void *pParameters,
  702. UINT32 ParametersByteSize);
  703. HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
  704. IXAudio20Voice *This,
  705. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  706. UINT32 OperationSet);
  707. void (STDMETHODCALLTYPE *GetFilterParameters)(
  708. IXAudio20Voice *This,
  709. XAUDIO2_FILTER_PARAMETERS *pParameters);
  710. HRESULT (STDMETHODCALLTYPE *SetVolume)(
  711. IXAudio20Voice *This,
  712. float Volume,
  713. UINT32 OperationSet);
  714. void (STDMETHODCALLTYPE *GetVolume)(
  715. IXAudio20Voice *This,
  716. float *pVolume);
  717. HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
  718. IXAudio20Voice *This,
  719. UINT32 Channels,
  720. const float *pVolumes,
  721. UINT32 OperationSet);
  722. void (STDMETHODCALLTYPE *GetChannelVolumes)(
  723. IXAudio20Voice *This,
  724. UINT32 Channels,
  725. float *pVolumes);
  726. HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
  727. IXAudio20Voice *This,
  728. IXAudio2Voice *pDestinationVoice,
  729. UINT32 SourceChannels,
  730. UINT32 DestinationChannels,
  731. const float *pLevelMatrix,
  732. UINT32 OperationSet);
  733. HRESULT (STDMETHODCALLTYPE *GetOutputMatrix)(
  734. IXAudio20Voice *This,
  735. IXAudio2Voice *pDestinationVoice,
  736. UINT32 SourceChannels,
  737. UINT32 DestinationChannels,
  738. float *pLevelMatrix);
  739. void (STDMETHODCALLTYPE *DestroyVoice)(
  740. IXAudio20Voice *This);
  741. END_INTERFACE
  742. } IXAudio20VoiceVtbl;
  743. interface IXAudio20Voice {
  744. CONST_VTBL IXAudio20VoiceVtbl* lpVtbl;
  745. };
  746. #ifdef COBJMACROS
  747. #ifndef WIDL_C_INLINE_WRAPPERS
  748. /*** IXAudio20Voice methods ***/
  749. #define IXAudio20Voice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
  750. #define IXAudio20Voice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
  751. #define IXAudio20Voice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
  752. #define IXAudio20Voice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
  753. #define IXAudio20Voice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
  754. #define IXAudio20Voice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
  755. #define IXAudio20Voice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
  756. #define IXAudio20Voice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
  757. #define IXAudio20Voice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
  758. #define IXAudio20Voice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
  759. #define IXAudio20Voice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
  760. #define IXAudio20Voice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
  761. #define IXAudio20Voice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
  762. #define IXAudio20Voice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
  763. #define IXAudio20Voice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
  764. #define IXAudio20Voice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
  765. #define IXAudio20Voice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
  766. #else
  767. /*** IXAudio20Voice methods ***/
  768. static FORCEINLINE void IXAudio20Voice_GetVoiceDetails(IXAudio20Voice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
  769. This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
  770. }
  771. static FORCEINLINE HRESULT IXAudio20Voice_SetOutputVoices(IXAudio20Voice* This,const XAUDIO23_VOICE_SENDS *pSendList) {
  772. return This->lpVtbl->SetOutputVoices(This,pSendList);
  773. }
  774. static FORCEINLINE HRESULT IXAudio20Voice_SetEffectChain(IXAudio20Voice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
  775. return This->lpVtbl->SetEffectChain(This,pEffectChain);
  776. }
  777. static FORCEINLINE HRESULT IXAudio20Voice_EnableEffect(IXAudio20Voice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  778. return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
  779. }
  780. static FORCEINLINE HRESULT IXAudio20Voice_DisableEffect(IXAudio20Voice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  781. return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
  782. }
  783. static FORCEINLINE void IXAudio20Voice_GetEffectState(IXAudio20Voice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
  784. This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
  785. }
  786. static FORCEINLINE HRESULT IXAudio20Voice_SetEffectParameters(IXAudio20Voice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
  787. return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
  788. }
  789. static FORCEINLINE HRESULT IXAudio20Voice_GetEffectParameters(IXAudio20Voice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
  790. return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
  791. }
  792. static FORCEINLINE HRESULT IXAudio20Voice_SetFilterParameters(IXAudio20Voice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
  793. return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
  794. }
  795. static FORCEINLINE void IXAudio20Voice_GetFilterParameters(IXAudio20Voice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
  796. This->lpVtbl->GetFilterParameters(This,pParameters);
  797. }
  798. static FORCEINLINE HRESULT IXAudio20Voice_SetVolume(IXAudio20Voice* This,float Volume,UINT32 OperationSet) {
  799. return This->lpVtbl->SetVolume(This,Volume,OperationSet);
  800. }
  801. static FORCEINLINE void IXAudio20Voice_GetVolume(IXAudio20Voice* This,float *pVolume) {
  802. This->lpVtbl->GetVolume(This,pVolume);
  803. }
  804. static FORCEINLINE HRESULT IXAudio20Voice_SetChannelVolumes(IXAudio20Voice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
  805. return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
  806. }
  807. static FORCEINLINE void IXAudio20Voice_GetChannelVolumes(IXAudio20Voice* This,UINT32 Channels,float *pVolumes) {
  808. This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
  809. }
  810. static FORCEINLINE HRESULT IXAudio20Voice_SetOutputMatrix(IXAudio20Voice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
  811. return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
  812. }
  813. static FORCEINLINE HRESULT IXAudio20Voice_GetOutputMatrix(IXAudio20Voice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
  814. return This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
  815. }
  816. static FORCEINLINE void IXAudio20Voice_DestroyVoice(IXAudio20Voice* This) {
  817. This->lpVtbl->DestroyVoice(This);
  818. }
  819. #endif
  820. #endif
  821. #endif
  822. #endif /* __IXAudio20Voice_INTERFACE_DEFINED__ */
  823. /*****************************************************************************
  824. * IXAudio23Voice interface
  825. */
  826. #ifndef __IXAudio23Voice_INTERFACE_DEFINED__
  827. #define __IXAudio23Voice_INTERFACE_DEFINED__
  828. #if defined(__cplusplus) && !defined(CINTERFACE)
  829. interface IXAudio23Voice
  830. {
  831. BEGIN_INTERFACE
  832. virtual void STDMETHODCALLTYPE GetVoiceDetails(
  833. XAUDIO27_VOICE_DETAILS *pVoiceDetails) = 0;
  834. virtual HRESULT STDMETHODCALLTYPE SetOutputVoices(
  835. const XAUDIO23_VOICE_SENDS *pSendList) = 0;
  836. virtual HRESULT STDMETHODCALLTYPE SetEffectChain(
  837. const XAUDIO2_EFFECT_CHAIN *pEffectChain) = 0;
  838. virtual HRESULT STDMETHODCALLTYPE EnableEffect(
  839. UINT32 EffectIndex,
  840. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  841. virtual HRESULT STDMETHODCALLTYPE DisableEffect(
  842. UINT32 EffectIndex,
  843. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  844. virtual void STDMETHODCALLTYPE GetEffectState(
  845. UINT32 EffectIndex,
  846. WINBOOL *pEnabled) = 0;
  847. virtual HRESULT STDMETHODCALLTYPE SetEffectParameters(
  848. UINT32 EffectIndex,
  849. const void *pParameters,
  850. UINT32 ParametersByteSize,
  851. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  852. virtual HRESULT STDMETHODCALLTYPE GetEffectParameters(
  853. UINT32 EffectIndex,
  854. void *pParameters,
  855. UINT32 ParametersByteSize) = 0;
  856. virtual HRESULT STDMETHODCALLTYPE SetFilterParameters(
  857. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  858. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  859. virtual void STDMETHODCALLTYPE GetFilterParameters(
  860. XAUDIO2_FILTER_PARAMETERS *pParameters) = 0;
  861. virtual HRESULT STDMETHODCALLTYPE SetVolume(
  862. float Volume,
  863. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  864. virtual void STDMETHODCALLTYPE GetVolume(
  865. float *pVolume) = 0;
  866. virtual HRESULT STDMETHODCALLTYPE SetChannelVolumes(
  867. UINT32 Channels,
  868. const float *pVolumes,
  869. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  870. virtual void STDMETHODCALLTYPE GetChannelVolumes(
  871. UINT32 Channels,
  872. float *pVolumes) = 0;
  873. virtual HRESULT STDMETHODCALLTYPE SetOutputMatrix(
  874. IXAudio2Voice *pDestinationVoice,
  875. UINT32 SourceChannels,
  876. UINT32 DestinationChannels,
  877. const float *pLevelMatrix,
  878. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  879. virtual void STDMETHODCALLTYPE GetOutputMatrix(
  880. IXAudio2Voice *pDestinationVoice,
  881. UINT32 SourceChannels,
  882. UINT32 DestinationChannels,
  883. float *pLevelMatrix) = 0;
  884. virtual void STDMETHODCALLTYPE DestroyVoice(
  885. ) = 0;
  886. END_INTERFACE
  887. };
  888. #else
  889. typedef struct IXAudio23VoiceVtbl {
  890. BEGIN_INTERFACE
  891. /*** IXAudio23Voice methods ***/
  892. void (STDMETHODCALLTYPE *GetVoiceDetails)(
  893. IXAudio23Voice *This,
  894. XAUDIO27_VOICE_DETAILS *pVoiceDetails);
  895. HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
  896. IXAudio23Voice *This,
  897. const XAUDIO23_VOICE_SENDS *pSendList);
  898. HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
  899. IXAudio23Voice *This,
  900. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  901. HRESULT (STDMETHODCALLTYPE *EnableEffect)(
  902. IXAudio23Voice *This,
  903. UINT32 EffectIndex,
  904. UINT32 OperationSet);
  905. HRESULT (STDMETHODCALLTYPE *DisableEffect)(
  906. IXAudio23Voice *This,
  907. UINT32 EffectIndex,
  908. UINT32 OperationSet);
  909. void (STDMETHODCALLTYPE *GetEffectState)(
  910. IXAudio23Voice *This,
  911. UINT32 EffectIndex,
  912. WINBOOL *pEnabled);
  913. HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
  914. IXAudio23Voice *This,
  915. UINT32 EffectIndex,
  916. const void *pParameters,
  917. UINT32 ParametersByteSize,
  918. UINT32 OperationSet);
  919. HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
  920. IXAudio23Voice *This,
  921. UINT32 EffectIndex,
  922. void *pParameters,
  923. UINT32 ParametersByteSize);
  924. HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
  925. IXAudio23Voice *This,
  926. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  927. UINT32 OperationSet);
  928. void (STDMETHODCALLTYPE *GetFilterParameters)(
  929. IXAudio23Voice *This,
  930. XAUDIO2_FILTER_PARAMETERS *pParameters);
  931. HRESULT (STDMETHODCALLTYPE *SetVolume)(
  932. IXAudio23Voice *This,
  933. float Volume,
  934. UINT32 OperationSet);
  935. void (STDMETHODCALLTYPE *GetVolume)(
  936. IXAudio23Voice *This,
  937. float *pVolume);
  938. HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
  939. IXAudio23Voice *This,
  940. UINT32 Channels,
  941. const float *pVolumes,
  942. UINT32 OperationSet);
  943. void (STDMETHODCALLTYPE *GetChannelVolumes)(
  944. IXAudio23Voice *This,
  945. UINT32 Channels,
  946. float *pVolumes);
  947. HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
  948. IXAudio23Voice *This,
  949. IXAudio2Voice *pDestinationVoice,
  950. UINT32 SourceChannels,
  951. UINT32 DestinationChannels,
  952. const float *pLevelMatrix,
  953. UINT32 OperationSet);
  954. void (STDMETHODCALLTYPE *GetOutputMatrix)(
  955. IXAudio23Voice *This,
  956. IXAudio2Voice *pDestinationVoice,
  957. UINT32 SourceChannels,
  958. UINT32 DestinationChannels,
  959. float *pLevelMatrix);
  960. void (STDMETHODCALLTYPE *DestroyVoice)(
  961. IXAudio23Voice *This);
  962. END_INTERFACE
  963. } IXAudio23VoiceVtbl;
  964. interface IXAudio23Voice {
  965. CONST_VTBL IXAudio23VoiceVtbl* lpVtbl;
  966. };
  967. #ifdef COBJMACROS
  968. #ifndef WIDL_C_INLINE_WRAPPERS
  969. /*** IXAudio23Voice methods ***/
  970. #define IXAudio23Voice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
  971. #define IXAudio23Voice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
  972. #define IXAudio23Voice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
  973. #define IXAudio23Voice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
  974. #define IXAudio23Voice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
  975. #define IXAudio23Voice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
  976. #define IXAudio23Voice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
  977. #define IXAudio23Voice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
  978. #define IXAudio23Voice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
  979. #define IXAudio23Voice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
  980. #define IXAudio23Voice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
  981. #define IXAudio23Voice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
  982. #define IXAudio23Voice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
  983. #define IXAudio23Voice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
  984. #define IXAudio23Voice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
  985. #define IXAudio23Voice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
  986. #define IXAudio23Voice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
  987. #else
  988. /*** IXAudio23Voice methods ***/
  989. static FORCEINLINE void IXAudio23Voice_GetVoiceDetails(IXAudio23Voice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
  990. This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
  991. }
  992. static FORCEINLINE HRESULT IXAudio23Voice_SetOutputVoices(IXAudio23Voice* This,const XAUDIO23_VOICE_SENDS *pSendList) {
  993. return This->lpVtbl->SetOutputVoices(This,pSendList);
  994. }
  995. static FORCEINLINE HRESULT IXAudio23Voice_SetEffectChain(IXAudio23Voice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
  996. return This->lpVtbl->SetEffectChain(This,pEffectChain);
  997. }
  998. static FORCEINLINE HRESULT IXAudio23Voice_EnableEffect(IXAudio23Voice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  999. return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
  1000. }
  1001. static FORCEINLINE HRESULT IXAudio23Voice_DisableEffect(IXAudio23Voice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  1002. return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
  1003. }
  1004. static FORCEINLINE void IXAudio23Voice_GetEffectState(IXAudio23Voice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
  1005. This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
  1006. }
  1007. static FORCEINLINE HRESULT IXAudio23Voice_SetEffectParameters(IXAudio23Voice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
  1008. return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
  1009. }
  1010. static FORCEINLINE HRESULT IXAudio23Voice_GetEffectParameters(IXAudio23Voice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
  1011. return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
  1012. }
  1013. static FORCEINLINE HRESULT IXAudio23Voice_SetFilterParameters(IXAudio23Voice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
  1014. return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
  1015. }
  1016. static FORCEINLINE void IXAudio23Voice_GetFilterParameters(IXAudio23Voice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
  1017. This->lpVtbl->GetFilterParameters(This,pParameters);
  1018. }
  1019. static FORCEINLINE HRESULT IXAudio23Voice_SetVolume(IXAudio23Voice* This,float Volume,UINT32 OperationSet) {
  1020. return This->lpVtbl->SetVolume(This,Volume,OperationSet);
  1021. }
  1022. static FORCEINLINE void IXAudio23Voice_GetVolume(IXAudio23Voice* This,float *pVolume) {
  1023. This->lpVtbl->GetVolume(This,pVolume);
  1024. }
  1025. static FORCEINLINE HRESULT IXAudio23Voice_SetChannelVolumes(IXAudio23Voice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
  1026. return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
  1027. }
  1028. static FORCEINLINE void IXAudio23Voice_GetChannelVolumes(IXAudio23Voice* This,UINT32 Channels,float *pVolumes) {
  1029. This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
  1030. }
  1031. static FORCEINLINE HRESULT IXAudio23Voice_SetOutputMatrix(IXAudio23Voice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
  1032. return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
  1033. }
  1034. static FORCEINLINE void IXAudio23Voice_GetOutputMatrix(IXAudio23Voice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
  1035. This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
  1036. }
  1037. static FORCEINLINE void IXAudio23Voice_DestroyVoice(IXAudio23Voice* This) {
  1038. This->lpVtbl->DestroyVoice(This);
  1039. }
  1040. #endif
  1041. #endif
  1042. #endif
  1043. #endif /* __IXAudio23Voice_INTERFACE_DEFINED__ */
  1044. /*****************************************************************************
  1045. * IXAudio27Voice interface
  1046. */
  1047. #ifndef __IXAudio27Voice_INTERFACE_DEFINED__
  1048. #define __IXAudio27Voice_INTERFACE_DEFINED__
  1049. #if defined(__cplusplus) && !defined(CINTERFACE)
  1050. interface IXAudio27Voice
  1051. {
  1052. BEGIN_INTERFACE
  1053. virtual void STDMETHODCALLTYPE GetVoiceDetails(
  1054. XAUDIO27_VOICE_DETAILS *pVoiceDetails) = 0;
  1055. virtual HRESULT STDMETHODCALLTYPE SetOutputVoices(
  1056. const XAUDIO2_VOICE_SENDS *pSendList) = 0;
  1057. virtual HRESULT STDMETHODCALLTYPE SetEffectChain(
  1058. const XAUDIO2_EFFECT_CHAIN *pEffectChain) = 0;
  1059. virtual HRESULT STDMETHODCALLTYPE EnableEffect(
  1060. UINT32 EffectIndex,
  1061. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  1062. virtual HRESULT STDMETHODCALLTYPE DisableEffect(
  1063. UINT32 EffectIndex,
  1064. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  1065. virtual void STDMETHODCALLTYPE GetEffectState(
  1066. UINT32 EffectIndex,
  1067. WINBOOL *pEnabled) = 0;
  1068. virtual HRESULT STDMETHODCALLTYPE SetEffectParameters(
  1069. UINT32 EffectIndex,
  1070. const void *pParameters,
  1071. UINT32 ParametersByteSize,
  1072. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  1073. virtual HRESULT STDMETHODCALLTYPE GetEffectParameters(
  1074. UINT32 EffectIndex,
  1075. void *pParameters,
  1076. UINT32 ParametersByteSize) = 0;
  1077. virtual HRESULT STDMETHODCALLTYPE SetFilterParameters(
  1078. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  1079. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  1080. virtual void STDMETHODCALLTYPE GetFilterParameters(
  1081. XAUDIO2_FILTER_PARAMETERS *pParameters) = 0;
  1082. virtual HRESULT STDMETHODCALLTYPE SetOutputFilterParameters(
  1083. IXAudio2Voice *pDestinationVoice,
  1084. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  1085. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  1086. virtual void STDMETHODCALLTYPE GetOutputFilterParameters(
  1087. IXAudio2Voice *pDestinationVoice,
  1088. XAUDIO2_FILTER_PARAMETERS *pParameters) = 0;
  1089. virtual HRESULT STDMETHODCALLTYPE SetVolume(
  1090. float Volume,
  1091. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  1092. virtual void STDMETHODCALLTYPE GetVolume(
  1093. float *pVolume) = 0;
  1094. virtual HRESULT STDMETHODCALLTYPE SetChannelVolumes(
  1095. UINT32 Channels,
  1096. const float *pVolumes,
  1097. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  1098. virtual void STDMETHODCALLTYPE GetChannelVolumes(
  1099. UINT32 Channels,
  1100. float *pVolumes) = 0;
  1101. virtual HRESULT STDMETHODCALLTYPE SetOutputMatrix(
  1102. IXAudio2Voice *pDestinationVoice,
  1103. UINT32 SourceChannels,
  1104. UINT32 DestinationChannels,
  1105. const float *pLevelMatrix,
  1106. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  1107. virtual void STDMETHODCALLTYPE GetOutputMatrix(
  1108. IXAudio2Voice *pDestinationVoice,
  1109. UINT32 SourceChannels,
  1110. UINT32 DestinationChannels,
  1111. float *pLevelMatrix) = 0;
  1112. virtual void STDMETHODCALLTYPE DestroyVoice(
  1113. ) = 0;
  1114. END_INTERFACE
  1115. };
  1116. #else
  1117. typedef struct IXAudio27VoiceVtbl {
  1118. BEGIN_INTERFACE
  1119. /*** IXAudio27Voice methods ***/
  1120. void (STDMETHODCALLTYPE *GetVoiceDetails)(
  1121. IXAudio27Voice *This,
  1122. XAUDIO27_VOICE_DETAILS *pVoiceDetails);
  1123. HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
  1124. IXAudio27Voice *This,
  1125. const XAUDIO2_VOICE_SENDS *pSendList);
  1126. HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
  1127. IXAudio27Voice *This,
  1128. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  1129. HRESULT (STDMETHODCALLTYPE *EnableEffect)(
  1130. IXAudio27Voice *This,
  1131. UINT32 EffectIndex,
  1132. UINT32 OperationSet);
  1133. HRESULT (STDMETHODCALLTYPE *DisableEffect)(
  1134. IXAudio27Voice *This,
  1135. UINT32 EffectIndex,
  1136. UINT32 OperationSet);
  1137. void (STDMETHODCALLTYPE *GetEffectState)(
  1138. IXAudio27Voice *This,
  1139. UINT32 EffectIndex,
  1140. WINBOOL *pEnabled);
  1141. HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
  1142. IXAudio27Voice *This,
  1143. UINT32 EffectIndex,
  1144. const void *pParameters,
  1145. UINT32 ParametersByteSize,
  1146. UINT32 OperationSet);
  1147. HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
  1148. IXAudio27Voice *This,
  1149. UINT32 EffectIndex,
  1150. void *pParameters,
  1151. UINT32 ParametersByteSize);
  1152. HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
  1153. IXAudio27Voice *This,
  1154. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  1155. UINT32 OperationSet);
  1156. void (STDMETHODCALLTYPE *GetFilterParameters)(
  1157. IXAudio27Voice *This,
  1158. XAUDIO2_FILTER_PARAMETERS *pParameters);
  1159. HRESULT (STDMETHODCALLTYPE *SetOutputFilterParameters)(
  1160. IXAudio27Voice *This,
  1161. IXAudio2Voice *pDestinationVoice,
  1162. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  1163. UINT32 OperationSet);
  1164. void (STDMETHODCALLTYPE *GetOutputFilterParameters)(
  1165. IXAudio27Voice *This,
  1166. IXAudio2Voice *pDestinationVoice,
  1167. XAUDIO2_FILTER_PARAMETERS *pParameters);
  1168. HRESULT (STDMETHODCALLTYPE *SetVolume)(
  1169. IXAudio27Voice *This,
  1170. float Volume,
  1171. UINT32 OperationSet);
  1172. void (STDMETHODCALLTYPE *GetVolume)(
  1173. IXAudio27Voice *This,
  1174. float *pVolume);
  1175. HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
  1176. IXAudio27Voice *This,
  1177. UINT32 Channels,
  1178. const float *pVolumes,
  1179. UINT32 OperationSet);
  1180. void (STDMETHODCALLTYPE *GetChannelVolumes)(
  1181. IXAudio27Voice *This,
  1182. UINT32 Channels,
  1183. float *pVolumes);
  1184. HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
  1185. IXAudio27Voice *This,
  1186. IXAudio2Voice *pDestinationVoice,
  1187. UINT32 SourceChannels,
  1188. UINT32 DestinationChannels,
  1189. const float *pLevelMatrix,
  1190. UINT32 OperationSet);
  1191. void (STDMETHODCALLTYPE *GetOutputMatrix)(
  1192. IXAudio27Voice *This,
  1193. IXAudio2Voice *pDestinationVoice,
  1194. UINT32 SourceChannels,
  1195. UINT32 DestinationChannels,
  1196. float *pLevelMatrix);
  1197. void (STDMETHODCALLTYPE *DestroyVoice)(
  1198. IXAudio27Voice *This);
  1199. END_INTERFACE
  1200. } IXAudio27VoiceVtbl;
  1201. interface IXAudio27Voice {
  1202. CONST_VTBL IXAudio27VoiceVtbl* lpVtbl;
  1203. };
  1204. #ifdef COBJMACROS
  1205. #ifndef WIDL_C_INLINE_WRAPPERS
  1206. /*** IXAudio27Voice methods ***/
  1207. #define IXAudio27Voice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
  1208. #define IXAudio27Voice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
  1209. #define IXAudio27Voice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
  1210. #define IXAudio27Voice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
  1211. #define IXAudio27Voice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
  1212. #define IXAudio27Voice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
  1213. #define IXAudio27Voice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
  1214. #define IXAudio27Voice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
  1215. #define IXAudio27Voice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
  1216. #define IXAudio27Voice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
  1217. #define IXAudio27Voice_SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet) (This)->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet)
  1218. #define IXAudio27Voice_GetOutputFilterParameters(This,pDestinationVoice,pParameters) (This)->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters)
  1219. #define IXAudio27Voice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
  1220. #define IXAudio27Voice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
  1221. #define IXAudio27Voice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
  1222. #define IXAudio27Voice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
  1223. #define IXAudio27Voice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
  1224. #define IXAudio27Voice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
  1225. #define IXAudio27Voice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
  1226. #else
  1227. /*** IXAudio27Voice methods ***/
  1228. static FORCEINLINE void IXAudio27Voice_GetVoiceDetails(IXAudio27Voice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
  1229. This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
  1230. }
  1231. static FORCEINLINE HRESULT IXAudio27Voice_SetOutputVoices(IXAudio27Voice* This,const XAUDIO2_VOICE_SENDS *pSendList) {
  1232. return This->lpVtbl->SetOutputVoices(This,pSendList);
  1233. }
  1234. static FORCEINLINE HRESULT IXAudio27Voice_SetEffectChain(IXAudio27Voice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
  1235. return This->lpVtbl->SetEffectChain(This,pEffectChain);
  1236. }
  1237. static FORCEINLINE HRESULT IXAudio27Voice_EnableEffect(IXAudio27Voice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  1238. return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
  1239. }
  1240. static FORCEINLINE HRESULT IXAudio27Voice_DisableEffect(IXAudio27Voice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  1241. return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
  1242. }
  1243. static FORCEINLINE void IXAudio27Voice_GetEffectState(IXAudio27Voice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
  1244. This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
  1245. }
  1246. static FORCEINLINE HRESULT IXAudio27Voice_SetEffectParameters(IXAudio27Voice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
  1247. return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
  1248. }
  1249. static FORCEINLINE HRESULT IXAudio27Voice_GetEffectParameters(IXAudio27Voice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
  1250. return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
  1251. }
  1252. static FORCEINLINE HRESULT IXAudio27Voice_SetFilterParameters(IXAudio27Voice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
  1253. return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
  1254. }
  1255. static FORCEINLINE void IXAudio27Voice_GetFilterParameters(IXAudio27Voice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
  1256. This->lpVtbl->GetFilterParameters(This,pParameters);
  1257. }
  1258. static FORCEINLINE HRESULT IXAudio27Voice_SetOutputFilterParameters(IXAudio27Voice* This,IXAudio2Voice *pDestinationVoice,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
  1259. return This->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet);
  1260. }
  1261. static FORCEINLINE void IXAudio27Voice_GetOutputFilterParameters(IXAudio27Voice* This,IXAudio2Voice *pDestinationVoice,XAUDIO2_FILTER_PARAMETERS *pParameters) {
  1262. This->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters);
  1263. }
  1264. static FORCEINLINE HRESULT IXAudio27Voice_SetVolume(IXAudio27Voice* This,float Volume,UINT32 OperationSet) {
  1265. return This->lpVtbl->SetVolume(This,Volume,OperationSet);
  1266. }
  1267. static FORCEINLINE void IXAudio27Voice_GetVolume(IXAudio27Voice* This,float *pVolume) {
  1268. This->lpVtbl->GetVolume(This,pVolume);
  1269. }
  1270. static FORCEINLINE HRESULT IXAudio27Voice_SetChannelVolumes(IXAudio27Voice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
  1271. return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
  1272. }
  1273. static FORCEINLINE void IXAudio27Voice_GetChannelVolumes(IXAudio27Voice* This,UINT32 Channels,float *pVolumes) {
  1274. This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
  1275. }
  1276. static FORCEINLINE HRESULT IXAudio27Voice_SetOutputMatrix(IXAudio27Voice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
  1277. return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
  1278. }
  1279. static FORCEINLINE void IXAudio27Voice_GetOutputMatrix(IXAudio27Voice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
  1280. This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
  1281. }
  1282. static FORCEINLINE void IXAudio27Voice_DestroyVoice(IXAudio27Voice* This) {
  1283. This->lpVtbl->DestroyVoice(This);
  1284. }
  1285. #endif
  1286. #endif
  1287. #endif
  1288. #endif /* __IXAudio27Voice_INTERFACE_DEFINED__ */
  1289. /*****************************************************************************
  1290. * IXAudio2Voice interface
  1291. */
  1292. #ifndef __IXAudio2Voice_INTERFACE_DEFINED__
  1293. #define __IXAudio2Voice_INTERFACE_DEFINED__
  1294. #if defined(__cplusplus) && !defined(CINTERFACE)
  1295. interface IXAudio2Voice
  1296. {
  1297. BEGIN_INTERFACE
  1298. virtual void STDMETHODCALLTYPE GetVoiceDetails(
  1299. XAUDIO2_VOICE_DETAILS *pVoiceDetails) = 0;
  1300. virtual HRESULT STDMETHODCALLTYPE SetOutputVoices(
  1301. const XAUDIO2_VOICE_SENDS *pSendList) = 0;
  1302. virtual HRESULT STDMETHODCALLTYPE SetEffectChain(
  1303. const XAUDIO2_EFFECT_CHAIN *pEffectChain) = 0;
  1304. virtual HRESULT STDMETHODCALLTYPE EnableEffect(
  1305. UINT32 EffectIndex,
  1306. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  1307. virtual HRESULT STDMETHODCALLTYPE DisableEffect(
  1308. UINT32 EffectIndex,
  1309. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  1310. virtual void STDMETHODCALLTYPE GetEffectState(
  1311. UINT32 EffectIndex,
  1312. WINBOOL *pEnabled) = 0;
  1313. virtual HRESULT STDMETHODCALLTYPE SetEffectParameters(
  1314. UINT32 EffectIndex,
  1315. const void *pParameters,
  1316. UINT32 ParametersByteSize,
  1317. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  1318. virtual HRESULT STDMETHODCALLTYPE GetEffectParameters(
  1319. UINT32 EffectIndex,
  1320. void *pParameters,
  1321. UINT32 ParametersByteSize) = 0;
  1322. virtual HRESULT STDMETHODCALLTYPE SetFilterParameters(
  1323. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  1324. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  1325. virtual void STDMETHODCALLTYPE GetFilterParameters(
  1326. XAUDIO2_FILTER_PARAMETERS *pParameters) = 0;
  1327. virtual HRESULT STDMETHODCALLTYPE SetOutputFilterParameters(
  1328. IXAudio2Voice *pDestinationVoice,
  1329. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  1330. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  1331. virtual void STDMETHODCALLTYPE GetOutputFilterParameters(
  1332. IXAudio2Voice *pDestinationVoice,
  1333. XAUDIO2_FILTER_PARAMETERS *pParameters) = 0;
  1334. virtual HRESULT STDMETHODCALLTYPE SetVolume(
  1335. float Volume,
  1336. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  1337. virtual void STDMETHODCALLTYPE GetVolume(
  1338. float *pVolume) = 0;
  1339. virtual HRESULT STDMETHODCALLTYPE SetChannelVolumes(
  1340. UINT32 Channels,
  1341. const float *pVolumes,
  1342. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  1343. virtual void STDMETHODCALLTYPE GetChannelVolumes(
  1344. UINT32 Channels,
  1345. float *pVolumes) = 0;
  1346. virtual HRESULT STDMETHODCALLTYPE SetOutputMatrix(
  1347. IXAudio2Voice *pDestinationVoice,
  1348. UINT32 SourceChannels,
  1349. UINT32 DestinationChannels,
  1350. const float *pLevelMatrix,
  1351. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  1352. virtual void STDMETHODCALLTYPE GetOutputMatrix(
  1353. IXAudio2Voice *pDestinationVoice,
  1354. UINT32 SourceChannels,
  1355. UINT32 DestinationChannels,
  1356. float *pLevelMatrix) = 0;
  1357. virtual void STDMETHODCALLTYPE DestroyVoice(
  1358. ) = 0;
  1359. END_INTERFACE
  1360. };
  1361. #else
  1362. typedef struct IXAudio2VoiceVtbl {
  1363. BEGIN_INTERFACE
  1364. /*** IXAudio2Voice methods ***/
  1365. void (STDMETHODCALLTYPE *GetVoiceDetails)(
  1366. IXAudio2Voice *This,
  1367. XAUDIO2_VOICE_DETAILS *pVoiceDetails);
  1368. HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
  1369. IXAudio2Voice *This,
  1370. const XAUDIO2_VOICE_SENDS *pSendList);
  1371. HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
  1372. IXAudio2Voice *This,
  1373. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  1374. HRESULT (STDMETHODCALLTYPE *EnableEffect)(
  1375. IXAudio2Voice *This,
  1376. UINT32 EffectIndex,
  1377. UINT32 OperationSet);
  1378. HRESULT (STDMETHODCALLTYPE *DisableEffect)(
  1379. IXAudio2Voice *This,
  1380. UINT32 EffectIndex,
  1381. UINT32 OperationSet);
  1382. void (STDMETHODCALLTYPE *GetEffectState)(
  1383. IXAudio2Voice *This,
  1384. UINT32 EffectIndex,
  1385. WINBOOL *pEnabled);
  1386. HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
  1387. IXAudio2Voice *This,
  1388. UINT32 EffectIndex,
  1389. const void *pParameters,
  1390. UINT32 ParametersByteSize,
  1391. UINT32 OperationSet);
  1392. HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
  1393. IXAudio2Voice *This,
  1394. UINT32 EffectIndex,
  1395. void *pParameters,
  1396. UINT32 ParametersByteSize);
  1397. HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
  1398. IXAudio2Voice *This,
  1399. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  1400. UINT32 OperationSet);
  1401. void (STDMETHODCALLTYPE *GetFilterParameters)(
  1402. IXAudio2Voice *This,
  1403. XAUDIO2_FILTER_PARAMETERS *pParameters);
  1404. HRESULT (STDMETHODCALLTYPE *SetOutputFilterParameters)(
  1405. IXAudio2Voice *This,
  1406. IXAudio2Voice *pDestinationVoice,
  1407. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  1408. UINT32 OperationSet);
  1409. void (STDMETHODCALLTYPE *GetOutputFilterParameters)(
  1410. IXAudio2Voice *This,
  1411. IXAudio2Voice *pDestinationVoice,
  1412. XAUDIO2_FILTER_PARAMETERS *pParameters);
  1413. HRESULT (STDMETHODCALLTYPE *SetVolume)(
  1414. IXAudio2Voice *This,
  1415. float Volume,
  1416. UINT32 OperationSet);
  1417. void (STDMETHODCALLTYPE *GetVolume)(
  1418. IXAudio2Voice *This,
  1419. float *pVolume);
  1420. HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
  1421. IXAudio2Voice *This,
  1422. UINT32 Channels,
  1423. const float *pVolumes,
  1424. UINT32 OperationSet);
  1425. void (STDMETHODCALLTYPE *GetChannelVolumes)(
  1426. IXAudio2Voice *This,
  1427. UINT32 Channels,
  1428. float *pVolumes);
  1429. HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
  1430. IXAudio2Voice *This,
  1431. IXAudio2Voice *pDestinationVoice,
  1432. UINT32 SourceChannels,
  1433. UINT32 DestinationChannels,
  1434. const float *pLevelMatrix,
  1435. UINT32 OperationSet);
  1436. void (STDMETHODCALLTYPE *GetOutputMatrix)(
  1437. IXAudio2Voice *This,
  1438. IXAudio2Voice *pDestinationVoice,
  1439. UINT32 SourceChannels,
  1440. UINT32 DestinationChannels,
  1441. float *pLevelMatrix);
  1442. void (STDMETHODCALLTYPE *DestroyVoice)(
  1443. IXAudio2Voice *This);
  1444. END_INTERFACE
  1445. } IXAudio2VoiceVtbl;
  1446. interface IXAudio2Voice {
  1447. CONST_VTBL IXAudio2VoiceVtbl* lpVtbl;
  1448. };
  1449. #ifdef COBJMACROS
  1450. #ifndef WIDL_C_INLINE_WRAPPERS
  1451. /*** IXAudio2Voice methods ***/
  1452. #define IXAudio2Voice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
  1453. #define IXAudio2Voice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
  1454. #define IXAudio2Voice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
  1455. #define IXAudio2Voice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
  1456. #define IXAudio2Voice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
  1457. #define IXAudio2Voice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
  1458. #define IXAudio2Voice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
  1459. #define IXAudio2Voice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
  1460. #define IXAudio2Voice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
  1461. #define IXAudio2Voice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
  1462. #define IXAudio2Voice_SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet) (This)->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet)
  1463. #define IXAudio2Voice_GetOutputFilterParameters(This,pDestinationVoice,pParameters) (This)->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters)
  1464. #define IXAudio2Voice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
  1465. #define IXAudio2Voice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
  1466. #define IXAudio2Voice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
  1467. #define IXAudio2Voice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
  1468. #define IXAudio2Voice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
  1469. #define IXAudio2Voice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
  1470. #define IXAudio2Voice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
  1471. #else
  1472. /*** IXAudio2Voice methods ***/
  1473. static FORCEINLINE void IXAudio2Voice_GetVoiceDetails(IXAudio2Voice* This,XAUDIO2_VOICE_DETAILS *pVoiceDetails) {
  1474. This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
  1475. }
  1476. static FORCEINLINE HRESULT IXAudio2Voice_SetOutputVoices(IXAudio2Voice* This,const XAUDIO2_VOICE_SENDS *pSendList) {
  1477. return This->lpVtbl->SetOutputVoices(This,pSendList);
  1478. }
  1479. static FORCEINLINE HRESULT IXAudio2Voice_SetEffectChain(IXAudio2Voice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
  1480. return This->lpVtbl->SetEffectChain(This,pEffectChain);
  1481. }
  1482. static FORCEINLINE HRESULT IXAudio2Voice_EnableEffect(IXAudio2Voice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  1483. return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
  1484. }
  1485. static FORCEINLINE HRESULT IXAudio2Voice_DisableEffect(IXAudio2Voice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  1486. return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
  1487. }
  1488. static FORCEINLINE void IXAudio2Voice_GetEffectState(IXAudio2Voice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
  1489. This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
  1490. }
  1491. static FORCEINLINE HRESULT IXAudio2Voice_SetEffectParameters(IXAudio2Voice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
  1492. return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
  1493. }
  1494. static FORCEINLINE HRESULT IXAudio2Voice_GetEffectParameters(IXAudio2Voice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
  1495. return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
  1496. }
  1497. static FORCEINLINE HRESULT IXAudio2Voice_SetFilterParameters(IXAudio2Voice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
  1498. return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
  1499. }
  1500. static FORCEINLINE void IXAudio2Voice_GetFilterParameters(IXAudio2Voice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
  1501. This->lpVtbl->GetFilterParameters(This,pParameters);
  1502. }
  1503. static FORCEINLINE HRESULT IXAudio2Voice_SetOutputFilterParameters(IXAudio2Voice* This,IXAudio2Voice *pDestinationVoice,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
  1504. return This->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet);
  1505. }
  1506. static FORCEINLINE void IXAudio2Voice_GetOutputFilterParameters(IXAudio2Voice* This,IXAudio2Voice *pDestinationVoice,XAUDIO2_FILTER_PARAMETERS *pParameters) {
  1507. This->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters);
  1508. }
  1509. static FORCEINLINE HRESULT IXAudio2Voice_SetVolume(IXAudio2Voice* This,float Volume,UINT32 OperationSet) {
  1510. return This->lpVtbl->SetVolume(This,Volume,OperationSet);
  1511. }
  1512. static FORCEINLINE void IXAudio2Voice_GetVolume(IXAudio2Voice* This,float *pVolume) {
  1513. This->lpVtbl->GetVolume(This,pVolume);
  1514. }
  1515. static FORCEINLINE HRESULT IXAudio2Voice_SetChannelVolumes(IXAudio2Voice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
  1516. return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
  1517. }
  1518. static FORCEINLINE void IXAudio2Voice_GetChannelVolumes(IXAudio2Voice* This,UINT32 Channels,float *pVolumes) {
  1519. This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
  1520. }
  1521. static FORCEINLINE HRESULT IXAudio2Voice_SetOutputMatrix(IXAudio2Voice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
  1522. return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
  1523. }
  1524. static FORCEINLINE void IXAudio2Voice_GetOutputMatrix(IXAudio2Voice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
  1525. This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
  1526. }
  1527. static FORCEINLINE void IXAudio2Voice_DestroyVoice(IXAudio2Voice* This) {
  1528. This->lpVtbl->DestroyVoice(This);
  1529. }
  1530. #endif
  1531. #endif
  1532. #endif
  1533. #endif /* __IXAudio2Voice_INTERFACE_DEFINED__ */
  1534. typedef struct XAUDIO2_BUFFER {
  1535. UINT32 Flags;
  1536. UINT32 AudioBytes;
  1537. const BYTE *pAudioData;
  1538. UINT32 PlayBegin;
  1539. UINT32 PlayLength;
  1540. UINT32 LoopBegin;
  1541. UINT32 LoopLength;
  1542. UINT32 LoopCount;
  1543. void *pContext;
  1544. } XAUDIO2_BUFFER;
  1545. typedef struct XAUDIO2_BUFFER_WMA {
  1546. const UINT32 *pDecodedPacketCumulativeBytes;
  1547. UINT32 PacketCount;
  1548. } XAUDIO2_BUFFER_WMA;
  1549. typedef struct XAUDIO2_VOICE_STATE {
  1550. void *pCurrentBufferContext;
  1551. UINT32 BuffersQueued;
  1552. UINT64 SamplesPlayed;
  1553. } XAUDIO2_VOICE_STATE;
  1554. /*****************************************************************************
  1555. * IXAudio20SourceVoice interface
  1556. */
  1557. #ifndef __IXAudio20SourceVoice_INTERFACE_DEFINED__
  1558. #define __IXAudio20SourceVoice_INTERFACE_DEFINED__
  1559. #if defined(__cplusplus) && !defined(CINTERFACE)
  1560. interface IXAudio20SourceVoice : public IXAudio20Voice
  1561. {
  1562. virtual HRESULT STDMETHODCALLTYPE Start(
  1563. UINT32 Flags = 0,
  1564. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  1565. virtual HRESULT STDMETHODCALLTYPE Stop(
  1566. UINT32 Flags = 0,
  1567. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  1568. virtual HRESULT STDMETHODCALLTYPE SubmitSourceBuffer(
  1569. const XAUDIO2_BUFFER *pBuffer,
  1570. const XAUDIO2_BUFFER_WMA *pBufferWMA = 0) = 0;
  1571. virtual HRESULT STDMETHODCALLTYPE FlushSourceBuffers(
  1572. ) = 0;
  1573. virtual HRESULT STDMETHODCALLTYPE Discontinuity(
  1574. ) = 0;
  1575. virtual HRESULT STDMETHODCALLTYPE ExitLoop(
  1576. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  1577. virtual void STDMETHODCALLTYPE GetState(
  1578. XAUDIO2_VOICE_STATE *pVoiceState) = 0;
  1579. virtual HRESULT STDMETHODCALLTYPE SetFrequencyRatio(
  1580. float Ratio,
  1581. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  1582. virtual void STDMETHODCALLTYPE GetFrequencyRatio(
  1583. float *pRatio) = 0;
  1584. };
  1585. #else
  1586. typedef struct IXAudio20SourceVoiceVtbl {
  1587. BEGIN_INTERFACE
  1588. /*** IXAudio20Voice methods ***/
  1589. void (STDMETHODCALLTYPE *GetVoiceDetails)(
  1590. IXAudio20SourceVoice *This,
  1591. XAUDIO27_VOICE_DETAILS *pVoiceDetails);
  1592. HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
  1593. IXAudio20SourceVoice *This,
  1594. const XAUDIO23_VOICE_SENDS *pSendList);
  1595. HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
  1596. IXAudio20SourceVoice *This,
  1597. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  1598. HRESULT (STDMETHODCALLTYPE *EnableEffect)(
  1599. IXAudio20SourceVoice *This,
  1600. UINT32 EffectIndex,
  1601. UINT32 OperationSet);
  1602. HRESULT (STDMETHODCALLTYPE *DisableEffect)(
  1603. IXAudio20SourceVoice *This,
  1604. UINT32 EffectIndex,
  1605. UINT32 OperationSet);
  1606. void (STDMETHODCALLTYPE *GetEffectState)(
  1607. IXAudio20SourceVoice *This,
  1608. UINT32 EffectIndex,
  1609. WINBOOL *pEnabled);
  1610. HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
  1611. IXAudio20SourceVoice *This,
  1612. UINT32 EffectIndex,
  1613. const void *pParameters,
  1614. UINT32 ParametersByteSize,
  1615. UINT32 OperationSet);
  1616. HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
  1617. IXAudio20SourceVoice *This,
  1618. UINT32 EffectIndex,
  1619. void *pParameters,
  1620. UINT32 ParametersByteSize);
  1621. HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
  1622. IXAudio20SourceVoice *This,
  1623. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  1624. UINT32 OperationSet);
  1625. void (STDMETHODCALLTYPE *GetFilterParameters)(
  1626. IXAudio20SourceVoice *This,
  1627. XAUDIO2_FILTER_PARAMETERS *pParameters);
  1628. HRESULT (STDMETHODCALLTYPE *SetVolume)(
  1629. IXAudio20SourceVoice *This,
  1630. float Volume,
  1631. UINT32 OperationSet);
  1632. void (STDMETHODCALLTYPE *GetVolume)(
  1633. IXAudio20SourceVoice *This,
  1634. float *pVolume);
  1635. HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
  1636. IXAudio20SourceVoice *This,
  1637. UINT32 Channels,
  1638. const float *pVolumes,
  1639. UINT32 OperationSet);
  1640. void (STDMETHODCALLTYPE *GetChannelVolumes)(
  1641. IXAudio20SourceVoice *This,
  1642. UINT32 Channels,
  1643. float *pVolumes);
  1644. HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
  1645. IXAudio20SourceVoice *This,
  1646. IXAudio2Voice *pDestinationVoice,
  1647. UINT32 SourceChannels,
  1648. UINT32 DestinationChannels,
  1649. const float *pLevelMatrix,
  1650. UINT32 OperationSet);
  1651. HRESULT (STDMETHODCALLTYPE *GetOutputMatrix)(
  1652. IXAudio20SourceVoice *This,
  1653. IXAudio2Voice *pDestinationVoice,
  1654. UINT32 SourceChannels,
  1655. UINT32 DestinationChannels,
  1656. float *pLevelMatrix);
  1657. void (STDMETHODCALLTYPE *DestroyVoice)(
  1658. IXAudio20SourceVoice *This);
  1659. /*** IXAudio20SourceVoice methods ***/
  1660. HRESULT (STDMETHODCALLTYPE *Start)(
  1661. IXAudio20SourceVoice *This,
  1662. UINT32 Flags,
  1663. UINT32 OperationSet);
  1664. HRESULT (STDMETHODCALLTYPE *Stop)(
  1665. IXAudio20SourceVoice *This,
  1666. UINT32 Flags,
  1667. UINT32 OperationSet);
  1668. HRESULT (STDMETHODCALLTYPE *SubmitSourceBuffer)(
  1669. IXAudio20SourceVoice *This,
  1670. const XAUDIO2_BUFFER *pBuffer,
  1671. const XAUDIO2_BUFFER_WMA *pBufferWMA);
  1672. HRESULT (STDMETHODCALLTYPE *FlushSourceBuffers)(
  1673. IXAudio20SourceVoice *This);
  1674. HRESULT (STDMETHODCALLTYPE *Discontinuity)(
  1675. IXAudio20SourceVoice *This);
  1676. HRESULT (STDMETHODCALLTYPE *ExitLoop)(
  1677. IXAudio20SourceVoice *This,
  1678. UINT32 OperationSet);
  1679. void (STDMETHODCALLTYPE *GetState)(
  1680. IXAudio20SourceVoice *This,
  1681. XAUDIO2_VOICE_STATE *pVoiceState);
  1682. HRESULT (STDMETHODCALLTYPE *SetFrequencyRatio)(
  1683. IXAudio20SourceVoice *This,
  1684. float Ratio,
  1685. UINT32 OperationSet);
  1686. void (STDMETHODCALLTYPE *GetFrequencyRatio)(
  1687. IXAudio20SourceVoice *This,
  1688. float *pRatio);
  1689. END_INTERFACE
  1690. } IXAudio20SourceVoiceVtbl;
  1691. interface IXAudio20SourceVoice {
  1692. CONST_VTBL IXAudio20SourceVoiceVtbl* lpVtbl;
  1693. };
  1694. #ifdef COBJMACROS
  1695. #ifndef WIDL_C_INLINE_WRAPPERS
  1696. /*** IXAudio20Voice methods ***/
  1697. #define IXAudio20SourceVoice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
  1698. #define IXAudio20SourceVoice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
  1699. #define IXAudio20SourceVoice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
  1700. #define IXAudio20SourceVoice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
  1701. #define IXAudio20SourceVoice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
  1702. #define IXAudio20SourceVoice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
  1703. #define IXAudio20SourceVoice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
  1704. #define IXAudio20SourceVoice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
  1705. #define IXAudio20SourceVoice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
  1706. #define IXAudio20SourceVoice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
  1707. #define IXAudio20SourceVoice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
  1708. #define IXAudio20SourceVoice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
  1709. #define IXAudio20SourceVoice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
  1710. #define IXAudio20SourceVoice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
  1711. #define IXAudio20SourceVoice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
  1712. #define IXAudio20SourceVoice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
  1713. #define IXAudio20SourceVoice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
  1714. /*** IXAudio20SourceVoice methods ***/
  1715. #define IXAudio20SourceVoice_Start(This,Flags,OperationSet) (This)->lpVtbl->Start(This,Flags,OperationSet)
  1716. #define IXAudio20SourceVoice_Stop(This,Flags,OperationSet) (This)->lpVtbl->Stop(This,Flags,OperationSet)
  1717. #define IXAudio20SourceVoice_SubmitSourceBuffer(This,pBuffer,pBufferWMA) (This)->lpVtbl->SubmitSourceBuffer(This,pBuffer,pBufferWMA)
  1718. #define IXAudio20SourceVoice_FlushSourceBuffers(This) (This)->lpVtbl->FlushSourceBuffers(This)
  1719. #define IXAudio20SourceVoice_Discontinuity(This) (This)->lpVtbl->Discontinuity(This)
  1720. #define IXAudio20SourceVoice_ExitLoop(This,OperationSet) (This)->lpVtbl->ExitLoop(This,OperationSet)
  1721. #define IXAudio20SourceVoice_GetState(This,pVoiceState) (This)->lpVtbl->GetState(This,pVoiceState)
  1722. #define IXAudio20SourceVoice_SetFrequencyRatio(This,Ratio,OperationSet) (This)->lpVtbl->SetFrequencyRatio(This,Ratio,OperationSet)
  1723. #define IXAudio20SourceVoice_GetFrequencyRatio(This,pRatio) (This)->lpVtbl->GetFrequencyRatio(This,pRatio)
  1724. #else
  1725. /*** IXAudio20Voice methods ***/
  1726. static FORCEINLINE void IXAudio20SourceVoice_GetVoiceDetails(IXAudio20SourceVoice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
  1727. This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
  1728. }
  1729. static FORCEINLINE HRESULT IXAudio20SourceVoice_SetOutputVoices(IXAudio20SourceVoice* This,const XAUDIO23_VOICE_SENDS *pSendList) {
  1730. return This->lpVtbl->SetOutputVoices(This,pSendList);
  1731. }
  1732. static FORCEINLINE HRESULT IXAudio20SourceVoice_SetEffectChain(IXAudio20SourceVoice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
  1733. return This->lpVtbl->SetEffectChain(This,pEffectChain);
  1734. }
  1735. static FORCEINLINE HRESULT IXAudio20SourceVoice_EnableEffect(IXAudio20SourceVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  1736. return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
  1737. }
  1738. static FORCEINLINE HRESULT IXAudio20SourceVoice_DisableEffect(IXAudio20SourceVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  1739. return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
  1740. }
  1741. static FORCEINLINE void IXAudio20SourceVoice_GetEffectState(IXAudio20SourceVoice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
  1742. This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
  1743. }
  1744. static FORCEINLINE HRESULT IXAudio20SourceVoice_SetEffectParameters(IXAudio20SourceVoice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
  1745. return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
  1746. }
  1747. static FORCEINLINE HRESULT IXAudio20SourceVoice_GetEffectParameters(IXAudio20SourceVoice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
  1748. return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
  1749. }
  1750. static FORCEINLINE HRESULT IXAudio20SourceVoice_SetFilterParameters(IXAudio20SourceVoice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
  1751. return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
  1752. }
  1753. static FORCEINLINE void IXAudio20SourceVoice_GetFilterParameters(IXAudio20SourceVoice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
  1754. This->lpVtbl->GetFilterParameters(This,pParameters);
  1755. }
  1756. static FORCEINLINE HRESULT IXAudio20SourceVoice_SetVolume(IXAudio20SourceVoice* This,float Volume,UINT32 OperationSet) {
  1757. return This->lpVtbl->SetVolume(This,Volume,OperationSet);
  1758. }
  1759. static FORCEINLINE void IXAudio20SourceVoice_GetVolume(IXAudio20SourceVoice* This,float *pVolume) {
  1760. This->lpVtbl->GetVolume(This,pVolume);
  1761. }
  1762. static FORCEINLINE HRESULT IXAudio20SourceVoice_SetChannelVolumes(IXAudio20SourceVoice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
  1763. return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
  1764. }
  1765. static FORCEINLINE void IXAudio20SourceVoice_GetChannelVolumes(IXAudio20SourceVoice* This,UINT32 Channels,float *pVolumes) {
  1766. This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
  1767. }
  1768. static FORCEINLINE HRESULT IXAudio20SourceVoice_SetOutputMatrix(IXAudio20SourceVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
  1769. return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
  1770. }
  1771. static FORCEINLINE HRESULT IXAudio20SourceVoice_GetOutputMatrix(IXAudio20SourceVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
  1772. return This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
  1773. }
  1774. static FORCEINLINE void IXAudio20SourceVoice_DestroyVoice(IXAudio20SourceVoice* This) {
  1775. This->lpVtbl->DestroyVoice(This);
  1776. }
  1777. /*** IXAudio20SourceVoice methods ***/
  1778. static FORCEINLINE HRESULT IXAudio20SourceVoice_Start(IXAudio20SourceVoice* This,UINT32 Flags,UINT32 OperationSet) {
  1779. return This->lpVtbl->Start(This,Flags,OperationSet);
  1780. }
  1781. static FORCEINLINE HRESULT IXAudio20SourceVoice_Stop(IXAudio20SourceVoice* This,UINT32 Flags,UINT32 OperationSet) {
  1782. return This->lpVtbl->Stop(This,Flags,OperationSet);
  1783. }
  1784. static FORCEINLINE HRESULT IXAudio20SourceVoice_SubmitSourceBuffer(IXAudio20SourceVoice* This,const XAUDIO2_BUFFER *pBuffer,const XAUDIO2_BUFFER_WMA *pBufferWMA) {
  1785. return This->lpVtbl->SubmitSourceBuffer(This,pBuffer,pBufferWMA);
  1786. }
  1787. static FORCEINLINE HRESULT IXAudio20SourceVoice_FlushSourceBuffers(IXAudio20SourceVoice* This) {
  1788. return This->lpVtbl->FlushSourceBuffers(This);
  1789. }
  1790. static FORCEINLINE HRESULT IXAudio20SourceVoice_Discontinuity(IXAudio20SourceVoice* This) {
  1791. return This->lpVtbl->Discontinuity(This);
  1792. }
  1793. static FORCEINLINE HRESULT IXAudio20SourceVoice_ExitLoop(IXAudio20SourceVoice* This,UINT32 OperationSet) {
  1794. return This->lpVtbl->ExitLoop(This,OperationSet);
  1795. }
  1796. static FORCEINLINE void IXAudio20SourceVoice_GetState(IXAudio20SourceVoice* This,XAUDIO2_VOICE_STATE *pVoiceState) {
  1797. This->lpVtbl->GetState(This,pVoiceState);
  1798. }
  1799. static FORCEINLINE HRESULT IXAudio20SourceVoice_SetFrequencyRatio(IXAudio20SourceVoice* This,float Ratio,UINT32 OperationSet) {
  1800. return This->lpVtbl->SetFrequencyRatio(This,Ratio,OperationSet);
  1801. }
  1802. static FORCEINLINE void IXAudio20SourceVoice_GetFrequencyRatio(IXAudio20SourceVoice* This,float *pRatio) {
  1803. This->lpVtbl->GetFrequencyRatio(This,pRatio);
  1804. }
  1805. #endif
  1806. #endif
  1807. #endif
  1808. #endif /* __IXAudio20SourceVoice_INTERFACE_DEFINED__ */
  1809. /*****************************************************************************
  1810. * IXAudio23SourceVoice interface
  1811. */
  1812. #ifndef __IXAudio23SourceVoice_INTERFACE_DEFINED__
  1813. #define __IXAudio23SourceVoice_INTERFACE_DEFINED__
  1814. #if defined(__cplusplus) && !defined(CINTERFACE)
  1815. interface IXAudio23SourceVoice : public IXAudio23Voice
  1816. {
  1817. virtual HRESULT STDMETHODCALLTYPE Start(
  1818. UINT32 Flags = 0,
  1819. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  1820. virtual HRESULT STDMETHODCALLTYPE Stop(
  1821. UINT32 Flags = 0,
  1822. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  1823. virtual HRESULT STDMETHODCALLTYPE SubmitSourceBuffer(
  1824. const XAUDIO2_BUFFER *pBuffer,
  1825. const XAUDIO2_BUFFER_WMA *pBufferWMA = 0) = 0;
  1826. virtual HRESULT STDMETHODCALLTYPE FlushSourceBuffers(
  1827. ) = 0;
  1828. virtual HRESULT STDMETHODCALLTYPE Discontinuity(
  1829. ) = 0;
  1830. virtual HRESULT STDMETHODCALLTYPE ExitLoop(
  1831. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  1832. virtual void STDMETHODCALLTYPE GetState(
  1833. XAUDIO2_VOICE_STATE *pVoiceState) = 0;
  1834. virtual HRESULT STDMETHODCALLTYPE SetFrequencyRatio(
  1835. float Ratio,
  1836. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  1837. virtual void STDMETHODCALLTYPE GetFrequencyRatio(
  1838. float *pRatio) = 0;
  1839. };
  1840. #else
  1841. typedef struct IXAudio23SourceVoiceVtbl {
  1842. BEGIN_INTERFACE
  1843. /*** IXAudio23Voice methods ***/
  1844. void (STDMETHODCALLTYPE *GetVoiceDetails)(
  1845. IXAudio23SourceVoice *This,
  1846. XAUDIO27_VOICE_DETAILS *pVoiceDetails);
  1847. HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
  1848. IXAudio23SourceVoice *This,
  1849. const XAUDIO23_VOICE_SENDS *pSendList);
  1850. HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
  1851. IXAudio23SourceVoice *This,
  1852. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  1853. HRESULT (STDMETHODCALLTYPE *EnableEffect)(
  1854. IXAudio23SourceVoice *This,
  1855. UINT32 EffectIndex,
  1856. UINT32 OperationSet);
  1857. HRESULT (STDMETHODCALLTYPE *DisableEffect)(
  1858. IXAudio23SourceVoice *This,
  1859. UINT32 EffectIndex,
  1860. UINT32 OperationSet);
  1861. void (STDMETHODCALLTYPE *GetEffectState)(
  1862. IXAudio23SourceVoice *This,
  1863. UINT32 EffectIndex,
  1864. WINBOOL *pEnabled);
  1865. HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
  1866. IXAudio23SourceVoice *This,
  1867. UINT32 EffectIndex,
  1868. const void *pParameters,
  1869. UINT32 ParametersByteSize,
  1870. UINT32 OperationSet);
  1871. HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
  1872. IXAudio23SourceVoice *This,
  1873. UINT32 EffectIndex,
  1874. void *pParameters,
  1875. UINT32 ParametersByteSize);
  1876. HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
  1877. IXAudio23SourceVoice *This,
  1878. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  1879. UINT32 OperationSet);
  1880. void (STDMETHODCALLTYPE *GetFilterParameters)(
  1881. IXAudio23SourceVoice *This,
  1882. XAUDIO2_FILTER_PARAMETERS *pParameters);
  1883. HRESULT (STDMETHODCALLTYPE *SetVolume)(
  1884. IXAudio23SourceVoice *This,
  1885. float Volume,
  1886. UINT32 OperationSet);
  1887. void (STDMETHODCALLTYPE *GetVolume)(
  1888. IXAudio23SourceVoice *This,
  1889. float *pVolume);
  1890. HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
  1891. IXAudio23SourceVoice *This,
  1892. UINT32 Channels,
  1893. const float *pVolumes,
  1894. UINT32 OperationSet);
  1895. void (STDMETHODCALLTYPE *GetChannelVolumes)(
  1896. IXAudio23SourceVoice *This,
  1897. UINT32 Channels,
  1898. float *pVolumes);
  1899. HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
  1900. IXAudio23SourceVoice *This,
  1901. IXAudio2Voice *pDestinationVoice,
  1902. UINT32 SourceChannels,
  1903. UINT32 DestinationChannels,
  1904. const float *pLevelMatrix,
  1905. UINT32 OperationSet);
  1906. void (STDMETHODCALLTYPE *GetOutputMatrix)(
  1907. IXAudio23SourceVoice *This,
  1908. IXAudio2Voice *pDestinationVoice,
  1909. UINT32 SourceChannels,
  1910. UINT32 DestinationChannels,
  1911. float *pLevelMatrix);
  1912. void (STDMETHODCALLTYPE *DestroyVoice)(
  1913. IXAudio23SourceVoice *This);
  1914. /*** IXAudio23SourceVoice methods ***/
  1915. HRESULT (STDMETHODCALLTYPE *Start)(
  1916. IXAudio23SourceVoice *This,
  1917. UINT32 Flags,
  1918. UINT32 OperationSet);
  1919. HRESULT (STDMETHODCALLTYPE *Stop)(
  1920. IXAudio23SourceVoice *This,
  1921. UINT32 Flags,
  1922. UINT32 OperationSet);
  1923. HRESULT (STDMETHODCALLTYPE *SubmitSourceBuffer)(
  1924. IXAudio23SourceVoice *This,
  1925. const XAUDIO2_BUFFER *pBuffer,
  1926. const XAUDIO2_BUFFER_WMA *pBufferWMA);
  1927. HRESULT (STDMETHODCALLTYPE *FlushSourceBuffers)(
  1928. IXAudio23SourceVoice *This);
  1929. HRESULT (STDMETHODCALLTYPE *Discontinuity)(
  1930. IXAudio23SourceVoice *This);
  1931. HRESULT (STDMETHODCALLTYPE *ExitLoop)(
  1932. IXAudio23SourceVoice *This,
  1933. UINT32 OperationSet);
  1934. void (STDMETHODCALLTYPE *GetState)(
  1935. IXAudio23SourceVoice *This,
  1936. XAUDIO2_VOICE_STATE *pVoiceState);
  1937. HRESULT (STDMETHODCALLTYPE *SetFrequencyRatio)(
  1938. IXAudio23SourceVoice *This,
  1939. float Ratio,
  1940. UINT32 OperationSet);
  1941. void (STDMETHODCALLTYPE *GetFrequencyRatio)(
  1942. IXAudio23SourceVoice *This,
  1943. float *pRatio);
  1944. END_INTERFACE
  1945. } IXAudio23SourceVoiceVtbl;
  1946. interface IXAudio23SourceVoice {
  1947. CONST_VTBL IXAudio23SourceVoiceVtbl* lpVtbl;
  1948. };
  1949. #ifdef COBJMACROS
  1950. #ifndef WIDL_C_INLINE_WRAPPERS
  1951. /*** IXAudio23Voice methods ***/
  1952. #define IXAudio23SourceVoice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
  1953. #define IXAudio23SourceVoice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
  1954. #define IXAudio23SourceVoice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
  1955. #define IXAudio23SourceVoice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
  1956. #define IXAudio23SourceVoice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
  1957. #define IXAudio23SourceVoice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
  1958. #define IXAudio23SourceVoice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
  1959. #define IXAudio23SourceVoice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
  1960. #define IXAudio23SourceVoice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
  1961. #define IXAudio23SourceVoice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
  1962. #define IXAudio23SourceVoice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
  1963. #define IXAudio23SourceVoice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
  1964. #define IXAudio23SourceVoice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
  1965. #define IXAudio23SourceVoice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
  1966. #define IXAudio23SourceVoice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
  1967. #define IXAudio23SourceVoice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
  1968. #define IXAudio23SourceVoice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
  1969. /*** IXAudio23SourceVoice methods ***/
  1970. #define IXAudio23SourceVoice_Start(This,Flags,OperationSet) (This)->lpVtbl->Start(This,Flags,OperationSet)
  1971. #define IXAudio23SourceVoice_Stop(This,Flags,OperationSet) (This)->lpVtbl->Stop(This,Flags,OperationSet)
  1972. #define IXAudio23SourceVoice_SubmitSourceBuffer(This,pBuffer,pBufferWMA) (This)->lpVtbl->SubmitSourceBuffer(This,pBuffer,pBufferWMA)
  1973. #define IXAudio23SourceVoice_FlushSourceBuffers(This) (This)->lpVtbl->FlushSourceBuffers(This)
  1974. #define IXAudio23SourceVoice_Discontinuity(This) (This)->lpVtbl->Discontinuity(This)
  1975. #define IXAudio23SourceVoice_ExitLoop(This,OperationSet) (This)->lpVtbl->ExitLoop(This,OperationSet)
  1976. #define IXAudio23SourceVoice_GetState(This,pVoiceState) (This)->lpVtbl->GetState(This,pVoiceState)
  1977. #define IXAudio23SourceVoice_SetFrequencyRatio(This,Ratio,OperationSet) (This)->lpVtbl->SetFrequencyRatio(This,Ratio,OperationSet)
  1978. #define IXAudio23SourceVoice_GetFrequencyRatio(This,pRatio) (This)->lpVtbl->GetFrequencyRatio(This,pRatio)
  1979. #else
  1980. /*** IXAudio23Voice methods ***/
  1981. static FORCEINLINE void IXAudio23SourceVoice_GetVoiceDetails(IXAudio23SourceVoice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
  1982. This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
  1983. }
  1984. static FORCEINLINE HRESULT IXAudio23SourceVoice_SetOutputVoices(IXAudio23SourceVoice* This,const XAUDIO23_VOICE_SENDS *pSendList) {
  1985. return This->lpVtbl->SetOutputVoices(This,pSendList);
  1986. }
  1987. static FORCEINLINE HRESULT IXAudio23SourceVoice_SetEffectChain(IXAudio23SourceVoice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
  1988. return This->lpVtbl->SetEffectChain(This,pEffectChain);
  1989. }
  1990. static FORCEINLINE HRESULT IXAudio23SourceVoice_EnableEffect(IXAudio23SourceVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  1991. return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
  1992. }
  1993. static FORCEINLINE HRESULT IXAudio23SourceVoice_DisableEffect(IXAudio23SourceVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  1994. return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
  1995. }
  1996. static FORCEINLINE void IXAudio23SourceVoice_GetEffectState(IXAudio23SourceVoice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
  1997. This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
  1998. }
  1999. static FORCEINLINE HRESULT IXAudio23SourceVoice_SetEffectParameters(IXAudio23SourceVoice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
  2000. return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
  2001. }
  2002. static FORCEINLINE HRESULT IXAudio23SourceVoice_GetEffectParameters(IXAudio23SourceVoice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
  2003. return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
  2004. }
  2005. static FORCEINLINE HRESULT IXAudio23SourceVoice_SetFilterParameters(IXAudio23SourceVoice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
  2006. return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
  2007. }
  2008. static FORCEINLINE void IXAudio23SourceVoice_GetFilterParameters(IXAudio23SourceVoice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
  2009. This->lpVtbl->GetFilterParameters(This,pParameters);
  2010. }
  2011. static FORCEINLINE HRESULT IXAudio23SourceVoice_SetVolume(IXAudio23SourceVoice* This,float Volume,UINT32 OperationSet) {
  2012. return This->lpVtbl->SetVolume(This,Volume,OperationSet);
  2013. }
  2014. static FORCEINLINE void IXAudio23SourceVoice_GetVolume(IXAudio23SourceVoice* This,float *pVolume) {
  2015. This->lpVtbl->GetVolume(This,pVolume);
  2016. }
  2017. static FORCEINLINE HRESULT IXAudio23SourceVoice_SetChannelVolumes(IXAudio23SourceVoice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
  2018. return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
  2019. }
  2020. static FORCEINLINE void IXAudio23SourceVoice_GetChannelVolumes(IXAudio23SourceVoice* This,UINT32 Channels,float *pVolumes) {
  2021. This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
  2022. }
  2023. static FORCEINLINE HRESULT IXAudio23SourceVoice_SetOutputMatrix(IXAudio23SourceVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
  2024. return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
  2025. }
  2026. static FORCEINLINE void IXAudio23SourceVoice_GetOutputMatrix(IXAudio23SourceVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
  2027. This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
  2028. }
  2029. static FORCEINLINE void IXAudio23SourceVoice_DestroyVoice(IXAudio23SourceVoice* This) {
  2030. This->lpVtbl->DestroyVoice(This);
  2031. }
  2032. /*** IXAudio23SourceVoice methods ***/
  2033. static FORCEINLINE HRESULT IXAudio23SourceVoice_Start(IXAudio23SourceVoice* This,UINT32 Flags,UINT32 OperationSet) {
  2034. return This->lpVtbl->Start(This,Flags,OperationSet);
  2035. }
  2036. static FORCEINLINE HRESULT IXAudio23SourceVoice_Stop(IXAudio23SourceVoice* This,UINT32 Flags,UINT32 OperationSet) {
  2037. return This->lpVtbl->Stop(This,Flags,OperationSet);
  2038. }
  2039. static FORCEINLINE HRESULT IXAudio23SourceVoice_SubmitSourceBuffer(IXAudio23SourceVoice* This,const XAUDIO2_BUFFER *pBuffer,const XAUDIO2_BUFFER_WMA *pBufferWMA) {
  2040. return This->lpVtbl->SubmitSourceBuffer(This,pBuffer,pBufferWMA);
  2041. }
  2042. static FORCEINLINE HRESULT IXAudio23SourceVoice_FlushSourceBuffers(IXAudio23SourceVoice* This) {
  2043. return This->lpVtbl->FlushSourceBuffers(This);
  2044. }
  2045. static FORCEINLINE HRESULT IXAudio23SourceVoice_Discontinuity(IXAudio23SourceVoice* This) {
  2046. return This->lpVtbl->Discontinuity(This);
  2047. }
  2048. static FORCEINLINE HRESULT IXAudio23SourceVoice_ExitLoop(IXAudio23SourceVoice* This,UINT32 OperationSet) {
  2049. return This->lpVtbl->ExitLoop(This,OperationSet);
  2050. }
  2051. static FORCEINLINE void IXAudio23SourceVoice_GetState(IXAudio23SourceVoice* This,XAUDIO2_VOICE_STATE *pVoiceState) {
  2052. This->lpVtbl->GetState(This,pVoiceState);
  2053. }
  2054. static FORCEINLINE HRESULT IXAudio23SourceVoice_SetFrequencyRatio(IXAudio23SourceVoice* This,float Ratio,UINT32 OperationSet) {
  2055. return This->lpVtbl->SetFrequencyRatio(This,Ratio,OperationSet);
  2056. }
  2057. static FORCEINLINE void IXAudio23SourceVoice_GetFrequencyRatio(IXAudio23SourceVoice* This,float *pRatio) {
  2058. This->lpVtbl->GetFrequencyRatio(This,pRatio);
  2059. }
  2060. #endif
  2061. #endif
  2062. #endif
  2063. #endif /* __IXAudio23SourceVoice_INTERFACE_DEFINED__ */
  2064. /*****************************************************************************
  2065. * IXAudio27SourceVoice interface
  2066. */
  2067. #ifndef __IXAudio27SourceVoice_INTERFACE_DEFINED__
  2068. #define __IXAudio27SourceVoice_INTERFACE_DEFINED__
  2069. #if defined(__cplusplus) && !defined(CINTERFACE)
  2070. interface IXAudio27SourceVoice : public IXAudio27Voice
  2071. {
  2072. virtual HRESULT STDMETHODCALLTYPE Start(
  2073. UINT32 Flags = 0,
  2074. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  2075. virtual HRESULT STDMETHODCALLTYPE Stop(
  2076. UINT32 Flags = 0,
  2077. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  2078. virtual HRESULT STDMETHODCALLTYPE SubmitSourceBuffer(
  2079. const XAUDIO2_BUFFER *pBuffer,
  2080. const XAUDIO2_BUFFER_WMA *pBufferWMA = 0) = 0;
  2081. virtual HRESULT STDMETHODCALLTYPE FlushSourceBuffers(
  2082. ) = 0;
  2083. virtual HRESULT STDMETHODCALLTYPE Discontinuity(
  2084. ) = 0;
  2085. virtual HRESULT STDMETHODCALLTYPE ExitLoop(
  2086. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  2087. virtual void STDMETHODCALLTYPE GetState(
  2088. XAUDIO2_VOICE_STATE *pVoiceState) = 0;
  2089. virtual HRESULT STDMETHODCALLTYPE SetFrequencyRatio(
  2090. float Ratio,
  2091. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  2092. virtual void STDMETHODCALLTYPE GetFrequencyRatio(
  2093. float *pRatio) = 0;
  2094. virtual HRESULT STDMETHODCALLTYPE SetSourceSampleRate(
  2095. UINT32 NewSourceSampleRate) = 0;
  2096. };
  2097. #else
  2098. typedef struct IXAudio27SourceVoiceVtbl {
  2099. BEGIN_INTERFACE
  2100. /*** IXAudio27Voice methods ***/
  2101. void (STDMETHODCALLTYPE *GetVoiceDetails)(
  2102. IXAudio27SourceVoice *This,
  2103. XAUDIO27_VOICE_DETAILS *pVoiceDetails);
  2104. HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
  2105. IXAudio27SourceVoice *This,
  2106. const XAUDIO2_VOICE_SENDS *pSendList);
  2107. HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
  2108. IXAudio27SourceVoice *This,
  2109. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  2110. HRESULT (STDMETHODCALLTYPE *EnableEffect)(
  2111. IXAudio27SourceVoice *This,
  2112. UINT32 EffectIndex,
  2113. UINT32 OperationSet);
  2114. HRESULT (STDMETHODCALLTYPE *DisableEffect)(
  2115. IXAudio27SourceVoice *This,
  2116. UINT32 EffectIndex,
  2117. UINT32 OperationSet);
  2118. void (STDMETHODCALLTYPE *GetEffectState)(
  2119. IXAudio27SourceVoice *This,
  2120. UINT32 EffectIndex,
  2121. WINBOOL *pEnabled);
  2122. HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
  2123. IXAudio27SourceVoice *This,
  2124. UINT32 EffectIndex,
  2125. const void *pParameters,
  2126. UINT32 ParametersByteSize,
  2127. UINT32 OperationSet);
  2128. HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
  2129. IXAudio27SourceVoice *This,
  2130. UINT32 EffectIndex,
  2131. void *pParameters,
  2132. UINT32 ParametersByteSize);
  2133. HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
  2134. IXAudio27SourceVoice *This,
  2135. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  2136. UINT32 OperationSet);
  2137. void (STDMETHODCALLTYPE *GetFilterParameters)(
  2138. IXAudio27SourceVoice *This,
  2139. XAUDIO2_FILTER_PARAMETERS *pParameters);
  2140. HRESULT (STDMETHODCALLTYPE *SetOutputFilterParameters)(
  2141. IXAudio27SourceVoice *This,
  2142. IXAudio2Voice *pDestinationVoice,
  2143. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  2144. UINT32 OperationSet);
  2145. void (STDMETHODCALLTYPE *GetOutputFilterParameters)(
  2146. IXAudio27SourceVoice *This,
  2147. IXAudio2Voice *pDestinationVoice,
  2148. XAUDIO2_FILTER_PARAMETERS *pParameters);
  2149. HRESULT (STDMETHODCALLTYPE *SetVolume)(
  2150. IXAudio27SourceVoice *This,
  2151. float Volume,
  2152. UINT32 OperationSet);
  2153. void (STDMETHODCALLTYPE *GetVolume)(
  2154. IXAudio27SourceVoice *This,
  2155. float *pVolume);
  2156. HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
  2157. IXAudio27SourceVoice *This,
  2158. UINT32 Channels,
  2159. const float *pVolumes,
  2160. UINT32 OperationSet);
  2161. void (STDMETHODCALLTYPE *GetChannelVolumes)(
  2162. IXAudio27SourceVoice *This,
  2163. UINT32 Channels,
  2164. float *pVolumes);
  2165. HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
  2166. IXAudio27SourceVoice *This,
  2167. IXAudio2Voice *pDestinationVoice,
  2168. UINT32 SourceChannels,
  2169. UINT32 DestinationChannels,
  2170. const float *pLevelMatrix,
  2171. UINT32 OperationSet);
  2172. void (STDMETHODCALLTYPE *GetOutputMatrix)(
  2173. IXAudio27SourceVoice *This,
  2174. IXAudio2Voice *pDestinationVoice,
  2175. UINT32 SourceChannels,
  2176. UINT32 DestinationChannels,
  2177. float *pLevelMatrix);
  2178. void (STDMETHODCALLTYPE *DestroyVoice)(
  2179. IXAudio27SourceVoice *This);
  2180. /*** IXAudio27SourceVoice methods ***/
  2181. HRESULT (STDMETHODCALLTYPE *Start)(
  2182. IXAudio27SourceVoice *This,
  2183. UINT32 Flags,
  2184. UINT32 OperationSet);
  2185. HRESULT (STDMETHODCALLTYPE *Stop)(
  2186. IXAudio27SourceVoice *This,
  2187. UINT32 Flags,
  2188. UINT32 OperationSet);
  2189. HRESULT (STDMETHODCALLTYPE *SubmitSourceBuffer)(
  2190. IXAudio27SourceVoice *This,
  2191. const XAUDIO2_BUFFER *pBuffer,
  2192. const XAUDIO2_BUFFER_WMA *pBufferWMA);
  2193. HRESULT (STDMETHODCALLTYPE *FlushSourceBuffers)(
  2194. IXAudio27SourceVoice *This);
  2195. HRESULT (STDMETHODCALLTYPE *Discontinuity)(
  2196. IXAudio27SourceVoice *This);
  2197. HRESULT (STDMETHODCALLTYPE *ExitLoop)(
  2198. IXAudio27SourceVoice *This,
  2199. UINT32 OperationSet);
  2200. void (STDMETHODCALLTYPE *GetState)(
  2201. IXAudio27SourceVoice *This,
  2202. XAUDIO2_VOICE_STATE *pVoiceState);
  2203. HRESULT (STDMETHODCALLTYPE *SetFrequencyRatio)(
  2204. IXAudio27SourceVoice *This,
  2205. float Ratio,
  2206. UINT32 OperationSet);
  2207. void (STDMETHODCALLTYPE *GetFrequencyRatio)(
  2208. IXAudio27SourceVoice *This,
  2209. float *pRatio);
  2210. HRESULT (STDMETHODCALLTYPE *SetSourceSampleRate)(
  2211. IXAudio27SourceVoice *This,
  2212. UINT32 NewSourceSampleRate);
  2213. END_INTERFACE
  2214. } IXAudio27SourceVoiceVtbl;
  2215. interface IXAudio27SourceVoice {
  2216. CONST_VTBL IXAudio27SourceVoiceVtbl* lpVtbl;
  2217. };
  2218. #ifdef COBJMACROS
  2219. #ifndef WIDL_C_INLINE_WRAPPERS
  2220. /*** IXAudio27Voice methods ***/
  2221. #define IXAudio27SourceVoice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
  2222. #define IXAudio27SourceVoice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
  2223. #define IXAudio27SourceVoice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
  2224. #define IXAudio27SourceVoice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
  2225. #define IXAudio27SourceVoice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
  2226. #define IXAudio27SourceVoice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
  2227. #define IXAudio27SourceVoice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
  2228. #define IXAudio27SourceVoice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
  2229. #define IXAudio27SourceVoice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
  2230. #define IXAudio27SourceVoice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
  2231. #define IXAudio27SourceVoice_SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet) (This)->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet)
  2232. #define IXAudio27SourceVoice_GetOutputFilterParameters(This,pDestinationVoice,pParameters) (This)->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters)
  2233. #define IXAudio27SourceVoice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
  2234. #define IXAudio27SourceVoice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
  2235. #define IXAudio27SourceVoice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
  2236. #define IXAudio27SourceVoice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
  2237. #define IXAudio27SourceVoice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
  2238. #define IXAudio27SourceVoice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
  2239. #define IXAudio27SourceVoice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
  2240. /*** IXAudio27SourceVoice methods ***/
  2241. #define IXAudio27SourceVoice_Start(This,Flags,OperationSet) (This)->lpVtbl->Start(This,Flags,OperationSet)
  2242. #define IXAudio27SourceVoice_Stop(This,Flags,OperationSet) (This)->lpVtbl->Stop(This,Flags,OperationSet)
  2243. #define IXAudio27SourceVoice_SubmitSourceBuffer(This,pBuffer,pBufferWMA) (This)->lpVtbl->SubmitSourceBuffer(This,pBuffer,pBufferWMA)
  2244. #define IXAudio27SourceVoice_FlushSourceBuffers(This) (This)->lpVtbl->FlushSourceBuffers(This)
  2245. #define IXAudio27SourceVoice_Discontinuity(This) (This)->lpVtbl->Discontinuity(This)
  2246. #define IXAudio27SourceVoice_ExitLoop(This,OperationSet) (This)->lpVtbl->ExitLoop(This,OperationSet)
  2247. #define IXAudio27SourceVoice_GetState(This,pVoiceState) (This)->lpVtbl->GetState(This,pVoiceState)
  2248. #define IXAudio27SourceVoice_SetFrequencyRatio(This,Ratio,OperationSet) (This)->lpVtbl->SetFrequencyRatio(This,Ratio,OperationSet)
  2249. #define IXAudio27SourceVoice_GetFrequencyRatio(This,pRatio) (This)->lpVtbl->GetFrequencyRatio(This,pRatio)
  2250. #define IXAudio27SourceVoice_SetSourceSampleRate(This,NewSourceSampleRate) (This)->lpVtbl->SetSourceSampleRate(This,NewSourceSampleRate)
  2251. #else
  2252. /*** IXAudio27Voice methods ***/
  2253. static FORCEINLINE void IXAudio27SourceVoice_GetVoiceDetails(IXAudio27SourceVoice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
  2254. This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
  2255. }
  2256. static FORCEINLINE HRESULT IXAudio27SourceVoice_SetOutputVoices(IXAudio27SourceVoice* This,const XAUDIO2_VOICE_SENDS *pSendList) {
  2257. return This->lpVtbl->SetOutputVoices(This,pSendList);
  2258. }
  2259. static FORCEINLINE HRESULT IXAudio27SourceVoice_SetEffectChain(IXAudio27SourceVoice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
  2260. return This->lpVtbl->SetEffectChain(This,pEffectChain);
  2261. }
  2262. static FORCEINLINE HRESULT IXAudio27SourceVoice_EnableEffect(IXAudio27SourceVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  2263. return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
  2264. }
  2265. static FORCEINLINE HRESULT IXAudio27SourceVoice_DisableEffect(IXAudio27SourceVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  2266. return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
  2267. }
  2268. static FORCEINLINE void IXAudio27SourceVoice_GetEffectState(IXAudio27SourceVoice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
  2269. This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
  2270. }
  2271. static FORCEINLINE HRESULT IXAudio27SourceVoice_SetEffectParameters(IXAudio27SourceVoice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
  2272. return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
  2273. }
  2274. static FORCEINLINE HRESULT IXAudio27SourceVoice_GetEffectParameters(IXAudio27SourceVoice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
  2275. return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
  2276. }
  2277. static FORCEINLINE HRESULT IXAudio27SourceVoice_SetFilterParameters(IXAudio27SourceVoice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
  2278. return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
  2279. }
  2280. static FORCEINLINE void IXAudio27SourceVoice_GetFilterParameters(IXAudio27SourceVoice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
  2281. This->lpVtbl->GetFilterParameters(This,pParameters);
  2282. }
  2283. static FORCEINLINE HRESULT IXAudio27SourceVoice_SetOutputFilterParameters(IXAudio27SourceVoice* This,IXAudio2Voice *pDestinationVoice,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
  2284. return This->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet);
  2285. }
  2286. static FORCEINLINE void IXAudio27SourceVoice_GetOutputFilterParameters(IXAudio27SourceVoice* This,IXAudio2Voice *pDestinationVoice,XAUDIO2_FILTER_PARAMETERS *pParameters) {
  2287. This->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters);
  2288. }
  2289. static FORCEINLINE HRESULT IXAudio27SourceVoice_SetVolume(IXAudio27SourceVoice* This,float Volume,UINT32 OperationSet) {
  2290. return This->lpVtbl->SetVolume(This,Volume,OperationSet);
  2291. }
  2292. static FORCEINLINE void IXAudio27SourceVoice_GetVolume(IXAudio27SourceVoice* This,float *pVolume) {
  2293. This->lpVtbl->GetVolume(This,pVolume);
  2294. }
  2295. static FORCEINLINE HRESULT IXAudio27SourceVoice_SetChannelVolumes(IXAudio27SourceVoice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
  2296. return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
  2297. }
  2298. static FORCEINLINE void IXAudio27SourceVoice_GetChannelVolumes(IXAudio27SourceVoice* This,UINT32 Channels,float *pVolumes) {
  2299. This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
  2300. }
  2301. static FORCEINLINE HRESULT IXAudio27SourceVoice_SetOutputMatrix(IXAudio27SourceVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
  2302. return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
  2303. }
  2304. static FORCEINLINE void IXAudio27SourceVoice_GetOutputMatrix(IXAudio27SourceVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
  2305. This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
  2306. }
  2307. static FORCEINLINE void IXAudio27SourceVoice_DestroyVoice(IXAudio27SourceVoice* This) {
  2308. This->lpVtbl->DestroyVoice(This);
  2309. }
  2310. /*** IXAudio27SourceVoice methods ***/
  2311. static FORCEINLINE HRESULT IXAudio27SourceVoice_Start(IXAudio27SourceVoice* This,UINT32 Flags,UINT32 OperationSet) {
  2312. return This->lpVtbl->Start(This,Flags,OperationSet);
  2313. }
  2314. static FORCEINLINE HRESULT IXAudio27SourceVoice_Stop(IXAudio27SourceVoice* This,UINT32 Flags,UINT32 OperationSet) {
  2315. return This->lpVtbl->Stop(This,Flags,OperationSet);
  2316. }
  2317. static FORCEINLINE HRESULT IXAudio27SourceVoice_SubmitSourceBuffer(IXAudio27SourceVoice* This,const XAUDIO2_BUFFER *pBuffer,const XAUDIO2_BUFFER_WMA *pBufferWMA) {
  2318. return This->lpVtbl->SubmitSourceBuffer(This,pBuffer,pBufferWMA);
  2319. }
  2320. static FORCEINLINE HRESULT IXAudio27SourceVoice_FlushSourceBuffers(IXAudio27SourceVoice* This) {
  2321. return This->lpVtbl->FlushSourceBuffers(This);
  2322. }
  2323. static FORCEINLINE HRESULT IXAudio27SourceVoice_Discontinuity(IXAudio27SourceVoice* This) {
  2324. return This->lpVtbl->Discontinuity(This);
  2325. }
  2326. static FORCEINLINE HRESULT IXAudio27SourceVoice_ExitLoop(IXAudio27SourceVoice* This,UINT32 OperationSet) {
  2327. return This->lpVtbl->ExitLoop(This,OperationSet);
  2328. }
  2329. static FORCEINLINE void IXAudio27SourceVoice_GetState(IXAudio27SourceVoice* This,XAUDIO2_VOICE_STATE *pVoiceState) {
  2330. This->lpVtbl->GetState(This,pVoiceState);
  2331. }
  2332. static FORCEINLINE HRESULT IXAudio27SourceVoice_SetFrequencyRatio(IXAudio27SourceVoice* This,float Ratio,UINT32 OperationSet) {
  2333. return This->lpVtbl->SetFrequencyRatio(This,Ratio,OperationSet);
  2334. }
  2335. static FORCEINLINE void IXAudio27SourceVoice_GetFrequencyRatio(IXAudio27SourceVoice* This,float *pRatio) {
  2336. This->lpVtbl->GetFrequencyRatio(This,pRatio);
  2337. }
  2338. static FORCEINLINE HRESULT IXAudio27SourceVoice_SetSourceSampleRate(IXAudio27SourceVoice* This,UINT32 NewSourceSampleRate) {
  2339. return This->lpVtbl->SetSourceSampleRate(This,NewSourceSampleRate);
  2340. }
  2341. #endif
  2342. #endif
  2343. #endif
  2344. #endif /* __IXAudio27SourceVoice_INTERFACE_DEFINED__ */
  2345. /*****************************************************************************
  2346. * IXAudio2SourceVoice interface
  2347. */
  2348. #ifndef __IXAudio2SourceVoice_INTERFACE_DEFINED__
  2349. #define __IXAudio2SourceVoice_INTERFACE_DEFINED__
  2350. #if defined(__cplusplus) && !defined(CINTERFACE)
  2351. interface IXAudio2SourceVoice : public IXAudio2Voice
  2352. {
  2353. virtual HRESULT STDMETHODCALLTYPE Start(
  2354. UINT32 Flags = 0,
  2355. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  2356. virtual HRESULT STDMETHODCALLTYPE Stop(
  2357. UINT32 Flags = 0,
  2358. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  2359. virtual HRESULT STDMETHODCALLTYPE SubmitSourceBuffer(
  2360. const XAUDIO2_BUFFER *pBuffer,
  2361. const XAUDIO2_BUFFER_WMA *pBufferWMA = 0) = 0;
  2362. virtual HRESULT STDMETHODCALLTYPE FlushSourceBuffers(
  2363. ) = 0;
  2364. virtual HRESULT STDMETHODCALLTYPE Discontinuity(
  2365. ) = 0;
  2366. virtual HRESULT STDMETHODCALLTYPE ExitLoop(
  2367. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  2368. virtual void STDMETHODCALLTYPE GetState(
  2369. XAUDIO2_VOICE_STATE *pVoiceState,
  2370. UINT32 Flags = 0) = 0;
  2371. virtual HRESULT STDMETHODCALLTYPE SetFrequencyRatio(
  2372. float Ratio,
  2373. UINT32 OperationSet = XAUDIO2_COMMIT_NOW) = 0;
  2374. virtual void STDMETHODCALLTYPE GetFrequencyRatio(
  2375. float *pRatio) = 0;
  2376. virtual HRESULT STDMETHODCALLTYPE SetSourceSampleRate(
  2377. UINT32 NewSourceSampleRate) = 0;
  2378. };
  2379. #else
  2380. typedef struct IXAudio2SourceVoiceVtbl {
  2381. BEGIN_INTERFACE
  2382. /*** IXAudio2Voice methods ***/
  2383. void (STDMETHODCALLTYPE *GetVoiceDetails)(
  2384. IXAudio2SourceVoice *This,
  2385. XAUDIO2_VOICE_DETAILS *pVoiceDetails);
  2386. HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
  2387. IXAudio2SourceVoice *This,
  2388. const XAUDIO2_VOICE_SENDS *pSendList);
  2389. HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
  2390. IXAudio2SourceVoice *This,
  2391. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  2392. HRESULT (STDMETHODCALLTYPE *EnableEffect)(
  2393. IXAudio2SourceVoice *This,
  2394. UINT32 EffectIndex,
  2395. UINT32 OperationSet);
  2396. HRESULT (STDMETHODCALLTYPE *DisableEffect)(
  2397. IXAudio2SourceVoice *This,
  2398. UINT32 EffectIndex,
  2399. UINT32 OperationSet);
  2400. void (STDMETHODCALLTYPE *GetEffectState)(
  2401. IXAudio2SourceVoice *This,
  2402. UINT32 EffectIndex,
  2403. WINBOOL *pEnabled);
  2404. HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
  2405. IXAudio2SourceVoice *This,
  2406. UINT32 EffectIndex,
  2407. const void *pParameters,
  2408. UINT32 ParametersByteSize,
  2409. UINT32 OperationSet);
  2410. HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
  2411. IXAudio2SourceVoice *This,
  2412. UINT32 EffectIndex,
  2413. void *pParameters,
  2414. UINT32 ParametersByteSize);
  2415. HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
  2416. IXAudio2SourceVoice *This,
  2417. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  2418. UINT32 OperationSet);
  2419. void (STDMETHODCALLTYPE *GetFilterParameters)(
  2420. IXAudio2SourceVoice *This,
  2421. XAUDIO2_FILTER_PARAMETERS *pParameters);
  2422. HRESULT (STDMETHODCALLTYPE *SetOutputFilterParameters)(
  2423. IXAudio2SourceVoice *This,
  2424. IXAudio2Voice *pDestinationVoice,
  2425. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  2426. UINT32 OperationSet);
  2427. void (STDMETHODCALLTYPE *GetOutputFilterParameters)(
  2428. IXAudio2SourceVoice *This,
  2429. IXAudio2Voice *pDestinationVoice,
  2430. XAUDIO2_FILTER_PARAMETERS *pParameters);
  2431. HRESULT (STDMETHODCALLTYPE *SetVolume)(
  2432. IXAudio2SourceVoice *This,
  2433. float Volume,
  2434. UINT32 OperationSet);
  2435. void (STDMETHODCALLTYPE *GetVolume)(
  2436. IXAudio2SourceVoice *This,
  2437. float *pVolume);
  2438. HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
  2439. IXAudio2SourceVoice *This,
  2440. UINT32 Channels,
  2441. const float *pVolumes,
  2442. UINT32 OperationSet);
  2443. void (STDMETHODCALLTYPE *GetChannelVolumes)(
  2444. IXAudio2SourceVoice *This,
  2445. UINT32 Channels,
  2446. float *pVolumes);
  2447. HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
  2448. IXAudio2SourceVoice *This,
  2449. IXAudio2Voice *pDestinationVoice,
  2450. UINT32 SourceChannels,
  2451. UINT32 DestinationChannels,
  2452. const float *pLevelMatrix,
  2453. UINT32 OperationSet);
  2454. void (STDMETHODCALLTYPE *GetOutputMatrix)(
  2455. IXAudio2SourceVoice *This,
  2456. IXAudio2Voice *pDestinationVoice,
  2457. UINT32 SourceChannels,
  2458. UINT32 DestinationChannels,
  2459. float *pLevelMatrix);
  2460. void (STDMETHODCALLTYPE *DestroyVoice)(
  2461. IXAudio2SourceVoice *This);
  2462. /*** IXAudio2SourceVoice methods ***/
  2463. HRESULT (STDMETHODCALLTYPE *Start)(
  2464. IXAudio2SourceVoice *This,
  2465. UINT32 Flags,
  2466. UINT32 OperationSet);
  2467. HRESULT (STDMETHODCALLTYPE *Stop)(
  2468. IXAudio2SourceVoice *This,
  2469. UINT32 Flags,
  2470. UINT32 OperationSet);
  2471. HRESULT (STDMETHODCALLTYPE *SubmitSourceBuffer)(
  2472. IXAudio2SourceVoice *This,
  2473. const XAUDIO2_BUFFER *pBuffer,
  2474. const XAUDIO2_BUFFER_WMA *pBufferWMA);
  2475. HRESULT (STDMETHODCALLTYPE *FlushSourceBuffers)(
  2476. IXAudio2SourceVoice *This);
  2477. HRESULT (STDMETHODCALLTYPE *Discontinuity)(
  2478. IXAudio2SourceVoice *This);
  2479. HRESULT (STDMETHODCALLTYPE *ExitLoop)(
  2480. IXAudio2SourceVoice *This,
  2481. UINT32 OperationSet);
  2482. void (STDMETHODCALLTYPE *GetState)(
  2483. IXAudio2SourceVoice *This,
  2484. XAUDIO2_VOICE_STATE *pVoiceState,
  2485. UINT32 Flags);
  2486. HRESULT (STDMETHODCALLTYPE *SetFrequencyRatio)(
  2487. IXAudio2SourceVoice *This,
  2488. float Ratio,
  2489. UINT32 OperationSet);
  2490. void (STDMETHODCALLTYPE *GetFrequencyRatio)(
  2491. IXAudio2SourceVoice *This,
  2492. float *pRatio);
  2493. HRESULT (STDMETHODCALLTYPE *SetSourceSampleRate)(
  2494. IXAudio2SourceVoice *This,
  2495. UINT32 NewSourceSampleRate);
  2496. END_INTERFACE
  2497. } IXAudio2SourceVoiceVtbl;
  2498. interface IXAudio2SourceVoice {
  2499. CONST_VTBL IXAudio2SourceVoiceVtbl* lpVtbl;
  2500. };
  2501. #ifdef COBJMACROS
  2502. #ifndef WIDL_C_INLINE_WRAPPERS
  2503. /*** IXAudio2Voice methods ***/
  2504. #define IXAudio2SourceVoice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
  2505. #define IXAudio2SourceVoice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
  2506. #define IXAudio2SourceVoice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
  2507. #define IXAudio2SourceVoice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
  2508. #define IXAudio2SourceVoice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
  2509. #define IXAudio2SourceVoice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
  2510. #define IXAudio2SourceVoice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
  2511. #define IXAudio2SourceVoice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
  2512. #define IXAudio2SourceVoice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
  2513. #define IXAudio2SourceVoice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
  2514. #define IXAudio2SourceVoice_SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet) (This)->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet)
  2515. #define IXAudio2SourceVoice_GetOutputFilterParameters(This,pDestinationVoice,pParameters) (This)->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters)
  2516. #define IXAudio2SourceVoice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
  2517. #define IXAudio2SourceVoice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
  2518. #define IXAudio2SourceVoice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
  2519. #define IXAudio2SourceVoice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
  2520. #define IXAudio2SourceVoice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
  2521. #define IXAudio2SourceVoice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
  2522. #define IXAudio2SourceVoice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
  2523. /*** IXAudio2SourceVoice methods ***/
  2524. #define IXAudio2SourceVoice_Start(This,Flags,OperationSet) (This)->lpVtbl->Start(This,Flags,OperationSet)
  2525. #define IXAudio2SourceVoice_Stop(This,Flags,OperationSet) (This)->lpVtbl->Stop(This,Flags,OperationSet)
  2526. #define IXAudio2SourceVoice_SubmitSourceBuffer(This,pBuffer,pBufferWMA) (This)->lpVtbl->SubmitSourceBuffer(This,pBuffer,pBufferWMA)
  2527. #define IXAudio2SourceVoice_FlushSourceBuffers(This) (This)->lpVtbl->FlushSourceBuffers(This)
  2528. #define IXAudio2SourceVoice_Discontinuity(This) (This)->lpVtbl->Discontinuity(This)
  2529. #define IXAudio2SourceVoice_ExitLoop(This,OperationSet) (This)->lpVtbl->ExitLoop(This,OperationSet)
  2530. #define IXAudio2SourceVoice_GetState(This,pVoiceState,Flags) (This)->lpVtbl->GetState(This,pVoiceState,Flags)
  2531. #define IXAudio2SourceVoice_SetFrequencyRatio(This,Ratio,OperationSet) (This)->lpVtbl->SetFrequencyRatio(This,Ratio,OperationSet)
  2532. #define IXAudio2SourceVoice_GetFrequencyRatio(This,pRatio) (This)->lpVtbl->GetFrequencyRatio(This,pRatio)
  2533. #define IXAudio2SourceVoice_SetSourceSampleRate(This,NewSourceSampleRate) (This)->lpVtbl->SetSourceSampleRate(This,NewSourceSampleRate)
  2534. #else
  2535. /*** IXAudio2Voice methods ***/
  2536. static FORCEINLINE void IXAudio2SourceVoice_GetVoiceDetails(IXAudio2SourceVoice* This,XAUDIO2_VOICE_DETAILS *pVoiceDetails) {
  2537. This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
  2538. }
  2539. static FORCEINLINE HRESULT IXAudio2SourceVoice_SetOutputVoices(IXAudio2SourceVoice* This,const XAUDIO2_VOICE_SENDS *pSendList) {
  2540. return This->lpVtbl->SetOutputVoices(This,pSendList);
  2541. }
  2542. static FORCEINLINE HRESULT IXAudio2SourceVoice_SetEffectChain(IXAudio2SourceVoice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
  2543. return This->lpVtbl->SetEffectChain(This,pEffectChain);
  2544. }
  2545. static FORCEINLINE HRESULT IXAudio2SourceVoice_EnableEffect(IXAudio2SourceVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  2546. return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
  2547. }
  2548. static FORCEINLINE HRESULT IXAudio2SourceVoice_DisableEffect(IXAudio2SourceVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  2549. return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
  2550. }
  2551. static FORCEINLINE void IXAudio2SourceVoice_GetEffectState(IXAudio2SourceVoice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
  2552. This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
  2553. }
  2554. static FORCEINLINE HRESULT IXAudio2SourceVoice_SetEffectParameters(IXAudio2SourceVoice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
  2555. return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
  2556. }
  2557. static FORCEINLINE HRESULT IXAudio2SourceVoice_GetEffectParameters(IXAudio2SourceVoice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
  2558. return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
  2559. }
  2560. static FORCEINLINE HRESULT IXAudio2SourceVoice_SetFilterParameters(IXAudio2SourceVoice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
  2561. return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
  2562. }
  2563. static FORCEINLINE void IXAudio2SourceVoice_GetFilterParameters(IXAudio2SourceVoice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
  2564. This->lpVtbl->GetFilterParameters(This,pParameters);
  2565. }
  2566. static FORCEINLINE HRESULT IXAudio2SourceVoice_SetOutputFilterParameters(IXAudio2SourceVoice* This,IXAudio2Voice *pDestinationVoice,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
  2567. return This->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet);
  2568. }
  2569. static FORCEINLINE void IXAudio2SourceVoice_GetOutputFilterParameters(IXAudio2SourceVoice* This,IXAudio2Voice *pDestinationVoice,XAUDIO2_FILTER_PARAMETERS *pParameters) {
  2570. This->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters);
  2571. }
  2572. static FORCEINLINE HRESULT IXAudio2SourceVoice_SetVolume(IXAudio2SourceVoice* This,float Volume,UINT32 OperationSet) {
  2573. return This->lpVtbl->SetVolume(This,Volume,OperationSet);
  2574. }
  2575. static FORCEINLINE void IXAudio2SourceVoice_GetVolume(IXAudio2SourceVoice* This,float *pVolume) {
  2576. This->lpVtbl->GetVolume(This,pVolume);
  2577. }
  2578. static FORCEINLINE HRESULT IXAudio2SourceVoice_SetChannelVolumes(IXAudio2SourceVoice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
  2579. return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
  2580. }
  2581. static FORCEINLINE void IXAudio2SourceVoice_GetChannelVolumes(IXAudio2SourceVoice* This,UINT32 Channels,float *pVolumes) {
  2582. This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
  2583. }
  2584. static FORCEINLINE HRESULT IXAudio2SourceVoice_SetOutputMatrix(IXAudio2SourceVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
  2585. return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
  2586. }
  2587. static FORCEINLINE void IXAudio2SourceVoice_GetOutputMatrix(IXAudio2SourceVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
  2588. This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
  2589. }
  2590. static FORCEINLINE void IXAudio2SourceVoice_DestroyVoice(IXAudio2SourceVoice* This) {
  2591. This->lpVtbl->DestroyVoice(This);
  2592. }
  2593. /*** IXAudio2SourceVoice methods ***/
  2594. static FORCEINLINE HRESULT IXAudio2SourceVoice_Start(IXAudio2SourceVoice* This,UINT32 Flags,UINT32 OperationSet) {
  2595. return This->lpVtbl->Start(This,Flags,OperationSet);
  2596. }
  2597. static FORCEINLINE HRESULT IXAudio2SourceVoice_Stop(IXAudio2SourceVoice* This,UINT32 Flags,UINT32 OperationSet) {
  2598. return This->lpVtbl->Stop(This,Flags,OperationSet);
  2599. }
  2600. static FORCEINLINE HRESULT IXAudio2SourceVoice_SubmitSourceBuffer(IXAudio2SourceVoice* This,const XAUDIO2_BUFFER *pBuffer,const XAUDIO2_BUFFER_WMA *pBufferWMA) {
  2601. return This->lpVtbl->SubmitSourceBuffer(This,pBuffer,pBufferWMA);
  2602. }
  2603. static FORCEINLINE HRESULT IXAudio2SourceVoice_FlushSourceBuffers(IXAudio2SourceVoice* This) {
  2604. return This->lpVtbl->FlushSourceBuffers(This);
  2605. }
  2606. static FORCEINLINE HRESULT IXAudio2SourceVoice_Discontinuity(IXAudio2SourceVoice* This) {
  2607. return This->lpVtbl->Discontinuity(This);
  2608. }
  2609. static FORCEINLINE HRESULT IXAudio2SourceVoice_ExitLoop(IXAudio2SourceVoice* This,UINT32 OperationSet) {
  2610. return This->lpVtbl->ExitLoop(This,OperationSet);
  2611. }
  2612. static FORCEINLINE void IXAudio2SourceVoice_GetState(IXAudio2SourceVoice* This,XAUDIO2_VOICE_STATE *pVoiceState,UINT32 Flags) {
  2613. This->lpVtbl->GetState(This,pVoiceState,Flags);
  2614. }
  2615. static FORCEINLINE HRESULT IXAudio2SourceVoice_SetFrequencyRatio(IXAudio2SourceVoice* This,float Ratio,UINT32 OperationSet) {
  2616. return This->lpVtbl->SetFrequencyRatio(This,Ratio,OperationSet);
  2617. }
  2618. static FORCEINLINE void IXAudio2SourceVoice_GetFrequencyRatio(IXAudio2SourceVoice* This,float *pRatio) {
  2619. This->lpVtbl->GetFrequencyRatio(This,pRatio);
  2620. }
  2621. static FORCEINLINE HRESULT IXAudio2SourceVoice_SetSourceSampleRate(IXAudio2SourceVoice* This,UINT32 NewSourceSampleRate) {
  2622. return This->lpVtbl->SetSourceSampleRate(This,NewSourceSampleRate);
  2623. }
  2624. #endif
  2625. #endif
  2626. #endif
  2627. #endif /* __IXAudio2SourceVoice_INTERFACE_DEFINED__ */
  2628. /*****************************************************************************
  2629. * IXAudio20SubmixVoice interface
  2630. */
  2631. #ifndef __IXAudio20SubmixVoice_INTERFACE_DEFINED__
  2632. #define __IXAudio20SubmixVoice_INTERFACE_DEFINED__
  2633. #if defined(__cplusplus) && !defined(CINTERFACE)
  2634. interface IXAudio20SubmixVoice : public IXAudio20Voice
  2635. {
  2636. };
  2637. #else
  2638. typedef struct IXAudio20SubmixVoiceVtbl {
  2639. BEGIN_INTERFACE
  2640. /*** IXAudio20Voice methods ***/
  2641. void (STDMETHODCALLTYPE *GetVoiceDetails)(
  2642. IXAudio20SubmixVoice *This,
  2643. XAUDIO27_VOICE_DETAILS *pVoiceDetails);
  2644. HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
  2645. IXAudio20SubmixVoice *This,
  2646. const XAUDIO23_VOICE_SENDS *pSendList);
  2647. HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
  2648. IXAudio20SubmixVoice *This,
  2649. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  2650. HRESULT (STDMETHODCALLTYPE *EnableEffect)(
  2651. IXAudio20SubmixVoice *This,
  2652. UINT32 EffectIndex,
  2653. UINT32 OperationSet);
  2654. HRESULT (STDMETHODCALLTYPE *DisableEffect)(
  2655. IXAudio20SubmixVoice *This,
  2656. UINT32 EffectIndex,
  2657. UINT32 OperationSet);
  2658. void (STDMETHODCALLTYPE *GetEffectState)(
  2659. IXAudio20SubmixVoice *This,
  2660. UINT32 EffectIndex,
  2661. WINBOOL *pEnabled);
  2662. HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
  2663. IXAudio20SubmixVoice *This,
  2664. UINT32 EffectIndex,
  2665. const void *pParameters,
  2666. UINT32 ParametersByteSize,
  2667. UINT32 OperationSet);
  2668. HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
  2669. IXAudio20SubmixVoice *This,
  2670. UINT32 EffectIndex,
  2671. void *pParameters,
  2672. UINT32 ParametersByteSize);
  2673. HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
  2674. IXAudio20SubmixVoice *This,
  2675. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  2676. UINT32 OperationSet);
  2677. void (STDMETHODCALLTYPE *GetFilterParameters)(
  2678. IXAudio20SubmixVoice *This,
  2679. XAUDIO2_FILTER_PARAMETERS *pParameters);
  2680. HRESULT (STDMETHODCALLTYPE *SetVolume)(
  2681. IXAudio20SubmixVoice *This,
  2682. float Volume,
  2683. UINT32 OperationSet);
  2684. void (STDMETHODCALLTYPE *GetVolume)(
  2685. IXAudio20SubmixVoice *This,
  2686. float *pVolume);
  2687. HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
  2688. IXAudio20SubmixVoice *This,
  2689. UINT32 Channels,
  2690. const float *pVolumes,
  2691. UINT32 OperationSet);
  2692. void (STDMETHODCALLTYPE *GetChannelVolumes)(
  2693. IXAudio20SubmixVoice *This,
  2694. UINT32 Channels,
  2695. float *pVolumes);
  2696. HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
  2697. IXAudio20SubmixVoice *This,
  2698. IXAudio2Voice *pDestinationVoice,
  2699. UINT32 SourceChannels,
  2700. UINT32 DestinationChannels,
  2701. const float *pLevelMatrix,
  2702. UINT32 OperationSet);
  2703. HRESULT (STDMETHODCALLTYPE *GetOutputMatrix)(
  2704. IXAudio20SubmixVoice *This,
  2705. IXAudio2Voice *pDestinationVoice,
  2706. UINT32 SourceChannels,
  2707. UINT32 DestinationChannels,
  2708. float *pLevelMatrix);
  2709. void (STDMETHODCALLTYPE *DestroyVoice)(
  2710. IXAudio20SubmixVoice *This);
  2711. END_INTERFACE
  2712. } IXAudio20SubmixVoiceVtbl;
  2713. interface IXAudio20SubmixVoice {
  2714. CONST_VTBL IXAudio20SubmixVoiceVtbl* lpVtbl;
  2715. };
  2716. #ifdef COBJMACROS
  2717. #ifndef WIDL_C_INLINE_WRAPPERS
  2718. /*** IXAudio20Voice methods ***/
  2719. #define IXAudio20SubmixVoice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
  2720. #define IXAudio20SubmixVoice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
  2721. #define IXAudio20SubmixVoice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
  2722. #define IXAudio20SubmixVoice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
  2723. #define IXAudio20SubmixVoice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
  2724. #define IXAudio20SubmixVoice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
  2725. #define IXAudio20SubmixVoice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
  2726. #define IXAudio20SubmixVoice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
  2727. #define IXAudio20SubmixVoice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
  2728. #define IXAudio20SubmixVoice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
  2729. #define IXAudio20SubmixVoice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
  2730. #define IXAudio20SubmixVoice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
  2731. #define IXAudio20SubmixVoice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
  2732. #define IXAudio20SubmixVoice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
  2733. #define IXAudio20SubmixVoice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
  2734. #define IXAudio20SubmixVoice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
  2735. #define IXAudio20SubmixVoice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
  2736. #else
  2737. /*** IXAudio20Voice methods ***/
  2738. static FORCEINLINE void IXAudio20SubmixVoice_GetVoiceDetails(IXAudio20SubmixVoice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
  2739. This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
  2740. }
  2741. static FORCEINLINE HRESULT IXAudio20SubmixVoice_SetOutputVoices(IXAudio20SubmixVoice* This,const XAUDIO23_VOICE_SENDS *pSendList) {
  2742. return This->lpVtbl->SetOutputVoices(This,pSendList);
  2743. }
  2744. static FORCEINLINE HRESULT IXAudio20SubmixVoice_SetEffectChain(IXAudio20SubmixVoice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
  2745. return This->lpVtbl->SetEffectChain(This,pEffectChain);
  2746. }
  2747. static FORCEINLINE HRESULT IXAudio20SubmixVoice_EnableEffect(IXAudio20SubmixVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  2748. return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
  2749. }
  2750. static FORCEINLINE HRESULT IXAudio20SubmixVoice_DisableEffect(IXAudio20SubmixVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  2751. return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
  2752. }
  2753. static FORCEINLINE void IXAudio20SubmixVoice_GetEffectState(IXAudio20SubmixVoice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
  2754. This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
  2755. }
  2756. static FORCEINLINE HRESULT IXAudio20SubmixVoice_SetEffectParameters(IXAudio20SubmixVoice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
  2757. return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
  2758. }
  2759. static FORCEINLINE HRESULT IXAudio20SubmixVoice_GetEffectParameters(IXAudio20SubmixVoice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
  2760. return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
  2761. }
  2762. static FORCEINLINE HRESULT IXAudio20SubmixVoice_SetFilterParameters(IXAudio20SubmixVoice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
  2763. return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
  2764. }
  2765. static FORCEINLINE void IXAudio20SubmixVoice_GetFilterParameters(IXAudio20SubmixVoice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
  2766. This->lpVtbl->GetFilterParameters(This,pParameters);
  2767. }
  2768. static FORCEINLINE HRESULT IXAudio20SubmixVoice_SetVolume(IXAudio20SubmixVoice* This,float Volume,UINT32 OperationSet) {
  2769. return This->lpVtbl->SetVolume(This,Volume,OperationSet);
  2770. }
  2771. static FORCEINLINE void IXAudio20SubmixVoice_GetVolume(IXAudio20SubmixVoice* This,float *pVolume) {
  2772. This->lpVtbl->GetVolume(This,pVolume);
  2773. }
  2774. static FORCEINLINE HRESULT IXAudio20SubmixVoice_SetChannelVolumes(IXAudio20SubmixVoice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
  2775. return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
  2776. }
  2777. static FORCEINLINE void IXAudio20SubmixVoice_GetChannelVolumes(IXAudio20SubmixVoice* This,UINT32 Channels,float *pVolumes) {
  2778. This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
  2779. }
  2780. static FORCEINLINE HRESULT IXAudio20SubmixVoice_SetOutputMatrix(IXAudio20SubmixVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
  2781. return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
  2782. }
  2783. static FORCEINLINE HRESULT IXAudio20SubmixVoice_GetOutputMatrix(IXAudio20SubmixVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
  2784. return This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
  2785. }
  2786. static FORCEINLINE void IXAudio20SubmixVoice_DestroyVoice(IXAudio20SubmixVoice* This) {
  2787. This->lpVtbl->DestroyVoice(This);
  2788. }
  2789. #endif
  2790. #endif
  2791. #endif
  2792. #endif /* __IXAudio20SubmixVoice_INTERFACE_DEFINED__ */
  2793. /*****************************************************************************
  2794. * IXAudio23SubmixVoice interface
  2795. */
  2796. #ifndef __IXAudio23SubmixVoice_INTERFACE_DEFINED__
  2797. #define __IXAudio23SubmixVoice_INTERFACE_DEFINED__
  2798. #if defined(__cplusplus) && !defined(CINTERFACE)
  2799. interface IXAudio23SubmixVoice : public IXAudio23Voice
  2800. {
  2801. };
  2802. #else
  2803. typedef struct IXAudio23SubmixVoiceVtbl {
  2804. BEGIN_INTERFACE
  2805. /*** IXAudio23Voice methods ***/
  2806. void (STDMETHODCALLTYPE *GetVoiceDetails)(
  2807. IXAudio23SubmixVoice *This,
  2808. XAUDIO27_VOICE_DETAILS *pVoiceDetails);
  2809. HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
  2810. IXAudio23SubmixVoice *This,
  2811. const XAUDIO23_VOICE_SENDS *pSendList);
  2812. HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
  2813. IXAudio23SubmixVoice *This,
  2814. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  2815. HRESULT (STDMETHODCALLTYPE *EnableEffect)(
  2816. IXAudio23SubmixVoice *This,
  2817. UINT32 EffectIndex,
  2818. UINT32 OperationSet);
  2819. HRESULT (STDMETHODCALLTYPE *DisableEffect)(
  2820. IXAudio23SubmixVoice *This,
  2821. UINT32 EffectIndex,
  2822. UINT32 OperationSet);
  2823. void (STDMETHODCALLTYPE *GetEffectState)(
  2824. IXAudio23SubmixVoice *This,
  2825. UINT32 EffectIndex,
  2826. WINBOOL *pEnabled);
  2827. HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
  2828. IXAudio23SubmixVoice *This,
  2829. UINT32 EffectIndex,
  2830. const void *pParameters,
  2831. UINT32 ParametersByteSize,
  2832. UINT32 OperationSet);
  2833. HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
  2834. IXAudio23SubmixVoice *This,
  2835. UINT32 EffectIndex,
  2836. void *pParameters,
  2837. UINT32 ParametersByteSize);
  2838. HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
  2839. IXAudio23SubmixVoice *This,
  2840. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  2841. UINT32 OperationSet);
  2842. void (STDMETHODCALLTYPE *GetFilterParameters)(
  2843. IXAudio23SubmixVoice *This,
  2844. XAUDIO2_FILTER_PARAMETERS *pParameters);
  2845. HRESULT (STDMETHODCALLTYPE *SetVolume)(
  2846. IXAudio23SubmixVoice *This,
  2847. float Volume,
  2848. UINT32 OperationSet);
  2849. void (STDMETHODCALLTYPE *GetVolume)(
  2850. IXAudio23SubmixVoice *This,
  2851. float *pVolume);
  2852. HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
  2853. IXAudio23SubmixVoice *This,
  2854. UINT32 Channels,
  2855. const float *pVolumes,
  2856. UINT32 OperationSet);
  2857. void (STDMETHODCALLTYPE *GetChannelVolumes)(
  2858. IXAudio23SubmixVoice *This,
  2859. UINT32 Channels,
  2860. float *pVolumes);
  2861. HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
  2862. IXAudio23SubmixVoice *This,
  2863. IXAudio2Voice *pDestinationVoice,
  2864. UINT32 SourceChannels,
  2865. UINT32 DestinationChannels,
  2866. const float *pLevelMatrix,
  2867. UINT32 OperationSet);
  2868. void (STDMETHODCALLTYPE *GetOutputMatrix)(
  2869. IXAudio23SubmixVoice *This,
  2870. IXAudio2Voice *pDestinationVoice,
  2871. UINT32 SourceChannels,
  2872. UINT32 DestinationChannels,
  2873. float *pLevelMatrix);
  2874. void (STDMETHODCALLTYPE *DestroyVoice)(
  2875. IXAudio23SubmixVoice *This);
  2876. END_INTERFACE
  2877. } IXAudio23SubmixVoiceVtbl;
  2878. interface IXAudio23SubmixVoice {
  2879. CONST_VTBL IXAudio23SubmixVoiceVtbl* lpVtbl;
  2880. };
  2881. #ifdef COBJMACROS
  2882. #ifndef WIDL_C_INLINE_WRAPPERS
  2883. /*** IXAudio23Voice methods ***/
  2884. #define IXAudio23SubmixVoice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
  2885. #define IXAudio23SubmixVoice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
  2886. #define IXAudio23SubmixVoice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
  2887. #define IXAudio23SubmixVoice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
  2888. #define IXAudio23SubmixVoice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
  2889. #define IXAudio23SubmixVoice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
  2890. #define IXAudio23SubmixVoice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
  2891. #define IXAudio23SubmixVoice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
  2892. #define IXAudio23SubmixVoice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
  2893. #define IXAudio23SubmixVoice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
  2894. #define IXAudio23SubmixVoice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
  2895. #define IXAudio23SubmixVoice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
  2896. #define IXAudio23SubmixVoice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
  2897. #define IXAudio23SubmixVoice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
  2898. #define IXAudio23SubmixVoice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
  2899. #define IXAudio23SubmixVoice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
  2900. #define IXAudio23SubmixVoice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
  2901. #else
  2902. /*** IXAudio23Voice methods ***/
  2903. static FORCEINLINE void IXAudio23SubmixVoice_GetVoiceDetails(IXAudio23SubmixVoice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
  2904. This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
  2905. }
  2906. static FORCEINLINE HRESULT IXAudio23SubmixVoice_SetOutputVoices(IXAudio23SubmixVoice* This,const XAUDIO23_VOICE_SENDS *pSendList) {
  2907. return This->lpVtbl->SetOutputVoices(This,pSendList);
  2908. }
  2909. static FORCEINLINE HRESULT IXAudio23SubmixVoice_SetEffectChain(IXAudio23SubmixVoice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
  2910. return This->lpVtbl->SetEffectChain(This,pEffectChain);
  2911. }
  2912. static FORCEINLINE HRESULT IXAudio23SubmixVoice_EnableEffect(IXAudio23SubmixVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  2913. return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
  2914. }
  2915. static FORCEINLINE HRESULT IXAudio23SubmixVoice_DisableEffect(IXAudio23SubmixVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  2916. return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
  2917. }
  2918. static FORCEINLINE void IXAudio23SubmixVoice_GetEffectState(IXAudio23SubmixVoice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
  2919. This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
  2920. }
  2921. static FORCEINLINE HRESULT IXAudio23SubmixVoice_SetEffectParameters(IXAudio23SubmixVoice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
  2922. return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
  2923. }
  2924. static FORCEINLINE HRESULT IXAudio23SubmixVoice_GetEffectParameters(IXAudio23SubmixVoice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
  2925. return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
  2926. }
  2927. static FORCEINLINE HRESULT IXAudio23SubmixVoice_SetFilterParameters(IXAudio23SubmixVoice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
  2928. return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
  2929. }
  2930. static FORCEINLINE void IXAudio23SubmixVoice_GetFilterParameters(IXAudio23SubmixVoice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
  2931. This->lpVtbl->GetFilterParameters(This,pParameters);
  2932. }
  2933. static FORCEINLINE HRESULT IXAudio23SubmixVoice_SetVolume(IXAudio23SubmixVoice* This,float Volume,UINT32 OperationSet) {
  2934. return This->lpVtbl->SetVolume(This,Volume,OperationSet);
  2935. }
  2936. static FORCEINLINE void IXAudio23SubmixVoice_GetVolume(IXAudio23SubmixVoice* This,float *pVolume) {
  2937. This->lpVtbl->GetVolume(This,pVolume);
  2938. }
  2939. static FORCEINLINE HRESULT IXAudio23SubmixVoice_SetChannelVolumes(IXAudio23SubmixVoice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
  2940. return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
  2941. }
  2942. static FORCEINLINE void IXAudio23SubmixVoice_GetChannelVolumes(IXAudio23SubmixVoice* This,UINT32 Channels,float *pVolumes) {
  2943. This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
  2944. }
  2945. static FORCEINLINE HRESULT IXAudio23SubmixVoice_SetOutputMatrix(IXAudio23SubmixVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
  2946. return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
  2947. }
  2948. static FORCEINLINE void IXAudio23SubmixVoice_GetOutputMatrix(IXAudio23SubmixVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
  2949. This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
  2950. }
  2951. static FORCEINLINE void IXAudio23SubmixVoice_DestroyVoice(IXAudio23SubmixVoice* This) {
  2952. This->lpVtbl->DestroyVoice(This);
  2953. }
  2954. #endif
  2955. #endif
  2956. #endif
  2957. #endif /* __IXAudio23SubmixVoice_INTERFACE_DEFINED__ */
  2958. /*****************************************************************************
  2959. * IXAudio27SubmixVoice interface
  2960. */
  2961. #ifndef __IXAudio27SubmixVoice_INTERFACE_DEFINED__
  2962. #define __IXAudio27SubmixVoice_INTERFACE_DEFINED__
  2963. #if defined(__cplusplus) && !defined(CINTERFACE)
  2964. interface IXAudio27SubmixVoice : public IXAudio27Voice
  2965. {
  2966. };
  2967. #else
  2968. typedef struct IXAudio27SubmixVoiceVtbl {
  2969. BEGIN_INTERFACE
  2970. /*** IXAudio27Voice methods ***/
  2971. void (STDMETHODCALLTYPE *GetVoiceDetails)(
  2972. IXAudio27SubmixVoice *This,
  2973. XAUDIO27_VOICE_DETAILS *pVoiceDetails);
  2974. HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
  2975. IXAudio27SubmixVoice *This,
  2976. const XAUDIO2_VOICE_SENDS *pSendList);
  2977. HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
  2978. IXAudio27SubmixVoice *This,
  2979. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  2980. HRESULT (STDMETHODCALLTYPE *EnableEffect)(
  2981. IXAudio27SubmixVoice *This,
  2982. UINT32 EffectIndex,
  2983. UINT32 OperationSet);
  2984. HRESULT (STDMETHODCALLTYPE *DisableEffect)(
  2985. IXAudio27SubmixVoice *This,
  2986. UINT32 EffectIndex,
  2987. UINT32 OperationSet);
  2988. void (STDMETHODCALLTYPE *GetEffectState)(
  2989. IXAudio27SubmixVoice *This,
  2990. UINT32 EffectIndex,
  2991. WINBOOL *pEnabled);
  2992. HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
  2993. IXAudio27SubmixVoice *This,
  2994. UINT32 EffectIndex,
  2995. const void *pParameters,
  2996. UINT32 ParametersByteSize,
  2997. UINT32 OperationSet);
  2998. HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
  2999. IXAudio27SubmixVoice *This,
  3000. UINT32 EffectIndex,
  3001. void *pParameters,
  3002. UINT32 ParametersByteSize);
  3003. HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
  3004. IXAudio27SubmixVoice *This,
  3005. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  3006. UINT32 OperationSet);
  3007. void (STDMETHODCALLTYPE *GetFilterParameters)(
  3008. IXAudio27SubmixVoice *This,
  3009. XAUDIO2_FILTER_PARAMETERS *pParameters);
  3010. HRESULT (STDMETHODCALLTYPE *SetOutputFilterParameters)(
  3011. IXAudio27SubmixVoice *This,
  3012. IXAudio2Voice *pDestinationVoice,
  3013. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  3014. UINT32 OperationSet);
  3015. void (STDMETHODCALLTYPE *GetOutputFilterParameters)(
  3016. IXAudio27SubmixVoice *This,
  3017. IXAudio2Voice *pDestinationVoice,
  3018. XAUDIO2_FILTER_PARAMETERS *pParameters);
  3019. HRESULT (STDMETHODCALLTYPE *SetVolume)(
  3020. IXAudio27SubmixVoice *This,
  3021. float Volume,
  3022. UINT32 OperationSet);
  3023. void (STDMETHODCALLTYPE *GetVolume)(
  3024. IXAudio27SubmixVoice *This,
  3025. float *pVolume);
  3026. HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
  3027. IXAudio27SubmixVoice *This,
  3028. UINT32 Channels,
  3029. const float *pVolumes,
  3030. UINT32 OperationSet);
  3031. void (STDMETHODCALLTYPE *GetChannelVolumes)(
  3032. IXAudio27SubmixVoice *This,
  3033. UINT32 Channels,
  3034. float *pVolumes);
  3035. HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
  3036. IXAudio27SubmixVoice *This,
  3037. IXAudio2Voice *pDestinationVoice,
  3038. UINT32 SourceChannels,
  3039. UINT32 DestinationChannels,
  3040. const float *pLevelMatrix,
  3041. UINT32 OperationSet);
  3042. void (STDMETHODCALLTYPE *GetOutputMatrix)(
  3043. IXAudio27SubmixVoice *This,
  3044. IXAudio2Voice *pDestinationVoice,
  3045. UINT32 SourceChannels,
  3046. UINT32 DestinationChannels,
  3047. float *pLevelMatrix);
  3048. void (STDMETHODCALLTYPE *DestroyVoice)(
  3049. IXAudio27SubmixVoice *This);
  3050. END_INTERFACE
  3051. } IXAudio27SubmixVoiceVtbl;
  3052. interface IXAudio27SubmixVoice {
  3053. CONST_VTBL IXAudio27SubmixVoiceVtbl* lpVtbl;
  3054. };
  3055. #ifdef COBJMACROS
  3056. #ifndef WIDL_C_INLINE_WRAPPERS
  3057. /*** IXAudio27Voice methods ***/
  3058. #define IXAudio27SubmixVoice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
  3059. #define IXAudio27SubmixVoice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
  3060. #define IXAudio27SubmixVoice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
  3061. #define IXAudio27SubmixVoice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
  3062. #define IXAudio27SubmixVoice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
  3063. #define IXAudio27SubmixVoice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
  3064. #define IXAudio27SubmixVoice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
  3065. #define IXAudio27SubmixVoice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
  3066. #define IXAudio27SubmixVoice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
  3067. #define IXAudio27SubmixVoice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
  3068. #define IXAudio27SubmixVoice_SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet) (This)->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet)
  3069. #define IXAudio27SubmixVoice_GetOutputFilterParameters(This,pDestinationVoice,pParameters) (This)->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters)
  3070. #define IXAudio27SubmixVoice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
  3071. #define IXAudio27SubmixVoice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
  3072. #define IXAudio27SubmixVoice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
  3073. #define IXAudio27SubmixVoice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
  3074. #define IXAudio27SubmixVoice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
  3075. #define IXAudio27SubmixVoice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
  3076. #define IXAudio27SubmixVoice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
  3077. #else
  3078. /*** IXAudio27Voice methods ***/
  3079. static FORCEINLINE void IXAudio27SubmixVoice_GetVoiceDetails(IXAudio27SubmixVoice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
  3080. This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
  3081. }
  3082. static FORCEINLINE HRESULT IXAudio27SubmixVoice_SetOutputVoices(IXAudio27SubmixVoice* This,const XAUDIO2_VOICE_SENDS *pSendList) {
  3083. return This->lpVtbl->SetOutputVoices(This,pSendList);
  3084. }
  3085. static FORCEINLINE HRESULT IXAudio27SubmixVoice_SetEffectChain(IXAudio27SubmixVoice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
  3086. return This->lpVtbl->SetEffectChain(This,pEffectChain);
  3087. }
  3088. static FORCEINLINE HRESULT IXAudio27SubmixVoice_EnableEffect(IXAudio27SubmixVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  3089. return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
  3090. }
  3091. static FORCEINLINE HRESULT IXAudio27SubmixVoice_DisableEffect(IXAudio27SubmixVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  3092. return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
  3093. }
  3094. static FORCEINLINE void IXAudio27SubmixVoice_GetEffectState(IXAudio27SubmixVoice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
  3095. This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
  3096. }
  3097. static FORCEINLINE HRESULT IXAudio27SubmixVoice_SetEffectParameters(IXAudio27SubmixVoice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
  3098. return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
  3099. }
  3100. static FORCEINLINE HRESULT IXAudio27SubmixVoice_GetEffectParameters(IXAudio27SubmixVoice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
  3101. return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
  3102. }
  3103. static FORCEINLINE HRESULT IXAudio27SubmixVoice_SetFilterParameters(IXAudio27SubmixVoice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
  3104. return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
  3105. }
  3106. static FORCEINLINE void IXAudio27SubmixVoice_GetFilterParameters(IXAudio27SubmixVoice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
  3107. This->lpVtbl->GetFilterParameters(This,pParameters);
  3108. }
  3109. static FORCEINLINE HRESULT IXAudio27SubmixVoice_SetOutputFilterParameters(IXAudio27SubmixVoice* This,IXAudio2Voice *pDestinationVoice,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
  3110. return This->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet);
  3111. }
  3112. static FORCEINLINE void IXAudio27SubmixVoice_GetOutputFilterParameters(IXAudio27SubmixVoice* This,IXAudio2Voice *pDestinationVoice,XAUDIO2_FILTER_PARAMETERS *pParameters) {
  3113. This->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters);
  3114. }
  3115. static FORCEINLINE HRESULT IXAudio27SubmixVoice_SetVolume(IXAudio27SubmixVoice* This,float Volume,UINT32 OperationSet) {
  3116. return This->lpVtbl->SetVolume(This,Volume,OperationSet);
  3117. }
  3118. static FORCEINLINE void IXAudio27SubmixVoice_GetVolume(IXAudio27SubmixVoice* This,float *pVolume) {
  3119. This->lpVtbl->GetVolume(This,pVolume);
  3120. }
  3121. static FORCEINLINE HRESULT IXAudio27SubmixVoice_SetChannelVolumes(IXAudio27SubmixVoice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
  3122. return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
  3123. }
  3124. static FORCEINLINE void IXAudio27SubmixVoice_GetChannelVolumes(IXAudio27SubmixVoice* This,UINT32 Channels,float *pVolumes) {
  3125. This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
  3126. }
  3127. static FORCEINLINE HRESULT IXAudio27SubmixVoice_SetOutputMatrix(IXAudio27SubmixVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
  3128. return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
  3129. }
  3130. static FORCEINLINE void IXAudio27SubmixVoice_GetOutputMatrix(IXAudio27SubmixVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
  3131. This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
  3132. }
  3133. static FORCEINLINE void IXAudio27SubmixVoice_DestroyVoice(IXAudio27SubmixVoice* This) {
  3134. This->lpVtbl->DestroyVoice(This);
  3135. }
  3136. #endif
  3137. #endif
  3138. #endif
  3139. #endif /* __IXAudio27SubmixVoice_INTERFACE_DEFINED__ */
  3140. /*****************************************************************************
  3141. * IXAudio2SubmixVoice interface
  3142. */
  3143. #ifndef __IXAudio2SubmixVoice_INTERFACE_DEFINED__
  3144. #define __IXAudio2SubmixVoice_INTERFACE_DEFINED__
  3145. #if defined(__cplusplus) && !defined(CINTERFACE)
  3146. interface IXAudio2SubmixVoice : public IXAudio2Voice
  3147. {
  3148. };
  3149. #else
  3150. typedef struct IXAudio2SubmixVoiceVtbl {
  3151. BEGIN_INTERFACE
  3152. /*** IXAudio2Voice methods ***/
  3153. void (STDMETHODCALLTYPE *GetVoiceDetails)(
  3154. IXAudio2SubmixVoice *This,
  3155. XAUDIO2_VOICE_DETAILS *pVoiceDetails);
  3156. HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
  3157. IXAudio2SubmixVoice *This,
  3158. const XAUDIO2_VOICE_SENDS *pSendList);
  3159. HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
  3160. IXAudio2SubmixVoice *This,
  3161. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  3162. HRESULT (STDMETHODCALLTYPE *EnableEffect)(
  3163. IXAudio2SubmixVoice *This,
  3164. UINT32 EffectIndex,
  3165. UINT32 OperationSet);
  3166. HRESULT (STDMETHODCALLTYPE *DisableEffect)(
  3167. IXAudio2SubmixVoice *This,
  3168. UINT32 EffectIndex,
  3169. UINT32 OperationSet);
  3170. void (STDMETHODCALLTYPE *GetEffectState)(
  3171. IXAudio2SubmixVoice *This,
  3172. UINT32 EffectIndex,
  3173. WINBOOL *pEnabled);
  3174. HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
  3175. IXAudio2SubmixVoice *This,
  3176. UINT32 EffectIndex,
  3177. const void *pParameters,
  3178. UINT32 ParametersByteSize,
  3179. UINT32 OperationSet);
  3180. HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
  3181. IXAudio2SubmixVoice *This,
  3182. UINT32 EffectIndex,
  3183. void *pParameters,
  3184. UINT32 ParametersByteSize);
  3185. HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
  3186. IXAudio2SubmixVoice *This,
  3187. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  3188. UINT32 OperationSet);
  3189. void (STDMETHODCALLTYPE *GetFilterParameters)(
  3190. IXAudio2SubmixVoice *This,
  3191. XAUDIO2_FILTER_PARAMETERS *pParameters);
  3192. HRESULT (STDMETHODCALLTYPE *SetOutputFilterParameters)(
  3193. IXAudio2SubmixVoice *This,
  3194. IXAudio2Voice *pDestinationVoice,
  3195. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  3196. UINT32 OperationSet);
  3197. void (STDMETHODCALLTYPE *GetOutputFilterParameters)(
  3198. IXAudio2SubmixVoice *This,
  3199. IXAudio2Voice *pDestinationVoice,
  3200. XAUDIO2_FILTER_PARAMETERS *pParameters);
  3201. HRESULT (STDMETHODCALLTYPE *SetVolume)(
  3202. IXAudio2SubmixVoice *This,
  3203. float Volume,
  3204. UINT32 OperationSet);
  3205. void (STDMETHODCALLTYPE *GetVolume)(
  3206. IXAudio2SubmixVoice *This,
  3207. float *pVolume);
  3208. HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
  3209. IXAudio2SubmixVoice *This,
  3210. UINT32 Channels,
  3211. const float *pVolumes,
  3212. UINT32 OperationSet);
  3213. void (STDMETHODCALLTYPE *GetChannelVolumes)(
  3214. IXAudio2SubmixVoice *This,
  3215. UINT32 Channels,
  3216. float *pVolumes);
  3217. HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
  3218. IXAudio2SubmixVoice *This,
  3219. IXAudio2Voice *pDestinationVoice,
  3220. UINT32 SourceChannels,
  3221. UINT32 DestinationChannels,
  3222. const float *pLevelMatrix,
  3223. UINT32 OperationSet);
  3224. void (STDMETHODCALLTYPE *GetOutputMatrix)(
  3225. IXAudio2SubmixVoice *This,
  3226. IXAudio2Voice *pDestinationVoice,
  3227. UINT32 SourceChannels,
  3228. UINT32 DestinationChannels,
  3229. float *pLevelMatrix);
  3230. void (STDMETHODCALLTYPE *DestroyVoice)(
  3231. IXAudio2SubmixVoice *This);
  3232. END_INTERFACE
  3233. } IXAudio2SubmixVoiceVtbl;
  3234. interface IXAudio2SubmixVoice {
  3235. CONST_VTBL IXAudio2SubmixVoiceVtbl* lpVtbl;
  3236. };
  3237. #ifdef COBJMACROS
  3238. #ifndef WIDL_C_INLINE_WRAPPERS
  3239. /*** IXAudio2Voice methods ***/
  3240. #define IXAudio2SubmixVoice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
  3241. #define IXAudio2SubmixVoice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
  3242. #define IXAudio2SubmixVoice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
  3243. #define IXAudio2SubmixVoice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
  3244. #define IXAudio2SubmixVoice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
  3245. #define IXAudio2SubmixVoice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
  3246. #define IXAudio2SubmixVoice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
  3247. #define IXAudio2SubmixVoice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
  3248. #define IXAudio2SubmixVoice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
  3249. #define IXAudio2SubmixVoice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
  3250. #define IXAudio2SubmixVoice_SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet) (This)->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet)
  3251. #define IXAudio2SubmixVoice_GetOutputFilterParameters(This,pDestinationVoice,pParameters) (This)->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters)
  3252. #define IXAudio2SubmixVoice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
  3253. #define IXAudio2SubmixVoice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
  3254. #define IXAudio2SubmixVoice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
  3255. #define IXAudio2SubmixVoice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
  3256. #define IXAudio2SubmixVoice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
  3257. #define IXAudio2SubmixVoice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
  3258. #define IXAudio2SubmixVoice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
  3259. #else
  3260. /*** IXAudio2Voice methods ***/
  3261. static FORCEINLINE void IXAudio2SubmixVoice_GetVoiceDetails(IXAudio2SubmixVoice* This,XAUDIO2_VOICE_DETAILS *pVoiceDetails) {
  3262. This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
  3263. }
  3264. static FORCEINLINE HRESULT IXAudio2SubmixVoice_SetOutputVoices(IXAudio2SubmixVoice* This,const XAUDIO2_VOICE_SENDS *pSendList) {
  3265. return This->lpVtbl->SetOutputVoices(This,pSendList);
  3266. }
  3267. static FORCEINLINE HRESULT IXAudio2SubmixVoice_SetEffectChain(IXAudio2SubmixVoice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
  3268. return This->lpVtbl->SetEffectChain(This,pEffectChain);
  3269. }
  3270. static FORCEINLINE HRESULT IXAudio2SubmixVoice_EnableEffect(IXAudio2SubmixVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  3271. return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
  3272. }
  3273. static FORCEINLINE HRESULT IXAudio2SubmixVoice_DisableEffect(IXAudio2SubmixVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  3274. return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
  3275. }
  3276. static FORCEINLINE void IXAudio2SubmixVoice_GetEffectState(IXAudio2SubmixVoice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
  3277. This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
  3278. }
  3279. static FORCEINLINE HRESULT IXAudio2SubmixVoice_SetEffectParameters(IXAudio2SubmixVoice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
  3280. return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
  3281. }
  3282. static FORCEINLINE HRESULT IXAudio2SubmixVoice_GetEffectParameters(IXAudio2SubmixVoice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
  3283. return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
  3284. }
  3285. static FORCEINLINE HRESULT IXAudio2SubmixVoice_SetFilterParameters(IXAudio2SubmixVoice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
  3286. return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
  3287. }
  3288. static FORCEINLINE void IXAudio2SubmixVoice_GetFilterParameters(IXAudio2SubmixVoice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
  3289. This->lpVtbl->GetFilterParameters(This,pParameters);
  3290. }
  3291. static FORCEINLINE HRESULT IXAudio2SubmixVoice_SetOutputFilterParameters(IXAudio2SubmixVoice* This,IXAudio2Voice *pDestinationVoice,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
  3292. return This->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet);
  3293. }
  3294. static FORCEINLINE void IXAudio2SubmixVoice_GetOutputFilterParameters(IXAudio2SubmixVoice* This,IXAudio2Voice *pDestinationVoice,XAUDIO2_FILTER_PARAMETERS *pParameters) {
  3295. This->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters);
  3296. }
  3297. static FORCEINLINE HRESULT IXAudio2SubmixVoice_SetVolume(IXAudio2SubmixVoice* This,float Volume,UINT32 OperationSet) {
  3298. return This->lpVtbl->SetVolume(This,Volume,OperationSet);
  3299. }
  3300. static FORCEINLINE void IXAudio2SubmixVoice_GetVolume(IXAudio2SubmixVoice* This,float *pVolume) {
  3301. This->lpVtbl->GetVolume(This,pVolume);
  3302. }
  3303. static FORCEINLINE HRESULT IXAudio2SubmixVoice_SetChannelVolumes(IXAudio2SubmixVoice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
  3304. return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
  3305. }
  3306. static FORCEINLINE void IXAudio2SubmixVoice_GetChannelVolumes(IXAudio2SubmixVoice* This,UINT32 Channels,float *pVolumes) {
  3307. This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
  3308. }
  3309. static FORCEINLINE HRESULT IXAudio2SubmixVoice_SetOutputMatrix(IXAudio2SubmixVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
  3310. return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
  3311. }
  3312. static FORCEINLINE void IXAudio2SubmixVoice_GetOutputMatrix(IXAudio2SubmixVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
  3313. This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
  3314. }
  3315. static FORCEINLINE void IXAudio2SubmixVoice_DestroyVoice(IXAudio2SubmixVoice* This) {
  3316. This->lpVtbl->DestroyVoice(This);
  3317. }
  3318. #endif
  3319. #endif
  3320. #endif
  3321. #endif /* __IXAudio2SubmixVoice_INTERFACE_DEFINED__ */
  3322. /*****************************************************************************
  3323. * IXAudio20MasteringVoice interface
  3324. */
  3325. #ifndef __IXAudio20MasteringVoice_INTERFACE_DEFINED__
  3326. #define __IXAudio20MasteringVoice_INTERFACE_DEFINED__
  3327. #if defined(__cplusplus) && !defined(CINTERFACE)
  3328. interface IXAudio20MasteringVoice : public IXAudio20Voice
  3329. {
  3330. };
  3331. #else
  3332. typedef struct IXAudio20MasteringVoiceVtbl {
  3333. BEGIN_INTERFACE
  3334. /*** IXAudio20Voice methods ***/
  3335. void (STDMETHODCALLTYPE *GetVoiceDetails)(
  3336. IXAudio20MasteringVoice *This,
  3337. XAUDIO27_VOICE_DETAILS *pVoiceDetails);
  3338. HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
  3339. IXAudio20MasteringVoice *This,
  3340. const XAUDIO23_VOICE_SENDS *pSendList);
  3341. HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
  3342. IXAudio20MasteringVoice *This,
  3343. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  3344. HRESULT (STDMETHODCALLTYPE *EnableEffect)(
  3345. IXAudio20MasteringVoice *This,
  3346. UINT32 EffectIndex,
  3347. UINT32 OperationSet);
  3348. HRESULT (STDMETHODCALLTYPE *DisableEffect)(
  3349. IXAudio20MasteringVoice *This,
  3350. UINT32 EffectIndex,
  3351. UINT32 OperationSet);
  3352. void (STDMETHODCALLTYPE *GetEffectState)(
  3353. IXAudio20MasteringVoice *This,
  3354. UINT32 EffectIndex,
  3355. WINBOOL *pEnabled);
  3356. HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
  3357. IXAudio20MasteringVoice *This,
  3358. UINT32 EffectIndex,
  3359. const void *pParameters,
  3360. UINT32 ParametersByteSize,
  3361. UINT32 OperationSet);
  3362. HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
  3363. IXAudio20MasteringVoice *This,
  3364. UINT32 EffectIndex,
  3365. void *pParameters,
  3366. UINT32 ParametersByteSize);
  3367. HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
  3368. IXAudio20MasteringVoice *This,
  3369. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  3370. UINT32 OperationSet);
  3371. void (STDMETHODCALLTYPE *GetFilterParameters)(
  3372. IXAudio20MasteringVoice *This,
  3373. XAUDIO2_FILTER_PARAMETERS *pParameters);
  3374. HRESULT (STDMETHODCALLTYPE *SetVolume)(
  3375. IXAudio20MasteringVoice *This,
  3376. float Volume,
  3377. UINT32 OperationSet);
  3378. void (STDMETHODCALLTYPE *GetVolume)(
  3379. IXAudio20MasteringVoice *This,
  3380. float *pVolume);
  3381. HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
  3382. IXAudio20MasteringVoice *This,
  3383. UINT32 Channels,
  3384. const float *pVolumes,
  3385. UINT32 OperationSet);
  3386. void (STDMETHODCALLTYPE *GetChannelVolumes)(
  3387. IXAudio20MasteringVoice *This,
  3388. UINT32 Channels,
  3389. float *pVolumes);
  3390. HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
  3391. IXAudio20MasteringVoice *This,
  3392. IXAudio2Voice *pDestinationVoice,
  3393. UINT32 SourceChannels,
  3394. UINT32 DestinationChannels,
  3395. const float *pLevelMatrix,
  3396. UINT32 OperationSet);
  3397. HRESULT (STDMETHODCALLTYPE *GetOutputMatrix)(
  3398. IXAudio20MasteringVoice *This,
  3399. IXAudio2Voice *pDestinationVoice,
  3400. UINT32 SourceChannels,
  3401. UINT32 DestinationChannels,
  3402. float *pLevelMatrix);
  3403. void (STDMETHODCALLTYPE *DestroyVoice)(
  3404. IXAudio20MasteringVoice *This);
  3405. END_INTERFACE
  3406. } IXAudio20MasteringVoiceVtbl;
  3407. interface IXAudio20MasteringVoice {
  3408. CONST_VTBL IXAudio20MasteringVoiceVtbl* lpVtbl;
  3409. };
  3410. #ifdef COBJMACROS
  3411. #ifndef WIDL_C_INLINE_WRAPPERS
  3412. /*** IXAudio20Voice methods ***/
  3413. #define IXAudio20MasteringVoice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
  3414. #define IXAudio20MasteringVoice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
  3415. #define IXAudio20MasteringVoice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
  3416. #define IXAudio20MasteringVoice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
  3417. #define IXAudio20MasteringVoice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
  3418. #define IXAudio20MasteringVoice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
  3419. #define IXAudio20MasteringVoice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
  3420. #define IXAudio20MasteringVoice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
  3421. #define IXAudio20MasteringVoice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
  3422. #define IXAudio20MasteringVoice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
  3423. #define IXAudio20MasteringVoice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
  3424. #define IXAudio20MasteringVoice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
  3425. #define IXAudio20MasteringVoice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
  3426. #define IXAudio20MasteringVoice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
  3427. #define IXAudio20MasteringVoice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
  3428. #define IXAudio20MasteringVoice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
  3429. #define IXAudio20MasteringVoice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
  3430. #else
  3431. /*** IXAudio20Voice methods ***/
  3432. static FORCEINLINE void IXAudio20MasteringVoice_GetVoiceDetails(IXAudio20MasteringVoice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
  3433. This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
  3434. }
  3435. static FORCEINLINE HRESULT IXAudio20MasteringVoice_SetOutputVoices(IXAudio20MasteringVoice* This,const XAUDIO23_VOICE_SENDS *pSendList) {
  3436. return This->lpVtbl->SetOutputVoices(This,pSendList);
  3437. }
  3438. static FORCEINLINE HRESULT IXAudio20MasteringVoice_SetEffectChain(IXAudio20MasteringVoice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
  3439. return This->lpVtbl->SetEffectChain(This,pEffectChain);
  3440. }
  3441. static FORCEINLINE HRESULT IXAudio20MasteringVoice_EnableEffect(IXAudio20MasteringVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  3442. return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
  3443. }
  3444. static FORCEINLINE HRESULT IXAudio20MasteringVoice_DisableEffect(IXAudio20MasteringVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  3445. return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
  3446. }
  3447. static FORCEINLINE void IXAudio20MasteringVoice_GetEffectState(IXAudio20MasteringVoice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
  3448. This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
  3449. }
  3450. static FORCEINLINE HRESULT IXAudio20MasteringVoice_SetEffectParameters(IXAudio20MasteringVoice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
  3451. return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
  3452. }
  3453. static FORCEINLINE HRESULT IXAudio20MasteringVoice_GetEffectParameters(IXAudio20MasteringVoice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
  3454. return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
  3455. }
  3456. static FORCEINLINE HRESULT IXAudio20MasteringVoice_SetFilterParameters(IXAudio20MasteringVoice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
  3457. return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
  3458. }
  3459. static FORCEINLINE void IXAudio20MasteringVoice_GetFilterParameters(IXAudio20MasteringVoice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
  3460. This->lpVtbl->GetFilterParameters(This,pParameters);
  3461. }
  3462. static FORCEINLINE HRESULT IXAudio20MasteringVoice_SetVolume(IXAudio20MasteringVoice* This,float Volume,UINT32 OperationSet) {
  3463. return This->lpVtbl->SetVolume(This,Volume,OperationSet);
  3464. }
  3465. static FORCEINLINE void IXAudio20MasteringVoice_GetVolume(IXAudio20MasteringVoice* This,float *pVolume) {
  3466. This->lpVtbl->GetVolume(This,pVolume);
  3467. }
  3468. static FORCEINLINE HRESULT IXAudio20MasteringVoice_SetChannelVolumes(IXAudio20MasteringVoice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
  3469. return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
  3470. }
  3471. static FORCEINLINE void IXAudio20MasteringVoice_GetChannelVolumes(IXAudio20MasteringVoice* This,UINT32 Channels,float *pVolumes) {
  3472. This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
  3473. }
  3474. static FORCEINLINE HRESULT IXAudio20MasteringVoice_SetOutputMatrix(IXAudio20MasteringVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
  3475. return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
  3476. }
  3477. static FORCEINLINE HRESULT IXAudio20MasteringVoice_GetOutputMatrix(IXAudio20MasteringVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
  3478. return This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
  3479. }
  3480. static FORCEINLINE void IXAudio20MasteringVoice_DestroyVoice(IXAudio20MasteringVoice* This) {
  3481. This->lpVtbl->DestroyVoice(This);
  3482. }
  3483. #endif
  3484. #endif
  3485. #endif
  3486. #endif /* __IXAudio20MasteringVoice_INTERFACE_DEFINED__ */
  3487. /*****************************************************************************
  3488. * IXAudio23MasteringVoice interface
  3489. */
  3490. #ifndef __IXAudio23MasteringVoice_INTERFACE_DEFINED__
  3491. #define __IXAudio23MasteringVoice_INTERFACE_DEFINED__
  3492. #if defined(__cplusplus) && !defined(CINTERFACE)
  3493. interface IXAudio23MasteringVoice : public IXAudio23Voice
  3494. {
  3495. };
  3496. #else
  3497. typedef struct IXAudio23MasteringVoiceVtbl {
  3498. BEGIN_INTERFACE
  3499. /*** IXAudio23Voice methods ***/
  3500. void (STDMETHODCALLTYPE *GetVoiceDetails)(
  3501. IXAudio23MasteringVoice *This,
  3502. XAUDIO27_VOICE_DETAILS *pVoiceDetails);
  3503. HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
  3504. IXAudio23MasteringVoice *This,
  3505. const XAUDIO23_VOICE_SENDS *pSendList);
  3506. HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
  3507. IXAudio23MasteringVoice *This,
  3508. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  3509. HRESULT (STDMETHODCALLTYPE *EnableEffect)(
  3510. IXAudio23MasteringVoice *This,
  3511. UINT32 EffectIndex,
  3512. UINT32 OperationSet);
  3513. HRESULT (STDMETHODCALLTYPE *DisableEffect)(
  3514. IXAudio23MasteringVoice *This,
  3515. UINT32 EffectIndex,
  3516. UINT32 OperationSet);
  3517. void (STDMETHODCALLTYPE *GetEffectState)(
  3518. IXAudio23MasteringVoice *This,
  3519. UINT32 EffectIndex,
  3520. WINBOOL *pEnabled);
  3521. HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
  3522. IXAudio23MasteringVoice *This,
  3523. UINT32 EffectIndex,
  3524. const void *pParameters,
  3525. UINT32 ParametersByteSize,
  3526. UINT32 OperationSet);
  3527. HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
  3528. IXAudio23MasteringVoice *This,
  3529. UINT32 EffectIndex,
  3530. void *pParameters,
  3531. UINT32 ParametersByteSize);
  3532. HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
  3533. IXAudio23MasteringVoice *This,
  3534. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  3535. UINT32 OperationSet);
  3536. void (STDMETHODCALLTYPE *GetFilterParameters)(
  3537. IXAudio23MasteringVoice *This,
  3538. XAUDIO2_FILTER_PARAMETERS *pParameters);
  3539. HRESULT (STDMETHODCALLTYPE *SetVolume)(
  3540. IXAudio23MasteringVoice *This,
  3541. float Volume,
  3542. UINT32 OperationSet);
  3543. void (STDMETHODCALLTYPE *GetVolume)(
  3544. IXAudio23MasteringVoice *This,
  3545. float *pVolume);
  3546. HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
  3547. IXAudio23MasteringVoice *This,
  3548. UINT32 Channels,
  3549. const float *pVolumes,
  3550. UINT32 OperationSet);
  3551. void (STDMETHODCALLTYPE *GetChannelVolumes)(
  3552. IXAudio23MasteringVoice *This,
  3553. UINT32 Channels,
  3554. float *pVolumes);
  3555. HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
  3556. IXAudio23MasteringVoice *This,
  3557. IXAudio2Voice *pDestinationVoice,
  3558. UINT32 SourceChannels,
  3559. UINT32 DestinationChannels,
  3560. const float *pLevelMatrix,
  3561. UINT32 OperationSet);
  3562. void (STDMETHODCALLTYPE *GetOutputMatrix)(
  3563. IXAudio23MasteringVoice *This,
  3564. IXAudio2Voice *pDestinationVoice,
  3565. UINT32 SourceChannels,
  3566. UINT32 DestinationChannels,
  3567. float *pLevelMatrix);
  3568. void (STDMETHODCALLTYPE *DestroyVoice)(
  3569. IXAudio23MasteringVoice *This);
  3570. END_INTERFACE
  3571. } IXAudio23MasteringVoiceVtbl;
  3572. interface IXAudio23MasteringVoice {
  3573. CONST_VTBL IXAudio23MasteringVoiceVtbl* lpVtbl;
  3574. };
  3575. #ifdef COBJMACROS
  3576. #ifndef WIDL_C_INLINE_WRAPPERS
  3577. /*** IXAudio23Voice methods ***/
  3578. #define IXAudio23MasteringVoice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
  3579. #define IXAudio23MasteringVoice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
  3580. #define IXAudio23MasteringVoice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
  3581. #define IXAudio23MasteringVoice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
  3582. #define IXAudio23MasteringVoice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
  3583. #define IXAudio23MasteringVoice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
  3584. #define IXAudio23MasteringVoice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
  3585. #define IXAudio23MasteringVoice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
  3586. #define IXAudio23MasteringVoice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
  3587. #define IXAudio23MasteringVoice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
  3588. #define IXAudio23MasteringVoice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
  3589. #define IXAudio23MasteringVoice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
  3590. #define IXAudio23MasteringVoice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
  3591. #define IXAudio23MasteringVoice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
  3592. #define IXAudio23MasteringVoice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
  3593. #define IXAudio23MasteringVoice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
  3594. #define IXAudio23MasteringVoice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
  3595. #else
  3596. /*** IXAudio23Voice methods ***/
  3597. static FORCEINLINE void IXAudio23MasteringVoice_GetVoiceDetails(IXAudio23MasteringVoice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
  3598. This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
  3599. }
  3600. static FORCEINLINE HRESULT IXAudio23MasteringVoice_SetOutputVoices(IXAudio23MasteringVoice* This,const XAUDIO23_VOICE_SENDS *pSendList) {
  3601. return This->lpVtbl->SetOutputVoices(This,pSendList);
  3602. }
  3603. static FORCEINLINE HRESULT IXAudio23MasteringVoice_SetEffectChain(IXAudio23MasteringVoice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
  3604. return This->lpVtbl->SetEffectChain(This,pEffectChain);
  3605. }
  3606. static FORCEINLINE HRESULT IXAudio23MasteringVoice_EnableEffect(IXAudio23MasteringVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  3607. return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
  3608. }
  3609. static FORCEINLINE HRESULT IXAudio23MasteringVoice_DisableEffect(IXAudio23MasteringVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  3610. return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
  3611. }
  3612. static FORCEINLINE void IXAudio23MasteringVoice_GetEffectState(IXAudio23MasteringVoice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
  3613. This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
  3614. }
  3615. static FORCEINLINE HRESULT IXAudio23MasteringVoice_SetEffectParameters(IXAudio23MasteringVoice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
  3616. return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
  3617. }
  3618. static FORCEINLINE HRESULT IXAudio23MasteringVoice_GetEffectParameters(IXAudio23MasteringVoice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
  3619. return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
  3620. }
  3621. static FORCEINLINE HRESULT IXAudio23MasteringVoice_SetFilterParameters(IXAudio23MasteringVoice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
  3622. return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
  3623. }
  3624. static FORCEINLINE void IXAudio23MasteringVoice_GetFilterParameters(IXAudio23MasteringVoice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
  3625. This->lpVtbl->GetFilterParameters(This,pParameters);
  3626. }
  3627. static FORCEINLINE HRESULT IXAudio23MasteringVoice_SetVolume(IXAudio23MasteringVoice* This,float Volume,UINT32 OperationSet) {
  3628. return This->lpVtbl->SetVolume(This,Volume,OperationSet);
  3629. }
  3630. static FORCEINLINE void IXAudio23MasteringVoice_GetVolume(IXAudio23MasteringVoice* This,float *pVolume) {
  3631. This->lpVtbl->GetVolume(This,pVolume);
  3632. }
  3633. static FORCEINLINE HRESULT IXAudio23MasteringVoice_SetChannelVolumes(IXAudio23MasteringVoice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
  3634. return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
  3635. }
  3636. static FORCEINLINE void IXAudio23MasteringVoice_GetChannelVolumes(IXAudio23MasteringVoice* This,UINT32 Channels,float *pVolumes) {
  3637. This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
  3638. }
  3639. static FORCEINLINE HRESULT IXAudio23MasteringVoice_SetOutputMatrix(IXAudio23MasteringVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
  3640. return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
  3641. }
  3642. static FORCEINLINE void IXAudio23MasteringVoice_GetOutputMatrix(IXAudio23MasteringVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
  3643. This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
  3644. }
  3645. static FORCEINLINE void IXAudio23MasteringVoice_DestroyVoice(IXAudio23MasteringVoice* This) {
  3646. This->lpVtbl->DestroyVoice(This);
  3647. }
  3648. #endif
  3649. #endif
  3650. #endif
  3651. #endif /* __IXAudio23MasteringVoice_INTERFACE_DEFINED__ */
  3652. /*****************************************************************************
  3653. * IXAudio27MasteringVoice interface
  3654. */
  3655. #ifndef __IXAudio27MasteringVoice_INTERFACE_DEFINED__
  3656. #define __IXAudio27MasteringVoice_INTERFACE_DEFINED__
  3657. #if defined(__cplusplus) && !defined(CINTERFACE)
  3658. interface IXAudio27MasteringVoice : public IXAudio27Voice
  3659. {
  3660. };
  3661. #else
  3662. typedef struct IXAudio27MasteringVoiceVtbl {
  3663. BEGIN_INTERFACE
  3664. /*** IXAudio27Voice methods ***/
  3665. void (STDMETHODCALLTYPE *GetVoiceDetails)(
  3666. IXAudio27MasteringVoice *This,
  3667. XAUDIO27_VOICE_DETAILS *pVoiceDetails);
  3668. HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
  3669. IXAudio27MasteringVoice *This,
  3670. const XAUDIO2_VOICE_SENDS *pSendList);
  3671. HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
  3672. IXAudio27MasteringVoice *This,
  3673. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  3674. HRESULT (STDMETHODCALLTYPE *EnableEffect)(
  3675. IXAudio27MasteringVoice *This,
  3676. UINT32 EffectIndex,
  3677. UINT32 OperationSet);
  3678. HRESULT (STDMETHODCALLTYPE *DisableEffect)(
  3679. IXAudio27MasteringVoice *This,
  3680. UINT32 EffectIndex,
  3681. UINT32 OperationSet);
  3682. void (STDMETHODCALLTYPE *GetEffectState)(
  3683. IXAudio27MasteringVoice *This,
  3684. UINT32 EffectIndex,
  3685. WINBOOL *pEnabled);
  3686. HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
  3687. IXAudio27MasteringVoice *This,
  3688. UINT32 EffectIndex,
  3689. const void *pParameters,
  3690. UINT32 ParametersByteSize,
  3691. UINT32 OperationSet);
  3692. HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
  3693. IXAudio27MasteringVoice *This,
  3694. UINT32 EffectIndex,
  3695. void *pParameters,
  3696. UINT32 ParametersByteSize);
  3697. HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
  3698. IXAudio27MasteringVoice *This,
  3699. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  3700. UINT32 OperationSet);
  3701. void (STDMETHODCALLTYPE *GetFilterParameters)(
  3702. IXAudio27MasteringVoice *This,
  3703. XAUDIO2_FILTER_PARAMETERS *pParameters);
  3704. HRESULT (STDMETHODCALLTYPE *SetOutputFilterParameters)(
  3705. IXAudio27MasteringVoice *This,
  3706. IXAudio2Voice *pDestinationVoice,
  3707. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  3708. UINT32 OperationSet);
  3709. void (STDMETHODCALLTYPE *GetOutputFilterParameters)(
  3710. IXAudio27MasteringVoice *This,
  3711. IXAudio2Voice *pDestinationVoice,
  3712. XAUDIO2_FILTER_PARAMETERS *pParameters);
  3713. HRESULT (STDMETHODCALLTYPE *SetVolume)(
  3714. IXAudio27MasteringVoice *This,
  3715. float Volume,
  3716. UINT32 OperationSet);
  3717. void (STDMETHODCALLTYPE *GetVolume)(
  3718. IXAudio27MasteringVoice *This,
  3719. float *pVolume);
  3720. HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
  3721. IXAudio27MasteringVoice *This,
  3722. UINT32 Channels,
  3723. const float *pVolumes,
  3724. UINT32 OperationSet);
  3725. void (STDMETHODCALLTYPE *GetChannelVolumes)(
  3726. IXAudio27MasteringVoice *This,
  3727. UINT32 Channels,
  3728. float *pVolumes);
  3729. HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
  3730. IXAudio27MasteringVoice *This,
  3731. IXAudio2Voice *pDestinationVoice,
  3732. UINT32 SourceChannels,
  3733. UINT32 DestinationChannels,
  3734. const float *pLevelMatrix,
  3735. UINT32 OperationSet);
  3736. void (STDMETHODCALLTYPE *GetOutputMatrix)(
  3737. IXAudio27MasteringVoice *This,
  3738. IXAudio2Voice *pDestinationVoice,
  3739. UINT32 SourceChannels,
  3740. UINT32 DestinationChannels,
  3741. float *pLevelMatrix);
  3742. void (STDMETHODCALLTYPE *DestroyVoice)(
  3743. IXAudio27MasteringVoice *This);
  3744. END_INTERFACE
  3745. } IXAudio27MasteringVoiceVtbl;
  3746. interface IXAudio27MasteringVoice {
  3747. CONST_VTBL IXAudio27MasteringVoiceVtbl* lpVtbl;
  3748. };
  3749. #ifdef COBJMACROS
  3750. #ifndef WIDL_C_INLINE_WRAPPERS
  3751. /*** IXAudio27Voice methods ***/
  3752. #define IXAudio27MasteringVoice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
  3753. #define IXAudio27MasteringVoice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
  3754. #define IXAudio27MasteringVoice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
  3755. #define IXAudio27MasteringVoice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
  3756. #define IXAudio27MasteringVoice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
  3757. #define IXAudio27MasteringVoice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
  3758. #define IXAudio27MasteringVoice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
  3759. #define IXAudio27MasteringVoice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
  3760. #define IXAudio27MasteringVoice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
  3761. #define IXAudio27MasteringVoice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
  3762. #define IXAudio27MasteringVoice_SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet) (This)->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet)
  3763. #define IXAudio27MasteringVoice_GetOutputFilterParameters(This,pDestinationVoice,pParameters) (This)->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters)
  3764. #define IXAudio27MasteringVoice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
  3765. #define IXAudio27MasteringVoice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
  3766. #define IXAudio27MasteringVoice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
  3767. #define IXAudio27MasteringVoice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
  3768. #define IXAudio27MasteringVoice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
  3769. #define IXAudio27MasteringVoice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
  3770. #define IXAudio27MasteringVoice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
  3771. #else
  3772. /*** IXAudio27Voice methods ***/
  3773. static FORCEINLINE void IXAudio27MasteringVoice_GetVoiceDetails(IXAudio27MasteringVoice* This,XAUDIO27_VOICE_DETAILS *pVoiceDetails) {
  3774. This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
  3775. }
  3776. static FORCEINLINE HRESULT IXAudio27MasteringVoice_SetOutputVoices(IXAudio27MasteringVoice* This,const XAUDIO2_VOICE_SENDS *pSendList) {
  3777. return This->lpVtbl->SetOutputVoices(This,pSendList);
  3778. }
  3779. static FORCEINLINE HRESULT IXAudio27MasteringVoice_SetEffectChain(IXAudio27MasteringVoice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
  3780. return This->lpVtbl->SetEffectChain(This,pEffectChain);
  3781. }
  3782. static FORCEINLINE HRESULT IXAudio27MasteringVoice_EnableEffect(IXAudio27MasteringVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  3783. return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
  3784. }
  3785. static FORCEINLINE HRESULT IXAudio27MasteringVoice_DisableEffect(IXAudio27MasteringVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  3786. return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
  3787. }
  3788. static FORCEINLINE void IXAudio27MasteringVoice_GetEffectState(IXAudio27MasteringVoice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
  3789. This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
  3790. }
  3791. static FORCEINLINE HRESULT IXAudio27MasteringVoice_SetEffectParameters(IXAudio27MasteringVoice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
  3792. return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
  3793. }
  3794. static FORCEINLINE HRESULT IXAudio27MasteringVoice_GetEffectParameters(IXAudio27MasteringVoice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
  3795. return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
  3796. }
  3797. static FORCEINLINE HRESULT IXAudio27MasteringVoice_SetFilterParameters(IXAudio27MasteringVoice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
  3798. return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
  3799. }
  3800. static FORCEINLINE void IXAudio27MasteringVoice_GetFilterParameters(IXAudio27MasteringVoice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
  3801. This->lpVtbl->GetFilterParameters(This,pParameters);
  3802. }
  3803. static FORCEINLINE HRESULT IXAudio27MasteringVoice_SetOutputFilterParameters(IXAudio27MasteringVoice* This,IXAudio2Voice *pDestinationVoice,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
  3804. return This->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet);
  3805. }
  3806. static FORCEINLINE void IXAudio27MasteringVoice_GetOutputFilterParameters(IXAudio27MasteringVoice* This,IXAudio2Voice *pDestinationVoice,XAUDIO2_FILTER_PARAMETERS *pParameters) {
  3807. This->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters);
  3808. }
  3809. static FORCEINLINE HRESULT IXAudio27MasteringVoice_SetVolume(IXAudio27MasteringVoice* This,float Volume,UINT32 OperationSet) {
  3810. return This->lpVtbl->SetVolume(This,Volume,OperationSet);
  3811. }
  3812. static FORCEINLINE void IXAudio27MasteringVoice_GetVolume(IXAudio27MasteringVoice* This,float *pVolume) {
  3813. This->lpVtbl->GetVolume(This,pVolume);
  3814. }
  3815. static FORCEINLINE HRESULT IXAudio27MasteringVoice_SetChannelVolumes(IXAudio27MasteringVoice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
  3816. return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
  3817. }
  3818. static FORCEINLINE void IXAudio27MasteringVoice_GetChannelVolumes(IXAudio27MasteringVoice* This,UINT32 Channels,float *pVolumes) {
  3819. This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
  3820. }
  3821. static FORCEINLINE HRESULT IXAudio27MasteringVoice_SetOutputMatrix(IXAudio27MasteringVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
  3822. return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
  3823. }
  3824. static FORCEINLINE void IXAudio27MasteringVoice_GetOutputMatrix(IXAudio27MasteringVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
  3825. This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
  3826. }
  3827. static FORCEINLINE void IXAudio27MasteringVoice_DestroyVoice(IXAudio27MasteringVoice* This) {
  3828. This->lpVtbl->DestroyVoice(This);
  3829. }
  3830. #endif
  3831. #endif
  3832. #endif
  3833. #endif /* __IXAudio27MasteringVoice_INTERFACE_DEFINED__ */
  3834. /*****************************************************************************
  3835. * IXAudio2MasteringVoice interface
  3836. */
  3837. #ifndef __IXAudio2MasteringVoice_INTERFACE_DEFINED__
  3838. #define __IXAudio2MasteringVoice_INTERFACE_DEFINED__
  3839. #if defined(__cplusplus) && !defined(CINTERFACE)
  3840. interface IXAudio2MasteringVoice : public IXAudio2Voice
  3841. {
  3842. virtual void STDMETHODCALLTYPE GetChannelMask(
  3843. DWORD *pChannelMask) = 0;
  3844. };
  3845. #else
  3846. typedef struct IXAudio2MasteringVoiceVtbl {
  3847. BEGIN_INTERFACE
  3848. /*** IXAudio2Voice methods ***/
  3849. void (STDMETHODCALLTYPE *GetVoiceDetails)(
  3850. IXAudio2MasteringVoice *This,
  3851. XAUDIO2_VOICE_DETAILS *pVoiceDetails);
  3852. HRESULT (STDMETHODCALLTYPE *SetOutputVoices)(
  3853. IXAudio2MasteringVoice *This,
  3854. const XAUDIO2_VOICE_SENDS *pSendList);
  3855. HRESULT (STDMETHODCALLTYPE *SetEffectChain)(
  3856. IXAudio2MasteringVoice *This,
  3857. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  3858. HRESULT (STDMETHODCALLTYPE *EnableEffect)(
  3859. IXAudio2MasteringVoice *This,
  3860. UINT32 EffectIndex,
  3861. UINT32 OperationSet);
  3862. HRESULT (STDMETHODCALLTYPE *DisableEffect)(
  3863. IXAudio2MasteringVoice *This,
  3864. UINT32 EffectIndex,
  3865. UINT32 OperationSet);
  3866. void (STDMETHODCALLTYPE *GetEffectState)(
  3867. IXAudio2MasteringVoice *This,
  3868. UINT32 EffectIndex,
  3869. WINBOOL *pEnabled);
  3870. HRESULT (STDMETHODCALLTYPE *SetEffectParameters)(
  3871. IXAudio2MasteringVoice *This,
  3872. UINT32 EffectIndex,
  3873. const void *pParameters,
  3874. UINT32 ParametersByteSize,
  3875. UINT32 OperationSet);
  3876. HRESULT (STDMETHODCALLTYPE *GetEffectParameters)(
  3877. IXAudio2MasteringVoice *This,
  3878. UINT32 EffectIndex,
  3879. void *pParameters,
  3880. UINT32 ParametersByteSize);
  3881. HRESULT (STDMETHODCALLTYPE *SetFilterParameters)(
  3882. IXAudio2MasteringVoice *This,
  3883. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  3884. UINT32 OperationSet);
  3885. void (STDMETHODCALLTYPE *GetFilterParameters)(
  3886. IXAudio2MasteringVoice *This,
  3887. XAUDIO2_FILTER_PARAMETERS *pParameters);
  3888. HRESULT (STDMETHODCALLTYPE *SetOutputFilterParameters)(
  3889. IXAudio2MasteringVoice *This,
  3890. IXAudio2Voice *pDestinationVoice,
  3891. const XAUDIO2_FILTER_PARAMETERS *pParameters,
  3892. UINT32 OperationSet);
  3893. void (STDMETHODCALLTYPE *GetOutputFilterParameters)(
  3894. IXAudio2MasteringVoice *This,
  3895. IXAudio2Voice *pDestinationVoice,
  3896. XAUDIO2_FILTER_PARAMETERS *pParameters);
  3897. HRESULT (STDMETHODCALLTYPE *SetVolume)(
  3898. IXAudio2MasteringVoice *This,
  3899. float Volume,
  3900. UINT32 OperationSet);
  3901. void (STDMETHODCALLTYPE *GetVolume)(
  3902. IXAudio2MasteringVoice *This,
  3903. float *pVolume);
  3904. HRESULT (STDMETHODCALLTYPE *SetChannelVolumes)(
  3905. IXAudio2MasteringVoice *This,
  3906. UINT32 Channels,
  3907. const float *pVolumes,
  3908. UINT32 OperationSet);
  3909. void (STDMETHODCALLTYPE *GetChannelVolumes)(
  3910. IXAudio2MasteringVoice *This,
  3911. UINT32 Channels,
  3912. float *pVolumes);
  3913. HRESULT (STDMETHODCALLTYPE *SetOutputMatrix)(
  3914. IXAudio2MasteringVoice *This,
  3915. IXAudio2Voice *pDestinationVoice,
  3916. UINT32 SourceChannels,
  3917. UINT32 DestinationChannels,
  3918. const float *pLevelMatrix,
  3919. UINT32 OperationSet);
  3920. void (STDMETHODCALLTYPE *GetOutputMatrix)(
  3921. IXAudio2MasteringVoice *This,
  3922. IXAudio2Voice *pDestinationVoice,
  3923. UINT32 SourceChannels,
  3924. UINT32 DestinationChannels,
  3925. float *pLevelMatrix);
  3926. void (STDMETHODCALLTYPE *DestroyVoice)(
  3927. IXAudio2MasteringVoice *This);
  3928. /*** IXAudio2MasteringVoice methods ***/
  3929. void (STDMETHODCALLTYPE *GetChannelMask)(
  3930. IXAudio2MasteringVoice *This,
  3931. DWORD *pChannelMask);
  3932. END_INTERFACE
  3933. } IXAudio2MasteringVoiceVtbl;
  3934. interface IXAudio2MasteringVoice {
  3935. CONST_VTBL IXAudio2MasteringVoiceVtbl* lpVtbl;
  3936. };
  3937. #ifdef COBJMACROS
  3938. #ifndef WIDL_C_INLINE_WRAPPERS
  3939. /*** IXAudio2Voice methods ***/
  3940. #define IXAudio2MasteringVoice_GetVoiceDetails(This,pVoiceDetails) (This)->lpVtbl->GetVoiceDetails(This,pVoiceDetails)
  3941. #define IXAudio2MasteringVoice_SetOutputVoices(This,pSendList) (This)->lpVtbl->SetOutputVoices(This,pSendList)
  3942. #define IXAudio2MasteringVoice_SetEffectChain(This,pEffectChain) (This)->lpVtbl->SetEffectChain(This,pEffectChain)
  3943. #define IXAudio2MasteringVoice_EnableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->EnableEffect(This,EffectIndex,OperationSet)
  3944. #define IXAudio2MasteringVoice_DisableEffect(This,EffectIndex,OperationSet) (This)->lpVtbl->DisableEffect(This,EffectIndex,OperationSet)
  3945. #define IXAudio2MasteringVoice_GetEffectState(This,EffectIndex,pEnabled) (This)->lpVtbl->GetEffectState(This,EffectIndex,pEnabled)
  3946. #define IXAudio2MasteringVoice_SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet) (This)->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet)
  3947. #define IXAudio2MasteringVoice_GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize) (This)->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize)
  3948. #define IXAudio2MasteringVoice_SetFilterParameters(This,pParameters,OperationSet) (This)->lpVtbl->SetFilterParameters(This,pParameters,OperationSet)
  3949. #define IXAudio2MasteringVoice_GetFilterParameters(This,pParameters) (This)->lpVtbl->GetFilterParameters(This,pParameters)
  3950. #define IXAudio2MasteringVoice_SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet) (This)->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet)
  3951. #define IXAudio2MasteringVoice_GetOutputFilterParameters(This,pDestinationVoice,pParameters) (This)->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters)
  3952. #define IXAudio2MasteringVoice_SetVolume(This,Volume,OperationSet) (This)->lpVtbl->SetVolume(This,Volume,OperationSet)
  3953. #define IXAudio2MasteringVoice_GetVolume(This,pVolume) (This)->lpVtbl->GetVolume(This,pVolume)
  3954. #define IXAudio2MasteringVoice_SetChannelVolumes(This,Channels,pVolumes,OperationSet) (This)->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet)
  3955. #define IXAudio2MasteringVoice_GetChannelVolumes(This,Channels,pVolumes) (This)->lpVtbl->GetChannelVolumes(This,Channels,pVolumes)
  3956. #define IXAudio2MasteringVoice_SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet) (This)->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet)
  3957. #define IXAudio2MasteringVoice_GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix) (This)->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix)
  3958. #define IXAudio2MasteringVoice_DestroyVoice(This) (This)->lpVtbl->DestroyVoice(This)
  3959. /*** IXAudio2MasteringVoice methods ***/
  3960. #define IXAudio2MasteringVoice_GetChannelMask(This,pChannelMask) (This)->lpVtbl->GetChannelMask(This,pChannelMask)
  3961. #else
  3962. /*** IXAudio2Voice methods ***/
  3963. static FORCEINLINE void IXAudio2MasteringVoice_GetVoiceDetails(IXAudio2MasteringVoice* This,XAUDIO2_VOICE_DETAILS *pVoiceDetails) {
  3964. This->lpVtbl->GetVoiceDetails(This,pVoiceDetails);
  3965. }
  3966. static FORCEINLINE HRESULT IXAudio2MasteringVoice_SetOutputVoices(IXAudio2MasteringVoice* This,const XAUDIO2_VOICE_SENDS *pSendList) {
  3967. return This->lpVtbl->SetOutputVoices(This,pSendList);
  3968. }
  3969. static FORCEINLINE HRESULT IXAudio2MasteringVoice_SetEffectChain(IXAudio2MasteringVoice* This,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
  3970. return This->lpVtbl->SetEffectChain(This,pEffectChain);
  3971. }
  3972. static FORCEINLINE HRESULT IXAudio2MasteringVoice_EnableEffect(IXAudio2MasteringVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  3973. return This->lpVtbl->EnableEffect(This,EffectIndex,OperationSet);
  3974. }
  3975. static FORCEINLINE HRESULT IXAudio2MasteringVoice_DisableEffect(IXAudio2MasteringVoice* This,UINT32 EffectIndex,UINT32 OperationSet) {
  3976. return This->lpVtbl->DisableEffect(This,EffectIndex,OperationSet);
  3977. }
  3978. static FORCEINLINE void IXAudio2MasteringVoice_GetEffectState(IXAudio2MasteringVoice* This,UINT32 EffectIndex,WINBOOL *pEnabled) {
  3979. This->lpVtbl->GetEffectState(This,EffectIndex,pEnabled);
  3980. }
  3981. static FORCEINLINE HRESULT IXAudio2MasteringVoice_SetEffectParameters(IXAudio2MasteringVoice* This,UINT32 EffectIndex,const void *pParameters,UINT32 ParametersByteSize,UINT32 OperationSet) {
  3982. return This->lpVtbl->SetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize,OperationSet);
  3983. }
  3984. static FORCEINLINE HRESULT IXAudio2MasteringVoice_GetEffectParameters(IXAudio2MasteringVoice* This,UINT32 EffectIndex,void *pParameters,UINT32 ParametersByteSize) {
  3985. return This->lpVtbl->GetEffectParameters(This,EffectIndex,pParameters,ParametersByteSize);
  3986. }
  3987. static FORCEINLINE HRESULT IXAudio2MasteringVoice_SetFilterParameters(IXAudio2MasteringVoice* This,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
  3988. return This->lpVtbl->SetFilterParameters(This,pParameters,OperationSet);
  3989. }
  3990. static FORCEINLINE void IXAudio2MasteringVoice_GetFilterParameters(IXAudio2MasteringVoice* This,XAUDIO2_FILTER_PARAMETERS *pParameters) {
  3991. This->lpVtbl->GetFilterParameters(This,pParameters);
  3992. }
  3993. static FORCEINLINE HRESULT IXAudio2MasteringVoice_SetOutputFilterParameters(IXAudio2MasteringVoice* This,IXAudio2Voice *pDestinationVoice,const XAUDIO2_FILTER_PARAMETERS *pParameters,UINT32 OperationSet) {
  3994. return This->lpVtbl->SetOutputFilterParameters(This,pDestinationVoice,pParameters,OperationSet);
  3995. }
  3996. static FORCEINLINE void IXAudio2MasteringVoice_GetOutputFilterParameters(IXAudio2MasteringVoice* This,IXAudio2Voice *pDestinationVoice,XAUDIO2_FILTER_PARAMETERS *pParameters) {
  3997. This->lpVtbl->GetOutputFilterParameters(This,pDestinationVoice,pParameters);
  3998. }
  3999. static FORCEINLINE HRESULT IXAudio2MasteringVoice_SetVolume(IXAudio2MasteringVoice* This,float Volume,UINT32 OperationSet) {
  4000. return This->lpVtbl->SetVolume(This,Volume,OperationSet);
  4001. }
  4002. static FORCEINLINE void IXAudio2MasteringVoice_GetVolume(IXAudio2MasteringVoice* This,float *pVolume) {
  4003. This->lpVtbl->GetVolume(This,pVolume);
  4004. }
  4005. static FORCEINLINE HRESULT IXAudio2MasteringVoice_SetChannelVolumes(IXAudio2MasteringVoice* This,UINT32 Channels,const float *pVolumes,UINT32 OperationSet) {
  4006. return This->lpVtbl->SetChannelVolumes(This,Channels,pVolumes,OperationSet);
  4007. }
  4008. static FORCEINLINE void IXAudio2MasteringVoice_GetChannelVolumes(IXAudio2MasteringVoice* This,UINT32 Channels,float *pVolumes) {
  4009. This->lpVtbl->GetChannelVolumes(This,Channels,pVolumes);
  4010. }
  4011. static FORCEINLINE HRESULT IXAudio2MasteringVoice_SetOutputMatrix(IXAudio2MasteringVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,const float *pLevelMatrix,UINT32 OperationSet) {
  4012. return This->lpVtbl->SetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix,OperationSet);
  4013. }
  4014. static FORCEINLINE void IXAudio2MasteringVoice_GetOutputMatrix(IXAudio2MasteringVoice* This,IXAudio2Voice *pDestinationVoice,UINT32 SourceChannels,UINT32 DestinationChannels,float *pLevelMatrix) {
  4015. This->lpVtbl->GetOutputMatrix(This,pDestinationVoice,SourceChannels,DestinationChannels,pLevelMatrix);
  4016. }
  4017. static FORCEINLINE void IXAudio2MasteringVoice_DestroyVoice(IXAudio2MasteringVoice* This) {
  4018. This->lpVtbl->DestroyVoice(This);
  4019. }
  4020. /*** IXAudio2MasteringVoice methods ***/
  4021. static FORCEINLINE void IXAudio2MasteringVoice_GetChannelMask(IXAudio2MasteringVoice* This,DWORD *pChannelMask) {
  4022. This->lpVtbl->GetChannelMask(This,pChannelMask);
  4023. }
  4024. #endif
  4025. #endif
  4026. #endif
  4027. #endif /* __IXAudio2MasteringVoice_INTERFACE_DEFINED__ */
  4028. /*****************************************************************************
  4029. * IXAudio20VoiceCallback interface
  4030. */
  4031. #ifndef __IXAudio20VoiceCallback_INTERFACE_DEFINED__
  4032. #define __IXAudio20VoiceCallback_INTERFACE_DEFINED__
  4033. #if defined(__cplusplus) && !defined(CINTERFACE)
  4034. interface IXAudio20VoiceCallback
  4035. {
  4036. BEGIN_INTERFACE
  4037. virtual void STDMETHODCALLTYPE OnVoiceProcessingPassStart(
  4038. ) = 0;
  4039. virtual void STDMETHODCALLTYPE OnVoiceProcessingPassEnd(
  4040. ) = 0;
  4041. virtual void STDMETHODCALLTYPE OnStreamEnd(
  4042. ) = 0;
  4043. virtual void STDMETHODCALLTYPE OnBufferStart(
  4044. void *pBufferContext) = 0;
  4045. virtual void STDMETHODCALLTYPE OnBufferEnd(
  4046. void *pBufferContext) = 0;
  4047. virtual void STDMETHODCALLTYPE OnLoopEnd(
  4048. void *pBufferContext) = 0;
  4049. virtual void STDMETHODCALLTYPE OnVoiceError(
  4050. void *pBuffercontext,
  4051. HRESULT Error) = 0;
  4052. END_INTERFACE
  4053. };
  4054. #else
  4055. typedef struct IXAudio20VoiceCallbackVtbl {
  4056. BEGIN_INTERFACE
  4057. /*** IXAudio20VoiceCallback methods ***/
  4058. void (STDMETHODCALLTYPE *OnVoiceProcessingPassStart)(
  4059. IXAudio20VoiceCallback *This);
  4060. void (STDMETHODCALLTYPE *OnVoiceProcessingPassEnd)(
  4061. IXAudio20VoiceCallback *This);
  4062. void (STDMETHODCALLTYPE *OnStreamEnd)(
  4063. IXAudio20VoiceCallback *This);
  4064. void (STDMETHODCALLTYPE *OnBufferStart)(
  4065. IXAudio20VoiceCallback *This,
  4066. void *pBufferContext);
  4067. void (STDMETHODCALLTYPE *OnBufferEnd)(
  4068. IXAudio20VoiceCallback *This,
  4069. void *pBufferContext);
  4070. void (STDMETHODCALLTYPE *OnLoopEnd)(
  4071. IXAudio20VoiceCallback *This,
  4072. void *pBufferContext);
  4073. void (STDMETHODCALLTYPE *OnVoiceError)(
  4074. IXAudio20VoiceCallback *This,
  4075. void *pBuffercontext,
  4076. HRESULT Error);
  4077. END_INTERFACE
  4078. } IXAudio20VoiceCallbackVtbl;
  4079. interface IXAudio20VoiceCallback {
  4080. CONST_VTBL IXAudio20VoiceCallbackVtbl* lpVtbl;
  4081. };
  4082. #ifdef COBJMACROS
  4083. #ifndef WIDL_C_INLINE_WRAPPERS
  4084. /*** IXAudio20VoiceCallback methods ***/
  4085. #define IXAudio20VoiceCallback_OnVoiceProcessingPassStart(This) (This)->lpVtbl->OnVoiceProcessingPassStart(This)
  4086. #define IXAudio20VoiceCallback_OnVoiceProcessingPassEnd(This) (This)->lpVtbl->OnVoiceProcessingPassEnd(This)
  4087. #define IXAudio20VoiceCallback_OnStreamEnd(This) (This)->lpVtbl->OnStreamEnd(This)
  4088. #define IXAudio20VoiceCallback_OnBufferStart(This,pBufferContext) (This)->lpVtbl->OnBufferStart(This,pBufferContext)
  4089. #define IXAudio20VoiceCallback_OnBufferEnd(This,pBufferContext) (This)->lpVtbl->OnBufferEnd(This,pBufferContext)
  4090. #define IXAudio20VoiceCallback_OnLoopEnd(This,pBufferContext) (This)->lpVtbl->OnLoopEnd(This,pBufferContext)
  4091. #define IXAudio20VoiceCallback_OnVoiceError(This,pBuffercontext,Error) (This)->lpVtbl->OnVoiceError(This,pBuffercontext,Error)
  4092. #else
  4093. /*** IXAudio20VoiceCallback methods ***/
  4094. static FORCEINLINE void IXAudio20VoiceCallback_OnVoiceProcessingPassStart(IXAudio20VoiceCallback* This) {
  4095. This->lpVtbl->OnVoiceProcessingPassStart(This);
  4096. }
  4097. static FORCEINLINE void IXAudio20VoiceCallback_OnVoiceProcessingPassEnd(IXAudio20VoiceCallback* This) {
  4098. This->lpVtbl->OnVoiceProcessingPassEnd(This);
  4099. }
  4100. static FORCEINLINE void IXAudio20VoiceCallback_OnStreamEnd(IXAudio20VoiceCallback* This) {
  4101. This->lpVtbl->OnStreamEnd(This);
  4102. }
  4103. static FORCEINLINE void IXAudio20VoiceCallback_OnBufferStart(IXAudio20VoiceCallback* This,void *pBufferContext) {
  4104. This->lpVtbl->OnBufferStart(This,pBufferContext);
  4105. }
  4106. static FORCEINLINE void IXAudio20VoiceCallback_OnBufferEnd(IXAudio20VoiceCallback* This,void *pBufferContext) {
  4107. This->lpVtbl->OnBufferEnd(This,pBufferContext);
  4108. }
  4109. static FORCEINLINE void IXAudio20VoiceCallback_OnLoopEnd(IXAudio20VoiceCallback* This,void *pBufferContext) {
  4110. This->lpVtbl->OnLoopEnd(This,pBufferContext);
  4111. }
  4112. static FORCEINLINE void IXAudio20VoiceCallback_OnVoiceError(IXAudio20VoiceCallback* This,void *pBuffercontext,HRESULT Error) {
  4113. This->lpVtbl->OnVoiceError(This,pBuffercontext,Error);
  4114. }
  4115. #endif
  4116. #endif
  4117. #endif
  4118. #endif /* __IXAudio20VoiceCallback_INTERFACE_DEFINED__ */
  4119. /*****************************************************************************
  4120. * IXAudio2VoiceCallback interface
  4121. */
  4122. #ifndef __IXAudio2VoiceCallback_INTERFACE_DEFINED__
  4123. #define __IXAudio2VoiceCallback_INTERFACE_DEFINED__
  4124. #if defined(__cplusplus) && !defined(CINTERFACE)
  4125. interface IXAudio2VoiceCallback
  4126. {
  4127. BEGIN_INTERFACE
  4128. virtual void STDMETHODCALLTYPE OnVoiceProcessingPassStart(
  4129. UINT32 BytesRequired) = 0;
  4130. virtual void STDMETHODCALLTYPE OnVoiceProcessingPassEnd(
  4131. ) = 0;
  4132. virtual void STDMETHODCALLTYPE OnStreamEnd(
  4133. ) = 0;
  4134. virtual void STDMETHODCALLTYPE OnBufferStart(
  4135. void *pBufferContext) = 0;
  4136. virtual void STDMETHODCALLTYPE OnBufferEnd(
  4137. void *pBufferContext) = 0;
  4138. virtual void STDMETHODCALLTYPE OnLoopEnd(
  4139. void *pBufferContext) = 0;
  4140. virtual void STDMETHODCALLTYPE OnVoiceError(
  4141. void *pBuffercontext,
  4142. HRESULT Error) = 0;
  4143. END_INTERFACE
  4144. };
  4145. #else
  4146. typedef struct IXAudio2VoiceCallbackVtbl {
  4147. BEGIN_INTERFACE
  4148. /*** IXAudio2VoiceCallback methods ***/
  4149. void (STDMETHODCALLTYPE *OnVoiceProcessingPassStart)(
  4150. IXAudio2VoiceCallback *This,
  4151. UINT32 BytesRequired);
  4152. void (STDMETHODCALLTYPE *OnVoiceProcessingPassEnd)(
  4153. IXAudio2VoiceCallback *This);
  4154. void (STDMETHODCALLTYPE *OnStreamEnd)(
  4155. IXAudio2VoiceCallback *This);
  4156. void (STDMETHODCALLTYPE *OnBufferStart)(
  4157. IXAudio2VoiceCallback *This,
  4158. void *pBufferContext);
  4159. void (STDMETHODCALLTYPE *OnBufferEnd)(
  4160. IXAudio2VoiceCallback *This,
  4161. void *pBufferContext);
  4162. void (STDMETHODCALLTYPE *OnLoopEnd)(
  4163. IXAudio2VoiceCallback *This,
  4164. void *pBufferContext);
  4165. void (STDMETHODCALLTYPE *OnVoiceError)(
  4166. IXAudio2VoiceCallback *This,
  4167. void *pBuffercontext,
  4168. HRESULT Error);
  4169. END_INTERFACE
  4170. } IXAudio2VoiceCallbackVtbl;
  4171. interface IXAudio2VoiceCallback {
  4172. CONST_VTBL IXAudio2VoiceCallbackVtbl* lpVtbl;
  4173. };
  4174. #ifdef COBJMACROS
  4175. #ifndef WIDL_C_INLINE_WRAPPERS
  4176. /*** IXAudio2VoiceCallback methods ***/
  4177. #define IXAudio2VoiceCallback_OnVoiceProcessingPassStart(This,BytesRequired) (This)->lpVtbl->OnVoiceProcessingPassStart(This,BytesRequired)
  4178. #define IXAudio2VoiceCallback_OnVoiceProcessingPassEnd(This) (This)->lpVtbl->OnVoiceProcessingPassEnd(This)
  4179. #define IXAudio2VoiceCallback_OnStreamEnd(This) (This)->lpVtbl->OnStreamEnd(This)
  4180. #define IXAudio2VoiceCallback_OnBufferStart(This,pBufferContext) (This)->lpVtbl->OnBufferStart(This,pBufferContext)
  4181. #define IXAudio2VoiceCallback_OnBufferEnd(This,pBufferContext) (This)->lpVtbl->OnBufferEnd(This,pBufferContext)
  4182. #define IXAudio2VoiceCallback_OnLoopEnd(This,pBufferContext) (This)->lpVtbl->OnLoopEnd(This,pBufferContext)
  4183. #define IXAudio2VoiceCallback_OnVoiceError(This,pBuffercontext,Error) (This)->lpVtbl->OnVoiceError(This,pBuffercontext,Error)
  4184. #else
  4185. /*** IXAudio2VoiceCallback methods ***/
  4186. static FORCEINLINE void IXAudio2VoiceCallback_OnVoiceProcessingPassStart(IXAudio2VoiceCallback* This,UINT32 BytesRequired) {
  4187. This->lpVtbl->OnVoiceProcessingPassStart(This,BytesRequired);
  4188. }
  4189. static FORCEINLINE void IXAudio2VoiceCallback_OnVoiceProcessingPassEnd(IXAudio2VoiceCallback* This) {
  4190. This->lpVtbl->OnVoiceProcessingPassEnd(This);
  4191. }
  4192. static FORCEINLINE void IXAudio2VoiceCallback_OnStreamEnd(IXAudio2VoiceCallback* This) {
  4193. This->lpVtbl->OnStreamEnd(This);
  4194. }
  4195. static FORCEINLINE void IXAudio2VoiceCallback_OnBufferStart(IXAudio2VoiceCallback* This,void *pBufferContext) {
  4196. This->lpVtbl->OnBufferStart(This,pBufferContext);
  4197. }
  4198. static FORCEINLINE void IXAudio2VoiceCallback_OnBufferEnd(IXAudio2VoiceCallback* This,void *pBufferContext) {
  4199. This->lpVtbl->OnBufferEnd(This,pBufferContext);
  4200. }
  4201. static FORCEINLINE void IXAudio2VoiceCallback_OnLoopEnd(IXAudio2VoiceCallback* This,void *pBufferContext) {
  4202. This->lpVtbl->OnLoopEnd(This,pBufferContext);
  4203. }
  4204. static FORCEINLINE void IXAudio2VoiceCallback_OnVoiceError(IXAudio2VoiceCallback* This,void *pBuffercontext,HRESULT Error) {
  4205. This->lpVtbl->OnVoiceError(This,pBuffercontext,Error);
  4206. }
  4207. #endif
  4208. #endif
  4209. #endif
  4210. #endif /* __IXAudio2VoiceCallback_INTERFACE_DEFINED__ */
  4211. typedef struct XAUDIO2_DEBUG_CONFIGURATION {
  4212. UINT32 TraceMask;
  4213. UINT32 BreakMask;
  4214. WINBOOL LogThreadID;
  4215. WINBOOL LogFileline;
  4216. WINBOOL LogFunctionName;
  4217. WINBOOL LogTiming;
  4218. } XAUDIO2_DEBUG_CONFIGURATION;
  4219. /*****************************************************************************
  4220. * IXAudio20 interface
  4221. */
  4222. #ifndef __IXAudio20_INTERFACE_DEFINED__
  4223. #define __IXAudio20_INTERFACE_DEFINED__
  4224. DEFINE_GUID(IID_IXAudio20, 0x8bcf1f58, 0x9fe7, 0x4583, 0x8a,0xc6, 0xe2,0xad,0xc4,0x65,0xc8,0xbb);
  4225. #if defined(__cplusplus) && !defined(CINTERFACE)
  4226. MIDL_INTERFACE("8bcf1f58-9fe7-4583-8ac6-e2adc465c8bb")
  4227. IXAudio20 : public IUnknown
  4228. {
  4229. virtual HRESULT STDMETHODCALLTYPE GetDeviceCount(
  4230. UINT32 *pCount) = 0;
  4231. virtual HRESULT STDMETHODCALLTYPE GetDeviceDetails(
  4232. UINT32 Index,
  4233. XAUDIO2_DEVICE_DETAILS *pDeviceDetails) = 0;
  4234. virtual HRESULT STDMETHODCALLTYPE Initialize(
  4235. UINT32 Flags = 0,
  4236. XAUDIO2_PROCESSOR XAudio2Processor = XAUDIO2_DEFAULT_PROCESSOR) = 0;
  4237. virtual HRESULT STDMETHODCALLTYPE RegisterForCallbacks(
  4238. IXAudio2EngineCallback *pCallback) = 0;
  4239. virtual void STDMETHODCALLTYPE UnregisterForCallbacks(
  4240. IXAudio2EngineCallback *pCallback) = 0;
  4241. virtual HRESULT STDMETHODCALLTYPE CreateSourceVoice(
  4242. IXAudio2SourceVoice **ppSourceVoice,
  4243. const WAVEFORMATEX *pSourceFormat,
  4244. UINT32 Flags = 0,
  4245. float MaxFrequencyRatio = XAUDIO2_DEFAULT_FREQ_RATIO,
  4246. IXAudio2VoiceCallback *pCallback = 0,
  4247. const XAUDIO23_VOICE_SENDS *pSendList = 0,
  4248. const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
  4249. virtual HRESULT STDMETHODCALLTYPE CreateSubmixVoice(
  4250. IXAudio2SubmixVoice **ppSubmixVoice,
  4251. UINT32 InputChannels,
  4252. UINT32 InputSampleRate,
  4253. UINT32 Flags = 0,
  4254. UINT32 ProcessingStage = 0,
  4255. const XAUDIO23_VOICE_SENDS *pSendList = 0,
  4256. const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
  4257. virtual HRESULT STDMETHODCALLTYPE CreateMasteringVoice(
  4258. IXAudio2MasteringVoice **ppMasteringVoice,
  4259. UINT32 InputChannels = XAUDIO2_DEFAULT_CHANNELS,
  4260. UINT32 InputSampleRate = XAUDIO2_DEFAULT_SAMPLERATE,
  4261. UINT32 Flags = 0,
  4262. UINT32 DeviceIndex = 0,
  4263. const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
  4264. virtual HRESULT STDMETHODCALLTYPE StartEngine(
  4265. ) = 0;
  4266. virtual void STDMETHODCALLTYPE StopEngine(
  4267. ) = 0;
  4268. virtual HRESULT STDMETHODCALLTYPE CommitChanges(
  4269. UINT32 OperationSet) = 0;
  4270. virtual void STDMETHODCALLTYPE GetPerformanceData(
  4271. XAUDIO20_PERFORMANCE_DATA *pPerfData) = 0;
  4272. virtual void STDMETHODCALLTYPE SetDebugConfiguration(
  4273. const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,
  4274. void *pReserved = 0) = 0;
  4275. };
  4276. #ifdef __CRT_UUID_DECL
  4277. __CRT_UUID_DECL(IXAudio20, 0x8bcf1f58, 0x9fe7, 0x4583, 0x8a,0xc6, 0xe2,0xad,0xc4,0x65,0xc8,0xbb)
  4278. #endif
  4279. #else
  4280. typedef struct IXAudio20Vtbl {
  4281. BEGIN_INTERFACE
  4282. /*** IUnknown methods ***/
  4283. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  4284. IXAudio20 *This,
  4285. REFIID riid,
  4286. void **ppvObject);
  4287. ULONG (STDMETHODCALLTYPE *AddRef)(
  4288. IXAudio20 *This);
  4289. ULONG (STDMETHODCALLTYPE *Release)(
  4290. IXAudio20 *This);
  4291. /*** IXAudio20 methods ***/
  4292. HRESULT (STDMETHODCALLTYPE *GetDeviceCount)(
  4293. IXAudio20 *This,
  4294. UINT32 *pCount);
  4295. HRESULT (STDMETHODCALLTYPE *GetDeviceDetails)(
  4296. IXAudio20 *This,
  4297. UINT32 Index,
  4298. XAUDIO2_DEVICE_DETAILS *pDeviceDetails);
  4299. HRESULT (STDMETHODCALLTYPE *Initialize)(
  4300. IXAudio20 *This,
  4301. UINT32 Flags,
  4302. XAUDIO2_PROCESSOR XAudio2Processor);
  4303. HRESULT (STDMETHODCALLTYPE *RegisterForCallbacks)(
  4304. IXAudio20 *This,
  4305. IXAudio2EngineCallback *pCallback);
  4306. void (STDMETHODCALLTYPE *UnregisterForCallbacks)(
  4307. IXAudio20 *This,
  4308. IXAudio2EngineCallback *pCallback);
  4309. HRESULT (STDMETHODCALLTYPE *CreateSourceVoice)(
  4310. IXAudio20 *This,
  4311. IXAudio2SourceVoice **ppSourceVoice,
  4312. const WAVEFORMATEX *pSourceFormat,
  4313. UINT32 Flags,
  4314. float MaxFrequencyRatio,
  4315. IXAudio2VoiceCallback *pCallback,
  4316. const XAUDIO23_VOICE_SENDS *pSendList,
  4317. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  4318. HRESULT (STDMETHODCALLTYPE *CreateSubmixVoice)(
  4319. IXAudio20 *This,
  4320. IXAudio2SubmixVoice **ppSubmixVoice,
  4321. UINT32 InputChannels,
  4322. UINT32 InputSampleRate,
  4323. UINT32 Flags,
  4324. UINT32 ProcessingStage,
  4325. const XAUDIO23_VOICE_SENDS *pSendList,
  4326. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  4327. HRESULT (STDMETHODCALLTYPE *CreateMasteringVoice)(
  4328. IXAudio20 *This,
  4329. IXAudio2MasteringVoice **ppMasteringVoice,
  4330. UINT32 InputChannels,
  4331. UINT32 InputSampleRate,
  4332. UINT32 Flags,
  4333. UINT32 DeviceIndex,
  4334. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  4335. HRESULT (STDMETHODCALLTYPE *StartEngine)(
  4336. IXAudio20 *This);
  4337. void (STDMETHODCALLTYPE *StopEngine)(
  4338. IXAudio20 *This);
  4339. HRESULT (STDMETHODCALLTYPE *CommitChanges)(
  4340. IXAudio20 *This,
  4341. UINT32 OperationSet);
  4342. void (STDMETHODCALLTYPE *GetPerformanceData)(
  4343. IXAudio20 *This,
  4344. XAUDIO20_PERFORMANCE_DATA *pPerfData);
  4345. void (STDMETHODCALLTYPE *SetDebugConfiguration)(
  4346. IXAudio20 *This,
  4347. const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,
  4348. void *pReserved);
  4349. END_INTERFACE
  4350. } IXAudio20Vtbl;
  4351. interface IXAudio20 {
  4352. CONST_VTBL IXAudio20Vtbl* lpVtbl;
  4353. };
  4354. #ifdef COBJMACROS
  4355. #ifndef WIDL_C_INLINE_WRAPPERS
  4356. /*** IUnknown methods ***/
  4357. #define IXAudio20_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  4358. #define IXAudio20_AddRef(This) (This)->lpVtbl->AddRef(This)
  4359. #define IXAudio20_Release(This) (This)->lpVtbl->Release(This)
  4360. /*** IXAudio20 methods ***/
  4361. #define IXAudio20_GetDeviceCount(This,pCount) (This)->lpVtbl->GetDeviceCount(This,pCount)
  4362. #define IXAudio20_GetDeviceDetails(This,Index,pDeviceDetails) (This)->lpVtbl->GetDeviceDetails(This,Index,pDeviceDetails)
  4363. #define IXAudio20_Initialize(This,Flags,XAudio2Processor) (This)->lpVtbl->Initialize(This,Flags,XAudio2Processor)
  4364. #define IXAudio20_RegisterForCallbacks(This,pCallback) (This)->lpVtbl->RegisterForCallbacks(This,pCallback)
  4365. #define IXAudio20_UnregisterForCallbacks(This,pCallback) (This)->lpVtbl->UnregisterForCallbacks(This,pCallback)
  4366. #define IXAudio20_CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain) (This)->lpVtbl->CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain)
  4367. #define IXAudio20_CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain) (This)->lpVtbl->CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain)
  4368. #define IXAudio20_CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain) (This)->lpVtbl->CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain)
  4369. #define IXAudio20_StartEngine(This) (This)->lpVtbl->StartEngine(This)
  4370. #define IXAudio20_StopEngine(This) (This)->lpVtbl->StopEngine(This)
  4371. #define IXAudio20_CommitChanges(This,OperationSet) (This)->lpVtbl->CommitChanges(This,OperationSet)
  4372. #define IXAudio20_GetPerformanceData(This,pPerfData) (This)->lpVtbl->GetPerformanceData(This,pPerfData)
  4373. #define IXAudio20_SetDebugConfiguration(This,pDebugConfiguration,pReserved) (This)->lpVtbl->SetDebugConfiguration(This,pDebugConfiguration,pReserved)
  4374. #else
  4375. /*** IUnknown methods ***/
  4376. static FORCEINLINE HRESULT IXAudio20_QueryInterface(IXAudio20* This,REFIID riid,void **ppvObject) {
  4377. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  4378. }
  4379. static FORCEINLINE ULONG IXAudio20_AddRef(IXAudio20* This) {
  4380. return This->lpVtbl->AddRef(This);
  4381. }
  4382. static FORCEINLINE ULONG IXAudio20_Release(IXAudio20* This) {
  4383. return This->lpVtbl->Release(This);
  4384. }
  4385. /*** IXAudio20 methods ***/
  4386. static FORCEINLINE HRESULT IXAudio20_GetDeviceCount(IXAudio20* This,UINT32 *pCount) {
  4387. return This->lpVtbl->GetDeviceCount(This,pCount);
  4388. }
  4389. static FORCEINLINE HRESULT IXAudio20_GetDeviceDetails(IXAudio20* This,UINT32 Index,XAUDIO2_DEVICE_DETAILS *pDeviceDetails) {
  4390. return This->lpVtbl->GetDeviceDetails(This,Index,pDeviceDetails);
  4391. }
  4392. static FORCEINLINE HRESULT IXAudio20_Initialize(IXAudio20* This,UINT32 Flags,XAUDIO2_PROCESSOR XAudio2Processor) {
  4393. return This->lpVtbl->Initialize(This,Flags,XAudio2Processor);
  4394. }
  4395. static FORCEINLINE HRESULT IXAudio20_RegisterForCallbacks(IXAudio20* This,IXAudio2EngineCallback *pCallback) {
  4396. return This->lpVtbl->RegisterForCallbacks(This,pCallback);
  4397. }
  4398. static FORCEINLINE void IXAudio20_UnregisterForCallbacks(IXAudio20* This,IXAudio2EngineCallback *pCallback) {
  4399. This->lpVtbl->UnregisterForCallbacks(This,pCallback);
  4400. }
  4401. 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) {
  4402. return This->lpVtbl->CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain);
  4403. }
  4404. 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) {
  4405. return This->lpVtbl->CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain);
  4406. }
  4407. static FORCEINLINE HRESULT IXAudio20_CreateMasteringVoice(IXAudio20* This,IXAudio2MasteringVoice **ppMasteringVoice,UINT32 InputChannels,UINT32 InputSampleRate,UINT32 Flags,UINT32 DeviceIndex,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
  4408. return This->lpVtbl->CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain);
  4409. }
  4410. static FORCEINLINE HRESULT IXAudio20_StartEngine(IXAudio20* This) {
  4411. return This->lpVtbl->StartEngine(This);
  4412. }
  4413. static FORCEINLINE void IXAudio20_StopEngine(IXAudio20* This) {
  4414. This->lpVtbl->StopEngine(This);
  4415. }
  4416. static FORCEINLINE HRESULT IXAudio20_CommitChanges(IXAudio20* This,UINT32 OperationSet) {
  4417. return This->lpVtbl->CommitChanges(This,OperationSet);
  4418. }
  4419. static FORCEINLINE void IXAudio20_GetPerformanceData(IXAudio20* This,XAUDIO20_PERFORMANCE_DATA *pPerfData) {
  4420. This->lpVtbl->GetPerformanceData(This,pPerfData);
  4421. }
  4422. static FORCEINLINE void IXAudio20_SetDebugConfiguration(IXAudio20* This,const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,void *pReserved) {
  4423. This->lpVtbl->SetDebugConfiguration(This,pDebugConfiguration,pReserved);
  4424. }
  4425. #endif
  4426. #endif
  4427. #endif
  4428. #endif /* __IXAudio20_INTERFACE_DEFINED__ */
  4429. /*****************************************************************************
  4430. * IXAudio22 interface
  4431. */
  4432. #ifndef __IXAudio22_INTERFACE_DEFINED__
  4433. #define __IXAudio22_INTERFACE_DEFINED__
  4434. DEFINE_GUID(IID_IXAudio22, 0x8bcf1f58, 0x9fe7, 0x4583, 0x8a,0xc6, 0xe2,0xad,0xc4,0x65,0xc8,0xbb);
  4435. #if defined(__cplusplus) && !defined(CINTERFACE)
  4436. MIDL_INTERFACE("8bcf1f58-9fe7-4583-8ac6-e2adc465c8bb")
  4437. IXAudio22 : public IUnknown
  4438. {
  4439. virtual HRESULT STDMETHODCALLTYPE GetDeviceCount(
  4440. UINT32 *pCount) = 0;
  4441. virtual HRESULT STDMETHODCALLTYPE GetDeviceDetails(
  4442. UINT32 Index,
  4443. XAUDIO2_DEVICE_DETAILS *pDeviceDetails) = 0;
  4444. virtual HRESULT STDMETHODCALLTYPE Initialize(
  4445. UINT32 Flags = 0,
  4446. XAUDIO2_PROCESSOR XAudio2Processor = XAUDIO2_DEFAULT_PROCESSOR) = 0;
  4447. virtual HRESULT STDMETHODCALLTYPE RegisterForCallbacks(
  4448. IXAudio2EngineCallback *pCallback) = 0;
  4449. virtual void STDMETHODCALLTYPE UnregisterForCallbacks(
  4450. IXAudio2EngineCallback *pCallback) = 0;
  4451. virtual HRESULT STDMETHODCALLTYPE CreateSourceVoice(
  4452. IXAudio2SourceVoice **ppSourceVoice,
  4453. const WAVEFORMATEX *pSourceFormat,
  4454. UINT32 Flags = 0,
  4455. float MaxFrequencyRatio = XAUDIO2_DEFAULT_FREQ_RATIO,
  4456. IXAudio2VoiceCallback *pCallback = 0,
  4457. const XAUDIO23_VOICE_SENDS *pSendList = 0,
  4458. const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
  4459. virtual HRESULT STDMETHODCALLTYPE CreateSubmixVoice(
  4460. IXAudio2SubmixVoice **ppSubmixVoice,
  4461. UINT32 InputChannels,
  4462. UINT32 InputSampleRate,
  4463. UINT32 Flags = 0,
  4464. UINT32 ProcessingStage = 0,
  4465. const XAUDIO23_VOICE_SENDS *pSendList = 0,
  4466. const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
  4467. virtual HRESULT STDMETHODCALLTYPE CreateMasteringVoice(
  4468. IXAudio2MasteringVoice **ppMasteringVoice,
  4469. UINT32 InputChannels = XAUDIO2_DEFAULT_CHANNELS,
  4470. UINT32 InputSampleRate = XAUDIO2_DEFAULT_SAMPLERATE,
  4471. UINT32 Flags = 0,
  4472. UINT32 DeviceIndex = 0,
  4473. const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
  4474. virtual HRESULT STDMETHODCALLTYPE StartEngine(
  4475. ) = 0;
  4476. virtual void STDMETHODCALLTYPE StopEngine(
  4477. ) = 0;
  4478. virtual HRESULT STDMETHODCALLTYPE CommitChanges(
  4479. UINT32 OperationSet) = 0;
  4480. virtual void STDMETHODCALLTYPE GetPerformanceData(
  4481. XAUDIO22_PERFORMANCE_DATA *pPerfData) = 0;
  4482. virtual void STDMETHODCALLTYPE SetDebugConfiguration(
  4483. const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,
  4484. void *pReserved = 0) = 0;
  4485. };
  4486. #ifdef __CRT_UUID_DECL
  4487. __CRT_UUID_DECL(IXAudio22, 0x8bcf1f58, 0x9fe7, 0x4583, 0x8a,0xc6, 0xe2,0xad,0xc4,0x65,0xc8,0xbb)
  4488. #endif
  4489. #else
  4490. typedef struct IXAudio22Vtbl {
  4491. BEGIN_INTERFACE
  4492. /*** IUnknown methods ***/
  4493. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  4494. IXAudio22 *This,
  4495. REFIID riid,
  4496. void **ppvObject);
  4497. ULONG (STDMETHODCALLTYPE *AddRef)(
  4498. IXAudio22 *This);
  4499. ULONG (STDMETHODCALLTYPE *Release)(
  4500. IXAudio22 *This);
  4501. /*** IXAudio22 methods ***/
  4502. HRESULT (STDMETHODCALLTYPE *GetDeviceCount)(
  4503. IXAudio22 *This,
  4504. UINT32 *pCount);
  4505. HRESULT (STDMETHODCALLTYPE *GetDeviceDetails)(
  4506. IXAudio22 *This,
  4507. UINT32 Index,
  4508. XAUDIO2_DEVICE_DETAILS *pDeviceDetails);
  4509. HRESULT (STDMETHODCALLTYPE *Initialize)(
  4510. IXAudio22 *This,
  4511. UINT32 Flags,
  4512. XAUDIO2_PROCESSOR XAudio2Processor);
  4513. HRESULT (STDMETHODCALLTYPE *RegisterForCallbacks)(
  4514. IXAudio22 *This,
  4515. IXAudio2EngineCallback *pCallback);
  4516. void (STDMETHODCALLTYPE *UnregisterForCallbacks)(
  4517. IXAudio22 *This,
  4518. IXAudio2EngineCallback *pCallback);
  4519. HRESULT (STDMETHODCALLTYPE *CreateSourceVoice)(
  4520. IXAudio22 *This,
  4521. IXAudio2SourceVoice **ppSourceVoice,
  4522. const WAVEFORMATEX *pSourceFormat,
  4523. UINT32 Flags,
  4524. float MaxFrequencyRatio,
  4525. IXAudio2VoiceCallback *pCallback,
  4526. const XAUDIO23_VOICE_SENDS *pSendList,
  4527. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  4528. HRESULT (STDMETHODCALLTYPE *CreateSubmixVoice)(
  4529. IXAudio22 *This,
  4530. IXAudio2SubmixVoice **ppSubmixVoice,
  4531. UINT32 InputChannels,
  4532. UINT32 InputSampleRate,
  4533. UINT32 Flags,
  4534. UINT32 ProcessingStage,
  4535. const XAUDIO23_VOICE_SENDS *pSendList,
  4536. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  4537. HRESULT (STDMETHODCALLTYPE *CreateMasteringVoice)(
  4538. IXAudio22 *This,
  4539. IXAudio2MasteringVoice **ppMasteringVoice,
  4540. UINT32 InputChannels,
  4541. UINT32 InputSampleRate,
  4542. UINT32 Flags,
  4543. UINT32 DeviceIndex,
  4544. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  4545. HRESULT (STDMETHODCALLTYPE *StartEngine)(
  4546. IXAudio22 *This);
  4547. void (STDMETHODCALLTYPE *StopEngine)(
  4548. IXAudio22 *This);
  4549. HRESULT (STDMETHODCALLTYPE *CommitChanges)(
  4550. IXAudio22 *This,
  4551. UINT32 OperationSet);
  4552. void (STDMETHODCALLTYPE *GetPerformanceData)(
  4553. IXAudio22 *This,
  4554. XAUDIO22_PERFORMANCE_DATA *pPerfData);
  4555. void (STDMETHODCALLTYPE *SetDebugConfiguration)(
  4556. IXAudio22 *This,
  4557. const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,
  4558. void *pReserved);
  4559. END_INTERFACE
  4560. } IXAudio22Vtbl;
  4561. interface IXAudio22 {
  4562. CONST_VTBL IXAudio22Vtbl* lpVtbl;
  4563. };
  4564. #ifdef COBJMACROS
  4565. #ifndef WIDL_C_INLINE_WRAPPERS
  4566. /*** IUnknown methods ***/
  4567. #define IXAudio22_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  4568. #define IXAudio22_AddRef(This) (This)->lpVtbl->AddRef(This)
  4569. #define IXAudio22_Release(This) (This)->lpVtbl->Release(This)
  4570. /*** IXAudio22 methods ***/
  4571. #define IXAudio22_GetDeviceCount(This,pCount) (This)->lpVtbl->GetDeviceCount(This,pCount)
  4572. #define IXAudio22_GetDeviceDetails(This,Index,pDeviceDetails) (This)->lpVtbl->GetDeviceDetails(This,Index,pDeviceDetails)
  4573. #define IXAudio22_Initialize(This,Flags,XAudio2Processor) (This)->lpVtbl->Initialize(This,Flags,XAudio2Processor)
  4574. #define IXAudio22_RegisterForCallbacks(This,pCallback) (This)->lpVtbl->RegisterForCallbacks(This,pCallback)
  4575. #define IXAudio22_UnregisterForCallbacks(This,pCallback) (This)->lpVtbl->UnregisterForCallbacks(This,pCallback)
  4576. #define IXAudio22_CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain) (This)->lpVtbl->CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain)
  4577. #define IXAudio22_CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain) (This)->lpVtbl->CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain)
  4578. #define IXAudio22_CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain) (This)->lpVtbl->CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain)
  4579. #define IXAudio22_StartEngine(This) (This)->lpVtbl->StartEngine(This)
  4580. #define IXAudio22_StopEngine(This) (This)->lpVtbl->StopEngine(This)
  4581. #define IXAudio22_CommitChanges(This,OperationSet) (This)->lpVtbl->CommitChanges(This,OperationSet)
  4582. #define IXAudio22_GetPerformanceData(This,pPerfData) (This)->lpVtbl->GetPerformanceData(This,pPerfData)
  4583. #define IXAudio22_SetDebugConfiguration(This,pDebugConfiguration,pReserved) (This)->lpVtbl->SetDebugConfiguration(This,pDebugConfiguration,pReserved)
  4584. #else
  4585. /*** IUnknown methods ***/
  4586. static FORCEINLINE HRESULT IXAudio22_QueryInterface(IXAudio22* This,REFIID riid,void **ppvObject) {
  4587. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  4588. }
  4589. static FORCEINLINE ULONG IXAudio22_AddRef(IXAudio22* This) {
  4590. return This->lpVtbl->AddRef(This);
  4591. }
  4592. static FORCEINLINE ULONG IXAudio22_Release(IXAudio22* This) {
  4593. return This->lpVtbl->Release(This);
  4594. }
  4595. /*** IXAudio22 methods ***/
  4596. static FORCEINLINE HRESULT IXAudio22_GetDeviceCount(IXAudio22* This,UINT32 *pCount) {
  4597. return This->lpVtbl->GetDeviceCount(This,pCount);
  4598. }
  4599. static FORCEINLINE HRESULT IXAudio22_GetDeviceDetails(IXAudio22* This,UINT32 Index,XAUDIO2_DEVICE_DETAILS *pDeviceDetails) {
  4600. return This->lpVtbl->GetDeviceDetails(This,Index,pDeviceDetails);
  4601. }
  4602. static FORCEINLINE HRESULT IXAudio22_Initialize(IXAudio22* This,UINT32 Flags,XAUDIO2_PROCESSOR XAudio2Processor) {
  4603. return This->lpVtbl->Initialize(This,Flags,XAudio2Processor);
  4604. }
  4605. static FORCEINLINE HRESULT IXAudio22_RegisterForCallbacks(IXAudio22* This,IXAudio2EngineCallback *pCallback) {
  4606. return This->lpVtbl->RegisterForCallbacks(This,pCallback);
  4607. }
  4608. static FORCEINLINE void IXAudio22_UnregisterForCallbacks(IXAudio22* This,IXAudio2EngineCallback *pCallback) {
  4609. This->lpVtbl->UnregisterForCallbacks(This,pCallback);
  4610. }
  4611. 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) {
  4612. return This->lpVtbl->CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain);
  4613. }
  4614. 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) {
  4615. return This->lpVtbl->CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain);
  4616. }
  4617. static FORCEINLINE HRESULT IXAudio22_CreateMasteringVoice(IXAudio22* This,IXAudio2MasteringVoice **ppMasteringVoice,UINT32 InputChannels,UINT32 InputSampleRate,UINT32 Flags,UINT32 DeviceIndex,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
  4618. return This->lpVtbl->CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain);
  4619. }
  4620. static FORCEINLINE HRESULT IXAudio22_StartEngine(IXAudio22* This) {
  4621. return This->lpVtbl->StartEngine(This);
  4622. }
  4623. static FORCEINLINE void IXAudio22_StopEngine(IXAudio22* This) {
  4624. This->lpVtbl->StopEngine(This);
  4625. }
  4626. static FORCEINLINE HRESULT IXAudio22_CommitChanges(IXAudio22* This,UINT32 OperationSet) {
  4627. return This->lpVtbl->CommitChanges(This,OperationSet);
  4628. }
  4629. static FORCEINLINE void IXAudio22_GetPerformanceData(IXAudio22* This,XAUDIO22_PERFORMANCE_DATA *pPerfData) {
  4630. This->lpVtbl->GetPerformanceData(This,pPerfData);
  4631. }
  4632. static FORCEINLINE void IXAudio22_SetDebugConfiguration(IXAudio22* This,const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,void *pReserved) {
  4633. This->lpVtbl->SetDebugConfiguration(This,pDebugConfiguration,pReserved);
  4634. }
  4635. #endif
  4636. #endif
  4637. #endif
  4638. #endif /* __IXAudio22_INTERFACE_DEFINED__ */
  4639. /*****************************************************************************
  4640. * IXAudio23 interface
  4641. */
  4642. #ifndef __IXAudio23_INTERFACE_DEFINED__
  4643. #define __IXAudio23_INTERFACE_DEFINED__
  4644. DEFINE_GUID(IID_IXAudio23, 0x8bcf1f58, 0x9fe7, 0x4583, 0x8a,0xc6, 0xe2,0xad,0xc4,0x65,0xc8,0xbb);
  4645. #if defined(__cplusplus) && !defined(CINTERFACE)
  4646. MIDL_INTERFACE("8bcf1f58-9fe7-4583-8ac6-e2adc465c8bb")
  4647. IXAudio23 : public IUnknown
  4648. {
  4649. virtual HRESULT STDMETHODCALLTYPE GetDeviceCount(
  4650. UINT32 *pCount) = 0;
  4651. virtual HRESULT STDMETHODCALLTYPE GetDeviceDetails(
  4652. UINT32 Index,
  4653. XAUDIO2_DEVICE_DETAILS *pDeviceDetails) = 0;
  4654. virtual HRESULT STDMETHODCALLTYPE Initialize(
  4655. UINT32 Flags = 0,
  4656. XAUDIO2_PROCESSOR XAudio2Processor = XAUDIO2_DEFAULT_PROCESSOR) = 0;
  4657. virtual HRESULT STDMETHODCALLTYPE RegisterForCallbacks(
  4658. IXAudio2EngineCallback *pCallback) = 0;
  4659. virtual void STDMETHODCALLTYPE UnregisterForCallbacks(
  4660. IXAudio2EngineCallback *pCallback) = 0;
  4661. virtual HRESULT STDMETHODCALLTYPE CreateSourceVoice(
  4662. IXAudio2SourceVoice **ppSourceVoice,
  4663. const WAVEFORMATEX *pSourceFormat,
  4664. UINT32 Flags = 0,
  4665. float MaxFrequencyRatio = XAUDIO2_DEFAULT_FREQ_RATIO,
  4666. IXAudio2VoiceCallback *pCallback = 0,
  4667. const XAUDIO23_VOICE_SENDS *pSendList = 0,
  4668. const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
  4669. virtual HRESULT STDMETHODCALLTYPE CreateSubmixVoice(
  4670. IXAudio2SubmixVoice **ppSubmixVoice,
  4671. UINT32 InputChannels,
  4672. UINT32 InputSampleRate,
  4673. UINT32 Flags = 0,
  4674. UINT32 ProcessingStage = 0,
  4675. const XAUDIO23_VOICE_SENDS *pSendList = 0,
  4676. const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
  4677. virtual HRESULT STDMETHODCALLTYPE CreateMasteringVoice(
  4678. IXAudio2MasteringVoice **ppMasteringVoice,
  4679. UINT32 InputChannels = XAUDIO2_DEFAULT_CHANNELS,
  4680. UINT32 InputSampleRate = XAUDIO2_DEFAULT_SAMPLERATE,
  4681. UINT32 Flags = 0,
  4682. UINT32 DeviceIndex = 0,
  4683. const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
  4684. virtual HRESULT STDMETHODCALLTYPE StartEngine(
  4685. ) = 0;
  4686. virtual void STDMETHODCALLTYPE StopEngine(
  4687. ) = 0;
  4688. virtual HRESULT STDMETHODCALLTYPE CommitChanges(
  4689. UINT32 OperationSet) = 0;
  4690. virtual void STDMETHODCALLTYPE GetPerformanceData(
  4691. XAUDIO2_PERFORMANCE_DATA *pPerfData) = 0;
  4692. virtual void STDMETHODCALLTYPE SetDebugConfiguration(
  4693. const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,
  4694. void *pReserved = 0) = 0;
  4695. };
  4696. #ifdef __CRT_UUID_DECL
  4697. __CRT_UUID_DECL(IXAudio23, 0x8bcf1f58, 0x9fe7, 0x4583, 0x8a,0xc6, 0xe2,0xad,0xc4,0x65,0xc8,0xbb)
  4698. #endif
  4699. #else
  4700. typedef struct IXAudio23Vtbl {
  4701. BEGIN_INTERFACE
  4702. /*** IUnknown methods ***/
  4703. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  4704. IXAudio23 *This,
  4705. REFIID riid,
  4706. void **ppvObject);
  4707. ULONG (STDMETHODCALLTYPE *AddRef)(
  4708. IXAudio23 *This);
  4709. ULONG (STDMETHODCALLTYPE *Release)(
  4710. IXAudio23 *This);
  4711. /*** IXAudio23 methods ***/
  4712. HRESULT (STDMETHODCALLTYPE *GetDeviceCount)(
  4713. IXAudio23 *This,
  4714. UINT32 *pCount);
  4715. HRESULT (STDMETHODCALLTYPE *GetDeviceDetails)(
  4716. IXAudio23 *This,
  4717. UINT32 Index,
  4718. XAUDIO2_DEVICE_DETAILS *pDeviceDetails);
  4719. HRESULT (STDMETHODCALLTYPE *Initialize)(
  4720. IXAudio23 *This,
  4721. UINT32 Flags,
  4722. XAUDIO2_PROCESSOR XAudio2Processor);
  4723. HRESULT (STDMETHODCALLTYPE *RegisterForCallbacks)(
  4724. IXAudio23 *This,
  4725. IXAudio2EngineCallback *pCallback);
  4726. void (STDMETHODCALLTYPE *UnregisterForCallbacks)(
  4727. IXAudio23 *This,
  4728. IXAudio2EngineCallback *pCallback);
  4729. HRESULT (STDMETHODCALLTYPE *CreateSourceVoice)(
  4730. IXAudio23 *This,
  4731. IXAudio2SourceVoice **ppSourceVoice,
  4732. const WAVEFORMATEX *pSourceFormat,
  4733. UINT32 Flags,
  4734. float MaxFrequencyRatio,
  4735. IXAudio2VoiceCallback *pCallback,
  4736. const XAUDIO23_VOICE_SENDS *pSendList,
  4737. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  4738. HRESULT (STDMETHODCALLTYPE *CreateSubmixVoice)(
  4739. IXAudio23 *This,
  4740. IXAudio2SubmixVoice **ppSubmixVoice,
  4741. UINT32 InputChannels,
  4742. UINT32 InputSampleRate,
  4743. UINT32 Flags,
  4744. UINT32 ProcessingStage,
  4745. const XAUDIO23_VOICE_SENDS *pSendList,
  4746. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  4747. HRESULT (STDMETHODCALLTYPE *CreateMasteringVoice)(
  4748. IXAudio23 *This,
  4749. IXAudio2MasteringVoice **ppMasteringVoice,
  4750. UINT32 InputChannels,
  4751. UINT32 InputSampleRate,
  4752. UINT32 Flags,
  4753. UINT32 DeviceIndex,
  4754. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  4755. HRESULT (STDMETHODCALLTYPE *StartEngine)(
  4756. IXAudio23 *This);
  4757. void (STDMETHODCALLTYPE *StopEngine)(
  4758. IXAudio23 *This);
  4759. HRESULT (STDMETHODCALLTYPE *CommitChanges)(
  4760. IXAudio23 *This,
  4761. UINT32 OperationSet);
  4762. void (STDMETHODCALLTYPE *GetPerformanceData)(
  4763. IXAudio23 *This,
  4764. XAUDIO2_PERFORMANCE_DATA *pPerfData);
  4765. void (STDMETHODCALLTYPE *SetDebugConfiguration)(
  4766. IXAudio23 *This,
  4767. const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,
  4768. void *pReserved);
  4769. END_INTERFACE
  4770. } IXAudio23Vtbl;
  4771. interface IXAudio23 {
  4772. CONST_VTBL IXAudio23Vtbl* lpVtbl;
  4773. };
  4774. #ifdef COBJMACROS
  4775. #ifndef WIDL_C_INLINE_WRAPPERS
  4776. /*** IUnknown methods ***/
  4777. #define IXAudio23_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  4778. #define IXAudio23_AddRef(This) (This)->lpVtbl->AddRef(This)
  4779. #define IXAudio23_Release(This) (This)->lpVtbl->Release(This)
  4780. /*** IXAudio23 methods ***/
  4781. #define IXAudio23_GetDeviceCount(This,pCount) (This)->lpVtbl->GetDeviceCount(This,pCount)
  4782. #define IXAudio23_GetDeviceDetails(This,Index,pDeviceDetails) (This)->lpVtbl->GetDeviceDetails(This,Index,pDeviceDetails)
  4783. #define IXAudio23_Initialize(This,Flags,XAudio2Processor) (This)->lpVtbl->Initialize(This,Flags,XAudio2Processor)
  4784. #define IXAudio23_RegisterForCallbacks(This,pCallback) (This)->lpVtbl->RegisterForCallbacks(This,pCallback)
  4785. #define IXAudio23_UnregisterForCallbacks(This,pCallback) (This)->lpVtbl->UnregisterForCallbacks(This,pCallback)
  4786. #define IXAudio23_CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain) (This)->lpVtbl->CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain)
  4787. #define IXAudio23_CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain) (This)->lpVtbl->CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain)
  4788. #define IXAudio23_CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain) (This)->lpVtbl->CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain)
  4789. #define IXAudio23_StartEngine(This) (This)->lpVtbl->StartEngine(This)
  4790. #define IXAudio23_StopEngine(This) (This)->lpVtbl->StopEngine(This)
  4791. #define IXAudio23_CommitChanges(This,OperationSet) (This)->lpVtbl->CommitChanges(This,OperationSet)
  4792. #define IXAudio23_GetPerformanceData(This,pPerfData) (This)->lpVtbl->GetPerformanceData(This,pPerfData)
  4793. #define IXAudio23_SetDebugConfiguration(This,pDebugConfiguration,pReserved) (This)->lpVtbl->SetDebugConfiguration(This,pDebugConfiguration,pReserved)
  4794. #else
  4795. /*** IUnknown methods ***/
  4796. static FORCEINLINE HRESULT IXAudio23_QueryInterface(IXAudio23* This,REFIID riid,void **ppvObject) {
  4797. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  4798. }
  4799. static FORCEINLINE ULONG IXAudio23_AddRef(IXAudio23* This) {
  4800. return This->lpVtbl->AddRef(This);
  4801. }
  4802. static FORCEINLINE ULONG IXAudio23_Release(IXAudio23* This) {
  4803. return This->lpVtbl->Release(This);
  4804. }
  4805. /*** IXAudio23 methods ***/
  4806. static FORCEINLINE HRESULT IXAudio23_GetDeviceCount(IXAudio23* This,UINT32 *pCount) {
  4807. return This->lpVtbl->GetDeviceCount(This,pCount);
  4808. }
  4809. static FORCEINLINE HRESULT IXAudio23_GetDeviceDetails(IXAudio23* This,UINT32 Index,XAUDIO2_DEVICE_DETAILS *pDeviceDetails) {
  4810. return This->lpVtbl->GetDeviceDetails(This,Index,pDeviceDetails);
  4811. }
  4812. static FORCEINLINE HRESULT IXAudio23_Initialize(IXAudio23* This,UINT32 Flags,XAUDIO2_PROCESSOR XAudio2Processor) {
  4813. return This->lpVtbl->Initialize(This,Flags,XAudio2Processor);
  4814. }
  4815. static FORCEINLINE HRESULT IXAudio23_RegisterForCallbacks(IXAudio23* This,IXAudio2EngineCallback *pCallback) {
  4816. return This->lpVtbl->RegisterForCallbacks(This,pCallback);
  4817. }
  4818. static FORCEINLINE void IXAudio23_UnregisterForCallbacks(IXAudio23* This,IXAudio2EngineCallback *pCallback) {
  4819. This->lpVtbl->UnregisterForCallbacks(This,pCallback);
  4820. }
  4821. 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) {
  4822. return This->lpVtbl->CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain);
  4823. }
  4824. 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) {
  4825. return This->lpVtbl->CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain);
  4826. }
  4827. static FORCEINLINE HRESULT IXAudio23_CreateMasteringVoice(IXAudio23* This,IXAudio2MasteringVoice **ppMasteringVoice,UINT32 InputChannels,UINT32 InputSampleRate,UINT32 Flags,UINT32 DeviceIndex,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
  4828. return This->lpVtbl->CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain);
  4829. }
  4830. static FORCEINLINE HRESULT IXAudio23_StartEngine(IXAudio23* This) {
  4831. return This->lpVtbl->StartEngine(This);
  4832. }
  4833. static FORCEINLINE void IXAudio23_StopEngine(IXAudio23* This) {
  4834. This->lpVtbl->StopEngine(This);
  4835. }
  4836. static FORCEINLINE HRESULT IXAudio23_CommitChanges(IXAudio23* This,UINT32 OperationSet) {
  4837. return This->lpVtbl->CommitChanges(This,OperationSet);
  4838. }
  4839. static FORCEINLINE void IXAudio23_GetPerformanceData(IXAudio23* This,XAUDIO2_PERFORMANCE_DATA *pPerfData) {
  4840. This->lpVtbl->GetPerformanceData(This,pPerfData);
  4841. }
  4842. static FORCEINLINE void IXAudio23_SetDebugConfiguration(IXAudio23* This,const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,void *pReserved) {
  4843. This->lpVtbl->SetDebugConfiguration(This,pDebugConfiguration,pReserved);
  4844. }
  4845. #endif
  4846. #endif
  4847. #endif
  4848. #endif /* __IXAudio23_INTERFACE_DEFINED__ */
  4849. /*****************************************************************************
  4850. * IXAudio27 interface
  4851. */
  4852. #ifndef __IXAudio27_INTERFACE_DEFINED__
  4853. #define __IXAudio27_INTERFACE_DEFINED__
  4854. DEFINE_GUID(IID_IXAudio27, 0x8bcf1f58, 0x9fe7, 0x4583, 0x8a,0xc6, 0xe2,0xad,0xc4,0x65,0xc8,0xbb);
  4855. #if defined(__cplusplus) && !defined(CINTERFACE)
  4856. MIDL_INTERFACE("8bcf1f58-9fe7-4583-8ac6-e2adc465c8bb")
  4857. IXAudio27 : public IUnknown
  4858. {
  4859. virtual HRESULT STDMETHODCALLTYPE GetDeviceCount(
  4860. UINT32 *pCount) = 0;
  4861. virtual HRESULT STDMETHODCALLTYPE GetDeviceDetails(
  4862. UINT32 Index,
  4863. XAUDIO2_DEVICE_DETAILS *pDeviceDetails) = 0;
  4864. virtual HRESULT STDMETHODCALLTYPE Initialize(
  4865. UINT32 Flags = 0,
  4866. XAUDIO2_PROCESSOR XAudio2Processor = XAUDIO2_DEFAULT_PROCESSOR) = 0;
  4867. virtual HRESULT STDMETHODCALLTYPE RegisterForCallbacks(
  4868. IXAudio2EngineCallback *pCallback) = 0;
  4869. virtual void STDMETHODCALLTYPE UnregisterForCallbacks(
  4870. IXAudio2EngineCallback *pCallback) = 0;
  4871. virtual HRESULT STDMETHODCALLTYPE CreateSourceVoice(
  4872. IXAudio2SourceVoice **ppSourceVoice,
  4873. const WAVEFORMATEX *pSourceFormat,
  4874. UINT32 Flags = 0,
  4875. float MaxFrequencyRatio = XAUDIO2_DEFAULT_FREQ_RATIO,
  4876. IXAudio2VoiceCallback *pCallback = 0,
  4877. const XAUDIO2_VOICE_SENDS *pSendList = 0,
  4878. const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
  4879. virtual HRESULT STDMETHODCALLTYPE CreateSubmixVoice(
  4880. IXAudio2SubmixVoice **ppSubmixVoice,
  4881. UINT32 InputChannels,
  4882. UINT32 InputSampleRate,
  4883. UINT32 Flags = 0,
  4884. UINT32 ProcessingStage = 0,
  4885. const XAUDIO2_VOICE_SENDS *pSendList = 0,
  4886. const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
  4887. virtual HRESULT STDMETHODCALLTYPE CreateMasteringVoice(
  4888. IXAudio2MasteringVoice **ppMasteringVoice,
  4889. UINT32 InputChannels = XAUDIO2_DEFAULT_CHANNELS,
  4890. UINT32 InputSampleRate = XAUDIO2_DEFAULT_SAMPLERATE,
  4891. UINT32 Flags = 0,
  4892. UINT32 DeviceIndex = 0,
  4893. const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
  4894. virtual HRESULT STDMETHODCALLTYPE StartEngine(
  4895. ) = 0;
  4896. virtual void STDMETHODCALLTYPE StopEngine(
  4897. ) = 0;
  4898. virtual HRESULT STDMETHODCALLTYPE CommitChanges(
  4899. UINT32 OperationSet) = 0;
  4900. virtual void STDMETHODCALLTYPE GetPerformanceData(
  4901. XAUDIO2_PERFORMANCE_DATA *pPerfData) = 0;
  4902. virtual void STDMETHODCALLTYPE SetDebugConfiguration(
  4903. const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,
  4904. void *pReserved = 0) = 0;
  4905. };
  4906. #ifdef __CRT_UUID_DECL
  4907. __CRT_UUID_DECL(IXAudio27, 0x8bcf1f58, 0x9fe7, 0x4583, 0x8a,0xc6, 0xe2,0xad,0xc4,0x65,0xc8,0xbb)
  4908. #endif
  4909. #else
  4910. typedef struct IXAudio27Vtbl {
  4911. BEGIN_INTERFACE
  4912. /*** IUnknown methods ***/
  4913. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  4914. IXAudio27 *This,
  4915. REFIID riid,
  4916. void **ppvObject);
  4917. ULONG (STDMETHODCALLTYPE *AddRef)(
  4918. IXAudio27 *This);
  4919. ULONG (STDMETHODCALLTYPE *Release)(
  4920. IXAudio27 *This);
  4921. /*** IXAudio27 methods ***/
  4922. HRESULT (STDMETHODCALLTYPE *GetDeviceCount)(
  4923. IXAudio27 *This,
  4924. UINT32 *pCount);
  4925. HRESULT (STDMETHODCALLTYPE *GetDeviceDetails)(
  4926. IXAudio27 *This,
  4927. UINT32 Index,
  4928. XAUDIO2_DEVICE_DETAILS *pDeviceDetails);
  4929. HRESULT (STDMETHODCALLTYPE *Initialize)(
  4930. IXAudio27 *This,
  4931. UINT32 Flags,
  4932. XAUDIO2_PROCESSOR XAudio2Processor);
  4933. HRESULT (STDMETHODCALLTYPE *RegisterForCallbacks)(
  4934. IXAudio27 *This,
  4935. IXAudio2EngineCallback *pCallback);
  4936. void (STDMETHODCALLTYPE *UnregisterForCallbacks)(
  4937. IXAudio27 *This,
  4938. IXAudio2EngineCallback *pCallback);
  4939. HRESULT (STDMETHODCALLTYPE *CreateSourceVoice)(
  4940. IXAudio27 *This,
  4941. IXAudio2SourceVoice **ppSourceVoice,
  4942. const WAVEFORMATEX *pSourceFormat,
  4943. UINT32 Flags,
  4944. float MaxFrequencyRatio,
  4945. IXAudio2VoiceCallback *pCallback,
  4946. const XAUDIO2_VOICE_SENDS *pSendList,
  4947. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  4948. HRESULT (STDMETHODCALLTYPE *CreateSubmixVoice)(
  4949. IXAudio27 *This,
  4950. IXAudio2SubmixVoice **ppSubmixVoice,
  4951. UINT32 InputChannels,
  4952. UINT32 InputSampleRate,
  4953. UINT32 Flags,
  4954. UINT32 ProcessingStage,
  4955. const XAUDIO2_VOICE_SENDS *pSendList,
  4956. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  4957. HRESULT (STDMETHODCALLTYPE *CreateMasteringVoice)(
  4958. IXAudio27 *This,
  4959. IXAudio2MasteringVoice **ppMasteringVoice,
  4960. UINT32 InputChannels,
  4961. UINT32 InputSampleRate,
  4962. UINT32 Flags,
  4963. UINT32 DeviceIndex,
  4964. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  4965. HRESULT (STDMETHODCALLTYPE *StartEngine)(
  4966. IXAudio27 *This);
  4967. void (STDMETHODCALLTYPE *StopEngine)(
  4968. IXAudio27 *This);
  4969. HRESULT (STDMETHODCALLTYPE *CommitChanges)(
  4970. IXAudio27 *This,
  4971. UINT32 OperationSet);
  4972. void (STDMETHODCALLTYPE *GetPerformanceData)(
  4973. IXAudio27 *This,
  4974. XAUDIO2_PERFORMANCE_DATA *pPerfData);
  4975. void (STDMETHODCALLTYPE *SetDebugConfiguration)(
  4976. IXAudio27 *This,
  4977. const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,
  4978. void *pReserved);
  4979. END_INTERFACE
  4980. } IXAudio27Vtbl;
  4981. interface IXAudio27 {
  4982. CONST_VTBL IXAudio27Vtbl* lpVtbl;
  4983. };
  4984. #ifdef COBJMACROS
  4985. #ifndef WIDL_C_INLINE_WRAPPERS
  4986. /*** IUnknown methods ***/
  4987. #define IXAudio27_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  4988. #define IXAudio27_AddRef(This) (This)->lpVtbl->AddRef(This)
  4989. #define IXAudio27_Release(This) (This)->lpVtbl->Release(This)
  4990. /*** IXAudio27 methods ***/
  4991. #define IXAudio27_GetDeviceCount(This,pCount) (This)->lpVtbl->GetDeviceCount(This,pCount)
  4992. #define IXAudio27_GetDeviceDetails(This,Index,pDeviceDetails) (This)->lpVtbl->GetDeviceDetails(This,Index,pDeviceDetails)
  4993. #define IXAudio27_Initialize(This,Flags,XAudio2Processor) (This)->lpVtbl->Initialize(This,Flags,XAudio2Processor)
  4994. #define IXAudio27_RegisterForCallbacks(This,pCallback) (This)->lpVtbl->RegisterForCallbacks(This,pCallback)
  4995. #define IXAudio27_UnregisterForCallbacks(This,pCallback) (This)->lpVtbl->UnregisterForCallbacks(This,pCallback)
  4996. #define IXAudio27_CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain) (This)->lpVtbl->CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain)
  4997. #define IXAudio27_CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain) (This)->lpVtbl->CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain)
  4998. #define IXAudio27_CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain) (This)->lpVtbl->CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain)
  4999. #define IXAudio27_StartEngine(This) (This)->lpVtbl->StartEngine(This)
  5000. #define IXAudio27_StopEngine(This) (This)->lpVtbl->StopEngine(This)
  5001. #define IXAudio27_CommitChanges(This,OperationSet) (This)->lpVtbl->CommitChanges(This,OperationSet)
  5002. #define IXAudio27_GetPerformanceData(This,pPerfData) (This)->lpVtbl->GetPerformanceData(This,pPerfData)
  5003. #define IXAudio27_SetDebugConfiguration(This,pDebugConfiguration,pReserved) (This)->lpVtbl->SetDebugConfiguration(This,pDebugConfiguration,pReserved)
  5004. #else
  5005. /*** IUnknown methods ***/
  5006. static FORCEINLINE HRESULT IXAudio27_QueryInterface(IXAudio27* This,REFIID riid,void **ppvObject) {
  5007. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  5008. }
  5009. static FORCEINLINE ULONG IXAudio27_AddRef(IXAudio27* This) {
  5010. return This->lpVtbl->AddRef(This);
  5011. }
  5012. static FORCEINLINE ULONG IXAudio27_Release(IXAudio27* This) {
  5013. return This->lpVtbl->Release(This);
  5014. }
  5015. /*** IXAudio27 methods ***/
  5016. static FORCEINLINE HRESULT IXAudio27_GetDeviceCount(IXAudio27* This,UINT32 *pCount) {
  5017. return This->lpVtbl->GetDeviceCount(This,pCount);
  5018. }
  5019. static FORCEINLINE HRESULT IXAudio27_GetDeviceDetails(IXAudio27* This,UINT32 Index,XAUDIO2_DEVICE_DETAILS *pDeviceDetails) {
  5020. return This->lpVtbl->GetDeviceDetails(This,Index,pDeviceDetails);
  5021. }
  5022. static FORCEINLINE HRESULT IXAudio27_Initialize(IXAudio27* This,UINT32 Flags,XAUDIO2_PROCESSOR XAudio2Processor) {
  5023. return This->lpVtbl->Initialize(This,Flags,XAudio2Processor);
  5024. }
  5025. static FORCEINLINE HRESULT IXAudio27_RegisterForCallbacks(IXAudio27* This,IXAudio2EngineCallback *pCallback) {
  5026. return This->lpVtbl->RegisterForCallbacks(This,pCallback);
  5027. }
  5028. static FORCEINLINE void IXAudio27_UnregisterForCallbacks(IXAudio27* This,IXAudio2EngineCallback *pCallback) {
  5029. This->lpVtbl->UnregisterForCallbacks(This,pCallback);
  5030. }
  5031. 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) {
  5032. return This->lpVtbl->CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain);
  5033. }
  5034. 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) {
  5035. return This->lpVtbl->CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain);
  5036. }
  5037. static FORCEINLINE HRESULT IXAudio27_CreateMasteringVoice(IXAudio27* This,IXAudio2MasteringVoice **ppMasteringVoice,UINT32 InputChannels,UINT32 InputSampleRate,UINT32 Flags,UINT32 DeviceIndex,const XAUDIO2_EFFECT_CHAIN *pEffectChain) {
  5038. return This->lpVtbl->CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain);
  5039. }
  5040. static FORCEINLINE HRESULT IXAudio27_StartEngine(IXAudio27* This) {
  5041. return This->lpVtbl->StartEngine(This);
  5042. }
  5043. static FORCEINLINE void IXAudio27_StopEngine(IXAudio27* This) {
  5044. This->lpVtbl->StopEngine(This);
  5045. }
  5046. static FORCEINLINE HRESULT IXAudio27_CommitChanges(IXAudio27* This,UINT32 OperationSet) {
  5047. return This->lpVtbl->CommitChanges(This,OperationSet);
  5048. }
  5049. static FORCEINLINE void IXAudio27_GetPerformanceData(IXAudio27* This,XAUDIO2_PERFORMANCE_DATA *pPerfData) {
  5050. This->lpVtbl->GetPerformanceData(This,pPerfData);
  5051. }
  5052. static FORCEINLINE void IXAudio27_SetDebugConfiguration(IXAudio27* This,const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,void *pReserved) {
  5053. This->lpVtbl->SetDebugConfiguration(This,pDebugConfiguration,pReserved);
  5054. }
  5055. #endif
  5056. #endif
  5057. #endif
  5058. #endif /* __IXAudio27_INTERFACE_DEFINED__ */
  5059. DEFINE_GUID(IID_IXAudio28, 0x60d8dac8, 0x5aa1, 0x4e8e, 0xb5, 0x97, 0x2f, 0x5e, 0x28, 0x83, 0xd4, 0x84);
  5060. /*****************************************************************************
  5061. * IXAudio2 interface
  5062. */
  5063. #ifndef __IXAudio2_INTERFACE_DEFINED__
  5064. #define __IXAudio2_INTERFACE_DEFINED__
  5065. DEFINE_GUID(IID_IXAudio2, 0x2b02e3cf, 0x2e0b, 0x4ec3, 0xbe,0x45, 0x1b,0x2a,0x3f,0xe7,0x21,0x0d);
  5066. #if defined(__cplusplus) && !defined(CINTERFACE)
  5067. MIDL_INTERFACE("2b02e3cf-2e0b-4ec3-be45-1b2a3fe7210d")
  5068. IXAudio2 : public IUnknown
  5069. {
  5070. virtual HRESULT STDMETHODCALLTYPE RegisterForCallbacks(
  5071. IXAudio2EngineCallback *pCallback) = 0;
  5072. virtual void STDMETHODCALLTYPE UnregisterForCallbacks(
  5073. IXAudio2EngineCallback *pCallback) = 0;
  5074. virtual HRESULT STDMETHODCALLTYPE CreateSourceVoice(
  5075. IXAudio2SourceVoice **ppSourceVoice,
  5076. const WAVEFORMATEX *pSourceFormat,
  5077. UINT32 Flags = 0,
  5078. float MaxFrequencyRatio = XAUDIO2_DEFAULT_FREQ_RATIO,
  5079. IXAudio2VoiceCallback *pCallback = 0,
  5080. const XAUDIO2_VOICE_SENDS *pSendList = 0,
  5081. const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
  5082. virtual HRESULT STDMETHODCALLTYPE CreateSubmixVoice(
  5083. IXAudio2SubmixVoice **ppSubmixVoice,
  5084. UINT32 InputChannels,
  5085. UINT32 InputSampleRate,
  5086. UINT32 Flags = 0,
  5087. UINT32 ProcessingStage = 0,
  5088. const XAUDIO2_VOICE_SENDS *pSendList = 0,
  5089. const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0) = 0;
  5090. virtual HRESULT STDMETHODCALLTYPE CreateMasteringVoice(
  5091. IXAudio2MasteringVoice **ppMasteringVoice,
  5092. UINT32 InputChannels = XAUDIO2_DEFAULT_CHANNELS,
  5093. UINT32 InputSampleRate = XAUDIO2_DEFAULT_SAMPLERATE,
  5094. UINT32 Flags = 0,
  5095. LPCWSTR DeviceId = 0,
  5096. const XAUDIO2_EFFECT_CHAIN *pEffectChain = 0,
  5097. AUDIO_STREAM_CATEGORY StreamCategory = AudioCategory_GameEffects) = 0;
  5098. virtual HRESULT STDMETHODCALLTYPE StartEngine(
  5099. ) = 0;
  5100. virtual void STDMETHODCALLTYPE StopEngine(
  5101. ) = 0;
  5102. virtual HRESULT STDMETHODCALLTYPE CommitChanges(
  5103. UINT32 OperationSet) = 0;
  5104. virtual void STDMETHODCALLTYPE GetPerformanceData(
  5105. XAUDIO2_PERFORMANCE_DATA *pPerfData) = 0;
  5106. virtual void STDMETHODCALLTYPE SetDebugConfiguration(
  5107. const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,
  5108. void *pReserved = 0) = 0;
  5109. };
  5110. #ifdef __CRT_UUID_DECL
  5111. __CRT_UUID_DECL(IXAudio2, 0x2b02e3cf, 0x2e0b, 0x4ec3, 0xbe,0x45, 0x1b,0x2a,0x3f,0xe7,0x21,0x0d)
  5112. #endif
  5113. #else
  5114. typedef struct IXAudio2Vtbl {
  5115. BEGIN_INTERFACE
  5116. /*** IUnknown methods ***/
  5117. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  5118. IXAudio2 *This,
  5119. REFIID riid,
  5120. void **ppvObject);
  5121. ULONG (STDMETHODCALLTYPE *AddRef)(
  5122. IXAudio2 *This);
  5123. ULONG (STDMETHODCALLTYPE *Release)(
  5124. IXAudio2 *This);
  5125. /*** IXAudio2 methods ***/
  5126. HRESULT (STDMETHODCALLTYPE *RegisterForCallbacks)(
  5127. IXAudio2 *This,
  5128. IXAudio2EngineCallback *pCallback);
  5129. void (STDMETHODCALLTYPE *UnregisterForCallbacks)(
  5130. IXAudio2 *This,
  5131. IXAudio2EngineCallback *pCallback);
  5132. HRESULT (STDMETHODCALLTYPE *CreateSourceVoice)(
  5133. IXAudio2 *This,
  5134. IXAudio2SourceVoice **ppSourceVoice,
  5135. const WAVEFORMATEX *pSourceFormat,
  5136. UINT32 Flags,
  5137. float MaxFrequencyRatio,
  5138. IXAudio2VoiceCallback *pCallback,
  5139. const XAUDIO2_VOICE_SENDS *pSendList,
  5140. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  5141. HRESULT (STDMETHODCALLTYPE *CreateSubmixVoice)(
  5142. IXAudio2 *This,
  5143. IXAudio2SubmixVoice **ppSubmixVoice,
  5144. UINT32 InputChannels,
  5145. UINT32 InputSampleRate,
  5146. UINT32 Flags,
  5147. UINT32 ProcessingStage,
  5148. const XAUDIO2_VOICE_SENDS *pSendList,
  5149. const XAUDIO2_EFFECT_CHAIN *pEffectChain);
  5150. HRESULT (STDMETHODCALLTYPE *CreateMasteringVoice)(
  5151. IXAudio2 *This,
  5152. IXAudio2MasteringVoice **ppMasteringVoice,
  5153. UINT32 InputChannels,
  5154. UINT32 InputSampleRate,
  5155. UINT32 Flags,
  5156. LPCWSTR DeviceId,
  5157. const XAUDIO2_EFFECT_CHAIN *pEffectChain,
  5158. AUDIO_STREAM_CATEGORY StreamCategory);
  5159. HRESULT (STDMETHODCALLTYPE *StartEngine)(
  5160. IXAudio2 *This);
  5161. void (STDMETHODCALLTYPE *StopEngine)(
  5162. IXAudio2 *This);
  5163. HRESULT (STDMETHODCALLTYPE *CommitChanges)(
  5164. IXAudio2 *This,
  5165. UINT32 OperationSet);
  5166. void (STDMETHODCALLTYPE *GetPerformanceData)(
  5167. IXAudio2 *This,
  5168. XAUDIO2_PERFORMANCE_DATA *pPerfData);
  5169. void (STDMETHODCALLTYPE *SetDebugConfiguration)(
  5170. IXAudio2 *This,
  5171. const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,
  5172. void *pReserved);
  5173. END_INTERFACE
  5174. } IXAudio2Vtbl;
  5175. interface IXAudio2 {
  5176. CONST_VTBL IXAudio2Vtbl* lpVtbl;
  5177. };
  5178. #ifdef COBJMACROS
  5179. #ifndef WIDL_C_INLINE_WRAPPERS
  5180. /*** IUnknown methods ***/
  5181. #define IXAudio2_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  5182. #define IXAudio2_AddRef(This) (This)->lpVtbl->AddRef(This)
  5183. #define IXAudio2_Release(This) (This)->lpVtbl->Release(This)
  5184. /*** IXAudio2 methods ***/
  5185. #define IXAudio2_RegisterForCallbacks(This,pCallback) (This)->lpVtbl->RegisterForCallbacks(This,pCallback)
  5186. #define IXAudio2_UnregisterForCallbacks(This,pCallback) (This)->lpVtbl->UnregisterForCallbacks(This,pCallback)
  5187. #define IXAudio2_CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain) (This)->lpVtbl->CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain)
  5188. #define IXAudio2_CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain) (This)->lpVtbl->CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain)
  5189. #define IXAudio2_CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceId,pEffectChain,StreamCategory) (This)->lpVtbl->CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceId,pEffectChain,StreamCategory)
  5190. #define IXAudio2_StartEngine(This) (This)->lpVtbl->StartEngine(This)
  5191. #define IXAudio2_StopEngine(This) (This)->lpVtbl->StopEngine(This)
  5192. #define IXAudio2_CommitChanges(This,OperationSet) (This)->lpVtbl->CommitChanges(This,OperationSet)
  5193. #define IXAudio2_GetPerformanceData(This,pPerfData) (This)->lpVtbl->GetPerformanceData(This,pPerfData)
  5194. #define IXAudio2_SetDebugConfiguration(This,pDebugConfiguration,pReserved) (This)->lpVtbl->SetDebugConfiguration(This,pDebugConfiguration,pReserved)
  5195. #else
  5196. /*** IUnknown methods ***/
  5197. static FORCEINLINE HRESULT IXAudio2_QueryInterface(IXAudio2* This,REFIID riid,void **ppvObject) {
  5198. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  5199. }
  5200. static FORCEINLINE ULONG IXAudio2_AddRef(IXAudio2* This) {
  5201. return This->lpVtbl->AddRef(This);
  5202. }
  5203. static FORCEINLINE ULONG IXAudio2_Release(IXAudio2* This) {
  5204. return This->lpVtbl->Release(This);
  5205. }
  5206. /*** IXAudio2 methods ***/
  5207. static FORCEINLINE HRESULT IXAudio2_RegisterForCallbacks(IXAudio2* This,IXAudio2EngineCallback *pCallback) {
  5208. return This->lpVtbl->RegisterForCallbacks(This,pCallback);
  5209. }
  5210. static FORCEINLINE void IXAudio2_UnregisterForCallbacks(IXAudio2* This,IXAudio2EngineCallback *pCallback) {
  5211. This->lpVtbl->UnregisterForCallbacks(This,pCallback);
  5212. }
  5213. 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) {
  5214. return This->lpVtbl->CreateSourceVoice(This,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain);
  5215. }
  5216. 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) {
  5217. return This->lpVtbl->CreateSubmixVoice(This,ppSubmixVoice,InputChannels,InputSampleRate,Flags,ProcessingStage,pSendList,pEffectChain);
  5218. }
  5219. 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) {
  5220. return This->lpVtbl->CreateMasteringVoice(This,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceId,pEffectChain,StreamCategory);
  5221. }
  5222. static FORCEINLINE HRESULT IXAudio2_StartEngine(IXAudio2* This) {
  5223. return This->lpVtbl->StartEngine(This);
  5224. }
  5225. static FORCEINLINE void IXAudio2_StopEngine(IXAudio2* This) {
  5226. This->lpVtbl->StopEngine(This);
  5227. }
  5228. static FORCEINLINE HRESULT IXAudio2_CommitChanges(IXAudio2* This,UINT32 OperationSet) {
  5229. return This->lpVtbl->CommitChanges(This,OperationSet);
  5230. }
  5231. static FORCEINLINE void IXAudio2_GetPerformanceData(IXAudio2* This,XAUDIO2_PERFORMANCE_DATA *pPerfData) {
  5232. This->lpVtbl->GetPerformanceData(This,pPerfData);
  5233. }
  5234. static FORCEINLINE void IXAudio2_SetDebugConfiguration(IXAudio2* This,const XAUDIO2_DEBUG_CONFIGURATION *pDebugConfiguration,void *pReserved) {
  5235. This->lpVtbl->SetDebugConfiguration(This,pDebugConfiguration,pReserved);
  5236. }
  5237. #endif
  5238. #endif
  5239. #endif
  5240. #endif /* __IXAudio2_INTERFACE_DEFINED__ */
  5241. #define XAUDIO2_DEBUG_ENGINE (1)
  5242. #define XAUDIO2_VOICE_NOPITCH (2)
  5243. #define XAUDIO2_VOICE_NOSRC (4)
  5244. #define XAUDIO2_VOICE_USEFILTER (8)
  5245. #define XAUDIO2_VOICE_MUSIC (16)
  5246. #define XAUDIO2_PLAY_TAILS (32)
  5247. #define XAUDIO2_END_OF_STREAM (64)
  5248. #define XAUDIO2_SEND_USEFILTER (128)
  5249. #define XAUDIO2_VOICE_NOSAMPLESPLAYED (256)
  5250. #define XAUDIO2_DEFAULT_FILTER_TYPE (LowPassFilter)
  5251. #define XAUDIO2_DEFAULT_FILTER_FREQUENCY (XAUDIO2_MAX_FILTER_FREQUENCY)
  5252. #define XAUDIO2_DEFAULT_FILTER_ONEOVERQ (1.00000000000000)
  5253. #define XAUDIO2_QUANTUM_NUMERATOR (1)
  5254. #define XAUDIO2_QUANTUM_DENOMINATOR (100)
  5255. #define XAUDIO2_QUANTUM_MS ((1000.00000000000 * XAUDIO2_QUANTUM_NUMERATOR) / XAUDIO2_QUANTUM_DENOMINATOR)
  5256. #define XAUDIO2_E_INVALID_CALL ((HRESULT)0x88960001)
  5257. #define XAUDIO2_E_XMA_DECODER_ERROR ((HRESULT)0x88960002)
  5258. #define XAUDIO2_E_XAPO_CREATION_FAILED ((HRESULT)0x88960003)
  5259. #define XAUDIO2_E_DEVICE_INVALIDATED ((HRESULT)0x88960004)
  5260. #define XAUDIO20_E_XMA_DECODER_ERROR ((HRESULT)0x88960001)
  5261. #define XAUDIO20_E_XAPO_CREATION_FAILED ((HRESULT)0x88960002)
  5262. #define XAUDIO20_E_DEVICE_INVALIDATED ((HRESULT)0x88960003)
  5263. #ifdef XAUDIO2_HELPER_FUNCTIONS
  5264. #define _USE_MATH_DEFINES
  5265. #include <math.h>
  5266. inline static float XAudio2DecibelsToAmplitudeRatio(float decibels) { return powf(10.0f, decibels/20.0f); }
  5267. inline static float XAudio2AmplitudeRatioToDecibels(float volume) { if (volume == 0) { return -3.402823466e+38f; } return 20.0f * log10f(volume); }
  5268. inline static float XAudio2SemitonesToFrequencyRatio(float semitones) { return powf(2.0f, semitones/12.0f); }
  5269. inline static float XAudio2FrequencyRatioToSemitones(float freqratio) { return 39.86313713864835f * log10f(freqratio); }
  5270. 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); }
  5271. inline static float XAudio2RadiansToCutoffFrequency(float radians, float samplerate) { return samplerate * asinf(radians/2.0f) / (float)M_PI; }
  5272. #endif
  5273. HRESULT WINAPI XAudio2Create(IXAudio2** pxaudio2, UINT32 flags, XAUDIO2_PROCESSOR processor);
  5274. #include <poppack.h>
  5275. /* Begin additional prototypes for all interfaces */
  5276. /* End additional prototypes */
  5277. #ifdef __cplusplus
  5278. }
  5279. #endif
  5280. #endif /* __xaudio2_h__ */