Commit d7fd65ee authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Fix the issues with changing inNumberFrames when resampling

* Update NEWS and README with info on the new module.
parent e5e9c944
$Id$
Changes between 0.8.1 and 0.8.2-test1:
Changes between 0.8.1 and 0.8.2-test2:
-----------------------------------------------------
Core support:
......@@ -105,6 +105,11 @@ Windows port:
MacOS X port:
* Many Tiger related fixes
* A new audio module that should work more reliable for analog audio output in various configurations.
- Supports multichannel discrete analog output
- Digital audio output requires you to change a preference setting because it
is not yet available in the new module
- Please read the README.MacOSX.rtf file for more information.
BeOS port:
* Support for single-buffered overlay
......@@ -116,7 +121,7 @@ Pocket PC port:
Mozilla Plugin:
* Javascript fixes
* Mozilla plugin for MacOS X is back
* Mozilla plugin for MacOS X is back (not yet distributed)
IE Plugin:
* Brand new Internet Explorer ActiveX plugin
......@@ -133,6 +138,7 @@ Translations:
* Tagalog
* Bengali
Changes between 0.8.0 and 0.8.1:
-----------------------------------------------------
......
......@@ -2,7 +2,7 @@
{\fonttbl\f0\fswiss\fcharset77 Helvetica;\f1\fswiss\fcharset77 Helvetica-Bold;\f2\fmodern\fcharset77 Courier;
}
{\colortbl;\red255\green255\blue255;}
\vieww17160\viewh15400\viewkind0
\vieww9000\viewh9000\viewkind0
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\qc
\f0\fs48 \cf0 VLC media player, version 0.8\
......@@ -15,7 +15,7 @@ Mac OS X-specific information
\cf0 Welcome to the VLC media player! VLC media player is a multi-purpose multimedia tool. It can play DVDs, VCDs or read a stream from the network. It plays DivX/MPEG-4 files (and many other files) and is unaffected by the dreaded .avi bug which can cause choppy sound when playing DivX in QuickTime Player. You can also stream content to the network or a file.\
For a full list of features visit: \ul http://www.videolan.org/vlc/features.html\ulnone \
\
VLC media player was originally developed for GNU/Linux systems, but has been ported to numerous operating systems, including Mac OS X and Win32. Though there probably are bugs, we are always working hard to improve VLC media player and if you think you can help us in any way, please drop us a line: \ul http://www.videolan.org/support/lists.html\
VLC media player was originally developed for GNU/Linux systems, but has been ported to numerous operating systems, including Mac OS X and Win32. Though there probably are bugs, we are always working hard to improve VLC media player and if you think you can help us in any way, please drop us a line: \ul http://www.videolan.org/support/lists.html \ulnone or\ul \
http://forum.videolan.org/\ulnone \
\
The following frequently asked questions are answered below :\
......@@ -33,7 +33,12 @@ The following frequently asked questions are answered below :\
11. How do i get fullscreen video on my other monitor ?\
12. Multiple sound-devices and multi-channel sound?
\f0\b0 \ulnone \
\
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\qj
\f1\b \cf0 \ul \ulc0 13. I have a problem or a feature request \
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\qj
\f0\b0 \cf0 \ulnone \
\
\f1\b \ul 1. How do I install ?
......@@ -98,13 +103,12 @@ Simply drag VLC from the place where you had installed it, to the Trash.\
\f1\b \ul 9. Support for files with subtitles.\
\f0\b0 \ulnone - VLC will autodected subtitle files when they are in the same directory as your movie and contain the movie name.\
- DVD and autodectected subtitles can be enabled trough the Controls->Subtitles menu-item.\
\f0\b0 \ulnone - VLC will autodetect subtitle files when they are in the same directory as your movie and contain the movie's filename.\
- DVD and autodetected subtitles can be enabled trough the Video -> Subtitles Track menu-item.\
- Only Vobsub, MicroDVD, SubRIP, SSA1-4. SAMI and vplayer subtitle files are supported at the moment.\
- You cannot change anything about DVD and Vobsub subtitles.\
- You can add any subtitle files to a video file via the Open.. dialog.\
- A text-encoding and fontsize is automatically chosen, but for some people this can be incorrect. You can change these by using the Open File menu entry and setting the subtitle options when you open a movie.\
- Text subtitles are by default centered. If you want them to be aligned left or right you can change this in Preferences -> Modules -> decoder -> subsdec\
- A text-encoding and fontsize is automatically chosen, but for some people this can be incorrect. You can change these by using the Open File menu entry and setting the subtitle settngs when you open a movie.\
- For Arabic, Hebrew and Japanese etc, you need to select a font compatible with these languages. You can change the default font in Preferences -> Modules -> text-renderer -> freetype\
- You cannot change the font color or the thickness of the outlines.\
\
......@@ -118,21 +122,25 @@ Hold your mouse still on top of an option for just over a second and a ToolTip w
\f1\b \ul 11. How do I get fullscreen video on my other monitor ?
\f0\b0 \ulnone \
If you want to use your second screen for fullscreen playback, then look at the Video->Screen menuitem. You can set this option permanently by going into the Preferences and choosing Modules -> video output -> macosx -> video device (You will need to choose "Show Advanced options" first).\
If you want to use your second screen for fullscreen playback, then look at the Video->Video Device menuitem. You can set this option permanently by going into the Preferences and choosing Interface -> General -> macosx -> video device (You will need to choose "Show Advanced options" first).\
\
\
\f1\b \ul 12. Multiple sound-devices and multi-channel sound? \
\f0\b0 \ulnone Look at the Audio->Device menuitem. You can set this option permanently by going into the Preferences and choosing Modules -> audio output -> coreaudio -> audio device (You will need to choose "Show Advanced options" first).\
- AC3 over SPDIF with M-Audio Sonica Theater does not work. This is most likely a driver bug which has been reported to M-Audio.\
- VLC is known to have lots of problems on G5's. Try going into the preferences -> Modules -> audio output -> coreaudio. Now change the device value from 0 to 1. Choose Save and Quit and restart VLC.\
- Many problems might still exist. Multiple channel audio support is pretty new on Mac OS X and there are many bugs in the system software, the device drivers and probably in VLC media player as well.\
- Someone with CoreAudio knowledge is very much invited to assist is in fixing all the bugs that linger in this area.\
- You should change your speakerlayout in the Audio Midi Setup utility. The program is located in /Applications/Utilities.\
Select your audio device in "Properties For:", then click the "Configure Speakers" button. Choose "Multichannel". Even if these settings are correct, you should change them and click "Apply", then change them back and again click "Apply". This is important, otherwise VLC cannot reliably detect which speakers are connected.\
- We are in a transitional phase for our Mac OS X audio system. Therefore it is currently not possible to use Digital audio without changing a Preferences setting. The setting is in Audio->Output modules. Change this from default to "CoreAudio output". This is the module that was also used in previous versions of VLC. It has several issues with Analog audio, but it also supports Digital audio, which the new module does not yet support. You should ONLY use this module for Digital output.\
\
\
Thanks for reading this file. For additional information and support, please see: \ul http://www.videolan.org/support\ulnone \
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\qj
\f1\b \cf0 \ul \ulc0 13. I have a problem or a feature request \
\f0\b0 \ulnone Your first stop is \ul http://www.videolan.org/doc\ulnone . The documentation on this page can usually help you with your problems. If you cannot find an aswer there then please visit \ul http://forum.videolan.org.\ulnone Use the Search function there and see if someone else might have already answered your question or run into your problem. Feature requests can also be made in the Request forum.\
\
For additional information and support, please see: \ul http://www.videolan.org/support\ulnone \
-- \
Christophe Massiot and\
Derk-Jan Hartman for the VideoLAN team.\
$Id$}
\ No newline at end of file
......@@ -46,6 +46,7 @@
sfm.mFramesPerPacket, sfm.mBytesPerFrame, \
sfm.mChannelsPerFrame, sfm.mBitsPerChannel
#define BUFSIZE 0xffffff
/*****************************************************************************
* aout_sys_t: private audio output method descriptor
......@@ -63,6 +64,12 @@ struct aout_sys_t
Component au_component; /* The Audiocomponent we use */
AudioUnit au_unit; /* The AudioUnit we use */
mtime_t clock_diff;
uint8_t p_remainder_buffer[BUFSIZE];
uint32_t i_read_bytes;
uint32_t i_total_bytes;
audio_date_t end_date_t;
};
/*****************************************************************************
......@@ -426,12 +433,16 @@ static int Open( vlc_object_t * p_this )
msg_Dbg( p_aout, STREAM_FORMAT_MSG( "the actual set AU format is " , DeviceFormat ) );
p_aout->output.i_nb_samples = 2048;
aout_VolumeSoftInit( p_aout );
/* Let's pray for the following operation to be atomic... */
p_sys->clock_diff = - (mtime_t)
AudioConvertHostTimeToNanos( AudioGetCurrentHostTime() ) / 1000;
p_sys->clock_diff += mdate();
p_sys->i_read_bytes = 0;
p_sys->i_total_bytes = 0;
/* set the IOproc callback */
AURenderCallbackStruct input;
......@@ -586,7 +597,7 @@ static int Probe( aout_instance_t * p_aout )
var_AddCallback( p_aout, "audio-device", aout_ChannelsRestart, NULL );
/* attach a Listener so that we are notified of a change in the Device setup */
/*err = AudioHardwareAddPropertyListener( kAudioHardwarePropertyDevices,
/* err = AudioHardwareAddPropertyListener( kAudioHardwarePropertyDevices,
HardwareListener,
(void *)p_aout );
if( err )
......@@ -670,9 +681,9 @@ static OSStatus RenderCallbackAnalog( vlc_object_t *_p_aout,
unsigned int inNumberFrames,
AudioBufferList *ioData )
{
aout_buffer_t * p_buffer;
AudioTimeStamp host_time;
mtime_t current_date = 0;
uint32_t i_mData_bytes = 0;
aout_instance_t * p_aout = (aout_instance_t *)_p_aout;
struct aout_sys_t * p_sys = p_aout->output.p_sys;
......@@ -687,8 +698,6 @@ static OSStatus RenderCallbackAnalog( vlc_object_t *_p_aout,
current_date = p_sys->clock_diff +
AudioConvertHostTimeToNanos( host_time.mHostTime ) / 1000;
p_aout->output.i_nb_samples = inNumberFrames;
if( ioData == NULL && ioData->mNumberBuffers < 1 )
{
msg_Err( p_aout, "no iodata or buffers");
......@@ -697,22 +706,50 @@ static OSStatus RenderCallbackAnalog( vlc_object_t *_p_aout,
if( ioData->mNumberBuffers > 1 )
msg_Err( p_aout, "well this is weird. seems like there is more than one buffer..." );
if( p_sys->i_total_bytes > 0 )
{
i_mData_bytes = __MIN( p_sys->i_total_bytes - p_sys->i_read_bytes, ioData->mBuffers[0].mDataByteSize );
p_aout->p_vlc->pf_memcpy( ioData->mBuffers[0].mData, &p_sys->p_remainder_buffer[p_sys->i_read_bytes], i_mData_bytes );
p_sys->i_read_bytes += i_mData_bytes;
current_date += (mtime_t) ( (mtime_t) 1000000 / p_aout->output.output.i_rate ) *
( i_mData_bytes / 4 / aout_FormatNbChannels( &p_aout->output.output ) ); // 4 is fl32 specific
if( p_sys->i_read_bytes >= p_sys->i_total_bytes )
p_sys->i_read_bytes = p_sys->i_total_bytes = 0;
}
p_buffer = aout_OutputNextBuffer( p_aout, current_date , VLC_FALSE );
if( p_buffer != NULL )
while( i_mData_bytes < ioData->mBuffers[0].mDataByteSize )
{
p_aout->p_vlc->pf_memcpy(ioData->mBuffers[0].mData, p_buffer->p_buffer, __MIN( p_buffer->i_nb_bytes, ioData->mBuffers[0].mDataByteSize ) );
/* We don't have enough data yet */
aout_buffer_t * p_buffer;
p_buffer = aout_OutputNextBuffer( p_aout, current_date , VLC_FALSE );
if( p_buffer != NULL )
{
uint32_t i_second_mData_bytes = __MIN( p_buffer->i_nb_bytes, ioData->mBuffers[0].mDataByteSize - i_mData_bytes );
p_aout->p_vlc->pf_memcpy( (uint8_t *)ioData->mBuffers[0].mData + i_mData_bytes, p_buffer->p_buffer, i_second_mData_bytes );
i_mData_bytes += i_second_mData_bytes;
if( p_buffer->i_nb_bytes != ioData->mBuffers[0].mDataByteSize )
if( i_mData_bytes >= ioData->mBuffers[0].mDataByteSize )
{
p_sys->i_total_bytes = p_buffer->i_nb_bytes - i_second_mData_bytes;
p_aout->p_vlc->pf_memcpy( p_sys->p_remainder_buffer, &p_buffer->p_buffer[i_second_mData_bytes], p_sys->i_total_bytes );
}
else
{
// update current_date
current_date += (mtime_t) ( (mtime_t) 1000000 / p_aout->output.output.i_rate ) *
( i_second_mData_bytes / 4 / aout_FormatNbChannels( &p_aout->output.output ) ); // 4 is fl32 specific
}
aout_BufferFree( p_buffer );
}
else
{
/* FIXME */
//msg_Err( p_aout, "byte sizes don't match %d:%d\nframes: %d, nb_samples: %d", p_buffer->i_nb_bytes, ioData->mBuffers[0].mDataByteSize, inNumberFrames, p_aout->output.i_nb_samples);
p_aout->p_vlc->pf_memset( (uint8_t *)ioData->mBuffers[0].mData +i_mData_bytes, 0, ioData->mBuffers[0].mDataByteSize - i_mData_bytes );
i_mData_bytes += ioData->mBuffers[0].mDataByteSize - i_mData_bytes;
}
aout_BufferFree( p_buffer );
}
else
{
p_aout->p_vlc->pf_memset(ioData->mBuffers[0].mData, 0, ioData->mBuffers[0].mDataByteSize);
}
return( noErr );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment