mirror of
https://github.com/thestk/stk
synced 2026-01-11 20:11:52 +00:00
Merge pull request #66 from rhenninger/patch-2
redirect non-conforming writes to cerr to oStream_
This commit is contained in:
@@ -117,7 +117,7 @@ void Guitar :: setBodyFile( std::string bodyfile )
|
|||||||
void Guitar :: setPluckPosition( StkFloat position, int string )
|
void Guitar :: setPluckPosition( StkFloat position, int string )
|
||||||
{
|
{
|
||||||
if ( position < 0.0 || position > 1.0 ) {
|
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;
|
handleError( StkError::WARNING ); return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -136,7 +136,7 @@ void Guitar :: setPluckPosition( StkFloat position, int string )
|
|||||||
void Guitar :: setLoopGain( StkFloat gain, int string )
|
void Guitar :: setLoopGain( StkFloat gain, int string )
|
||||||
{
|
{
|
||||||
if ( gain < 0.0 || gain > 1.0 ) {
|
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;
|
handleError( StkError::WARNING ); return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ void Mandolin :: clear( void )
|
|||||||
void Mandolin :: setPluckPosition( StkFloat position )
|
void Mandolin :: setPluckPosition( StkFloat position )
|
||||||
{
|
{
|
||||||
if ( position < 0.0 || position > 1.0 ) {
|
if ( position < 0.0 || position > 1.0 ) {
|
||||||
std::cerr << "Mandolin::setPluckPosition: position parameter out of range!";
|
oStream_ << "Mandolin::setPluckPosition: position parameter out of range!";
|
||||||
handleError( StkError::WARNING ); return;
|
handleError( StkError::WARNING ); return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ void Resonate :: setResonance( StkFloat frequency, StkFloat radius )
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( radius < 0.0 || radius >= 1.0 ) {
|
if ( radius < 0.0 || radius >= 1.0 ) {
|
||||||
std::cerr << "Resonate::setResonance: radius parameter is out of range!";
|
oStream_ << "Resonate::setResonance: radius parameter is out of range!";
|
||||||
handleError( StkError::WARNING ); return;
|
handleError( StkError::WARNING ); return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user