472872ee9dc3 — Chris Cannam 2 years ago
Build & typo fixes
M src/CoreAudioWriteStream.h +1 -1
@@ 50,7 50,7 @@ public:
 
     virtual std::string getError() const { return m_error; }
 
-    virtual void putInterleavedFrames(size_t count, float *frames);
+    virtual void putInterleavedFrames(size_t count, const float *frames);
     
 protected:
     std::string m_error;

          
M src/OpusWriteStream.cpp +1 -1
@@ 81,7 81,7 @@ OpusWriteStream::OpusWriteStream(Target 
     m_d->comments = ope_comments_create();
     
     int err = 0;
-    m_d->encoder = ope_encoder_create_file(getPath().c_str(), comments,
+    m_d->encoder = ope_encoder_create_file(getPath().c_str(), m_d->comments,
                                            getSampleRate(), getChannelCount(),
                                            getChannelCount() > 2 ? 1 : 0,
                                            &err);

          
M src/SimpleWavFileWriteStream.cpp +2 -2
@@ 124,7 124,7 @@ SimpleWavFileWriteStream::int2le(uint32_
 {
     string r(length, '\0');
 
-    for (int i = 0; i < length; ++i) {
+    for (uint32_t i = 0; i < length; ++i) {
         r[i] = (uint8_t)(value & 0xff);
         value >>= 8;
     }

          
@@ 172,7 172,7 @@ SimpleWavFileWriteStream::writeFormatChu
 }
 
 void
-SimpleWavFileWriteStream::putInterleavedFrames(size_t count, float *frames)
+SimpleWavFileWriteStream::putInterleavedFrames(size_t count, const float *frames)
 {
     if (count == 0) return;
 

          
M src/SimpleWavFileWriteStream.h +1 -1
@@ 54,7 54,7 @@ public:
 
     virtual std::string getError() const { return m_error; }
 
-    virtual void putInterleavedFrames(size_t count, float *frames);
+    virtual void putInterleavedFrames(size_t count, const float *frames);
     
 protected:
     int m_bitDepth;