* AudioOutput.cpp: BeOS audio output
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: AudioOutput.cpp,v 1.29 2003/05/08 10:40:31 titer Exp $
+ * $Id: AudioOutput.cpp,v 1.30 2004/01/26 16:52:31 zorglub Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
{
BSoundPlayer * p_player;
mtime_t latency;
-
+
} aout_sys_t;
/*****************************************************************************
p_aout->output.p_sys = (aout_sys_t*) malloc( sizeof( aout_sys_t ) );
if( p_aout->output.p_sys == NULL )
{
- msg_Err( p_aout, "Not enough memory" );
+ msg_Err( p_aout, "out of memory" );
return -1;
}
aout_sys_t * p_sys = p_aout->output.p_sys;
p_aout->output.output.i_physical_channels
= AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT;
}
-
+
media_raw_audio_format * p_format;
p_format = (media_raw_audio_format*)
malloc( sizeof( media_raw_audio_format ) );
-
+
p_format->channel_count = i_nb_channels;
- p_format->frame_rate = p_aout->output.output.i_rate;
+ p_format->frame_rate = p_aout->output.output.i_rate;
p_format->format = media_raw_audio_format::B_AUDIO_FLOAT;
#ifdef WORDS_BIGENDIAN
p_format->byte_order = B_MEDIA_BIG_ENDIAN;
}
/*****************************************************************************
- * DoNothing
+ * DoNothing
*****************************************************************************/
static void DoNothing( aout_instance_t *p_aout )
{
* beos.cpp : BeOS plugin for vlc
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
- * $Id: BeOS.cpp,v 1.13 2003/11/05 00:39:16 gbazin Exp $
+ * $Id: BeOS.cpp,v 1.14 2004/01/26 16:52:31 zorglub Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
static char * ppsz_screenshotformat[] = { "TGA", "PPM", "PNG", "JPEG", "BMP" };
vlc_module_begin();
- add_bool( "beos-dvdmenus", 0, NULL, "Use DVD Menus", "", VLC_TRUE );
- add_string( "beos-screenshotpath", "/boot/home/", NULL, "Screenshot Path", "", VLC_TRUE );
- add_string( "beos-screenshotformat", "PNG", NULL, "Screenshot Format",
- "", VLC_TRUE );
- change_string_list( ppsz_screenshotformat, 0, 0 );
+ add_bool( "beos-dvdmenus", 0, NULL, _("Use DVD Menus"), "", VLC_TRUE );
+ add_string( "beos-screenshotpath", "/boot/home/", NULL,
+ _("Screenshot Path"), "", VLC_TRUE );
+ add_string( "beos-screenshotformat", "PNG", NULL,
+ _("Screenshot Format"),"", VLC_TRUE );
+ change_string_list( ppsz_screenshotformat, 0, 0 );
set_description( _("BeOS standard API interface") );
set_capability( "interface", 100 );
set_callbacks( E_(OpenIntf), E_(CloseIntf) );
- add_submodule();
+ add_submodule();
set_capability( "video output", 100 );
set_callbacks( E_(OpenVideo), E_(CloseVideo) );
add_submodule();
* Bitmaps.h
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: Bitmaps.h,v 1.2 2002/09/30 18:30:27 titer Exp $
+ * $Id: Bitmaps.h,v 1.3 2004/01/26 16:52:31 zorglub Exp $
*
* Authors: Tony Castley <tcastley@mail.powerup.com.au>
* Stephan Aßmus <stippi@yellowbites.com>
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* DrawingTidbits.cpp
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: DrawingTidbits.cpp,v 1.3 2003/01/24 06:31:56 titer Exp $
+ * $Id: DrawingTidbits.cpp,v 1.4 2004/01/26 16:52:31 zorglub Exp $
*
* Authors: Tony Castley <tcastley@mail.powerup.com.au>
* Stephan Aßmus <stippi@yellowbites.com>
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
inline uchar
ShiftComponent(uchar component, float percent)
{
- // change the color by <percent>, make sure we aren't rounding
- // off significant bits
- if (percent >= 1)
- return (uchar)(component * (2 - percent));
- else
- return (uchar)(255 - percent * (255 - component));
+ // change the color by <percent>, make sure we aren't rounding
+ // off significant bits
+ if (percent >= 1)
+ return (uchar)(component * (2 - percent));
+ else
+ return (uchar)(255 - percent * (255 - component));
}
// ShiftColor
* DrawingTidbits.h
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: DrawingTidbits.h,v 1.2 2002/09/30 18:30:27 titer Exp $
+ * $Id: DrawingTidbits.h,v 1.3 2004/01/26 16:52:31 zorglub Exp $
*
* Authors: Tony Castley <tcastley@mail.powerup.com.au>
* Stephan Aßmus <stippi@yellowbites.com>
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* intf_beos.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: Interface.cpp,v 1.15 2003/06/22 00:40:18 titer Exp $
+ * $Id: Interface.cpp,v 1.16 2004/01/26 16:52:31 zorglub Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
void E_(CloseIntf) ( vlc_object_t *p_this )
{
intf_thread_t *p_intf = (intf_thread_t*) p_this;
-
+
msg_Unsubscribe( p_intf, p_intf->p_sys->p_sub );
/* Destroy the interface window */
{
/* Update VlcWrapper internals (p_input, etc) */
p_intf->p_sys->p_wrapper->UpdateInput();
-
+
/* Manage the slider */
p_intf->p_sys->p_window->UpdateInterface();
* InterfaceWindow.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: InterfaceWindow.cpp,v 1.44 2003/12/22 02:24:52 sam Exp $
+ * $Id: InterfaceWindow.cpp,v 1.45 2004/01/26 16:52:31 zorglub Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
fileMenu->AddItem( new BMenuItem( _AddEllipsis(_("Open Subtitles")),
new BMessage( LOAD_SUBFILE ) ) );
-
+
fileMenu->AddSeparatorItem();
BMenuItem* item = new BMenuItem( _AddEllipsis(_("About")),
new BMessage( B_ABOUT_REQUESTED ), 'A');
/* Add the Show menu */
fShowMenu = new BMenu( _("Window") );
- fShowMenu->AddItem( new BMenuItem( _AddEllipsis(_("Play List")),
+ fShowMenu->AddItem( new BMenuItem( _AddEllipsis(_("Playlist")),
new BMessage( OPEN_PLAYLIST ), 'P') );
fShowMenu->AddItem( new BMenuItem( _AddEllipsis(_("Messages")),
new BMessage( OPEN_MESSAGES ), 'M' ) );
fShowMenu->AddItem( new BMenuItem( _AddEllipsis(_("Preferences")),
new BMessage( OPEN_PREFERENCES ), 'S' ) );
- fMenuBar->AddItem( fShowMenu );
+ fMenuBar->AddItem( fShowMenu );
/* Prepare fow showing */
_SetMenusEnabled( false );
p_mediaControl->SetEnabled( false );
- _RestoreSettings();
+ _RestoreSettings();
Show();
}
}
case TOGGLE_ON_TOP:
break;
-
+
case OPEN_FILE:
_ShowFilePanel( B_REFS_RECEIVED, _("VLC Media Player: Open Media Files") );
break;
_UpdatePlaylist();
}
break;
-
+
case SUBFILE_RECEIVED:
{
entry_ref ref;
}
break;
}
-
+
case STOP_PLAYBACK:
// this currently stops playback not nicely
if (playback_status > UNDEF_S)
/*****************************************************************************
* LanguageMenu::LanguageMenu
*****************************************************************************/
-LanguageMenu::LanguageMenu( const char *name, int menu_kind,
+LanguageMenu::LanguageMenu( const char *name, int menu_kind,
VlcWrapper *p_wrapper )
:BMenu(name)
{
* InterfaceWindow.h: BeOS interface window class prototype
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: InterfaceWindow.h,v 1.14 2003/05/30 17:30:54 titer Exp $
+ * $Id: InterfaceWindow.h,v 1.15 2004/01/26 16:52:31 zorglub Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Tony Castley <tcastley@mail.powerup.com.au>
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
virtual ~TitleMenu();
virtual void AttachedToWindow();
-
+
intf_thread_t *p_intf;
};
PlayListWindow* fPlaylistWindow;
PreferencesWindow* fPreferencesWindow;
BMenuBar* fMenuBar;
- BMenuItem* fGotoMenuMI;
+ BMenuItem* fGotoMenuMI;
BMenuItem* fNextTitleMI;
BMenuItem* fPrevTitleMI;
BMenuItem* fNextChapterMI;
* ListViews.h: BeOS interface list view class implementation
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: ListViews.cpp,v 1.5 2003/02/03 17:18:48 stippi Exp $
+ * $Id: ListViews.cpp,v 1.6 2004/01/26 16:52:31 zorglub Exp $
*
* Authors: Stephan Aßmus <stippi@yellowbites.com>
*
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* ListViews.h: BeOS interface list view class prototype
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: ListViews.h,v 1.4 2003/02/03 17:18:48 stippi Exp $
+ * $Id: ListViews.h,v 1.5 2004/01/26 16:52:31 zorglub Exp $
*
* Authors: Stephan Aßmus <stippi@yellowbites.com>
*
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* MessagesWindow.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: MessagesWindow.cpp,v 1.11 2003/05/18 22:30:33 titer Exp $
+ * $Id: MessagesWindow.cpp,v 1.12 2004/01/26 16:52:31 zorglub Exp $
*
* Authors: Eric Petit <titer@videolan.org>
*
if( fScrollBar->Value() != max )
isScrolling = true;
fScrollBar->UnlockLooper();
-
+
}
int i_start, oldLength;
* MsgVals.h
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: MsgVals.h,v 1.10 2003/12/22 11:08:00 titer Exp $
+ * $Id: MsgVals.h,v 1.11 2004/01/26 16:52:31 zorglub Exp $
*
* Authors: Tony Castley <tcastley@mail.powerup.com.au>
* Stephan Aßmus <stippi@yellowbites.com>
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* PlayListWindow.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: PlayListWindow.cpp,v 1.9 2003/04/22 16:36:16 titer Exp $
+ * $Id: PlayListWindow.cpp,v 1.10 2004/01/26 16:52:31 zorglub Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
p_intf = p_interface;
p_wrapper = p_intf->p_sys->p_wrapper;
- SetName( "playlist" );
+ SetName( _("playlist") );
// set up the main menu bar
fMenuBar = new BMenuBar( BRect(0.0, 0.0, frame.Width(), 15.0), "main menu",
* PlayListWindow.h: BeOS interface window class prototype
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: PlayListWindow.h,v 1.7 2003/02/03 17:18:48 stippi Exp $
+ * $Id: PlayListWindow.h,v 1.8 2004/01/26 16:52:31 zorglub Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Tony Castley <tcastley@mail.powerup.com.au>
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* TransportButton.cpp
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: TransportButton.cpp,v 1.3 2002/10/29 17:33:11 titer Exp $
+ * $Id: TransportButton.cpp,v 1.4 2004/01/26 16:52:31 zorglub Exp $
*
* Authors: Tony Castley <tcastley@mail.powerup.com.au>
* Stephan Aßmus <stippi@yellowbites.com>
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* TransportButton.h
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: TransportButton.h,v 1.2 2002/09/30 18:30:27 titer Exp $
+ * $Id: TransportButton.h,v 1.3 2004/01/26 16:52:31 zorglub Exp $
*
* Authors: Tony Castley <tcastley@mail.powerup.com.au>
*
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the