#include "liveMedia.hh"#include "GroupsockHelper.hh"#include "BasicUsageEnvironment.hh"Include dependency graph for testWAVAudioStreamer.cpp:

Go to the source code of this file.
Data Structures | |
| struct | sessionState_t |
Functions | |
| void | play () |
| int | main (int argc, char **argv) |
| void | afterPlaying (void *clientData) |
Variables | |
| UsageEnvironment * | env |
| char const * | inputFileName = "test.wav" |
| sessionState_t | sessionState |
| void afterPlaying | ( | void * | clientData | ) |
Definition at line 98 of file testAMRAudioStreamer.cpp.
References audioSink, audioSource, Medium::close(), curInputFileName, env, FramedSource::isCurrentlyAwaitingData(), mpegDemux, NULL, play(), MediaSink::stopPlaying(), videoSink, and videoSource.
00098 { 00099 *env << "...done reading from file\n"; 00100 00101 audioSink->stopPlaying(); 00102 Medium::close(audioSource); 00103 // Note that this also closes the input file that this source read from. 00104 00105 play(); 00106 }
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 33 of file testWAVAudioStreamer.cpp.
References BasicUsageEnvironment::createNew(), BasicTaskScheduler::createNew(), TaskScheduler::doEventLoop(), env, play(), and UsageEnvironment::taskScheduler().
00033 { 00034 // Begin by setting up our usage environment: 00035 TaskScheduler* scheduler = BasicTaskScheduler::createNew(); 00036 env = BasicUsageEnvironment::createNew(*scheduler); 00037 00038 play(); 00039 00040 env->taskScheduler().doEventLoop(); // does not return 00041 return 0; // only to prevent compiler warnings 00042 }
| void play | ( | ) |
Definition at line 29 of file testWAVAudioStreamer.cpp.
| char const* inputFileName = "test.wav" |
Definition at line 44 of file testWAVAudioStreamer.cpp.
| struct sessionState_t sessionState |
1.5.2