Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/lime/_internal/backend/native/NativeAudioSource.hx
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ class NativeAudioSource

private function clearSDLSoundStream():Void
{
#if lime_sdl_sound
#if (lime_sdl_sound && !macro)
if (sdlSoundStream != null)
{
NativeCFFI.lime_sdl_sound_stream_clear(sdlSoundStream);
Expand Down Expand Up @@ -383,7 +383,7 @@ class NativeAudioSource

private function openSDLSoundStream():Bool
{
#if lime_sdl_sound
#if (lime_sdl_sound && !macro)
clearSDLSoundStream();

if (parent.buffer.__srcSDLSoundBytes != null)
Expand Down Expand Up @@ -441,7 +441,7 @@ class NativeAudioSource

private function resetSDLSoundStream(time:Int):Bool
{
#if lime_sdl_sound
#if (lime_sdl_sound && !macro)
if (time < 0)
{
time = 0;
Expand Down Expand Up @@ -721,7 +721,7 @@ class NativeAudioSource

private function readSDLSoundBuffer(length:Int):Int
{
#if lime_sdl_sound
#if (lime_sdl_sound && !macro)
if (sdlSoundStream == null || length <= 0 || streamByteRate <= 0)
{
return 0;
Expand Down
Loading