forum.boolean.name

forum.boolean.name (http://forum.boolean.name/index.php)
-   Unity (http://forum.boolean.name/forumdisplay.php?f=144)
-   -   Unity3d&BASS.DLL (http://forum.boolean.name/showthread.php?t=16857)

RegIon 02.06.2012 17:27

Unity3d&BASS.DLL
 
Вложений: 1
Скачал BASS.NET.DLL, закинул в Assets\Plugins BASS.NET.DLL + bass.dll
Все пучком работает, музычка играет, кроме одного:
вылетает постоянно окошкоВложение 16956
(ну и лого BASS.NET)
и при компиле в *exe такая ошибка:
Код:

ArgumentException: The Assembly System.Windows.Forms is referenced by Bass.Net. But the dll is not allowed to be included or could not be found.
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache) (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/AssemblyHelper.cs:52)
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache) (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/AssemblyHelper.cs:55)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch) (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/AssemblyHelper.cs:87)
UnityEditor.HostView:OnGUI()

Я так посмотрел на лог, это похоже не лечиться, а руками bass.dll я не смог приинклудить.
Что делать?
(если не как, то дайте *.decl для bass.dll под Blitz3d)

Nuprahtor 02.06.2012 17:36

Ответ: Unity3d&BASS.DLL
 
А зачем она в юнити?

RegIon 02.06.2012 17:40

Ответ: Unity3d&BASS.DLL
 
"Частотная гистограмма хочу", хочу тоже аудио-игру смутить, стандартные классы не позволяют.

cahekp 02.06.2012 18:47

Ответ: Unity3d&BASS.DLL
 
Думаю, тебе нужно что-то типа этого:
http://unity3d.com/support/documenta...utputData.html
и этого:
http://unity3d.com/support/documenta...ctrumData.html

Вот простой пример. Закидывать скрипт на объект, который имеет AudioSource с аудиоклипом.
PHP код:

using UnityEngine;
using System.Collections;

public class 
AudioVisualizer MonoBehaviour {

    
float[] samples = new float[300];

    
void Update () {
        
audio.GetOutputData(samples0);
    }

    
void OnGUI () {
        
GUI.Label(new Rect(10,10,300,30), "samples:");
        for (
int i=0i<samples.Lengthi++) {
            
GUI.Label(new Rect(10 + (i*3),100 - (samples[i]*100.0F),10,20), "-");
        }
    }



Wegox 02.06.2012 19:04

Ответ: Unity3d&BASS.DLL
 
Цитата:

Сообщение от Костян (Сообщение 229253)
Скачал BASS.NET.DLL, закинул в Assets\Plugins BASS.NET.DLL + bass.dll
Все пучком работает, музычка играет, кроме одного:
вылетает постоянно окошкоВложение 16956
(ну и лого BASS.NET)
и при компиле в *exe такая ошибка:
Код:

ArgumentException: The Assembly System.Windows.Forms is referenced by Bass.Net. But the dll is not allowed to be included or could not be found.
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache) (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/AssemblyHelper.cs:52)
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache) (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/AssemblyHelper.cs:55)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch) (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/AssemblyHelper.cs:87)
UnityEditor.HostView:OnGUI()

Я так посмотрел на лог, это похоже не лечиться, а руками bass.dll я не смог приинклудить.
Что делать?
(если не как, то дайте *.decl для bass.dll под Blitz3d)

Личка:)

ffinder 02.06.2012 19:16

Ответ: Unity3d&BASS.DLL
 
Цитата:

Сообщение от Костян (Сообщение 229256)
"Частотная гистограмма хочу", хочу тоже аудио-игру смутить, стандартные классы не позволяют.

в юнити с 3й версии интегрирован fmod. неужели он не умеет гистограмму?

RegIon 02.06.2012 20:01

Ответ: Unity3d&BASS.DLL
 
Не видел такого.СПС

valyard 06.07.2012 20:33

Ответ: Unity3d&BASS.DLL
 
Проблема решилась как-нибудь?
Тоже не могу понять что с этим делать...


Часовой пояс GMT +4, время: 16:08.

vBulletin® Version 3.6.5.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot