Mercurial > pidgin
comparison src/mediastreamer/msosswrite.c @ 12029:1c771536a032
[gaim-migrate @ 14322]
This _compiles_ for me now. Theres still a bunch of "dereferencing type-punned pointer will break strict-aliasing rules" warning and some redefinition warnings from the various config.h's. The deferencing warnings look like a BE<->LE hack but I left them untouched for the time being.
committer: Tailor Script <tailor@pidgin.im>
author | Gary Kramlich <grim@reaperworld.com> |
---|---|
date | Wed, 09 Nov 2005 09:57:33 +0000 |
parents | e67993da8a22 |
children |
comparison
equal
deleted
inserted
replaced
12028:b0ad08e1d492 | 12029:1c771536a032 |
---|---|
69 case MS_FILTER_PROPERTY_FREQ: | 69 case MS_FILTER_PROPERTY_FREQ: |
70 f->freq=((gint*)value)[0]; | 70 f->freq=((gint*)value)[0]; |
71 break; | 71 break; |
72 case MS_FILTER_PROPERTY_CHANNELS: | 72 case MS_FILTER_PROPERTY_CHANNELS: |
73 f->channels=((gint*)value)[0]; | 73 f->channels=((gint*)value)[0]; |
74 break; | |
75 case MS_FILTER_PROPERTY_BITRATE: | |
76 case MS_FILTER_PROPERTY_FMTP: | |
77 default: | |
74 break; | 78 break; |
75 } | 79 } |
76 return 0; | 80 return 0; |
77 } | 81 } |
78 | 82 |
129 snd_card_write(f->sndcard,p,gran); | 133 snd_card_write(f->sndcard,p,gran); |
130 } | 134 } |
131 | 135 |
132 void ms_oss_write_start(MSOssWrite *w) | 136 void ms_oss_write_start(MSOssWrite *w) |
133 { | 137 { |
134 gint bsize; | 138 /* gint bsize; */ |
135 g_return_if_fail(w->devid!=-1); | 139 g_return_if_fail(w->devid!=-1); |
136 w->sndcard=snd_card_manager_get_card(snd_card_manager,w->devid); | 140 w->sndcard=snd_card_manager_get_card(snd_card_manager,w->devid); |
137 g_return_if_fail(w->sndcard!=NULL); | 141 g_return_if_fail(w->sndcard!=NULL); |
138 /* open the device for an audio telephony signal with minimum latency */ | 142 /* open the device for an audio telephony signal with minimum latency */ |
139 snd_card_open_w(w->sndcard,16,w->channels==2,w->freq); | 143 snd_card_open_w(w->sndcard,16,w->channels==2,w->freq); |
140 w->bsize=snd_card_get_bsize(w->sndcard); | 144 w->bsize=snd_card_get_bsize(w->sndcard); |
141 //MS_FILTER(w)->r_mingran=w->bsize; | 145 /* |
142 //ms_sync_set_samples_per_tick(MS_FILTER(w)->sync,bsize); | 146 MS_FILTER(w)->r_mingran=w->bsize; |
147 ms_sync_set_samples_per_tick(MS_FILTER(w)->sync,bsize); | |
148 */ | |
143 } | 149 } |
144 | 150 |
145 void ms_oss_write_stop(MSOssWrite *w) | 151 void ms_oss_write_stop(MSOssWrite *w) |
146 { | 152 { |
147 g_return_if_fail(w->devid!=-1); | 153 g_return_if_fail(w->devid!=-1); |