Skip to content

Commit

Permalink
rename package
Browse files Browse the repository at this point in the history
  • Loading branch information
windymelt committed Mar 23, 2024
1 parent c12e8f4 commit d67befa
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ lazy val downloadCore =

Compile / compile := (Compile / compile).dependsOn(downloadCore).value

buildInfoPackage := "com.github.windymelt.voicevoxcore4s"
buildInfoPackage := "dev.capslock.voicevoxcore4s"

lazy val common = project
.settings(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.windymelt.voicevoxcore4s;
package dev.capslock.voicevoxcore4s;

import com.sun.jna.Structure;
import java.util.Arrays;
Expand Down Expand Up @@ -58,4 +58,4 @@ protected List<String> getFieldOrder() {
return Arrays.asList("kana", "enable_interrogative_upspeak");
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.windymelt.voicevoxcore4s
package dev.capslock.voicevoxcore4s

import com.sun.jna.Library
import com.sun.jna.Library.OPTION_FUNCTION_MAPPER
Expand All @@ -18,8 +18,7 @@ import java.{util => ju}
// cf. https://github.com/VOICEVOX/voicevox_core/blob/0.14.1/core/src/core.h
// cf. https://voicevox.github.io/voicevox_core/apis/c_api/voicevox__core_8h.html

/**
* VOICEVOX CoreライブラリのJNAによるラッパー。純粋にラッパーとして振る舞うため、元ライブラリに忠実に振る舞う。
/** VOICEVOX CoreライブラリのJNAによるラッパー。純粋にラッパーとして振る舞うため、元ライブラリに忠実に振る舞う。
*/
trait Core extends Library {
def voicevox_audio_query(
Expand Down Expand Up @@ -123,8 +122,8 @@ trait Core extends Library {
}

object Core {
/**
* 関数/メソッド名を変換する層。かつてのバージョンのCoreでJavaの予約語に関数名が被っていた名残として用意している。

/** 関数/メソッド名を変換する層。かつてのバージョンのCoreでJavaの予約語に関数名が被っていた名残として用意している。
*/
private val functionMap = new com.sun.jna.FunctionMapper {
def getFunctionName(library: NativeLibrary, method: Method): String =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.windymelt.voicevoxcore4s
package dev.capslock.voicevoxcore4s

object Logger {
val logger = com.typesafe.scalalogging.Logger("voicevoxcore4s")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.windymelt.voicevoxcore4s
package dev.capslock.voicevoxcore4s

import com.sun.jna.ptr.{PointerByReference, IntByReference, LongByReference}
import java.io.FileOutputStream
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.windymelt.voicevoxcore4s
package dev.capslock.voicevoxcore4s

import java.io.File
import java.lang.invoke.MethodHandles
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package com.github.windymelt.voicevoxcore4s
package dev.capslock.voicevoxcore4s

import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers

import com.sun.jna.ptr.{PointerByReference, IntByReference}

/**
* 確実に一度だけライブラリをロードするためにObjectを使っている
/** 確実に一度だけライブラリをロードするためにObjectを使っている
*/
object TestRunner {
val dictionaryDirectory = Util.extractDictFiles()
Expand Down

0 comments on commit d67befa

Please sign in to comment.