ccrma / miniAudicle

miniAudicle: integrated development + performance environment for the ChucK programming language
https://chuck.stanford.edu/
GNU General Public License v2.0
65 stars 9 forks source link

Crashing bug #31

Closed spencersalazar closed 7 years ago

spencersalazar commented 7 years ago

There is a problem with the new version of MiniAudicle where it crashes if there is an old preference file. In order to install Fauck on the ccrma computers, can we please fix this bug? I'm including an example of the old config file and an example of the new config file. Hopefully it isn't too hard to do one of the following:

#################
old miniAudicle.conf
#################
[GUI]
RecentFiles=/user/k/kermit/Downloads/220a homework 1/weather.ck, /user/k/kermit/Downloads/220a homework 
1/sonificationPlayer.ck, /user/k/kermit/Downloads/220a homework 1/latPlayer.ck, /user/k/kermit/Downloads
/220a homework 1/dataReader.ck
#################
new miniAudicle.conf
#################
[GUI]
RecentFiles=-v, -h
Editing\FontName=TeX Gyre Cursor
Editing\FontSize=10
Editing\SyntaxColoringEnabled=true
Editing\SyntaxColoring\NormalText=4278190080
Editing\SyntaxColoring\Keywords=4278190335
Editing\SyntaxColoring\Classes=4286578723
Editing\SyntaxColoring\UGens=4288807148
Editing\SyntaxColoring\Comments=4284518416
Editing\SyntaxColoring\Strings=4282400832
Editing\SyntaxColoring\Numbers=4292116496
Editing\SyntaxColoring\Background=4294967295
Editing\UsesTabs=false
Editing\TabSize=4

[VM]
EnableAudio=true
EnableNetworkOTFCommands=false
DAC=1
ADC=1
InputChannels=2
OutputChannels=2
SampleRate=48000
SampleBufferSize=512

[ChuGins]
Enable=true
Paths=/usr/local/lib/chuck, 

[Miscellaneous]
CurrentDirectory=/user/k/kermit
spencersalazar commented 7 years ago

This was in fact a series of bugs where miniAudicle would exit() if audio set up failed, and audio set up failed because a default sample rate of 44100 was incorrectly being used.

Fixed in dfefe40c8a695b6cc2c9a5ce658b020f25595eeb