Modernize prepare_64bit_asio script

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2020-02-08 12:01:09 +00:00
parent 9560779986
commit e0c4428ee0
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
3 changed files with 12 additions and 8 deletions

3
.gitmodules vendored Normal file
View file

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

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
rtaudio Submodule

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