Browse Source

Modernize prepare_64bit_asio script

Signed-off-by: falkTX <falktx@falktx.com>
tags/v1.0.0
falkTX 1 year ago
parent
commit
e0c4428ee0
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
3 changed files with 12 additions and 8 deletions
  1. +3
    -0
      .gitmodules
  2. +8
    -8
      prepare_64bit_asio
  3. +1
    -0
      rtaudio

+ 3
- 0
.gitmodules View File

@@ -0,0 +1,3 @@
[submodule "rtaudio"]
path = rtaudio
url = https://github.com/falkTX/rtaudio.git

+ 8
- 8
prepare_64bit_asio View File

@@ -1,9 +1,9 @@
#!/bin/sh
ed -s asio.h <<< $'g/unsigned long/s//ULONG/g\nw\nq'
ed -s asio.h <<< $'g/long long int/s//LONGLONG/g\nw\nq'
ed -s asio.h <<< $'g/long int/s//LONG/g\nw\nq'
ed -s asio.h <<< $'g/long/s//LONG/g\nw\nq'
ed -s asio.h <<< $'g/(\*bufferSwitch)/s//(CALLBACK *bufferSwitch)/g\nw\nq'
ed -s asio.h <<< $'g/(\*sampleRateDidChange)/s//(CALLBACK *sampleRateDidChange)/g\nw\nq'
ed -s asio.h <<< $'g/(\*asioMessage)/s//(CALLBACK *asioMessage)/g\nw\nq'
ed -s asio.h <<< $'g/(\*bufferSwitchTimeInfo)/s//(CALLBACK *bufferSwitchTimeInfo)/g\nw\nq'
sed -i asio.h -e 's/unsigned long/ULONG/g'
sed -i asio.h -e 's/long long int/LONGLONG/g'
sed -i asio.h -e 's/long int/LONG/g'
sed -i asio.h -e 's/long/LONG/g'
sed -i asio.h -e 's/(\*bufferSwitch)/(CALLBACK *bufferSwitch)/g'
sed -i asio.h -e 's/(\*sampleRateDidChange)/(CALLBACK *sampleRateDidChange)/g'
sed -i asio.h -e 's/(\*asioMessage)/(CALLBACK *asioMessage)/g'
sed -i asio.h -e 's/(\*bufferSwitchTimeInfo)/(CALLBACK *bufferSwitchTimeInfo)/g'

+ 1
- 0
rtaudio

@@ -0,0 +1 @@
Subproject commit c067c3d563bd5b3d55e0cad91d43b31c7fc497fc

Loading…
Cancel
Save