mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
retrieve sample rate.
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@414 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
2b73e44ee9
commit
ae4c315995
1 changed files with 7 additions and 0 deletions
|
|
@ -747,6 +747,12 @@ static void winsndds_write_process(MSFilter *f){
|
|||
ms_warning("Extra data for sound card removed (%i buf), (playing: %i) (input-output: %i)", discarded, d->nbufs_playing, d->stat_input - d->stat_output);
|
||||
}
|
||||
|
||||
static int get_rate(MSFilter *f, void *arg){
|
||||
WinSndDs *d=(WinSndDs*)f->data;
|
||||
*((int*)arg)=d->wfx.nSamplesPerSec;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int set_rate(MSFilter *f, void *arg){
|
||||
WinSndDs *d=(WinSndDs*)f->data;
|
||||
d->wfx.nSamplesPerSec=*((int*)arg);
|
||||
|
|
@ -777,6 +783,7 @@ static int winsndds_get_stat_discarded(MSFilter *f, void *arg){
|
|||
}
|
||||
|
||||
static MSFilterMethod winsndds_methods[]={
|
||||
{ MS_FILTER_GET_SAMPLE_RATE , get_rate },
|
||||
{ MS_FILTER_SET_SAMPLE_RATE , set_rate },
|
||||
{ MS_FILTER_SET_NCHANNELS , set_nchannels },
|
||||
{ MS_FILTER_GET_STAT_INPUT, winsndds_get_stat_input },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue