#include <hpux_audiodrv.h>
Public Member Functions | |
bool | IsThere () |
Check device availability and write permissions. | |
bool | Open (udword freq, int precision, int channels, int fragments, int fragBase) |
Open the sound device. | |
void | Close () |
Close an opened audio device, free any allocated buffers and reset any variables that reflect the current state. | |
void | Play (ubyte *buffer, int bufferSize) |
play a buffer with samples. | |
bool | Reset () |
int | GetAudioHandle () |
udword | GetFrequency () |
int | GetChannels () |
int | GetSamplePrecision () |
int | GetSampleEncoding () |
int | GetBlockSize () |
int | GetFragments () |
int | GetFragSizeBase () |
const char * | GetErrorString () |
bool | IsThere () |
bool | Open (udword freq, int precision, int channels, int fragments, int fragBase) |
void | Close () |
void | Play (ubyte *buffer, int bufferSize) |
bool | Reset () |
int | GetAudioHandle () |
udword | GetFrequency () |
int | GetChannels () |
int | GetSamplePrecision () |
int | GetSampleEncoding () |
int | GetBlockSize () |
int | GetFragments () |
int | GetFragSizeBase () |
const char * | GetErrorString () |
bool | IsThere () |
bool | Open (udword freq, int precision, int channels, int fragments, int fragBase) |
void | Close () |
void | Play (ubyte *buffer, int bufferSize) |
bool | Reset () |
int | GetAudioHandle () |
udword | GetFrequency () |
int | GetChannels () |
int | GetSamplePrecision () |
int | GetSampleEncoding () |
int | GetBlockSize () |
int | GetFragments () |
int | GetFragSizeBase () |
const char * | GetErrorString () |
bool | IsThere () |
bool | Open (udword freq, int precision, int channels, int fragments, int fragBase) |
void | Close () |
void | Play (ubyte *buffer, int bufferSize) |
bool | Reset () |
int | GetAudioHandle () |
udword | GetFrequency () |
int | GetChannels () |
int | GetSamplePrecision () |
int | GetSampleEncoding () |
int | GetBlockSize () |
int | GetFragments () |
int | GetFragSizeBase () |
const char * | GetErrorString () |
bool | IsThere () |
bool | Open (udword freq, int precision, int channels, int fragments, int fragBase) |
void | Close () |
void | Play (ubyte *buffer, int bufferSize) |
bool | Reset () |
int | GetAudioHandle () |
udword | GetFrequency () |
int | GetChannels () |
int | GetSamplePrecision () |
int | GetSampleEncoding () |
int | GetBlockSize () |
int | GetFragments () |
int | GetFragSizeBase () |
const char * | GetErrorString () |
audioDriver () | |
C'tor. | |
bool | IsThere () |
bool | Open (udword freq, int precision, int channels, int fragments, int fragBase) |
void | Close () |
void | Play (ubyte *buffer, int bufferSize) |
bool | Reset () |
int | GetAudioHandle () |
udword | GetFrequency () |
int | GetChannels () |
int | GetSamplePrecision () |
int | GetSampleEncoding () |
int | GetBlockSize () |
int | GetFragments () |
int | GetFragSizeBase () |
const char * | GetErrorString () |
audioDriver () | |
~audioDriver () | |
D'tor. | |
bool | IsThere () |
bool | Open (udword freq, int precision, int channels, int fragments, int fragBase) |
void | Close () |
void | Play (ubyte *buffer, int bufferSize) |
TInt | VolumeDelta (TInt aDelta) |
increase or decrease the volume by aDelta, and return the new volume | |
bool | Reset () |
int | GetAudioHandle () |
udword | GetFrequency () |
int | GetChannels () |
int | GetSamplePrecision () |
int | GetSampleEncoding () |
int | GetBlockSize () |
int | GetFragments () |
int | GetFragSizeBase () |
const char * | GetErrorString () |
audioDriver () | |
void | ConstructL () |
Reset everything, create and open audio stream. | |
~audioDriver () | |
bool | IsThere () |
bool | Open (udword freq, int precision, int channels, int fragments, int fragBase) |
void | Close () |
void | Play (ubyte *buffer, int bufferSize) |
void | StopStream () |
Close the audio stream. | |
TInt | VolumeDelta (TInt aDelta) |
virtual void | MaoscOpenComplete (TInt aError) |
from MMdaAudioOutputStreamCallback | |
virtual void | MaoscBufferCopied (TInt aError, const TDesC8 &aBuffer) |
called by Media Surfer when finished copying | |
virtual void | MaoscPlayComplete (TInt aError) |
called by Media Surfer when stream was played | |
TInt | StartWavDump (const TDesC &aSidTune) |
Start dumping to WAV file. | |
TInt | StopWavDump () |
Stop dumping to WAV file. | |
TBool | IsWavDumping () |
Return status of WAV dumping. | |
bool | Reset () |
int | GetAudioHandle () |
udword | GetFrequency () |
int | GetChannels () |
int | GetSamplePrecision () |
int | GetSampleEncoding () |
int | GetBlockSize () |
int | GetFragments () |
int | GetFragSizeBase () |
const char * | GetErrorString () |
Public Attributes | |
TBool | iIsReady |
true if audio device is opened | |
TInt | iBlocksInQueue |
number of blocks in audio stream queue | |
TBool | iPrefilled |
set to true after FillBuffer is called | |
Private Member Functions | |
void | DoWavDump (const TDesC8 &aBuffer) |
Dump one PCM fragment to the WAV file. | |
void | ResetStream () |
Reset the audio stream. | |
Private Attributes | |
const char | AUDIODEVICE [] = "/dev/audio" |
int | audioHd |
const char * | errorString |
int | blockSize |
udword | frequency |
int | encoding |
int | precision |
int | channels |
const char * | errorString |
int | fragments |
int | fragSizeBase |
const char * | errorString |
ALport | audio |
ALconfig | config |
const char * | errorString |
const char * | errorString |
const char * | errorString |
const char * | errorString |
RMdaDevSound | iDevSound |
const char * | errorString |
TInt | iVolume |
CMdaAudioOutputStream * | iMdaAudio |
pointer to audio stream | |
TMdaAudioDataSettings | iSettings |
audio settings | |
TBuf8< KDefaultBufSize *2 > | iExtraBuf |
extra double buffering | |
RFs | iFs |
Handle to fileserver for wav dumping. | |
TFileName | iWavDump |
Filename of wavefile. | |
TBool | iIsWavDumping |
True if wav dumping is active. |
In this case it interfaces the RDevSound class available in the ER5 version of EPOC32.
Definition at line 17 of file hpux_audiodrv.h.
|
C'tor.
Definition at line 7 of file hpux_audiodrv.cpp. References audioHd, channels, encoding, errorString, frequency, and precision. |
|
|
|
D'tor.
Definition at line 41 of file audiodrv_epoc.cpp. References DTOR. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Close an opened audio device, free any allocated buffers and reset any variables that reflect the current state.
Definition at line 83 of file hpux_audiodrv.cpp. References audioHd. |
|
Reset everything, create and open audio stream.
Definition at line 74 of file audiodrv_er6.cpp. References errorString, iMdaAudio, and iSettings. Referenced by CSidPlayer::InitL(), and InitMainL(). |
|
Dump one PCM fragment to the WAV file.
Definition at line 461 of file audiodrv_er6.cpp. References ELOG2, iFs, iWavDump, and KFileOpenWritable. |
|
Definition at line 72 of file audiodrv_er6.h. References audioHd. |
|
Definition at line 49 of file audiodrv_epoc.h. References audioHd. |
|
Definition at line 42 of file audiodrv.h. References audioHd. |
|
Definition at line 44 of file sparc_audiodrv.h. References audioHd. |
|
Definition at line 38 of file sgi_audiodrv.h. References audioHd. |
|
Definition at line 41 of file linux_pcsnd_audiodrv.h. References audioHd. |
|
Definition at line 41 of file linux_audiodrv.h. References audioHd. |
|
Definition at line 36 of file hpux_audiodrv.h. References audioHd. |
|
Definition at line 77 of file audiodrv_er6.h. References blockSize. |
|
Definition at line 54 of file audiodrv_epoc.h. References blockSize. |
|
Definition at line 67 of file audiodrv.h. References blockSize. |
|
Definition at line 69 of file sparc_audiodrv.h. References frequency. |
|
Definition at line 63 of file sgi_audiodrv.h. References blockSize. |
|
Definition at line 66 of file linux_pcsnd_audiodrv.h. References blockSize. |
|
Definition at line 66 of file linux_audiodrv.h. References blockSize. |
|
Definition at line 61 of file hpux_audiodrv.h. References blockSize. Referenced by CSidPlayer::InitL(), InitMainL(), and main(). |
|
Definition at line 74 of file audiodrv_er6.h. |
|
Definition at line 51 of file audiodrv_epoc.h. References channels. |
|
Definition at line 52 of file audiodrv.h. References channels. |
|
Definition at line 54 of file sparc_audiodrv.h. References channels. |
|
Definition at line 48 of file sgi_audiodrv.h. References channels. |
|
Definition at line 51 of file linux_pcsnd_audiodrv.h. References channels. |
|
Definition at line 51 of file linux_audiodrv.h. References channels. |
|
Definition at line 46 of file hpux_audiodrv.h. |
|
Definition at line 80 of file audiodrv_er6.h. References errorString. |
|
Definition at line 57 of file audiodrv_epoc.h. References errorString. |
|
Definition at line 82 of file audiodrv.h. References errorString. |
|
Definition at line 84 of file sparc_audiodrv.h. References errorString. |
|
Definition at line 78 of file sgi_audiodrv.h. References errorString. |
|
Definition at line 81 of file linux_pcsnd_audiodrv.h. References errorString. |
|
Definition at line 81 of file linux_audiodrv.h. References errorString. |
|
Definition at line 76 of file hpux_audiodrv.h. References errorString. Referenced by InitMainL(), and main(). |
|
Definition at line 78 of file audiodrv_er6.h. References fragments. |
|
Definition at line 55 of file audiodrv_epoc.h. References fragments. |
|
Definition at line 72 of file audiodrv.h. References fragments. |
|
Definition at line 74 of file sparc_audiodrv.h. |
|
Definition at line 68 of file sgi_audiodrv.h. |
|
Definition at line 71 of file linux_pcsnd_audiodrv.h. References fragments. |
|
Definition at line 71 of file linux_audiodrv.h. References fragments. |
|
Definition at line 66 of file hpux_audiodrv.h. Referenced by InitMainL(), and main(). |
|
Definition at line 79 of file audiodrv_er6.h. References fragSizeBase. |
|
Definition at line 56 of file audiodrv_epoc.h. References fragSizeBase. |
|
Definition at line 77 of file audiodrv.h. References fragSizeBase. |
|
Definition at line 79 of file sparc_audiodrv.h. |
|
Definition at line 73 of file sgi_audiodrv.h. |
|
Definition at line 76 of file linux_pcsnd_audiodrv.h. References fragSizeBase. |
|
Definition at line 76 of file linux_audiodrv.h. References fragSizeBase. |
|
Definition at line 71 of file hpux_audiodrv.h. |
|
Definition at line 73 of file audiodrv_er6.h. |
|
Definition at line 50 of file audiodrv_epoc.h. |
|
Definition at line 47 of file audiodrv.h. |
|
Definition at line 49 of file sparc_audiodrv.h. |
|
Definition at line 43 of file sgi_audiodrv.h. |
|
Definition at line 46 of file linux_pcsnd_audiodrv.h. |
|
Definition at line 46 of file linux_audiodrv.h. |
|
Definition at line 41 of file hpux_audiodrv.h. References frequency, and udword. Referenced by CSidPlayer::InitL(), InitMainL(), and main(). |
|
Definition at line 76 of file audiodrv_er6.h. References encoding. |
|
Definition at line 53 of file audiodrv_epoc.h. References encoding. |
|
Definition at line 62 of file audiodrv.h. References encoding. |
|
Definition at line 64 of file sparc_audiodrv.h. References encoding. |
|
Definition at line 58 of file sgi_audiodrv.h. References encoding. |
|
Definition at line 61 of file linux_pcsnd_audiodrv.h. References encoding. |
|
Definition at line 61 of file linux_audiodrv.h. References encoding. |
|
Definition at line 56 of file hpux_audiodrv.h. References encoding. Referenced by CSidPlayer::InitL(), InitMainL(), and main(). |
|
Definition at line 75 of file audiodrv_er6.h. |
|
Definition at line 52 of file audiodrv_epoc.h. References precision. |
|
Definition at line 57 of file audiodrv.h. References precision. |
|
Definition at line 59 of file sparc_audiodrv.h. References precision. |
|
Definition at line 53 of file sgi_audiodrv.h. References precision. |
|
Definition at line 56 of file linux_pcsnd_audiodrv.h. References precision. |
|
Definition at line 56 of file linux_audiodrv.h. References precision. |
|
Definition at line 51 of file hpux_audiodrv.h. Referenced by CSidPlayer::InitL(), InitMainL(), and main(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Check device availability and write permissions.
Definition at line 18 of file hpux_audiodrv.cpp. References AUDIODEVICE. Referenced by CSidPlayer::InitL(), InitMainL(), and main(). |
|
Return status of WAV dumping.
Definition at line 452 of file audiodrv_er6.cpp. References iIsWavDumping. Referenced by CSidPlayAppUi::HandleCommandL(). |
|
called by Media Surfer when finished copying Note: In reality, this function is called approx. 1 millisecond after the last block was played, hence we have to generate buffer N+1 while buffer N is playing. Definition at line 301 of file audiodrv_er6.cpp. References ELOG2, iBlocksInQueue, and ResetStream(). |
|
from MMdaAudioOutputStreamCallback called by Media Surfer when it is initialised (or not) Definition at line 268 of file audiodrv_er6.cpp. References ELOG2, iIsReady, iMdaAudio, iVolume, and KVolumeSteps. |
|
called by Media Surfer when stream was played
Definition at line 325 of file audiodrv_er6.cpp. References ELOG2, and ResetStream(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Open the sound device. Returns true if success.
Definition at line 24 of file hpux_audiodrv.cpp. References AUDIODEVICE, audioHd, blockSize, channels, encoding, errorString, frequency, precision, SIDEMU_16BIT, SIDEMU_SIGNED_PCM, and SIDEMU_STEREO. Referenced by CSidPlayer::InitL(), InitMainL(), and main(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
play a buffer with samples. Because of the strange alaw API on the ER5 RDevSound class we have to convert the PCM data into alaw before playing them. This is adding one extra level of CPU eating overheader...
Definition at line 92 of file hpux_audiodrv.cpp. References audioHd. Referenced by main(), SidPlayerThread(), and CSidPlayer::Thread(). |
|
Definition at line 71 of file audiodrv_er6.h. |
|
Definition at line 44 of file audiodrv_epoc.h. |
|
Definition at line 37 of file audiodrv.h. References audioHd. |
|
Definition at line 39 of file sparc_audiodrv.h. |
|
Definition at line 33 of file sgi_audiodrv.h. |
|
Definition at line 36 of file linux_pcsnd_audiodrv.h. References audioHd. |
|
Definition at line 36 of file linux_audiodrv.h. References audioHd. |
|
Definition at line 31 of file hpux_audiodrv.h. |
|
Reset the audio stream.
Definition at line 240 of file audiodrv_er6.cpp. References iBlocksInQueue, and iPrefilled. Referenced by MaoscBufferCopied(), MaoscPlayComplete(), and StopStream(). |
|
Start dumping to WAV file.
Definition at line 343 of file audiodrv_er6.cpp. References ELOG, ELOG1, ELOG2, iFs, iIsWavDumping, iWavDump, KFileOpenWritable, and my_wav_hdr. Referenced by CSidPlayAppUi::HandleCommandL(). |
|
Close the audio stream.
Definition at line 226 of file audiodrv_er6.cpp. References iIsReady, iMdaAudio, and ResetStream(). Referenced by CSidPlayer::SongDelta(), CSidPlayer::SongSelect(), and CSidPlayer::Stop(). |
|
Stop dumping to WAV file.
Definition at line 394 of file audiodrv_er6.cpp. References ELOG, ELOG2, iFs, iIsWavDumping, iWavDump, and KFileOpenWritable. Referenced by CSidPlayAppUi::HandleCommandL(). |
|
|
|
increase or decrease the volume by aDelta, and return the new volume
Definition at line 312 of file audiodrv_epoc.cpp. References iDevSound. Referenced by CConsoleReader::RunL(), and CSidPlayer::VolumeDelta(). |
|
Definition at line 85 of file sgi_audiodrv.h. |
|
Definition at line 89 of file audiodrv.h. |
|
Definition at line 85 of file audiodrv_er6.h. Referenced by audioDriver(), Close(), GetAudioHandle(), Open(), Play(), and Reset(). |
|
Definition at line 87 of file audiodrv_er6.h. Referenced by GetBlockSize(), and Open(). |
|
Definition at line 95 of file audiodrv_er6.h. Referenced by audioDriver(), GetChannels(), and Open(). |
|
Definition at line 86 of file sgi_audiodrv.h. |
|
Definition at line 93 of file audiodrv_er6.h. Referenced by audioDriver(), GetSampleEncoding(), and Open(). |
|
Definition at line 86 of file audiodrv_er6.h. |
|
Definition at line 61 of file audiodrv_epoc.h. |
|
Definition at line 92 of file audiodrv.h. |
|
Definition at line 94 of file sparc_audiodrv.h. |
|
Definition at line 88 of file sgi_audiodrv.h. |
|
Definition at line 91 of file linux_pcsnd_audiodrv.h. |
|
Definition at line 91 of file linux_audiodrv.h. |
|
Definition at line 86 of file hpux_audiodrv.h. Referenced by audioDriver(), ConstructL(), GetErrorString(), and Open(). |
|
Definition at line 88 of file audiodrv_er6.h. Referenced by GetFragments(). |
|
Definition at line 89 of file audiodrv_er6.h. Referenced by GetFragSizeBase(). |
|
Definition at line 90 of file audiodrv_er6.h. Referenced by audioDriver(), GetBlockSize(), GetFrequency(), and Open(). |
|
number of blocks in audio stream queue
Definition at line 103 of file audiodrv_er6.h. Referenced by MaoscBufferCopied(), ResetStream(), SidPlayerThread(), and CSidPlayer::Thread(). |
|
Definition at line 73 of file audiodrv_epoc.h. Referenced by VolumeDelta(). |
|
extra double buffering
Definition at line 100 of file audiodrv_er6.h. |
|
Handle to fileserver for wav dumping.
Definition at line 106 of file audiodrv_er6.h. Referenced by DoWavDump(), StartWavDump(), and StopWavDump(). |
|
true if audio device is opened
Definition at line 102 of file audiodrv_er6.h. Referenced by MaoscOpenComplete(), SidPlayerThread(), StopStream(), and CSidPlayer::Thread(). |
|
True if wav dumping is active.
Definition at line 108 of file audiodrv_er6.h. Referenced by IsWavDumping(), StartWavDump(), and StopWavDump(). |
|
pointer to audio stream
Definition at line 98 of file audiodrv_er6.h. Referenced by ConstructL(), MaoscOpenComplete(), and StopStream(). |
|
set to true after FillBuffer is called
Definition at line 104 of file audiodrv_er6.h. Referenced by ResetStream(), SidPlayerThread(), and CSidPlayer::Thread(). |
|
audio settings
Definition at line 99 of file audiodrv_er6.h. Referenced by ConstructL(). |
|
Definition at line 97 of file audiodrv_er6.h. Referenced by MaoscOpenComplete(). |
|
Filename of wavefile.
Definition at line 107 of file audiodrv_er6.h. Referenced by DoWavDump(), StartWavDump(), and StopWavDump(). |
|
Definition at line 94 of file audiodrv_er6.h. Referenced by audioDriver(), GetSamplePrecision(), and Open(). |