mirror of
https://github.com/love2d/love.git
synced 2026-08-15 07:41:11 +02:00
Added Source:getChannels. Positional/directional audio only works with 1-channel (mono) sources.
This commit is contained in:
@@ -224,6 +224,11 @@ float Source::getMaxDistance() const
|
||||
return this->maxDistance;
|
||||
}
|
||||
|
||||
int Source::getChannels() const
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
|
||||
} // null
|
||||
} // audio
|
||||
} // love
|
||||
|
||||
Reference in New Issue
Block a user