Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

sid2wav.cpp File Reference

#include <iostream.h>
#include <iomanip.h>
#include <fstream.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "player.h"
#include "myendian.h"

Include dependency graph for sid2wav.cpp:

Include dependency graph

Go to the source code of this file.

Compounds

struct  au_hdr
struct  wav_hdr

Defines

#define EXIT_ERROR_STATUS   (-1)

Enumerations

enum  {
  TXT_TITLE, ERR_NOT_ENOUGH_MEMORY, ERR_SYNTAX, ERR_ENGINE,
  ERR_ENDIANESS
}

Functions

void error (char *, char *)
void printtext (int)
void fadeout_buffer_8 (ubyte *, udword)
void fadein_buffer_8 (ubyte *, udword)
void fadeout_buffer_16 (ubyte *, udword)
void fadein_buffer_16 (ubyte *, udword)
void buffer2ulaw (ubyte *samplebuffer, udword samplebuffersize)
void endianswitch_buffer (ubyte *samplebuffer, udword samplebuffersize)
int main (int argc, char *argv[])
int search (int val, short *table, int size)
unsigned char linear2ulaw (int pcm_val)

Variables

const char s2w_version [] = "1.7.2"
const int FLAG_STDIN = 0x01
const int FLAG_ULAW = 0x08
int flags
wav_hdr my_wav_hdr
au_hdr my_au_hdr
int fadein_seconds
int fadein_step
int fadein_count
int fadein_currentlevel
int fadeout_seconds
int fadeout_step
int fadeout_count
int fadeout_currentlevel
int fadelevel
void(* fadeout_buffer )(ubyte *, udword)
void(* fadein_buffer )(ubyte *, udword)
short seg_end [8]
const int BIAS = 0x84


Define Documentation

#define EXIT_ERROR_STATUS   (-1)
 

Definition at line 60 of file sid2wav.cpp.

Referenced by error(), CSidPlayer::InitL(), InitMainL(), main(), and printtext().


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
TXT_TITLE 
ERR_NOT_ENOUGH_MEMORY 
ERR_SYNTAX 
ERR_ENGINE 
ERR_ENDIANESS 

Definition at line 65 of file sid2wav.cpp.


Function Documentation

void buffer2ulaw ubyte samplebuffer,
udword  samplebuffersize
 

Definition at line 933 of file sid2wav.cpp.

References linear2ulaw(), sword, and udword.

Referenced by main().

void endianswitch_buffer ubyte samplebuffer,
udword  samplebuffersize
 

Definition at line 948 of file sid2wav.cpp.

References convertEndianess(), udword, and uword.

Referenced by main().

void error char *  ,
char * 
 

Definition at line 735 of file sid2wav.cpp.

References EXIT_ERROR_STATUS.

void fadein_buffer_16 ubyte ,
udword 
 

Definition at line 711 of file sid2wav.cpp.

References fadein_count, fadein_currentlevel, fadein_step, fadelevel, sdword, sword, and udword.

Referenced by main().

void fadein_buffer_8 ubyte ,
udword 
 

Definition at line 689 of file sid2wav.cpp.

References fadein_count, fadein_currentlevel, fadein_step, fadelevel, sbyte, sword, and udword.

Referenced by main().

void fadeout_buffer_16 ubyte ,
udword 
 

Definition at line 665 of file sid2wav.cpp.

References fadelevel, fadeout_count, fadeout_currentlevel, fadeout_step, sdword, sword, and udword.

Referenced by main().

void fadeout_buffer_8 ubyte ,
udword 
 

Definition at line 643 of file sid2wav.cpp.

References fadelevel, fadeout_count, fadeout_currentlevel, fadeout_step, sbyte, sword, and udword.

Referenced by main().

unsigned char linear2ulaw int  pcm_val  ) 
 

Definition at line 878 of file sid2wav.cpp.

References BIAS, search(), and seg_end.

Referenced by buffer2ulaw().

int main int  argc,
char *  argv[]
 

Definition at line 175 of file sid2wav.cpp.

References sidTuneInfo::authorString, emuConfig::bitsPerSample, wav_hdr::bitspersmpl, buffer2ulaw(), wav_hdr::bytespersec, wav_hdr::bytespersmpl, emuConfig::channels, emuConfig::clockSpeed, convertEndianess(), sidTuneInfo::copyrightString, sidTuneInfo::currentSong, wav_hdr::data_length, emuConfig::emulateFilter, endianswitch_buffer(), ERR_ENDIANESS, ERR_NOT_ENOUGH_MEMORY, ERR_SYNTAX, EXIT_ERROR_STATUS, fadein_buffer, fadein_buffer_16(), fadein_buffer_8(), fadein_count, fadein_currentlevel, fadein_seconds, fadein_step, fadelevel, fadeout_buffer, fadeout_buffer_16(), fadeout_buffer_8(), fadeout_count, fadeout_currentlevel, fadeout_seconds, fadeout_step, FLAG_STDIN, FLAG_ULAW, flags, emuConfig::forceSongSpeed, sidTuneInfo::formatString, emuConfig::frequency, sidTuneInfo::infoString, sidTuneInfo::initAddr, wav_hdr::length, au_hdr::length, sidTuneInfo::loadAddr, emuConfig::memoryMode, wav_hdr::modus, MPU_BANK_SWITCHING, MPU_PLAYSID_ENVIRONMENT, MPU_TRANSPARENT_ROM, my_au_hdr, my_wav_hdr, myEmuEngine, myTune, sidTuneInfo::nameString, sidTuneInfo::numberOfInfoStrings, sidTuneInfo::playAddr, printtext(), emuEngine::returnConfig(), emuConfig::sampleFormat, wav_hdr::samplefreq, selectedSong, emuEngine::setConfig(), sidTune::setInfo(), emuEngine::setVoiceVolume(), SIDEMU_16BIT, SIDEMU_8BIT, SIDEMU_MONO, SIDEMU_SIGNED_PCM, SIDEMU_STEREO, SIDEMU_STEREOSURROUND, SIDEMU_UNSIGNED_PCM, SIDEMU_VOLCONTROL, sidEmuInitializeSong(), sidTuneInfo::songs, sidTuneInfo::speedString, sidTuneInfo::startSong, sidTuneInfo::statusString, TXT_TITLE, ubyte, udword, ulong, uword, emuEngine::verifyEndianess(), and emuConfig::volumeControl.

void printtext int   ) 
 

int search int  val,
short *  table,
int  size
 

Definition at line 834 of file sid2wav.cpp.

Referenced by linear2ulaw().


Variable Documentation

const int BIAS = 0x84
 

Definition at line 848 of file sid2wav.cpp.

Referenced by linear2ulaw().

void(* fadein_buffer)( ubyte*, udword )
 

Definition at line 165 of file sid2wav.cpp.

Referenced by main().

int fadein_count [static]
 

Definition at line 150 of file sid2wav.cpp.

Referenced by fadein_buffer_16(), fadein_buffer_8(), and main().

int fadein_currentlevel [static]
 

Definition at line 150 of file sid2wav.cpp.

Referenced by fadein_buffer_16(), fadein_buffer_8(), and main().

int fadein_seconds [static]
 

Definition at line 150 of file sid2wav.cpp.

Referenced by main().

int fadein_step [static]
 

Definition at line 150 of file sid2wav.cpp.

Referenced by fadein_buffer_16(), fadein_buffer_8(), and main().

int fadelevel [static]
 

Definition at line 150 of file sid2wav.cpp.

Referenced by fadein_buffer_16(), fadein_buffer_8(), fadeout_buffer_16(), fadeout_buffer_8(), and main().

void(* fadeout_buffer)( ubyte*, udword )
 

Definition at line 164 of file sid2wav.cpp.

Referenced by main().

int fadeout_count [static]
 

Definition at line 150 of file sid2wav.cpp.

Referenced by fadeout_buffer_16(), fadeout_buffer_8(), and main().

int fadeout_currentlevel [static]
 

Definition at line 150 of file sid2wav.cpp.

Referenced by fadeout_buffer_16(), fadeout_buffer_8(), and main().

int fadeout_seconds [static]
 

Definition at line 150 of file sid2wav.cpp.

Referenced by main().

int fadeout_step [static]
 

Definition at line 150 of file sid2wav.cpp.

Referenced by fadeout_buffer_16(), fadeout_buffer_8(), and main().

const int FLAG_STDIN = 0x01
 

Definition at line 73 of file sid2wav.cpp.

Referenced by main().

const int FLAG_ULAW = 0x08
 

Definition at line 74 of file sid2wav.cpp.

Referenced by main().

int flags [static]
 

Definition at line 76 of file sid2wav.cpp.

Referenced by main().

au_hdr my_au_hdr
 

Initial value:

{
        {'.','s','n','d'}, 0x18, 0, 1, 8000, 1
}

Definition at line 144 of file sid2wav.cpp.

Referenced by main().

wav_hdr my_wav_hdr
 

Initial value:

{ 
        {'R','I','F','F'}, 0, {'W','A','V','E'},
        {'f','m','t', }, 
        convertEndianess ((udword)16),
        convertEndianess ((uword)1),
        convertEndianess ((uword)1),
        convertEndianess ((udword)22050),
        convertEndianess ((udword)22050),
        convertEndianess ((uword)1),
        convertEndianess ((uword)8),
        {'d','a','t','a'}, 0
}

Definition at line 118 of file sid2wav.cpp.

const char s2w_version[] = "1.7.2"
 

Definition at line 63 of file sid2wav.cpp.

short seg_end[8]
 

Initial value:

 
{
        0xFF, 0x1FF, 0x3FF, 0x7FF,
        0xFFF, 0x1FFF, 0x3FFF, 0x7FFF
}

Definition at line 828 of file sid2wav.cpp.

Referenced by linear2ulaw().


Generated on Tue Feb 8 04:27:04 2005 for Esidplay by doxygen 1.3.3