mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
Update ma_pcm_rb data source implementation.
The data source implementation of a ma_pcm_rb could possibly return a frame count of 0 which would in turn result in ma_data_source_read_pcm_frames() returning MA_AT_END which does not make sense for a ring buffer since it has no notion of an end.
This commit is contained in:
@@ -125,9 +125,6 @@ int main(int argc, char** argv)
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Make sure the sound is set to looping or else it'll stop if the ring buffer runs out of data. */
|
||||
ma_sound_set_looping(&sound, MA_TRUE);
|
||||
|
||||
/* Link the starting of the device and sound together. */
|
||||
ma_device_start(&device);
|
||||
ma_sound_start(&sound);
|
||||
|
||||
Reference in New Issue
Block a user