Mercurial > mplayer.hg
view Gui/mplayer/widgets.h @ 11511:6e580b901205
original config:
> ao_data.bps=channels*rate;
> if(format != AFMT_U8 && format != AFMT_S8)
> ao_data.bps*=2;
fallback config, before patch:
> ao_data.bps=ao_data.channels * ao_data.samplerate;
since we forced the format to S16_LE in fallback, we should double bps
to be consistent with an original config of the same settings.
author | joey |
---|---|
date | Sun, 23 Nov 2003 17:04:19 +0000 |
parents | edfe34c5405d |
children | 0e1471d9da74 |
line wrap: on
line source
#ifndef __MY_WIDGET #define __MY_WIDGET #include <stdio.h> #include <stdlib.h> #include <gdk/gdkkeysyms.h> #include <gtk/gtk.h> #include "../../config.h" #include "../../osdep/shmem.h" #include "play.h" #include "mplayer.h" #include "../interface.h" #include "../wm/ws.h" #define GTK_MB_SIMPLE 0 #define GTK_MB_MODAL 1 #define GTK_MB_FATAL 2 #define GTK_MB_ERROR 4 #define GTK_MB_WARNING 8 extern GtkWidget * PlayList; extern GtkWidget * Options; extern GtkWidget * PopUpMenu; extern GtkWidget * WarningPixmap; extern GtkWidget * ErrorPixmap; extern GtkWidget * SkinList; extern GtkWidget * gtkMessageBoxText; extern int gtkPopupMenu; extern int gtkPopupMenuParam; extern char * sbMPlayerDirInHome; extern char * sbMPlayerPrefixDir; extern GdkPixmap * gtkIcon; extern GdkBitmap * gtkIconMask; extern Pixmap guiIcon; extern Pixmap guiIconMask; extern void widgetsCreate( void ); extern void gtkInit( void ); extern void gtkAddIcon( GtkWidget * window ); extern int gtkFillSkinList( gchar * dir ); extern void gtkClearList( GtkWidget * list ); extern void gtkSetDefaultToCList( GtkWidget * list,char * item ); extern int gtkFindCList( GtkWidget * list,char * item ); extern void gtkEventHandling( void ); extern void gtkShow( int type,char * param ); extern void gtkMessageBox( int type,gchar * str ); extern void gtkSetLayer( GtkWidget * wdg ); extern void gtkActive( GtkWidget * wdg ); #endif