Mercurial > mplayer.hg
annotate Gui/interface.c @ 6759:415be01747ae
added 'priv' field to mpi - requires for tracking frames with different
decoding-displaying order (IPB)
author | arpi |
---|---|
date | Sat, 20 Jul 2002 16:26:49 +0000 |
parents | a31b9f15cbff |
children | 77980ab4e296 |
rev | line source |
---|---|
6280 | 1 |
4845 | 2 #include <inttypes.h> |
3 #include <stdlib.h> | |
4 #include <stdio.h> | |
4818
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4798
diff
changeset
|
5 #include <string.h> |
4798 | 6 |
7 #include "ws.h" | |
8 #include "mplayer/play.h" | |
9 #include "interface.h" | |
6619
f554e7271587
fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents:
6280
diff
changeset
|
10 #include "skin/skin.h" |
6627 | 11 #include "mplayer/gtk/eq.h" |
4818
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4798
diff
changeset
|
12 |
4798 | 13 #include "../mplayer.h" |
4818
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4798
diff
changeset
|
14 #include "mplayer/widgets.h" |
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4798
diff
changeset
|
15 #include "mplayer/mplayer.h" |
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4798
diff
changeset
|
16 #include "app.h" |
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4798
diff
changeset
|
17 #include "../libvo/x11_common.h" |
5789 | 18 #include "../libvo/video_out.h" |
4858 | 19 #include "../input/input.h" |
6619
f554e7271587
fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents:
6280
diff
changeset
|
20 #include "../libao2/audio_out.h" |
6627 | 21 #include "../mixer.h" |
22 #include "../libao2/audio_plugin.h" | |
23 #include "../libao2/eq.h" | |
5789 | 24 |
6280 | 25 #include <inttypes.h> |
26 #include <sys/types.h> | |
27 | |
5665 | 28 #include "../libmpdemux/stream.h" |
5789 | 29 #include "../libmpdemux/demuxer.h" |
4818
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4798
diff
changeset
|
30 |
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4798
diff
changeset
|
31 guiInterface_t guiIntfStruct; |
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4798
diff
changeset
|
32 |
6627 | 33 char * gstrcat( char ** dest,char * src ) |
34 { | |
35 char * tmp = NULL; | |
36 | |
37 if ( !src ) return NULL; | |
38 | |
39 if ( *dest ) | |
40 { | |
41 tmp=malloc( strlen( *dest ) + strlen( src ) + 1 ); | |
42 strcpy( tmp,*dest ); strcat( tmp,src ); free( *dest ); | |
43 } | |
44 else | |
45 { tmp=malloc( strlen( src ) + 1 ); strcpy( tmp,src ); } | |
46 *dest=tmp; | |
47 return tmp; | |
48 } | |
49 | |
6218 | 50 void guiInit( void ) |
4818
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4798
diff
changeset
|
51 { |
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4798
diff
changeset
|
52 memset( &guiIntfStruct,0,sizeof( guiIntfStruct ) ); |
6627 | 53 memset( >kEquChannels,0,sizeof( gtkEquChannels ) ); |
6218 | 54 appInit( (void*)mDisplay ); |
4818
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4798
diff
changeset
|
55 } |
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4798
diff
changeset
|
56 |
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4798
diff
changeset
|
57 void guiDone( void ) |
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4798
diff
changeset
|
58 { |
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4798
diff
changeset
|
59 mp_msg( MSGT_GPLAYER,MSGL_V,"[mplayer] exit.\n" ); |
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4798
diff
changeset
|
60 mplStop(); |
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4798
diff
changeset
|
61 gtkDone(); |
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4798
diff
changeset
|
62 wsXDone(); |
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4798
diff
changeset
|
63 } |
4798 | 64 |
4858 | 65 int guiCMDArray[] = |
66 { | |
67 evLoad, | |
68 evLoadSubtitle, | |
69 evAbout, | |
70 evPlay, | |
71 evStop, | |
72 evPlayList, | |
73 evPreferences, | |
74 evFullScreen, | |
75 evSkinBrowser | |
76 }; | |
77 | |
5789 | 78 typedef struct |
79 { | |
80 demux_stream_t *ds; | |
81 unsigned int format; | |
82 struct codecs_st *codec; | |
83 int inited; | |
84 // output format: | |
85 float timer; | |
86 float fps; | |
87 float frametime; | |
88 int i_bps; | |
89 int disp_w,disp_h; | |
90 } tmp_sh_video_t; | |
91 | |
6619
f554e7271587
fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents:
6280
diff
changeset
|
92 extern ao_functions_t * audio_out; |
6755 | 93 extern vo_functions_t * video_out; |
6619
f554e7271587
fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents:
6280
diff
changeset
|
94 |
4798 | 95 void guiGetEvent( int type,char * arg ) |
96 { | |
6280 | 97 stream_t * stream = (stream_t *) arg; |
5672
1f8b34f1e7c0
ifdef reading dvd args, without it non-dvd compilation fails.
eyck
parents:
5665
diff
changeset
|
98 #ifdef USE_DVDREAD |
5665 | 99 dvd_priv_t * dvdp = (dvd_priv_t *) arg; |
5672
1f8b34f1e7c0
ifdef reading dvd args, without it non-dvd compilation fails.
eyck
parents:
5665
diff
changeset
|
100 #endif |
6619
f554e7271587
fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents:
6280
diff
changeset
|
101 |
4798 | 102 switch ( type ) |
103 { | |
104 case guiXEvent: | |
105 wsEvents( wsDisplay,(XEvent *)arg,NULL ); | |
4818
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4798
diff
changeset
|
106 gtkEventHandling(); |
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4798
diff
changeset
|
107 break; |
4798 | 108 case guiCEvent: |
4963 | 109 switch ( (int)arg ) |
110 { | |
111 case guiSetPlay: guiIntfStruct.Playing=1; mplState(); break; | |
112 case guiSetStop: guiIntfStruct.Playing=0; mplState(); break; | |
113 case guiSetPause: guiIntfStruct.Playing=2; mplState(); break; | |
114 } | |
4818
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4798
diff
changeset
|
115 break; |
5665 | 116 case guiSetState: |
117 mplState(); | |
118 break; | |
119 case guiSetFileName: | |
120 if ( arg ) guiSetFilename( guiIntfStruct.Filename,arg ); | |
121 break; | |
5789 | 122 case guiSetAudioOnly: |
123 guiIntfStruct.AudioOnly=(int)arg; | |
124 if ( (int)arg ) wsVisibleWindow( &appMPlayer.subWindow,wsHideWindow ); | |
125 else wsVisibleWindow( &appMPlayer.subWindow,wsShowWindow ); | |
126 break; | |
127 case guiReDrawSubWindow: | |
128 wsPostRedisplay( &appMPlayer.subWindow ); | |
5956 | 129 if ( guiIntfStruct.Playing == 1 ) wsSetBackgroundRGB( &appMPlayer.subWindow,0,0,0 ); |
5789 | 130 break; |
131 case guiSetShVideo: | |
132 { | |
5986 | 133 if ( !appMPlayer.subWindow.isFullScreen ) |
134 { | |
135 wsResizeWindow( &appMPlayer.subWindow,vo_dwidth,vo_dheight ); | |
136 wsMoveWindow( &appMPlayer.subWindow,True,appMPlayer.sub.x,appMPlayer.sub.y ); | |
137 } | |
5955
caac20b1ca79
fix xmga fs, resize to movie size and mouse auto hide + dga
pontscho
parents:
5945
diff
changeset
|
138 guiIntfStruct.MovieWidth=vo_dwidth; |
5997
b5fb9a927bf3
add WM detection, and wm specific fullscreen code. (???)
pontscho
parents:
5986
diff
changeset
|
139 guiIntfStruct.MovieHeight=vo_dheight; |
5789 | 140 } |
141 break; | |
5665 | 142 #ifdef USE_DVDREAD |
143 case guiSetDVD: | |
144 guiIntfStruct.DVD.titles=dvdp->vmg_file->tt_srpt->nr_of_srpts; | |
145 guiIntfStruct.DVD.chapters=dvdp->vmg_file->tt_srpt->title[dvd_title].nr_of_ptts; | |
146 guiIntfStruct.DVD.angles=dvdp->vmg_file->tt_srpt->title[dvd_title].nr_of_angles; | |
147 guiIntfStruct.DVD.nr_of_audio_channels=dvdp->nr_of_channels; | |
148 memcpy( guiIntfStruct.DVD.audio_streams,dvdp->audio_streams,sizeof( dvdp->audio_streams ) ); | |
149 guiIntfStruct.DVD.nr_of_subtitles=dvdp->nr_of_subtitles; | |
150 memcpy( guiIntfStruct.DVD.subtitles,dvdp->subtitles,sizeof( dvdp->subtitles ) ); | |
151 guiIntfStruct.DVD.current_title=dvd_title + 1; | |
152 guiIntfStruct.DVD.current_chapter=dvd_chapter + 1; | |
153 guiIntfStruct.DVD.current_angle=dvd_angle + 1; | |
154 guiIntfStruct.Track=dvd_title + 1; | |
155 break; | |
156 #endif | |
6280 | 157 case guiSetStream: |
158 guiIntfStruct.StreamType=stream->type; | |
159 switch( stream->type ) | |
160 { | |
161 case STREAMTYPE_DVD: | |
162 guiGetEvent( guiSetDVD,(char *)stream->priv ); | |
163 break; | |
164 #ifdef HAVE_VCD | |
165 case STREAMTYPE_VCD: | |
166 { | |
167 int i; | |
168 for ( i=1;i < 100;i++ ) | |
169 if ( vcd_seek_to_track( stream->fd,i ) < 0 ) break; | |
170 vcd_seek_to_track( stream->fd,vcd_track ); | |
171 guiIntfStruct.VCDTracks=--i; | |
172 mp_msg( MSGT_GPLAYER,MSGL_INFO,"[interface] vcd tracks: %d\n",guiIntfStruct.VCDTracks ); | |
173 guiIntfStruct.Track=vcd_track; | |
174 break; | |
175 } | |
176 #endif | |
177 } | |
178 break; | |
5120 | 179 #ifdef HAVE_NEW_INPUT |
4858 | 180 case guiIEvent: |
181 printf( "cmd: %d\n",(int)arg ); | |
182 switch( (int)arg ) | |
183 { | |
184 case MP_CMD_QUIT: | |
185 mplEventHandling( evExit,0 ); | |
186 break; | |
187 case MP_CMD_VO_FULLSCREEN: | |
188 mplEventHandling( evFullScreen,0 ); | |
189 break; | |
190 default: | |
191 mplEventHandling( guiCMDArray[ (int)arg - MP_CMD_GUI_EVENTS - 1 ],0 ); | |
192 } | |
193 break; | |
5120 | 194 #endif |
6280 | 195 case guiClearStruct: |
196 #ifdef USE_DVDREAD | |
197 if ( (unsigned int)arg & guiDVD ) memset( &guiIntfStruct.DVD,0,sizeof( guiDVDStruct ) ); | |
198 #endif | |
199 #ifdef HAVE_VCD | |
200 if ( (unsigned int)arg & guiVCD ) guiIntfStruct.VCDTracks=0; | |
201 #endif | |
202 break; | |
6619
f554e7271587
fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents:
6280
diff
changeset
|
203 case guiReDraw: |
f554e7271587
fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents:
6280
diff
changeset
|
204 mplEventHandling( evRedraw,0 ); |
f554e7271587
fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents:
6280
diff
changeset
|
205 break; |
f554e7271587
fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents:
6280
diff
changeset
|
206 case guiSetVolume: |
f554e7271587
fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents:
6280
diff
changeset
|
207 if ( audio_out ) |
f554e7271587
fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents:
6280
diff
changeset
|
208 { |
f554e7271587
fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents:
6280
diff
changeset
|
209 float l,r; |
f554e7271587
fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents:
6280
diff
changeset
|
210 mixer_getvolume( &l,&r ); |
f554e7271587
fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents:
6280
diff
changeset
|
211 guiIntfStruct.Volume=(r>l?r:l); |
f554e7271587
fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents:
6280
diff
changeset
|
212 if ( r != l ) guiIntfStruct.Balance=( ( r - l ) + 100 ) * 0.5f; |
6627 | 213 else guiIntfStruct.Balance=50.0f; |
6619
f554e7271587
fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents:
6280
diff
changeset
|
214 btnModify( evSetVolume,guiIntfStruct.Volume ); |
f554e7271587
fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents:
6280
diff
changeset
|
215 btnModify( evSetBalance,guiIntfStruct.Balance ); |
f554e7271587
fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents:
6280
diff
changeset
|
216 } |
6627 | 217 |
218 if ( gtkEnableAudioEqualizer ) | |
219 { | |
220 equalizer_t eq; | |
221 int i,j; | |
222 for ( i=0;i<6;i++ ) | |
223 for ( j=0;j<10;j++ ) | |
224 { | |
225 eq.channel=i; eq.band=j; eq.gain=gtkEquChannels[i][j]; | |
226 gtkSet( gtkSetEqualizer,0,&eq ); | |
227 } | |
228 } | |
229 break; | |
230 case guiSetDefaults: | |
231 #if defined( HAVE_VCD ) || defined( USE_DVDREAD ) | |
232 if ( guiIntfStruct.DiskChanged ) | |
233 { | |
6651 | 234 /* |
6627 | 235 #ifdef USE_DVDREAD |
236 switch ( guiIntfStruct.StreamType ) | |
237 { | |
238 case STREAMTYPE_DVD: filename=DEFAULT_DVD_DEVICE; break; | |
239 } | |
240 #endif | |
6651 | 241 */ |
6627 | 242 guiIntfStruct.DiskChanged=0; |
243 guiGetEvent( guiCEvent,(char *)guiSetPlay ); | |
244 } | |
245 #endif | |
246 | |
247 #ifdef USE_SUB | |
248 if ( guiIntfStruct.SubtitleChanged || !guiIntfStruct.FilenameChanged ) | |
249 { | |
250 if ( ( guiIntfStruct.Subtitlename )&&( guiIntfStruct.Subtitlename[0] != 0 ) ) sub_name=guiIntfStruct.Subtitlename; | |
251 guiIntfStruct.SubtitleChanged=0; | |
252 } | |
253 #endif | |
254 | |
255 if ( guiIntfStruct.AudioFile ) audio_stream=guiIntfStruct.AudioFile; | |
256 else if ( guiIntfStruct.FilenameChanged ) audio_stream=NULL; | |
257 | |
258 if ( gtkEnableAudioEqualizer ) | |
259 { | |
6755 | 260 if ( ao_plugin_cfg.plugin_list ) { if ( !strstr( ao_plugin_cfg.plugin_list,"eq" ) ) gstrcat( &ao_plugin_cfg.plugin_list,",eq" ); } |
6627 | 261 else gstrcat( &ao_plugin_cfg.plugin_list,"eq" ); |
262 } | |
263 | |
264 break; | |
4798 | 265 } |
266 } | |
267 | |
6619
f554e7271587
fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents:
6280
diff
changeset
|
268 extern unsigned int GetTimerMS( void ); |
f554e7271587
fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents:
6280
diff
changeset
|
269 extern int mplTimer; |
f554e7271587
fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents:
6280
diff
changeset
|
270 |
4798 | 271 void guiEventHandling( void ) |
272 { | |
6619
f554e7271587
fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents:
6280
diff
changeset
|
273 if ( !guiIntfStruct.Playing || guiIntfStruct.AudioOnly ) wsHandleEvents(); |
4818
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4798
diff
changeset
|
274 gtkEventHandling(); |
6619
f554e7271587
fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents:
6280
diff
changeset
|
275 mplTimer=GetTimerMS() / 20; |
4798 | 276 } |
6627 | 277 |
278 // --- | |
279 | |
280 float gtkEquChannels[6][10]; | |
281 | |
6713 | 282 plItem * plCurrent = NULL; |
283 plItem * plList = NULL; | |
284 plItem * plLastPlayed = NULL; | |
285 | |
286 #if defined( MP_DEBUG ) && 0 | |
287 void list( void ) | |
6627 | 288 { |
6713 | 289 plItem * next = plList; |
290 printf( "--- list ---\n" ); | |
291 while( next || next->next ) | |
292 { | |
293 printf( "item: %s/%s\n",next->path,next->name ); | |
294 if ( next->next ) next=next->next; else break; | |
295 } | |
296 printf( "--- end of list ---\n" ); | |
297 } | |
298 #else | |
299 #define list(); | |
300 #endif | |
301 | |
302 void * gtkSet( int cmd,float fparam, void * vparam ) | |
303 { | |
304 mp_cmd_t * mp_cmd = (mp_cmd_t *)calloc( 1,sizeof( *mp_cmd ) ); | |
6627 | 305 equalizer_t * eq = (equalizer_t *)vparam; |
6713 | 306 plItem * item = (plItem *)vparam; |
6627 | 307 |
308 switch ( cmd ) | |
309 { | |
6713 | 310 // --- handle playlist |
6755 | 311 case gtkAddPlItem: // add item to playlist |
6713 | 312 if ( plList ) |
313 { | |
314 plItem * next = plList; | |
315 while ( next->next ) { /*printf( "%s\n",next->name );*/ next=next->next; } | |
316 next->next=item; item->prev=next; | |
317 } | |
318 else { item->prev=item->next=NULL; plCurrent=plList=item; } | |
319 list(); | |
320 return NULL; | |
321 case gtkGetNextPlItem: // get current item from playlist | |
322 if ( plCurrent ) | |
323 { | |
324 plCurrent=plCurrent->next; | |
325 if ( !plCurrent && plList ) | |
326 { | |
327 plItem * next = plList; | |
328 while ( next->next ) { if ( !next->next ) break; next=next->next; } | |
329 plCurrent=next; | |
330 } | |
331 return plCurrent; | |
332 } | |
333 return NULL; | |
334 case gtkGetPrevPlItem: | |
335 if ( plCurrent ) | |
336 { | |
337 plCurrent=plCurrent->prev; | |
338 if ( !plCurrent && plList ) plCurrent=plList; | |
339 return plCurrent; | |
340 } | |
341 break; | |
342 case gtkGetCurrPlItem: // get current item | |
343 return plCurrent; | |
344 case gtkDelPl: // delete list | |
345 { | |
346 plItem * curr = plList; | |
347 plItem * next; | |
348 if ( !plList ) return NULL; | |
349 if ( !curr->next ) | |
350 { | |
351 if ( curr->path ) free( curr->path ); | |
352 if ( curr->name ) free( curr->name ); | |
353 free( curr ); | |
354 } | |
355 else | |
356 { | |
357 while ( curr->next ) | |
358 { | |
359 next=curr->next; | |
360 if ( curr->path ) free( curr->path ); | |
361 if ( curr->name ) free( curr->name ); | |
362 free( curr ); | |
363 curr=next; | |
364 } | |
365 } | |
366 plList=NULL; plCurrent=NULL; | |
367 } | |
368 return NULL; | |
369 // --- set equalizers | |
6627 | 370 case gtkSetContrast: |
371 mp_cmd->id=MP_CMD_CONTRAST; mp_cmd->name=strdup( "contrast" ); | |
372 break; | |
373 case gtkSetBrightness: | |
374 mp_cmd->id=MP_CMD_BRIGHTNESS; mp_cmd->name=strdup( "brightness" ); | |
375 break; | |
376 case gtkSetHue: | |
377 mp_cmd->id=MP_CMD_HUE; mp_cmd->name=strdup( "hue" ); | |
378 break; | |
379 case gtkSetSaturation: | |
380 mp_cmd->id=MP_CMD_SATURATION; mp_cmd->name=strdup( "saturation" ); | |
381 break; | |
382 case gtkSetEqualizer: | |
383 if ( eq ) | |
384 { | |
385 gtkEquChannels[eq->channel][eq->band]=eq->gain; | |
386 audio_plugin_eq.control( AOCONTROL_PLUGIN_EQ_SET_GAIN,(int)eq ); | |
387 } | |
388 else | |
389 { | |
390 int i,j; equalizer_t tmp; tmp.gain=0.0f; | |
391 memset( gtkEquChannels,0,sizeof( gtkEquChannels ) ); | |
392 for ( i=0;i<6;i++ ) | |
393 for ( j=0;j<10;j++ ) | |
394 { tmp.channel=i; tmp.band=j; audio_plugin_eq.control( AOCONTROL_PLUGIN_EQ_SET_GAIN,(int)&tmp ); } | |
395 } | |
6713 | 396 return NULL; |
397 default: free( mp_cmd ); return NULL; | |
6627 | 398 } |
399 mp_cmd->args[0].v.i=(int)fparam; | |
400 mp_cmd->args[1].v.i=1; | |
401 mp_input_queue_cmd( mp_cmd ); | |
6713 | 402 return NULL; |
6627 | 403 } |