using the waveout module.
* ./bootstrap: we ignore comments when parsing makefiles.
* ./modules/audio_filter/converter/fixed32tofloat32.c: changed this module
so that it also does float32tofixed32.
* ./modules/*: ported a few other modules to WinCE (most of the time it's
just a #include <errno.h> that needs to be removed).
#! /bin/sh
## bootstrap file for vlc, the VideoLAN Client
-## $Id: bootstrap,v 1.30 2002/11/20 08:58:20 sam Exp $
+## $Id: bootstrap,v 1.31 2002/11/20 16:43:32 sam Exp $
##
## Authors: Samuel Hocevar <sam@zoy.org>
# this is an attempt at getting a list of plugin sources... we take the
# production and remove everything that does not contain "module", which
# means you miss $(NULL), but other variables too.
- cfiles=`awk 'BEGIN{a=0}{if(!a&&/^SOURCES_'${plugin}'[^-_a-zA-Z0-9]*=/){a=1;print$0;next;}if(a){if(/^[a-zA-Z]/){exit;}print $0}}' < ${makefile} | tr '\\ ' '\n\n' | sed -ne 's,/,\\\\,g; s/.*modules/modules/p'`
+ cfiles=`grep -v '[^-_a-zA-Z0-9]*#' ${makefile} | awk 'BEGIN{a=0}{if(!a&&/^SOURCES_'${plugin}'[^-_a-zA-Z0-9]*=/){a=1;print$0;next;}if(a){if(/^[a-zA-Z]/){exit;}print $0}}' | tr '\\ ' '\n\n' | sed -ne 's,/,\\\\,g; s/.*modules/modules/p'`
hfiles=`for i in ${cfiles} ; do echo $i ; done | grep '\.h$'`
cfiles=`for i in ${cfiles} ; do echo $i ; done | grep -v '\.h$'`
for dir in evc msvc
* vlc.c: the vlc player, WinCE version
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: vlc.c,v 1.3 2002/11/20 13:37:35 sam Exp $
+ * $Id: vlc.c,v 1.4 2002/11/20 16:43:32 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
{
int i_ret;
int i_argc = 5;
- char * ppsz_argv[] = { lpCmdLine, "-vv", "--intf", "dummy", "shovel.mpeg", NULL };
+ char * ppsz_argv[] = { lpCmdLine, "-vv", "--intf", "dummy", "shovel.mpeg", /*"washington.mpeg",*/ NULL };
HWND window;
MSG message;
\r
###############################################################################\r
\r
+Project: "plugin_fixed32tofloat32"=.\plugin_fixed32tofloat32.vcp - Package Owner=<4>\r
+\r
+Package=<5>\r
+{{{\r
+}}}\r
+\r
+Package=<4>\r
+{{{\r
+}}}\r
+\r
+###############################################################################\r
+\r
+Project: "plugin_fixed32tos16"=.\plugin_fixed32tos16.vcp - Package Owner=<4>\r
+\r
+Package=<5>\r
+{{{\r
+}}}\r
+\r
+Package=<4>\r
+{{{\r
+}}}\r
+\r
+###############################################################################\r
+\r
Project: "plugin_i420_rgb"=.\plugin_i420_rgb.vcp - Package Owner=<4>\r
\r
Package=<5>\r
\r
###############################################################################\r
\r
+Project: "plugin_linear_resampler"=.\plugin_linear_resampler.vcp - Package Owner=<4>\r
+\r
+Package=<5>\r
+{{{\r
+}}}\r
+\r
+Package=<4>\r
+{{{\r
+}}}\r
+\r
+###############################################################################\r
+\r
Project: "plugin_memcpy"=.\plugin_memcpy.vcp - Package Owner=<4>\r
\r
Package=<5>\r
\r
###############################################################################\r
\r
+Project: "plugin_trivial_channel_mixer"=.\plugin_trivial_channel_mixer.vcp - Package Owner=<4>\r
+\r
+Package=<5>\r
+{{{\r
+}}}\r
+\r
+Package=<4>\r
+{{{\r
+}}}\r
+\r
+###############################################################################\r
+\r
+Project: "plugin_trivial_mixer"=.\plugin_trivial_mixer.vcp - Package Owner=<4>\r
+\r
+Package=<5>\r
+{{{\r
+}}}\r
+\r
+Package=<4>\r
+{{{\r
+}}}\r
+\r
+###############################################################################\r
+\r
+Project: "plugin_trivial_resampler"=.\plugin_trivial_resampler.vcp - Package Owner=<4>\r
+\r
+Package=<5>\r
+{{{\r
+}}}\r
+\r
+Package=<4>\r
+{{{\r
+}}}\r
+\r
+###############################################################################\r
+\r
Project: "plugin_ts"=.\plugin_ts.vcp - Package Owner=<4>\r
\r
Package=<5>\r
\r
###############################################################################\r
\r
+Project: "plugin_vout_directx"=.\plugin_vout_directx.vcp - Package Owner=<4>\r
+\r
+Package=<5>\r
+{{{\r
+}}}\r
+\r
+Package=<4>\r
+{{{\r
+}}}\r
+\r
+###############################################################################\r
+\r
+Project: "plugin_waveout"=.\plugin_waveout.vcp - Package Owner=<4>\r
+\r
+Package=<5>\r
+{{{\r
+}}}\r
+\r
+Package=<4>\r
+{{{\r
+}}}\r
+\r
+###############################################################################\r
+\r
Project: "vlc"=.\vlc.vcp - Package Owner=<4>\r
\r
Package=<5>\r
* trivial.c : trivial channel mixer plug-in (drops unwanted channels)
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: trivial.c,v 1.6 2002/11/14 22:38:46 massiot Exp $
+ * $Id: trivial.c,v 1.7 2002/11/20 16:43:32 sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <errno.h>
#include <stdlib.h> /* malloc(), free() */
#include <string.h>
* fixed32float32.c : converter from fixed32 to float32 bits integer
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: fixed32tofloat32.c,v 1.10 2002/10/15 23:10:54 massiot Exp $
+ * $Id: fixed32tofloat32.c,v 1.11 2002/11/20 16:43:32 sam Exp $
*
* Authors: Jean-Paul Saman <jpsaman@wxs.nl>
*
/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <errno.h>
#include <stdlib.h> /* malloc(), free() */
#include <string.h>
/*****************************************************************************
* Local prototypes
*****************************************************************************/
-static int Create ( vlc_object_t * );
+static int Create ( vlc_object_t * );
-static void DoWork ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,
- aout_buffer_t * );
+static void FixedToFloat ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,
+ aout_buffer_t * );
+static void FloatToFixed ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,
+ aout_buffer_t * );
/*****************************************************************************
* Module descriptor
*****************************************************************************/
vlc_module_begin();
- set_description( _("audio filter for fixed32->float32 conversion") );
+ set_description( _("audio filter for fixed32<->float32 conversion") );
set_capability( "audio filter", 10 );
set_callbacks( Create, NULL );
vlc_module_end();
{
aout_filter_t * p_filter = (aout_filter_t *)p_this;
- if ( p_filter->input.i_format != VLC_FOURCC('f','i','3','2')
- || p_filter->output.i_format != VLC_FOURCC('f','l','3','2') )
+ if( ( p_filter->input.i_format != VLC_FOURCC('f','i','3','2')
+ || p_filter->output.i_format != VLC_FOURCC('f','l','3','2') )
+ && ( p_filter->input.i_format != VLC_FOURCC('f','l','3','2')
+ || p_filter->output.i_format != VLC_FOURCC('f','i','3','2') ) )
{
return -1;
}
return -1;
}
- p_filter->pf_do_work = DoWork;
+ if( p_filter->input.i_format == VLC_FOURCC('f','i','3','2') )
+ {
+ p_filter->pf_do_work = FixedToFloat;
+ }
+ else
+ {
+ p_filter->pf_do_work = FloatToFixed;
+ }
+
p_filter->b_in_place = 1;
return 0;
}
/*****************************************************************************
- * DoWork: convert a buffer
+ * FixedToFloat: convert a buffer
*****************************************************************************/
-static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
- aout_buffer_t * p_in_buf, aout_buffer_t * p_out_buf )
+static void FixedToFloat( aout_instance_t * p_aout, aout_filter_t * p_filter,
+ aout_buffer_t * p_in_buf, aout_buffer_t * p_out_buf )
{
int i;
vlc_fixed_t * p_in = (vlc_fixed_t *)p_in_buf->p_buffer;
p_out_buf->i_nb_bytes = p_in_buf->i_nb_bytes;
}
+/*****************************************************************************
+ * FloatToFixed: convert a buffer
+ *****************************************************************************/
+static void FloatToFixed( aout_instance_t * p_aout, aout_filter_t * p_filter,
+ aout_buffer_t * p_in_buf, aout_buffer_t * p_out_buf )
+{
+ int i;
+ float * p_in = (float *)p_in_buf->p_buffer;
+ vlc_fixed_t * p_out = (vlc_fixed_t *)p_out_buf->p_buffer;
+
+ for ( i = p_in_buf->i_nb_samples
+ * aout_FormatNbChannels( &p_filter->input ) ; i-- ; )
+ {
+ *p_out++ = (vlc_fixed_t)( *p_in++ * (float)FIXED32_ONE );
+ }
+
+ p_out_buf->i_nb_samples = p_in_buf->i_nb_samples;
+ p_out_buf->i_nb_bytes = p_in_buf->i_nb_bytes;
+}
+
* fixed32tos16.c : converter from fixed32 to signed 16 bits integer
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: fixed32tos16.c,v 1.7 2002/10/15 23:10:54 massiot Exp $
+ * $Id: fixed32tos16.c,v 1.8 2002/11/20 16:43:32 sam Exp $
*
* Authors: Jean-Paul Saman <jpsaman@wxs.nl>
*
/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <errno.h>
#include <stdlib.h> /* malloc(), free() */
#include <string.h>
* float32tos16.c : converter from float32 to signed 16 bits integer
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: float32tos16.c,v 1.11 2002/10/15 23:10:54 massiot Exp $
+ * $Id: float32tos16.c,v 1.12 2002/11/20 16:43:32 sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <errno.h>
#include <stdlib.h> /* malloc(), free() */
#include <string.h>
* float32tos8.c : converter from float32 to signed 8 bits integer
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: float32tos8.c,v 1.6 2002/10/15 23:10:54 massiot Exp $
+ * $Id: float32tos8.c,v 1.7 2002/11/20 16:43:32 sam Exp $
*
* Authors: Xavier Maillard <zedek@fxgsproject.org>
*
/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <errno.h>
#include <stdlib.h> /* malloc(), free() */
#include <string.h>
* float32tou16.c : converter from float32 to unsigned 16 bits integer
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: float32tou16.c,v 1.6 2002/10/15 23:10:54 massiot Exp $
+ * $Id: float32tou16.c,v 1.7 2002/11/20 16:43:32 sam Exp $
*
* Authors: Xavier Maillard <zedek@fxgsproject.org>
*
/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <errno.h>
#include <stdlib.h> /* malloc(), free() */
#include <string.h>
* float32tou8.c : converter from float32 to unsigned 8 bits integer
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: float32tou8.c,v 1.6 2002/10/15 23:10:54 massiot Exp $
+ * $Id: float32tou8.c,v 1.7 2002/11/20 16:43:32 sam Exp $
*
* Authors: Xavier Maillard <zedek@fxgsproject.org>
*
/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <errno.h>
#include <stdlib.h> /* malloc(), free() */
#include <string.h>
* s16tofloat32.c : converter from signed 16 bits integer to float32
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: s16tofloat32.c,v 1.4 2002/10/15 23:10:54 massiot Exp $
+ * $Id: s16tofloat32.c,v 1.5 2002/11/20 16:43:32 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <errno.h>
#include <stdlib.h> /* malloc(), free() */
#include <string.h>
* with endianness change
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: s16tofloat32swab.c,v 1.7 2002/10/15 23:10:54 massiot Exp $
+ * $Id: s16tofloat32swab.c,v 1.8 2002/11/20 16:43:32 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Henri Fallon <henri@videolan.org>
/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <errno.h>
#include <stdlib.h> /* malloc(), free() */
#include <string.h>
* s8tofloat32.c : converter from signed 8 bits integer to float32.
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: s8tofloat32.c,v 1.1 2002/11/08 14:23:49 gbazin Exp $
+ * $Id: s8tofloat32.c,v 1.2 2002/11/20 16:43:32 sam Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <errno.h>
#include <stdlib.h> /* malloc(), free() */
#include <string.h>
* u8tofloat32.c : converter from unsigned 8 bits integer to float32.
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: u8tofloat32.c,v 1.2 2002/11/18 15:19:26 gbazin Exp $
+ * $Id: u8tofloat32.c,v 1.3 2002/11/20 16:43:32 sam Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <errno.h>
#include <stdlib.h> /* malloc(), free() */
#include <string.h>
* linear.c : linear interpolation resampler
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: linear.c,v 1.5 2002/11/15 00:41:00 gbazin Exp $
+ * $Id: linear.c,v 1.6 2002/11/20 16:43:32 sam Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Sigmund Augdal <sigmunau@idi.ntnu.no>
/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <errno.h>
#include <stdlib.h> /* malloc(), free() */
#include <string.h>
* trivial.c : trivial resampler (skips samples or pads with zeroes)
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: trivial.c,v 1.9 2002/11/14 22:38:46 massiot Exp $
+ * $Id: trivial.c,v 1.10 2002/11/20 16:43:32 sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <errno.h>
#include <stdlib.h> /* malloc(), free() */
#include <string.h>
* ugly.c : ugly resampler (changes pitch)
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: ugly.c,v 1.6 2002/11/14 22:38:46 massiot Exp $
+ * $Id: ugly.c,v 1.7 2002/11/20 16:43:32 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <errno.h>
#include <stdlib.h> /* malloc(), free() */
#include <string.h>
* float32.c : precise float32 audio mixer implementation
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: float32.c,v 1.7 2002/11/14 22:38:47 massiot Exp $
+ * $Id: float32.c,v 1.8 2002/11/20 16:43:33 sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <errno.h>
#include <stdlib.h> /* malloc(), free() */
#include <string.h>
* spdif.c : dummy mixer for S/PDIF output (1 input only)
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: spdif.c,v 1.7 2002/09/28 13:05:16 massiot Exp $
+ * $Id: spdif.c,v 1.8 2002/11/20 16:43:33 sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <errno.h>
#include <stdlib.h> /* malloc(), free() */
#include <string.h>
* trivial.c : trivial mixer plug-in (1 input, no downmixing)
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: trivial.c,v 1.10 2002/10/15 23:10:54 massiot Exp $
+ * $Id: trivial.c,v 1.11 2002/11/20 16:43:33 sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <errno.h>
#include <stdlib.h> /* malloc(), free() */
#include <string.h>
* waveout.c : Windows waveOut plugin for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: waveout.c,v 1.11 2002/11/15 16:27:10 gbazin Exp $
+ * $Id: waveout.c,v 1.12 2002/11/20 16:43:33 sam Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <errno.h> /* ENOMEM */
-#include <fcntl.h> /* open(), O_WRONLY */
#include <string.h> /* strerror() */
-
#include <stdlib.h> /* calloc(), malloc(), free() */
#include <vlc/vlc.h>
p_aout->output.p_sys->i_buffer_size = FRAME_SIZE *
p_aout->output.output.i_bytes_per_frame;
/* Allocate silence buffer */
+#ifndef UNDER_CE
p_aout->output.p_sys->p_silence_buffer =
calloc( p_aout->output.p_sys->i_buffer_size, 1 );
+#else
+ p_aout->output.p_sys->p_silence_buffer =
+ malloc( p_aout->output.p_sys->i_buffer_size );
+#endif
if( p_aout->output.p_sys->p_silence_buffer == NULL )
{
msg_Err( p_aout, "out of memory" );
return 1;
}
+#ifdef UNDER_CE
+ memset( p_aout->output.p_sys->p_silence_buffer, 0,
+ p_aout->output.p_sys->i_buffer_size );
+#endif
/* We need to kick off the playback in order to have the callback properly
* working */
/* Open the device */
result = waveOutOpen( &p_aout->output.p_sys->h_waveout, WAVE_MAPPER,
&p_aout->output.p_sys->waveformat,
+#ifndef UNDER_CE
(DWORD_PTR)WaveOutCallback, (DWORD_PTR)p_aout,
+#else
+ (DWORD)WaveOutCallback, (DWORD)p_aout,
+#endif
CALLBACK_FUNCTION );
if( result == WAVERR_BADFORMAT )
{
/* Use silence buffer instead */
p_waveheader->lpData = p_aout->output.p_sys->p_silence_buffer;
+#ifndef UNDER_CE
p_waveheader->dwUser = (DWORD_PTR)p_buffer;
+#else
+ p_waveheader->dwUser = (DWORD)p_buffer;
+#endif
p_waveheader->dwBufferLength = p_aout->output.p_sys->i_buffer_size;
p_waveheader->dwFlags = 0;
#define IDM_FILE_EXIT 40002\r
#define IDM_HELP_ABOUT 40003\r
#define IDM_PLOP 40004\r
+#define ID_VIEW_PLAYLIST 40005\r
+#define ID_VIEW_MESSAGES 40006\r
+#define ID_SETTINGS_AUDIO 40007\r
+#define ID_SETTINGS_SUBTITLES 40008\r
+#define ID_SETTINGS 40011\r
+#define ID_FILE_OPENFILE 40012\r
+#define ID_FILE_NETWORKSTREAM 40013\r
\r
// Next default values for new objects\r
// \r
#ifdef APSTUDIO_INVOKED\r
#ifndef APSTUDIO_READONLY_SYMBOLS\r
#define _APS_NEXT_RESOURCE_VALUE 104\r
-#define _APS_NEXT_COMMAND_VALUE 40005\r
+#define _APS_NEXT_COMMAND_VALUE 40014\r
#define _APS_NEXT_CONTROL_VALUE 1001\r
#define _APS_NEXT_SYMED_VALUE 101\r
#endif\r
\r
/////////////////////////////////////////////////////////////////////////////\r
//\r
-// Menubar\r
+// Menu\r
//\r
\r
IDM_MENU MENU DISCARDABLE \r
BEGIN\r
POPUP "&File"\r
BEGIN\r
+ MENUITEM "Open File...", ID_FILE_OPENFILE, GRAYED\r
+ MENUITEM "Network Stream...", ID_FILE_NETWORKSTREAM\r
+ , GRAYED\r
+ MENUITEM SEPARATOR\r
MENUITEM "E&xit", IDM_FILE_EXIT\r
END\r
- MENUITEM "View", 65535\r
- MENUITEM "Settings", 65535\r
+ POPUP "View"\r
+ BEGIN\r
+ MENUITEM "Playlist...", ID_VIEW_PLAYLIST, GRAYED\r
+ MENUITEM "Messages...", ID_VIEW_MESSAGES, GRAYED\r
+ END\r
+ POPUP "Settings"\r
+ BEGIN\r
+ MENUITEM "Audio", ID_SETTINGS_AUDIO, GRAYED\r
+ MENUITEM "Subtitles", ID_SETTINGS_SUBTITLES\r
+ , GRAYED\r
+ MENUITEM SEPARATOR\r
+ MENUITEM "Preferences...", ID_SETTINGS, GRAYED\r
+ END\r
POPUP "&Help"\r
BEGIN\r
- MENUITEM "&About", IDM_HELP_ABOUT\r
+ MENUITEM "&About...", IDM_HELP_ABOUT\r
END\r
END\r
\r
// Dialog\r
//\r
\r
-IDD_ABOUTBOX DIALOGEX 0, 0, 127, 42\r
+IDD_ABOUTBOX DIALOG DISCARDABLE 0, 0, 127, 42\r
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU\r
EXSTYLE 0x80000000L\r
CAPTION "About PocketVLC"\r