77 Commits

Author SHA1 Message Date
Donovan Watteau
16e2068aec JANITORIAL: Fix various single-character typos 2022-11-11 20:55:56 +01:00
Donovan Watteau
7ef9247637 BACKENDS: Restore original Cabal license header when quoting it
Our derivate work remains GPLv3+, since the original allowed it thanks
to its GPLv2+ license, but when we quote the original license we can't
(and shouldn't) change the fact that it was GPLv2+.
2022-11-05 22:04:30 +01:00
SupSuper
af8e07b943 BACKENDS: Move isDataAndCDAudioReadFromSameCD() to AudioCDManager 2022-08-24 23:37:33 +03:00
Le Philousophe
111d259015 ALL: Add limits.h for all codebase 2022-08-22 15:38:10 +02:00
Thunderforge
fd129ebc0c JANITORIAL: "Mac OS X" and "OS X" to "macOS" in comments
Apple's desktop operating system was formerly called "Mac OS X" and "OS X", but since 2016 it has been called "macOS" (starting with version 10.12).

Changing across all comments and documentation to use this current terminology, except in cases where the historical versions are explicitly referenced. No code changes are made; we should consider changing those in future PRs.
2022-01-29 14:15:05 +01:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Torbjörn Andersson
4c11b57ca0 BACKEND: Make it possible to check for other audio track numbers than 1 2021-11-22 19:38:40 +02:00
Orgad Shaneh
44219dfa1a BACKENDS: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Cameron Cawley
c2bbccd1db AUDIO: Support using .wav files for extracted Audio CD tracks 2021-09-07 14:35:43 +03:00
Martin Gerhardy
60111294a0 BACKENDS: moved the audio cd track path assembly into one location
also added m4a audio cd support as it is supported in openStreamFile() which
is called in DefaultAudioCDManager::play()
2021-08-23 00:09:03 +03:00
Martin Gerhardy
dcaad26e86 ENGINES: keep existExtractedCDAudioFiles in sync with DefaultAudioCDManager::play()
out of sync since: f5164c911758e84804ef7d4e18c72cef21185daf
2021-08-23 00:09:03 +03:00
sluicebox
d9df1919d5 WIN32: Make Win32AudioCDManager UNICODE compatible 2021-06-29 12:38:01 -05:00
Orgad Shaneh
b49e6eb96f JANITORIAL: Fix some excess tabs 2021-04-15 23:18:08 +03:00
Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
Martin Gerhardy
f5164c9117 BACKENDS: search also for track_x and track_xx audio cd tracks
this allows us to use the unmodified version of dotemu lba1 enhanced music track paths
2021-01-23 02:54:58 +02:00
Cameron Cawley
5c255b3aa9 WIN32: Add override and final keywords 2020-10-16 18:32:08 +01:00
SupSuper
d0512db25c WIN32: Move all ARRAYSIZE undefs to util.h
Instead of trying to undefine ARRAYSIZE everywhere we use a Windows header, let's just do it before we define our own
2018-12-17 12:28:33 +02:00
Bastien Bouclet
de886a8b58 AUDIO: Fix broken physical audio CD playback on non-win32
The play method did not override the base class due to the addition of
the soundType parameter.
2018-07-31 21:44:26 +02:00
Paul Gilbert
f5238c66d5 XEEN: Add an optional param to CD playback to specify sound type 2018-05-05 10:46:20 -04:00
D G Turner
872c5ee7c5 LINUX: Fix Header for major/minor macros, thus removing warnings.
Warnings are as follows:
"In the GNU C Library, "minor" is defined by <sys/sysmacros.h>.
For historical compatibility, it is currently defined by
<sys/types.h> as well, but we plan toremove this soon.
To use "minor", include <sys/sysmacros.h> directly. If you did
not intend to use a system-defined macro "minor", you should
undefine it after including <sys/types.h>"
2017-11-07 20:18:22 +00:00
Eugene Sandulenko
355c4fa646 JANITORIAL: Remove more trailing spaces 2016-10-09 15:02:02 +02:00
Johannes Schickel
99bb62f0e9 LINUX: Use classic major/minor macros.
Makes our Linux Audio CD code work with implementations without gnu_dev_major
and gnu_dev_minor too.
2016-03-21 04:42:13 +01:00
Johannes Schickel
afe8ea139c MACOSX: Add comment about track ID search loop. 2016-03-15 14:25:42 +01:00
Johannes Schickel
7725e00e9a LINUX: Guard Linux audio CD code. 2016-03-15 14:24:23 +01:00
Johannes Schickel
f75bc48141 MACOSX: Guard audio cd code by define check. 2016-03-15 14:24:23 +01:00
Johannes Schickel
ad678cf083 MACOSX: Replace manual uint parsing by strtol. 2016-03-15 14:24:23 +01:00
Johannes Schickel
6a127df564 WIN32: Cleanup header includes for AudioCD code. 2016-03-14 01:04:11 +01:00
Johannes Schickel
88f8ecde0b WIN32: Supply required DDK headers for older MSVC.
Header file taken from MinGW's w32api 4.0.3.
2016-03-14 01:03:13 +01:00
Johannes Schickel
2872c7f9eb WIN32: Fix compilation with MinGW-w64. 2016-03-13 20:44:04 +01:00
Johannes Schickel
045b583141 WIN32: Guard AudioCD code by WIN32 check. 2016-03-13 20:44:04 +01:00
Johannes Schickel
075bde796e WIN32: Silence warning in AudioCD code. 2016-03-13 20:44:04 +01:00
Johannes Schickel
b9b3d4557c WIN32: Fix AudioCD compilation. 2016-03-13 20:44:04 +01:00
Johannes Schickel
5e0b136992 BACKENDS: Fill buffer at start of AudioCD playback.
As suggested by clone2727.
2016-03-13 15:45:19 +01:00
Johannes Schickel
8cd4b881e3 BACKENDS: Add ScummVM license header for AudioCD code.
As discussed with clone2727.
2016-03-13 14:16:13 +01:00
Johannes Schickel
90899860b4 BACKENDS: Formatting fixes. 2016-03-13 14:06:20 +01:00
Matthew Hoops
c6c0f527a7 BACKENDS: Switch to CDROMREADRAW for Linux audio CD
CDROMREADAUDIO seems to crash the kernel when ejecting while playing. Let's try to avoid that.
2016-03-13 13:57:30 +01:00
Matthew Hoops
41a1dcb0bb BACKENDS: Switch to a common base class for threaded audio CD streams 2016-03-13 13:57:24 +01:00
Matthew Hoops
aa6ff44440 BACKENDS: Only expose one set of functions for AudioCDManager
Engines should only have to call one set of functions and not decide between the two. In fact, the 'emulation' API was documented to just call the 'real CD' API.
2016-03-13 13:57:19 +01:00
Matthew Hoops
dc0d4fcf30 BACKENDS: Add support for opening a CD on Mac OS X by path or drive 2016-03-13 13:57:13 +01:00
Matthew Hoops
4a6c7b5c83 BACKENDS: Add support for opening a CD on Windows by drive 2016-03-13 13:57:09 +01:00
Matthew Hoops
442f91c622 BACKENDS: Add support for opening a CD on Linux by path or drive 2016-03-13 13:57:05 +01:00
Matthew Hoops
1626fbd633 BACKENDS: Allow for specifying a drive via the cdrom option 2016-03-13 13:57:01 +01:00
Matthew Hoops
e39faa239a BACKENDS: Use a second thread to assist in buffering Win32 CD audio 2016-03-13 13:56:56 +01:00
Matthew Hoops
2aa2a6b56c BACKENDS: Add a Win32 audio CD player 2016-03-13 13:56:51 +01:00
Matthew Hoops
2ee85fcbd9 BACKENDS: Use a threading for buffering Linux CD audio 2016-03-13 13:56:46 +01:00
Matthew Hoops
91d695d4a2 BACKENDS: Detect the CD drive from the game's path on Linux 2016-03-13 13:56:39 +01:00
Matthew Hoops
a1a4fc0d51 BACKENDS: Add a Linux CD-ROM audio player 2016-03-13 13:56:28 +01:00
Matthew Hoops
47a82f2d1b BACKENDS: Add a custom Mac OS X CD audio manager
Since Mac OS X Carbon/Cocoa API isn't stable (in that it's changed multiple times over the years). Maintaining two versions of the same code (one in some foreign language with overly long names) isn't very appealing to me.
2016-03-13 13:53:55 +01:00
Matthew Hoops
30e68efac4 BACKENDS: Add a closeCD() function to the AudioCDManager 2016-03-13 13:53:35 +01:00
Matthew Hoops
fb6fe1332a BACKENDS: Move to an openCD() without parameters as the public API 2016-03-13 13:52:24 +01:00