decoder.cpp Source File

Main Page Modules Class Hierarchy Compound List File List Compound Members File Members

# decoder.cpp

    00001
    00002 // "$Id: decoder.cpp,v 1.1 2004/02/13 16:58:16 jaromil Exp $"
    00003
    00004 #include <decoder.h>
    00005 #include <jutils.h>
    00006 #include <config.h>
    00007
    00008 MuseDec::MuseDec() {
    00009     bitrate = samplerate = channels = frames = 0;
    00010     seekable = false; err = false; eos = false;
    00011     if(pthread_mutex_init (&mutex,NULL) == -1)
    00012       error("%i:%s error initializing POSIX thread mutex",
    00013             __LINE__,__FILE__);
    00014 }
    00015
    00016 MuseDec::~MuseDec() {
    00017   if(pthread_mutex_destroy(&mutex) == -1)
    00018     error("error destroying POSIX thread mutex",
    00019           __LINE__,__FILE__);
    00020 }