Skip to content

Commit

Permalink
Super-hacky cdio-paranoira CDDA implementation
Browse files Browse the repository at this point in the history
This currently:
- Almost certainly breaks the MP3 implementation
- Hangs every so often while reading a sector. That really should live
  in another thread.
- Only supports one drive.
- Probably breaks on anything more complex than testcdrom
- Doesn't handle the 'stop track/frame' feature.
- Spews debug info everywhere
- Should initialise the CD on open, not system initialisation.
- Hardcodes a bunch of things, and can't be disabled.

But, testcdrom does, on the whole, work.
  • Loading branch information
sulix committed Dec 3, 2024
1 parent 6f0f603 commit 5d4fcf7
Show file tree
Hide file tree
Showing 2 changed files with 290 additions and 137 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ endif()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
string(STRIP "${CMAKE_C_FLAGS}" CMAKE_C_FLAGS)

target_link_libraries(SDL PRIVATE cdio cdio_cdda cdio_paranoia)

if(UNIX AND NOT APPLE)
set_target_properties(SDL PROPERTIES COMPILE_DEFINITIONS "_REENTRANT")
target_link_libraries(SDL PRIVATE ${CMAKE_DL_LIBS})
Expand Down
Loading

0 comments on commit 5d4fcf7

Please sign in to comment.