Commit 2af2ca2e authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Implement MS_FILTER_GET_NCHANNELS method for Windows sound card.

parent 7b759e6f
......@@ -644,6 +644,12 @@ static int set_nchannels(MSFilter *f, void *arg){
return 0;
}
static int get_nchannels(MSFilter *f, void *arg){
WinSnd *d=(WinSnd*)f->data;
*((int*)arg)=d->wfx.nChannels;
return 0;
}
static int winsnd_get_stat_input(MSFilter *f, void *arg){
WinSnd *d=(WinSnd*)f->data;
return d->stat_input;
......@@ -665,6 +671,7 @@ static MSFilterMethod winsnd_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 },
{ MS_FILTER_GET_STAT_INPUT, winsnd_get_stat_input },
{ MS_FILTER_GET_STAT_OUTPUT, winsnd_get_stat_ouptut },
{ MS_FILTER_GET_STAT_DISCARDED, winsnd_get_stat_discarded },
......
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