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:
David Reid
2025-01-11 16:30:15 +10:00
parent 547ef1c9b7
commit fcddfe6204
3 changed files with 11 additions and 3 deletions
-3
View File
@@ -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);