Discman
Loading...
Searching...
No Matches
cd_drive.h File Reference
#include <stdint.h>
#include <thread>
#include <mutex>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <string.h>
#include <cdio/paranoia/paranoia.h>
#include <cdio/cd_types.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/ioctl.h>
#include <linux/cdrom.h>
#include <sigc++/signal.h>
#include <climits>
#include <chrono>
#include "producer_consumer/producer.h"
Include dependency graph for cd_drive.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CDDrive
 Abstracts the host's disc drive. More...
 
struct  CDDrive::DriveErrorException
 Thrown when an audio CD was internally expected in the disc drive but could not be recognized. More...
 
struct  CDDrive::NoDiscPresentException
 Called when the presumption that a disc is present is false. More...
 
struct  CDDrive::DiscErrorException
 Thrown when the audio CD was recognized but could not be opened for reading. More...
 
class  CDDrive::Reader
 The Reader uses a separate thread to load data into the CDDrive's ring buffer. More...
 
class  CDDrive::Poller
 The Poller uses a separate thread to poll the host for a disc drive with an audio CD. More...
 

Macros

#define READ_END   0
 
#define WRITE_END   1
 

Variables

const auto __open = open
 

Detailed Description

Author
Nir Jacobson
Date
2026-04-07

Definition in file cd_drive.h.

Macro Definition Documentation

◆ READ_END

#define READ_END   0

Definition at line 10 of file cd_drive.h.

◆ WRITE_END

#define WRITE_END   1

Definition at line 11 of file cd_drive.h.

Variable Documentation

◆ __open

const auto __open = open

Definition at line 35 of file cd_drive.h.