Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

97
Views
Superpowered Recorder doesn't write files

I'm trying to mix SuperpoweredAdvancedAudioPlayers and write to a wav file. I called recorder->start(path) and recorder->stop(), but nothing gets written to disk. I have correct storage permissions in my manifest. I googled other people's code and came up with this:

My process:

bool SuperpoweredExample::process(short int *output, unsigned int numberOfSamples) {
    double masterBpm = players[0]->currentBpm;
    double msElapsedSinceLastBeat = players[0]->msElapsedSinceLastBeat;

    uint16_t i;
    bool silence = true;
    for (i=rs=0; i<NUMPLAYERS; i++) {

        if (players[i]->process(stereoBuffer, !silence, numberOfSamples, volume[i] * 0.25, masterBpm, msElapsedSinceLastBeat))
            silence = false;

    }

    if (!silence) {
        recorder->process(stereoBuffer, 0, buffersize);
    }

    if (!silence) {
        SuperpoweredFloatToShortInt(stereoBuffer, output, numberOfSamples);
    }

    return !silence;
}

Initialization:

recorder = new SuperpoweredRecorder(tempPath, samplerate, 1);

audioSystem = new SuperpoweredAndroidAudioIO(samplerate, buffersize, false, true, audioProcessing, this, -1, SL_ANDROID_STREAM_MEDIA, buffersize * 2);

Any ideas?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

This can happen on a path problem. Please check if the paths you submit are actually correct and writeable.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!