Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not run in android xamarin #18

Open
nanfei01055 opened this issue Jul 10, 2024 · 0 comments
Open

Can not run in android xamarin #18

nanfei01055 opened this issue Jul 10, 2024 · 0 comments

Comments

@nanfei01055
Copy link

nanfei01055 commented Jul 10, 2024

public bool OpenFile(WaveStream stream, double tempo = 1)
{
    Close();

    try
    {
        var inputStream = new WaveChannel32(stream) { PadWithZeroes = false };

        ProcessorStream = new SoundTouchWaveStream(inputStream);

        ProcessorStream.Tempo = tempo;

        _waveOut = new WaveOutEvent() { DesiredLatency = 200 };

        _waveOut.Init(ProcessorStream);
        _waveOut.PlaybackStopped += OnPlaybackStopped;

        return true;
    }
    catch (Exception exp)
    {
        // Error in opening file
        _waveOut = null;
        StatusMessage.Write("Can't open file: " + exp.Message);
        return false;
    }
}

Error:
_waveOut.Init(ProcessorStream); throw
winmm.dll assembly:<unknown assembly> type:<unknown type> member:(null)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant