[FORMATTING] SndRec32 patch by Marco Pagliaricci, bug #4978.

svn path=/trunk/; revision=44387
This commit is contained in:
Dmitry Gorbachev 2009-12-03 19:00:41 +00:00
parent f558c83b1c
commit 99f27439b5
18 changed files with 2053 additions and 2045 deletions

View file

@ -25,6 +25,7 @@
#define _AUDIO_NAMESPACE_START_ namespace snd {
#define _AUDIO_NAMESPACE_END_ };
//
// Platform depend stuff
//

View file

@ -6,7 +6,6 @@
* PROGRAMMERS: Marco Pagliaricci <ms_blue (at) hotmail (dot) it>
*/
#include "stdafx.h"
#include "audio_format.hpp"

View file

@ -9,6 +9,8 @@
#include "stdafx.h"
#include "audio_membuffer.hpp"
_AUDIO_NAMESPACE_START_
@ -505,4 +507,5 @@ bool
return true;
}
_AUDIO_NAMESPACE_END_

View file

@ -9,6 +9,8 @@
#include "stdafx.h"
#include "audio_resampler_acm.hpp"
_AUDIO_NAMESPACE_START_
@ -393,4 +395,5 @@ void
}
_AUDIO_NAMESPACE_END_

View file

@ -6,7 +6,6 @@
* PROGRAMMERS: Marco Pagliaricci <ms_blue (at) hotmail (dot) it>
*/
#include "stdafx.h"
#include "audio_waveout.hpp"
@ -886,4 +885,5 @@ audio_waveout::playing_procedure( LPVOID arg )
return 0;
}
_AUDIO_NAMESPACE_END_

View file

@ -10,6 +10,10 @@
_AUDIO_NAMESPACE_START_
enum audio_waveout_status { WAVEOUT_NOTREADY, WAVEOUT_READY,
WAVEOUT_PLAYING, WAVEOUT_ERR,
WAVEOUT_PAUSED, WAVEOUT_STOP
@ -17,6 +21,9 @@ enum audio_waveout_status { WAVEOUT_NOTREADY, WAVEOUT_READY,
};
class audio_waveout
{

View file

@ -6,8 +6,6 @@
* PROGRAMMERS: Marco Pagliaricci <ms_blue (at) hotmail (dot) it>
*/
#include "stdafx.h"
#include "sndrec32.h"
@ -59,6 +57,7 @@ snd::audio_wavein * AUD_IN;
BOOL s_recording;
int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
@ -75,12 +74,6 @@ int APIENTRY _tWinMain(HINSTANCE hInstance,
InitCommonControls();
butbmps[0] = LoadBitmap( hInstance, MAKEINTRESOURCE( IDB_BITMAP2_START ));
butbmps[1] = LoadBitmap( hInstance, MAKEINTRESOURCE( IDB_BITMAP2_END ));
butbmps[2] = LoadBitmap( hInstance, MAKEINTRESOURCE( IDB_BITMAP2_PLAY ));
@ -120,7 +113,6 @@ int APIENTRY _tWinMain(HINSTANCE hInstance,
isnew = TRUE;
samples_max = AUD_buffer.total_samples();
@ -718,6 +710,20 @@ VOID disable_but( DWORD id )
}
BOOL open_wav( TCHAR * f )
{
@ -734,8 +740,6 @@ BOOL open_wav( TCHAR * f )
DWORD is_read = 0;
file = CreateFile(
f,
GENERIC_READ,
@ -757,7 +761,6 @@ BOOL open_wav( TCHAR * f )
);
return FALSE;
}
@ -774,7 +777,6 @@ BOOL open_wav( TCHAR * f )
CloseHandle( file );
return FALSE;
}
@ -783,7 +785,6 @@ BOOL open_wav( TCHAR * f )
if ( !b )
{
MessageBox(
main_win,
TEXT("Cannot read WAVE header."),
@ -793,7 +794,6 @@ BOOL open_wav( TCHAR * f )
CloseHandle( file );
return FALSE;
}
@ -802,7 +802,6 @@ BOOL open_wav( TCHAR * f )
if ( !b )
{
MessageBox(
main_win,
TEXT("Cannot read WAVE subchunk."),
@ -812,7 +811,6 @@ BOOL open_wav( TCHAR * f )
CloseHandle( file );
return FALSE;
}
bytes_recorded_in_wav = r.chunksize - 36;
@ -829,7 +827,6 @@ BOOL open_wav( TCHAR * f )
CloseHandle( file );
return FALSE;
}
@ -858,7 +855,6 @@ BOOL open_wav( TCHAR * f )
if (( !b ) || ( is_read != bytes_recorded_in_wav ))
{
MessageBox(
main_win,
TEXT("Cannot read file. Error reading audio data."),
@ -870,7 +866,6 @@ BOOL open_wav( TCHAR * f )
AUD_BUF->reset();
return FALSE;
}
CloseHandle( file );