Skip to content

Commit

Permalink
viz API change update
Browse files Browse the repository at this point in the history
  • Loading branch information
AlwinEsch committed Sep 16, 2022
1 parent 0582b3b commit aaed650
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ void CVisualizationShadertoy::Render()
}
}

bool CVisualizationShadertoy::Start(int iChannels, int iSamplesPerSec, int iBitsPerSample, std::string szSongName)
bool CVisualizationShadertoy::Start(int iChannels, int iSamplesPerSec, int iBitsPerSample, const std::string& szSongName)
{
#ifdef DEBUG_PRINT
printf("Start %i %i %i %s\n", iChannels, iSamplesPerSec, iBitsPerSample, szSongName.c_str());
Expand Down Expand Up @@ -206,7 +206,7 @@ void CVisualizationShadertoy::Stop()
}


void CVisualizationShadertoy::AudioData(const float* pAudioData, int iAudioDataLength, float* pFreqData, int iFreqDataLength)
void CVisualizationShadertoy::AudioData(const float* pAudioData, size_t iAudioDataLength)
{
WriteToBuffer(pAudioData, iAudioDataLength, 2);

Expand Down
4 changes: 2 additions & 2 deletions src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class ATTR_DLL_LOCAL CVisualizationShadertoy
CVisualizationShadertoy();
~CVisualizationShadertoy() override;

bool Start(int channels, int samplesPerSec, int bitsPerSample, std::string songName) override;
bool Start(int channels, int samplesPerSec, int bitsPerSample, const std::string& songName) override;
void Stop() override;
void AudioData(const float* audioData, int audioDataLength, float* freqData, int freqDataLength) override;
void AudioData(const float* audioData, size_t audioDataLength) override;
void Render() override;
bool GetPresets(std::vector<std::string>& presets) override;
int GetActivePreset() override;
Expand Down

0 comments on commit aaed650

Please sign in to comment.