mirror of
https://github.com/thestk/stk
synced 2026-01-11 20:11:52 +00:00
redirect non-conforming writes to cerr to oStream_
Most error messages go to oStream_. Two in guitar.cpp don't conform.
This commit is contained in:
@@ -117,7 +117,7 @@ void Guitar :: setBodyFile( std::string bodyfile )
|
||||
void Guitar :: setPluckPosition( StkFloat position, int string )
|
||||
{
|
||||
if ( position < 0.0 || position > 1.0 ) {
|
||||
std::cerr << "Guitar::setPluckPosition: position parameter out of range!";
|
||||
oStream_ << "Guitar::setPluckPosition: position parameter out of range!";
|
||||
handleError( StkError::WARNING ); return;
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ void Guitar :: setPluckPosition( StkFloat position, int string )
|
||||
void Guitar :: setLoopGain( StkFloat gain, int string )
|
||||
{
|
||||
if ( gain < 0.0 || gain > 1.0 ) {
|
||||
std::cerr << "Guitar::setLoopGain: gain parameter out of range!";
|
||||
oStream_ << "Guitar::setLoopGain: gain parameter out of range!";
|
||||
handleError( StkError::WARNING ); return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user