|
@@ -612,18 +612,6 @@ cmAdRC_t cmAudDspAlloc( cmCtx_t* ctx, cmAdH_t* hp, cmMsgSendFuncPtr_t cbFunc, vo
|
612
|
612
|
p->curAsCfgIdx = cmInvalidIdx;
|
613
|
613
|
p->ctx = *ctx;
|
614
|
614
|
|
615
|
|
- // notify the client of the available audio system configurations
|
616
|
|
- if((rc = _cmAdSendAudioSysCfgLabels(p)) != kOkAdRC )
|
617
|
|
- goto errLabel;
|
618
|
|
-
|
619
|
|
- // notify the client of the available devices
|
620
|
|
- if((rc = _cmAdSendDeviceLabels(p)) != kOkAdRC)
|
621
|
|
- goto errLabel;
|
622
|
|
-
|
623
|
|
- // notify the client of the available programs
|
624
|
|
- if((rc = _cmAdSendProgramLabels(p)) != kOkAdRC )
|
625
|
|
- goto errLabel;
|
626
|
|
-
|
627
|
615
|
|
628
|
616
|
hp->h = p;
|
629
|
617
|
|
|
@@ -653,6 +641,27 @@ cmAdRC_t cmAudDspFree( cmAdH_t* hp )
|
653
|
641
|
return rc;
|
654
|
642
|
}
|
655
|
643
|
|
|
644
|
+cmAdRC_t cmAudDspSendSetup( cmAdH_t h )
|
|
645
|
+{
|
|
646
|
+ cmAdRC_t rc = kOkAdRC;
|
|
647
|
+ cmAd_t* p = _cmAdHandleToPtr( h );
|
|
648
|
+
|
|
649
|
+ // notify the client of the available audio system configurations
|
|
650
|
+ if((rc = _cmAdSendAudioSysCfgLabels(p)) != kOkAdRC )
|
|
651
|
+ goto errLabel;
|
|
652
|
+
|
|
653
|
+ // notify the client of the available devices
|
|
654
|
+ if((rc = _cmAdSendDeviceLabels(p)) != kOkAdRC)
|
|
655
|
+ goto errLabel;
|
|
656
|
+
|
|
657
|
+ // notify the client of the available programs
|
|
658
|
+ if((rc = _cmAdSendProgramLabels(p)) != kOkAdRC )
|
|
659
|
+ goto errLabel;
|
|
660
|
+
|
|
661
|
+ errLabel:
|
|
662
|
+ return rc;
|
|
663
|
+}
|
|
664
|
+
|
656
|
665
|
bool cmAudDspIsValid( cmAdH_t h )
|
657
|
666
|
{ return h.h != NULL; }
|
658
|
667
|
|