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

error in example min is not found in this code #1

Open
sairashaheen opened this issue Jul 14, 2013 · 0 comments
Open

error in example min is not found in this code #1

sairashaheen opened this issue Jul 14, 2013 · 0 comments

Comments

@sairashaheen
Copy link

line of code is

ring_buffer_size_t elementsToWrite = min(elementsWriteable, (ring_buffer_size_t)(framesPerBuffer * NUM_CHANNELS));

error is

src/paex_record.c: In function ‘int recordCallback(const void_, void_, long unsigned int, const PaStreamCallbackTimeInfo_, PaStreamCallbackFlags, void_)’:
src/paex_record.c:209:117: error: ‘min’ was not declared in this scope
src/paex_record.c: In function ‘int playCallback(const void_, void_, long unsigned int, const PaStreamCallbackTimeInfo_, PaStreamCallbackFlags, void_)’:
src/paex_record.c:234:113: error: ‘min’ was not declared in this scope

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