Commit Graph

52 Commits

Author SHA1 Message Date
libretroadmin
a4212061d4 Cleanup some unused variables 2024-04-06 20:12:15 +02:00
Eric Warmenhoven
6506b65ce7 Fix #15316 - on iOS, stop/start audio on interruptions 2023-05-26 03:27:31 +02:00
libretroadmin
0c42e339e1 Silence some warnings that popup in Xcode 2023-01-04 18:42:35 +01:00
libretroadmin
85598f24ad defines/ headers are libretro-common headers, search for them in
system header includes - other cleanups/nits
2022-12-15 15:09:40 +01:00
Vladimir Serbinenko
4e24fb3d01
Add osx-ppc compilation for frontend (#13532)
* Fix old osx condition

Current code assumes that osx < 10.12 is equivalent to ppc osx. It's not
true as Leopard x86 is still < 10.12 but not ppc. As xcode compiles fat
binaries it includes osx x86 and compilation fails.

* Disable crtswitchres when no c++11 is available

Crtswitchres altually needs c++11. Since it's not that important to make
it compatible with lower c++, just disable if no c++11 is available

* Don't use firstObject on old Mac OS X.

It was introduced in 10.6, so on old ones just implement it ourselves

* Compile osx-ppc frontend

* osx-ppc: Build a fat binary

On 10.6 i386 xcode apparently refuses to build a pure ppc.
Settle for a fat binary.
2022-01-24 16:22:07 +01:00
Autechre
e7f182811a
Split up audio code into new file audio/audio_driver.c (#13097)
* Split up audio code into new file audio/audio_driver.c

* Fix build issues #1

* Small cleanup

* Fix typo
2021-10-11 18:01:37 +02:00
twinaphex
13604b047f (Audio) reorder structs/alignment (don't touch Switch audio drivers
for now)
2020-08-26 15:24:33 +02:00
twinaphex
0a1942f528 Turn fifo_read_avail and fifo_write_avail into macros 2020-07-07 08:13:32 +02:00
twinaphex
a034909ae9 Cleanups 2020-01-30 16:35:59 +01:00
Yoshi Sugawara
72a6e71e72 tvOS: fix preprocessor flag; update version in Info.plist 2020-01-18 20:01:41 -10:00
twinaphex
c1137ee3fa CoreAudio - Put g_interrupted behind IOS ifdefs 2020-01-14 20:22:06 +01:00
twinaphex
6cfe0ea77c (Audio) Update 2020-01-14 20:20:54 +01:00
twinaphex
ee7051891b (Audio) Update audio drivers to make them more uniform 2020-01-04 10:32:03 +01:00
twinaphex
40a6c978ce (DSound) Optimize codepaths
(CoreAudio) Only iOS uses g_interrupted flag, put it behind ifdefs
2020-01-04 09:46:27 +01:00
twinaphex
127bf556c7 Merge audio_driver.c into retroarch.c 2019-06-17 12:49:21 +02:00
Yoshi Sugawara
a18512375b Support for tvOS
- add tvOS target
    - support code signing tvOS cores by adding an argument to the code signing cores script
    - use NSCachesDirectory for the documents directory
    - add some mfi controller handling logic to set non-game controllers to the last index to avoid interfering with operation
    - autodetect mfi controller for apple tv on startup - added autodetect to hid joypad
    - added a webserver to transfer files for tvOS
    - xcode: clean up project, remove unused folders
    - remove HAVE_MATERIALUI setting for tvos build, make it use XMB as default
    - added retroarch app icon courtesy of @MrJs
    - added auto-detect of mfi controller for apple tv
2019-01-29 10:13:46 -10:00
orbea
bfc366decc Squeeze extra blank lines with cat(1).
Example:

find . -type f -iname '*.c' | while read -r i; do
  cat -s "$i" > "$i.new"
  mv "$i.new" "$i"
done
2019-01-08 11:04:58 -08:00
gblues
6904101c44 Clean up trailing whitespace
== DETAILS

Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
twinaphex
3fb630c571 Get rid of is_perfcnt_enable for audio_driver_write function 2017-04-20 10:15:11 +02:00
twinaphex
a9492f6a44 Cleanups 2017-04-15 22:27:23 +02:00
twinaphex
6cde73d86f (CoreAudio) Add backwards compatibility 2017-01-29 19:55:14 +01:00
twinaphex
e74853750b (audio driver) Pass is_perfcnt_enable boolean variable to audio
driver write function
2017-01-25 17:30:50 +01:00
twinaphex
90bc170829 Get rid of runloop_ctl calls inside audio drivers 2017-01-22 18:05:07 +01:00
John Regan
da51c2ebf6 coreaudio: fix getting device name 2017-01-16 10:26:17 -06:00
twinaphex
b20c9d870b Add block_frames member to audio driver init function;
be more prudent with strdup
2017-01-11 07:25:42 +01:00
twinaphex
83e8aec3d4 Refactor audio driver code - add new_rate variable 2017-01-09 13:09:14 +01:00
twinaphex
164d3b034c Get rid of OSX_PPC 2016-09-09 15:56:56 +02:00
twinaphex
60cdd730b1 (audio/drivers) Cosmetic cleanups 2016-09-08 11:41:58 +02:00
twinaphex
f4b40cd108 (Audio) Add device_list_new/device_list_free to audio drivers 2016-04-26 17:55:20 +02:00
twinaphex
ef4a1a3c0f (libretro-common) Rename fifo_buffer to fifo_queue 2016-03-20 14:06:21 +01:00
twinaphex
fbd2e9aa84 Use string_is_equal more 2016-01-21 02:48:00 +01:00
twinaphex
be971fc258 Backport/rewrites wmarquesr pt. 3 2015-12-04 10:38:51 +01:00
twinaphex
ad5e0c5981 (CoreAudio) Buildfix 2015-11-23 20:25:30 +01:00
twinaphex
e0f0590269 Rearrange header includes 2015-11-23 19:40:09 +01:00
Twinaphex
5974f81ed8 (OSX) Buildfixes 2015-11-23 12:07:00 +01:00
Twinaphex
9d69e1992d (coreaudio.c) No longer use pthreads directly 2015-09-16 09:07:38 +02:00
Twinaphex
da3dd316b5 (CoreAudio) Include retro_endianness.h 2015-09-14 03:36:59 +02:00
Twinaphex
98f06988d6 Revert "(CoreAudio) Use rthreads"
This reverts commit 626592a7a6.
2015-08-30 10:32:19 +02:00
twinaphex
626592a7a6 (CoreAudio) Use rthreads 2015-08-30 10:25:25 +02:00
Twinaphex
43448e6081 Prevent warning 2015-06-02 17:34:20 +02:00
Twinaphex
e7595ae493 (CoreAudio) Buildfix 2015-06-02 11:11:35 +02:00
twinaphex
943cb952a7 (coreAudio) Use TARGET_OS_IPHONE 2015-06-02 11:09:54 +02:00
twinaphex
fa7293412f (CoreAudio) Define OSX_PPC 2015-04-20 01:33:02 +02:00
twinaphex
2c2fa0ce30 (CoreAudio) Use straight pthread again 2015-04-17 10:54:03 +02:00
twinaphex
950f15ac2c Updates pt. 2 2015-03-20 21:31:16 +01:00
twinaphex
142e04ab8c (CoreAudio) Cleanups 2015-03-16 06:42:37 +01:00
Twinaphex
a2e138461b (CoreAudio/iOS) scond_wait_timeout returns false when timed out 2015-03-15 16:39:04 +01:00
twinaphex
18ae16c529 (CoreAudio) Use rthreads now 2015-03-15 16:37:57 +01:00
Twinaphex
7a552e61ea (CoreAudio) Cleanups 2015-03-15 05:55:03 +01:00
twinaphex
de7a613298 (CoreAudio) Style nits 2015-03-15 05:52:26 +01:00