33 Commits

Author SHA1 Message Date
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
Autechre
2d3c63f545
Merge pull request #11248 from justinweiss/update-libctru
[3DS] Update to libctru 2.0
2020-09-10 06:49:54 +02:00
Justin Weiss
9ae2514009 [3DS] Update to libctru 2.0
Set USE_CTRULIB_2=1 to build with libctru 2.0. When unset, this code
is compatible with the older toolchain.

Some 2.0 changes addressed rare problems in earlier versions:

- Save / restore stack pointer for init / exit
  Otherwise, it could be outside of the range we deallocate.
- Run aptMainLoop in the audio driver to react correctly to sleep events

Other changes for 2.0:

- Remove ninjhax1 -- requires outdated APIs that have been removed
- Switch from __sync_arbiter to syncArbitrateAddress
- Use implicit gxCmdBuf
- Use gpuPresentBuffer for double buffering
2020-08-26 19:08:12 -07:00
twinaphex
13604b047f (Audio) reorder structs/alignment (don't touch Switch audio drivers
for now)
2020-08-26 15:24:33 +02:00
twinaphex
ee7051891b (Audio) Update audio drivers to make them more uniform 2020-01-04 10:32:03 +01:00
twinaphex
127bf556c7 Merge audio_driver.c into retroarch.c 2019-06-17 12:49:21 +02:00
orbea
e062b98088 Remove trailing blank lines.
find . -type f -exec sed -i '${/^[[:space:]]*$/d;}' {} \+
2019-01-17 19:39:38 -08: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
twinaphex
8f15467215 Getr id of perf counters 2017-04-24 11:21:32 +02:00
twinaphex
3fb630c571 Get rid of is_perfcnt_enable for audio_driver_write function 2017-04-20 10:15:11 +02: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
6661c0fb94 Rewrite performance counter stop/start/init into macros 2017-01-25 16:53:06 +01:00
twinaphex
2aaa3a3a3a Turn to C comments 2017-01-23 01:35:11 +01:00
twinaphex
90bc170829 Get rid of runloop_ctl calls inside audio drivers 2017-01-22 18:05:07 +01:00
twinaphex
96c8ca5a09 Header update #1 2017-01-22 13:40:32 +01: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
aliaspider
4ebe84d89c (3DS) use Makefile.commmon for non griffin builds 2016-09-28 15:01:46 +01:00
twinaphex
60cdd730b1 (audio/drivers) Cosmetic cleanups 2016-09-08 11:41:58 +02:00
twinaphex
281a33d61f Rename function to performance_counter_init 2016-05-16 09:58:45 +02:00
twinaphex
f5bc75c640 Rename retro_perf_start/retro_perf_stop 2016-05-16 09:53:54 +02:00
twinaphex
18355d4748 Rename retro_perf_stop 2016-05-16 09:48:14 +02:00
twinaphex
b79b2dca13 Create performance_counters 2016-05-10 08:53:14 +02:00
twinaphex
f4b40cd108 (Audio) Add device_list_new/device_list_free to audio drivers 2016-04-26 17:55:20 +02:00
twinaphex
7a55ae3765 Start updating headers for 2016 2016-01-10 04:06:50 +01:00
aliaspider
90c08dfd12 (3DS) dsp audio driver: incorrect value was being used due to missing
parentheses, resulting in a random lockup. fixes #2587.
2015-12-24 23:11:25 +01:00
aliaspider
40ac911a05 build fix. 2015-12-24 21:17:44 +01:00
twinaphex
c0a1a6a3fe Move system->shutdown to runloop_ctl, turn it into a local
static variable
2015-12-04 12:44:12 +01:00
aliaspider
be5755fe59 (3DS) build fix. 2015-11-24 12:02:02 +01:00
Twinaphex
0958acd0b1 Merge pull request #2455 from aliaspider/master
(3DS) update.
2015-11-24 11:36:00 +01:00
aliaspider
f22d26f881 (3DS) rewrite the dsp audio driver to use a single looping wave buffer. 2015-11-24 11:04:22 +01:00
twinaphex
e0f0590269 Rearrange header includes 2015-11-23 19:40:09 +01:00
aliaspider
aeeb2a62d6 (3DS) - add an audio driver using the DSP.
- add some hooks to inspect memory usage.
2015-10-27 01:06:34 +01:00