Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation errors #18

Open
sevstels opened this issue Dec 3, 2024 · 0 comments
Open

compilation errors #18

sevstels opened this issue Dec 3, 2024 · 0 comments

Comments

@sevstels
Copy link

sevstels commented Dec 3, 2024

Unfortunately, there are quite a few errors and the example doesn't work.

1>pa_trace.c
1>pa_opensles.c
1>src\PortAudio\hostapi\opensles\pa_opensles.c(165,59): error : type 'double' cannot be narrowed to 'SLuint32' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]
1> SLDataFormat_PCM formatPcm = { SL_DATAFORMAT_PCM, 1, sampleRate,
1> ^~~~~~~~~~
1>src\PortAudio\hostapi\opensles\pa_opensles.c(165,59): note: insert an explicit cast to silence this issue
1> SLDataFormat_PCM formatPcm = { SL_DATAFORMAT_PCM, 1, sampleRate,
1> ^~~~~~~~~~
1> static_cast( )
1>src\PortAudio\hostapi\opensles\pa_opensles.c(197,57): error : type 'double' cannot be narrowed to 'SLuint32' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]
1> SLDataFormat_PCM formatPcm = {SL_DATAFORMAT_PCM, 1, sampleRate,
1> ^~~~~~~~~~
1>src\PortAudio\hostapi\opensles\pa_opensles.c(197,57): note: insert an explicit cast to silence this issue
1> SLDataFormat_PCM formatPcm = {SL_DATAFORMAT_PCM, 1, sampleRate,
1> ^~~~~~~~~~
1> static_cast( )
1>src\PortAudio\hostapi\opensles\pa_opensles.c(631,20): warning : unused variable 'availableInputFormats' [-Wunused-variable]
1> PaSampleFormat availableInputFormats, availableOutputFormat;
1> ^
1>src\PortAudio\hostapi\opensles\pa_opensles.c(631,43): warning : unused variable 'availableOutputFormat' [-Wunused-variable]
1> PaSampleFormat availableInputFormats, availableOutputFormat;
1> ^
1>src\PortAudio\hostapi\opensles\pa_opensles.c(841,47): error : type 'double' cannot be narrowed to 'SLuint32' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]
1> sampleRate * 1000.0, stream->outputStream->bytesPerSample * 8, stream->outputStream->bytesPerSample * 8,
1> ^~~~~~~~~~~~~~~~~~~
1>src\PortAudio\hostapi\opensles\pa_opensles.c(841,47): note: insert an explicit cast to silence this issue
1> sampleRate * 1000.0, stream->outputStream->bytesPerSample * 8, stream->outputStream->bytesPerSample * 8,
1> ^~~~~~~~~~~~~~~~~~~
1> static_cast( )
1>src\PortAudio\hostapi\opensles\pa_opensles.c(946,47): error : type 'double' cannot be narrowed to 'SLuint32' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]
1> sampleRate * 1000.0, stream->inputStream->bytesPerSample * 8, stream->inputStream->bytesPerSample * 8,
1> ^~~~~~~~~~~~~~~~~~~
1>src\PortAudio\hostapi\opensles\pa_opensles.c(946,47): note: insert an explicit cast to silence this issue
1> sampleRate * 1000.0, stream->inputStream->bytesPerSample * 8, stream->inputStream->bytesPerSample * 8,
1> ^~~~~~~~~~~~~~~~~~~
1> static_cast( )
1>src\PortAudio\hostapi\opensles\pa_opensles.c(1115,5): error : assigning to 'PaError *' (aka 'int ') from incompatible type 'void '
1> PaUnixThreading_EXIT( paNoError );
1> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1>.\src\PortAudio\os\unix\pa_unix_util.h(174,20): note: expanded from macro 'PaUnixThreading_EXIT'
1> pres = malloc( sizeof (PaError) );
1> ^~~~~~~~~~~~~~~~~~~~~~~~~~
1>src\PortAudio\hostapi\opensles\pa_opensles.c(1229,9): error : no matching function for call to 'PaUnixThread_New'
1> PaUnixThread_New(&stream->streamThread, (void
) StreamProcessingCallback,
1> ^~~~~~~~~~~~~~~~
1>.\src\PortAudio\os\unix\pa_unix_util.h(191,9): note: candidate function not viable: cannot convert argument of incomplete type 'void ' to 'void ()(void )' for 2nd argument
1>PaError PaUnixThread_New( PaUnixThread
self, void
(threadFunc)( void ), void
threadArg, PaTime waitForChild,
1> ^
1>2 warnings and 6 errors generated.
1>Done building project "NativeActivity.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant