mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Added sound input and recording functionality.
This commit is contained in:
@@ -63,6 +63,13 @@ namespace sound
|
||||
{
|
||||
data = (char*)malloc(size);
|
||||
}
|
||||
|
||||
SoundData::SoundData(void * d, int samples, int sampleRate, int bits, int channels)
|
||||
: data(0), size(samples*(bits/8)), sampleRate(sampleRate), bits(bits), channels(channels)
|
||||
{
|
||||
data = (char*)malloc(size);
|
||||
memcpy(data, d, size);
|
||||
}
|
||||
|
||||
SoundData::~SoundData()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user