import { defineStore } from 'pinia' import { ref, computed } from 'vue'; export const useAudioStore = defineStore('audioStore', () => { var inputDevices = ref([{"id":0, "name": "no input devices"}]) var outputDevices = ref([{"id":0, "name": "no output devices"}]) function getInputDevices() { var html = ""; for(var key in inputDevices.value) { html +=``; } return html } function getOutputDevices() { var html = ""; for(var key in outputDevices.value) { html +=``; } return html } return { inputDevices, outputDevices, getInputDevices, getOutputDevices }; });