Commit c1b36f85 authored by Ghislain MARY's avatar Ghislain MARY

Add get number of channels method to the Mac OS X audio unit filter.

parent 3078bac7
......@@ -767,10 +767,17 @@ static int set_nchannels(MSFilter *f, void *arg){
return 0;
}
static int get_nchannels(MSFilter *f, void *data) {
au_filter_base_t *d=(au_filter_base_t *)f->data;
*(int *)data = d->card->nchannels;
return 0;
}
static MSFilterMethod au_methods[]={
{ MS_FILTER_SET_SAMPLE_RATE , set_rate },
{ MS_FILTER_GET_SAMPLE_RATE , get_rate },
{ MS_FILTER_SET_NCHANNELS , set_nchannels },
{ MS_FILTER_GET_NCHANNELS , get_nchannels },
{ 0 , NULL }
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment