Skip to content

Commit

Permalink
Fixed broken master clock, this is 0.25 on ALPHA
Browse files Browse the repository at this point in the history
  • Loading branch information
ludzeller committed Feb 4, 2022
1 parent 11c0b4e commit 389dedd
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Assets/Materials/uncategorized/WaveformDisplaymat.mat
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Material:
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: WaveformDisplayMat
m_Name: WaveformDisplaymat
m_Shader: {fileID: 10750, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: _EMISSION
m_LightmapFlags: 1
Expand Down
2 changes: 1 addition & 1 deletion Assets/Resources/OVRBuildConfig.asset
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 20553fac56ec59645857c0732b787431, type: 3}
m_Name: OVRBuildConfig
m_EditorClassIdentifier:
androidSDKPath: C:\Program Files\Unity\Hub\Editor\2019.3.0f6\Editor\Data\PlaybackEngines\AndroidPlayer\SDK
androidSDKPath:
gradlePath:
jdkPath:
21 changes: 12 additions & 9 deletions Assets/Scripts/masterControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,21 +71,24 @@ void Awake() {
_sampleDuration = 1.0 / AudioSettings.outputSampleRate;

var configuration = AudioSettings.GetConfiguration();
if(configuration.sampleRate == 48000){
if (configuration.sampleRate == 48000)
{
Debug.Log("Unity sample rate is " + configuration.sampleRate);
} else {
}
else
{
Debug.LogWarning("Unity sample rate is " + configuration.sampleRate);
}

if (Application.platform == RuntimePlatform.Android)
{
Debug.Log("Buffer size was: " + AudioSettings.GetConfiguration().dspBufferSize);
configuration = AudioSettings.GetConfiguration();
configuration.dspBufferSize = 256;
AudioSettings.Reset(configuration);
Debug.Log("Buffer size is: " + AudioSettings.GetConfiguration().dspBufferSize);
//configuration = AudioSettings.GetConfiguration();
//configuration.dspBufferSize = 256;
//AudioSettings.Reset(configuration);

configuration = AudioSettings.GetConfiguration();
Debug.Log("Buffer size is now set to: " + AudioSettings.GetConfiguration().dspBufferSize);
//configuration = AudioSettings.GetConfiguration();
//Debug.Log("Buffer size is now set to: " + AudioSettings.GetConfiguration().dspBufferSize);

//OVRPlugin.systemDisplayFrequency = 72;
Debug.Log("Current cpuLevel: " + OVRManager.cpuLevel + ", gpuLevel: " + OVRManager.gpuLevel);
Expand All @@ -95,7 +98,7 @@ void Awake() {
Debug.Log("New cpuLevel: " + OVRManager.cpuLevel + ", gpuLevel: " + OVRManager.gpuLevel);
}

AudioSettings.Reset(configuration);
//AudioSettings.Reset(configuration); // DO NOT RE-ENABLE THIS, this fried the OnAudioFilterRead hook on the mastercontrol clock

if (!PlayerPrefs.HasKey("glowVal")) PlayerPrefs.SetFloat("glowVal", 1);
if (!PlayerPrefs.HasKey("envSound")) PlayerPrefs.SetInt("envSound", 1);
Expand Down
6 changes: 1 addition & 5 deletions Assets/main.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Assets/main.unity
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ LightmapSettings:
m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData
m_LightProbeSampleCountMultiplier: 4
m_LightingDataAsset: {fileID: 112000000, guid: 060ddb2e2647f174ebb97b32d18bf2d8,
m_LightingDataAsset: {fileID: 112000000, guid: fc7701f2f9092834ab8759d3f18863dc,
type: 2}
m_UseShadowmask: 0
--- !u!196 &4
Expand Down
3 changes: 2 additions & 1 deletion ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ PlayerSettings:
16:9: 1
Others: 1
bundleVersion: 0.25
preloadedAssets: []
preloadedAssets:
- {fileID: 8207365043489784020, guid: 93c4f4428c8e3814dbf9d469c39e85d4, type: 2}
metroInputSource: 0
wsaTransparentSwapchain: 0
m_HolographicPauseOnTrackingLoss: 1
Expand Down

0 comments on commit 389dedd

Please sign in to comment.