|
PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
|
#include <PAudioOut.h>
Public Member Functions | |
| PAudioOut () | |
| PAudioOut (const std::string &filename) | |
| virtual | ~PAudioOut () |
| virtual bool | LoadSoundFile (const std::string &filename) |
| virtual bool | Play () |
| virtual bool | PlayForeground () |
| virtual bool | Stop () |
| virtual bool | SetPanning (const double left, const double right) |
| virtual bool | Initialize () |
| virtual bool | CreateSineWave (float freq, long unsigned int length, long double volume) |
| virtual PEBL_DEVICE_TYPE | GetDeviceType () |
Public Member Functions inherited from PDevice | |
| PDevice () | |
| The Standard constructor. | |
| virtual | ~PDevice () |
| The Standard destructor. | |
| virtual int | GetState (int iface) const |
Protected Attributes | |
| unsigned int | mSampleRate |
| int | mChannel |
| long double | mAmplitudeLeft |
| long double | mAmplitudeRight |
This defines a generic sound presentation interface. It has two basic modes: It can operate 'modally', where a sound file is played, blocking all other activity until complete; alternatively, it can be 'background', where the sound gets played by a callback in Loop(), which can be interrupted by the sound's end or something else like a time-out or an interruption.
Definition at line 39 of file PAudioOut.h.
| PAudioOut::PAudioOut | ( | ) |
Definition at line 4 of file PAudioOut.cpp.
| PAudioOut::PAudioOut | ( | const std::string & | filename | ) |
Definition at line 9 of file PAudioOut.cpp.
|
virtual |
Definition at line 13 of file PAudioOut.cpp.
|
inlinevirtual |
Reimplemented in PlatformAudioOut.
Definition at line 70 of file PAudioOut.h.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in PlatformAudioOut, PlatformAudioOut, and PlatformAudioOut.
Definition at line 60 of file PAudioOut.h.
|
inlinevirtual |
Reimplemented in PlatformAudioOut, and PlatformAudioOut.
Definition at line 47 of file PAudioOut.h.
|
inlinevirtual |
Reimplemented in PlatformAudioOut, PlatformAudioOut, PlatformAudioOut, and PlatformAudioOut.
Definition at line 49 of file PAudioOut.h.
|
inlinevirtual |
Reimplemented in PlatformAudioOut, PlatformAudioOut, and PlatformAudioOut.
Definition at line 50 of file PAudioOut.h.
|
inlinevirtual |
Definition at line 52 of file PAudioOut.h.
Referenced by PEBLObjects::SetPanning().
|
inlinevirtual |
Reimplemented in PlatformAudioOut, PlatformAudioOut, PlatformAudioOut, and PlatformAudioOut.
Definition at line 51 of file PAudioOut.h.
|
protected |
Definition at line 84 of file PAudioOut.h.
|
protected |
Definition at line 85 of file PAudioOut.h.
|
protected |
Definition at line 83 of file PAudioOut.h.
|
protected |
Definition at line 82 of file PAudioOut.h.