[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] large sound files (> 2Gb)



Hey ho.

Im having troubles reading larger soundfiles then the 2Gb limit
(expected to be found lying around in lesser software ;-) )

I thought the days of such limitatsion were passed?

Anyways i cant get \b_read or similar to accept any files larger than
2Gb, either RIFF/WAV, Sun/Next, AIFF, others - returning the same error:
"File longfile.EXT could not be opened."

Ive compiled with libsndfile-1.0.21, and it seems other softwares are
allright.

The following makes a ~ 2.1 Gb soundfile, which i cant read back into sc

  SynthDef(\tut, {Out.ar(0, SinOsc.ar())}).writeDefFile

  (
  g = [[0.0, [\s_new, \tut, 1000, 0, 0]], [8200, [\c_set, 0, 0]]];
  o = ServerOptions.new.numOutputBusChannels = 2; 
  Score.recordNRT(g, "/tmp/test_lang.osc", "/tmp/test_lang.wav", nil, 44100, 'RIFF', 'int24',  o); 
  )
  
But:

  s.sendMsg(\b_alloc, 0, 65536, 2)
  s.sendMsg(\b_read, i, "/tmp/test_lang.wav", 0, 65536, 0, 1)

-> blah...  

SoundFile.openRead reads the file correctly and the object returns
correct values for numFrames and various header-stuff.

Any ideas?

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/