mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 04:58:14 +00:00
fix volume control for alsa and add GET_SAMPLE_RATE method
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@451 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
54b4dad454
commit
b44cd79832
1 changed files with 8 additions and 0 deletions
|
|
@ -533,6 +533,13 @@ static void oss_write_process(MSFilter *f){
|
|||
}
|
||||
}
|
||||
|
||||
static int get_rate(MSFilter *f, void *arg){
|
||||
MSSndCard *card=(MSSndCard*)f->data;
|
||||
OssData *d=(OssData*)card->data;
|
||||
*((int*)arg)=d->rate;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int set_rate(MSFilter *f, void *arg){
|
||||
MSSndCard *card=(MSSndCard*)f->data;
|
||||
OssData *d=(OssData*)card->data;
|
||||
|
|
@ -548,6 +555,7 @@ static int set_nchannels(MSFilter *f, void *arg){
|
|||
}
|
||||
|
||||
static MSFilterMethod oss_methods[]={
|
||||
{ MS_FILTER_GET_SAMPLE_RATE , get_rate },
|
||||
{ MS_FILTER_SET_SAMPLE_RATE , set_rate },
|
||||
{ MS_FILTER_SET_NCHANNELS , set_nchannels },
|
||||
{ 0 , NULL }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue