Giter Club home page Giter Club logo

ofxlibsndfilerecorder's Introduction

===================OFXLIBSNDFILERECORDER V 0.01=================


The ofxLibsndFileRecorder openframeworks addon enables you to record audio samples in different formats using libsndfile library.
Tested on OSX (XCode 3.2.6) and Windows (VS2010) 

ofxlibsndfilerecorder's People

Contributors

angeloseme avatar

Stargazers

Andrew Ikenberry avatar  avatar  avatar Subong Jung avatar Mitsuhito Ando avatar Caroline Record avatar David Peñuela avatar FUZZYW avatar Motoso Inami avatar Johann Diedrick avatar  avatar Arne Boon avatar Oriol Ferrer Mesià avatar

Watchers

James Cloos avatar  avatar

ofxlibsndfilerecorder's Issues

memory leak + fix

hi angelo,

thanks for developing this of library, it worked out of the box for me on osx 10.7.2 / xcode 4.1 / openframeworks 007 github develop branche 2012-04.

i tested the example in Apple Instruments for memory leaks and allocations and i detected a memory leak in
ofxLibsndFileRecorder::setup(string fileName, int sampleRate_, int numChannels_)
on
outFile=new SndfileHandle(ofToDataPath(fileName,true),SFM_RDWR, audioFormat, numChannels, sampleRate);

outFile is never cleaned out before creating the new SndfileHandle in a new recording.

so i in ofxLibsndFileRecorder.cpp for void ofxLibsndFileRecorder::finalize(){
i added as last line within the if(initialized){ statement (line 59 in ofxLibsndfileRecorder.cpp)

delete outFile;

testing it again in instuments showed the memory leak was gone.

you might want to test it out for yourself and add this fix to the repository when affirmitive.

thanks for your attention reading this message.

best regards,

arne.

more: http://www.ehow.com/how_2190610_prevent-memory-leaks-c.html
and: http://gigaom.com/apple/apples-instruments-for-developers/

(python scikits.audiolab Sndfile special chars in file name)

Hi ,

Could you help me out on this , or guide me to some how can thanks

I am trying to get a wav file information but Sndfile is unable to read file with special characters in path and file name(查找問題daw.wav) and i am unable to get information in any way , i tried passing file path to Sndfile with diferent encoding to but didnt work , but if i pass this 'C:\Users\Furqan\Desktop\test\DAW\1.wav' it works fine , Thanks is advance

My Code is
# -- coding: UTF-8 --
from scikits.audiolab import Sndfile
from os import walk, path, stat

track1 =  r'C:\Users\Furqan\Desktop\test\查找問題daw\查找問題d.wav'
#track2 = r'C:\Users\Furqan\Desktop\test\DAW\1.wav'

try:
    track_one_file_obj = Sndfile(track1, 'r')
except:
    print('Simple didnt work')
    pass

try:
    track_one_file_obj = Sndfile(track1.decode('cp1252'), 'r')
except:
    print('cp1252 didnt work')
    pass

try:
    track_one_file_obj = Sndfile(track1.encode('utf-8'), 'r')
    print(track_one_file_obj)
except:
    print('encode didnt work')
    pass


try:
    track_one_file_obj = Sndfile(track1.encode('utf8'), 'r')
    print(track_one_file_obj)
except:
    print('encode didnt work')
    pass

try:
    track_one_file_obj = Sndfile(track1.decode('utf-8'), 'r')
    print(track_one_file_obj)
except:
    print('decode didnt work')
    pass

broken on ofx 0.10.1

greetings angeloseme,

the error i'm getting is

/Applications/of_v0.10.1_osx_release/addons/ofxLibsndfileRecorder/src/ofxLibsndFileRecorder.cpp:21:28: No matching function for call to 'ofToDataPath'

not sure how to fix it.

thanks for your advice and help!

ted

16000MHz?

Hi,

Thanks for the useful library.

I have been trying to record at 16000MHz with no luck, only 44100 works... Any ideas on how this issue can be addressed?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.