mirror of
https://github.com/thestk/stk
synced 2026-01-11 20:11:52 +00:00
More RtError updates in various project files.
This commit is contained in:
@@ -59,7 +59,7 @@ int main()
|
||||
try {
|
||||
dac.openStream( ¶meters, NULL, format, (unsigned int)Stk::sampleRate(), &bufferFrames, &tick, (void *)&data );
|
||||
}
|
||||
catch ( RtError& error ) {
|
||||
catch ( RtAudioError& error ) {
|
||||
error.printMessage();
|
||||
goto cleanup;
|
||||
}
|
||||
@@ -78,7 +78,7 @@ int main()
|
||||
try {
|
||||
dac.startStream();
|
||||
}
|
||||
catch ( RtError &error ) {
|
||||
catch ( RtAudioError &error ) {
|
||||
error.printMessage();
|
||||
goto cleanup;
|
||||
}
|
||||
@@ -91,7 +91,7 @@ int main()
|
||||
try {
|
||||
dac.closeStream();
|
||||
}
|
||||
catch ( RtError &error ) {
|
||||
catch ( RtAudioError &error ) {
|
||||
error.printMessage();
|
||||
}
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ int main( int argc, char *argv[] )
|
||||
try {
|
||||
dac.openStream( ¶meters, NULL, format, (unsigned int)Stk::sampleRate(), &bufferFrames, &tick, (void *)&data );
|
||||
}
|
||||
catch ( RtError &error ) {
|
||||
catch ( RtAudioError &error ) {
|
||||
error.printMessage();
|
||||
goto cleanup;
|
||||
}
|
||||
@@ -152,7 +152,7 @@ int main( int argc, char *argv[] )
|
||||
try {
|
||||
dac.startStream();
|
||||
}
|
||||
catch ( RtError &error ) {
|
||||
catch ( RtAudioError &error ) {
|
||||
error.printMessage();
|
||||
goto cleanup;
|
||||
}
|
||||
@@ -165,7 +165,7 @@ int main( int argc, char *argv[] )
|
||||
try {
|
||||
dac.closeStream();
|
||||
}
|
||||
catch ( RtError &error ) {
|
||||
catch ( RtAudioError &error ) {
|
||||
error.printMessage();
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ int main()
|
||||
try {
|
||||
dac.openStream( ¶meters, NULL, format, (unsigned int)Stk::sampleRate(), &bufferFrames, &tick, (void *)&sine );
|
||||
}
|
||||
catch ( RtError &error ) {
|
||||
catch ( RtAudioError &error ) {
|
||||
error.printMessage();
|
||||
goto cleanup;
|
||||
}
|
||||
@@ -46,7 +46,7 @@ int main()
|
||||
try {
|
||||
dac.startStream();
|
||||
}
|
||||
catch ( RtError &error ) {
|
||||
catch ( RtAudioError &error ) {
|
||||
error.printMessage();
|
||||
goto cleanup;
|
||||
}
|
||||
@@ -60,7 +60,7 @@ int main()
|
||||
try {
|
||||
dac.closeStream();
|
||||
}
|
||||
catch ( RtError &error ) {
|
||||
catch ( RtAudioError &error ) {
|
||||
error.printMessage();
|
||||
}
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@ int main(int argc, char *argv[])
|
||||
try {
|
||||
adac.openStream( &oParams, &iParams, FORMAT, fs, &bufferFrames, &inout, (void *)&bufferBytes, &options );
|
||||
}
|
||||
catch ( RtError& e ) {
|
||||
catch ( RtAudioError& e ) {
|
||||
std::cout << '\n' << e.getMessage() << '\n' << std::endl;
|
||||
exit( 1 );
|
||||
}
|
||||
@@ -127,7 +127,7 @@ int main(int argc, char *argv[])
|
||||
// Stop the stream.
|
||||
adac.stopStream();
|
||||
}
|
||||
catch ( RtError& e ) {
|
||||
catch ( RtAudioError& e ) {
|
||||
std::cout << '\n' << e.getMessage() << '\n' << std::endl;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ int main( int argc, char *argv[] )
|
||||
try {
|
||||
dac.openStream( ¶meters, NULL, format, (unsigned int)Stk::sampleRate(), &bufferFrames, &tick, (void *)&grani );
|
||||
}
|
||||
catch ( RtError &error ) {
|
||||
catch ( RtAudioError &error ) {
|
||||
error.printMessage();
|
||||
goto cleanup;
|
||||
}
|
||||
@@ -90,7 +90,7 @@ int main( int argc, char *argv[] )
|
||||
try {
|
||||
dac.startStream();
|
||||
}
|
||||
catch ( RtError &error ) {
|
||||
catch ( RtAudioError &error ) {
|
||||
error.printMessage();
|
||||
goto cleanup;
|
||||
}
|
||||
@@ -105,7 +105,7 @@ int main( int argc, char *argv[] )
|
||||
try {
|
||||
dac.closeStream();
|
||||
}
|
||||
catch ( RtError &error ) {
|
||||
catch ( RtAudioError &error ) {
|
||||
error.printMessage();
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ int main()
|
||||
try {
|
||||
midiin = new RtMidiIn();
|
||||
}
|
||||
catch ( RtError &error ) {
|
||||
catch ( RtMidiError &error ) {
|
||||
error.printMessage();
|
||||
exit( EXIT_FAILURE );
|
||||
}
|
||||
@@ -31,7 +31,7 @@ int main()
|
||||
try {
|
||||
portName = midiin->getPortName(i);
|
||||
}
|
||||
catch ( RtError &error ) {
|
||||
catch ( RtMidiError &error ) {
|
||||
error.printMessage();
|
||||
goto cleanup;
|
||||
}
|
||||
@@ -42,7 +42,7 @@ int main()
|
||||
try {
|
||||
midiout = new RtMidiOut();
|
||||
}
|
||||
catch ( RtError &error ) {
|
||||
catch ( RtMidiError &error ) {
|
||||
error.printMessage();
|
||||
exit( EXIT_FAILURE );
|
||||
}
|
||||
@@ -54,7 +54,7 @@ int main()
|
||||
try {
|
||||
portName = midiout->getPortName(i);
|
||||
}
|
||||
catch ( RtError &error ) {
|
||||
catch ( RtMidiError &error ) {
|
||||
error.printMessage();
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ int main(int argc, char *argv[])
|
||||
try {
|
||||
dac.openStream( ¶meters, NULL, format, (unsigned int)Stk::sampleRate(), &bufferFrames, &tick, (void *)&input );
|
||||
}
|
||||
catch ( RtError &error ) {
|
||||
catch ( RtAudioError &error ) {
|
||||
error.printMessage();
|
||||
goto cleanup;
|
||||
}
|
||||
@@ -113,7 +113,7 @@ int main(int argc, char *argv[])
|
||||
try {
|
||||
dac.startStream();
|
||||
}
|
||||
catch ( RtError &error ) {
|
||||
catch ( RtAudioError &error ) {
|
||||
error.printMessage();
|
||||
goto cleanup;
|
||||
}
|
||||
@@ -127,7 +127,7 @@ int main(int argc, char *argv[])
|
||||
try {
|
||||
dac.closeStream();
|
||||
}
|
||||
catch ( RtError &error ) {
|
||||
catch ( RtAudioError &error ) {
|
||||
error.printMessage();
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ int main( int argc, char *argv[] )
|
||||
try {
|
||||
midiout = new RtMidiOut();
|
||||
}
|
||||
catch ( RtError& error ) {
|
||||
catch ( RtMidiError& error ) {
|
||||
error.printMessage();
|
||||
exit(0);
|
||||
}
|
||||
@@ -48,7 +48,7 @@ int main( int argc, char *argv[] )
|
||||
try {
|
||||
midiout->openVirtualPort();
|
||||
}
|
||||
catch ( RtError& error ) {
|
||||
catch ( RtMidiError& error ) {
|
||||
error.printMessage();
|
||||
goto cleanup;
|
||||
}
|
||||
@@ -62,7 +62,7 @@ int main( int argc, char *argv[] )
|
||||
try {
|
||||
midiout->openPort( port );
|
||||
}
|
||||
catch ( RtError& error ) {
|
||||
catch ( RtMidiError& error ) {
|
||||
error.printMessage();
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@ int main()
|
||||
try {
|
||||
dac.openStream( ¶meters, NULL, format, (unsigned int)Stk::sampleRate(), &bufferFrames, &tick, (void *)&data );
|
||||
}
|
||||
catch ( RtError &error ) {
|
||||
catch ( RtAudioError &error ) {
|
||||
error.printMessage();
|
||||
goto cleanup;
|
||||
}
|
||||
@@ -157,7 +157,7 @@ int main()
|
||||
try {
|
||||
dac.startStream();
|
||||
}
|
||||
catch ( RtError &error ) {
|
||||
catch ( RtAudioError &error ) {
|
||||
error.printMessage();
|
||||
goto cleanup;
|
||||
}
|
||||
@@ -170,7 +170,7 @@ int main()
|
||||
try {
|
||||
dac.closeStream();
|
||||
}
|
||||
catch ( RtError &error ) {
|
||||
catch ( RtAudioError &error ) {
|
||||
error.printMessage();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user