Questions about sceAudioRoutingSetMode and sceAudioRoutingGetMode

Đang mở Phù hợp với người mới
#388 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
70/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c
Lĩnh vực
audio-video-rtc

Hướng nghiên cứu

Bắt đầu với sceAudioRouting_driver.S và so sánh các NID và flag được export của nó với các hàm trong impose_0.2g.prx. Xác nhận xem các NID của driver có phải là 0x18B6F449 và 0x931ABEF5 hay không, đồng thời xác định liệu có nên biểu diễn bốn chế độ hoặc trạng thái routing hay không; issue hoàn tất khi các định nghĩa SDK chính xác và các chế độ được hỗ trợ được xác lập.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Hi,

I've noticed that the NIDs provided by the SDK for sceAudioRoutingSetMode and sceAudioRoutingGetMode are the same for both sceAudioRouting and sceAudioRouting_driver.
Looking at the exports found in impose_0.2g.prx, I've seen that it exports the same functions (same offset within the PRX) but with different NIDs and flags. The NIDs currently in the SDK match those of sceAudioRouting (the user-mode library), not sceAudioRouting_driver.

I'm writing a kernel-mode PRX plugin and need to call the driver versions of these functions. Using the NIDs provided by the SDK doesn't work, but forcing them to:
sceAudioRoutingSetMode → 0x18B6F449
sceAudioRoutingGetMode → 0x931ABEF5
solves the problem.

Also, the possible routing modes/states appear to be 4, not 2.

I'm opening this issue before submitting a PR, to ask whether I should just fix the NIDs in sceAudioRouting_driver.S, or if there's something else going on that I'm missing.

Thanks!

Ngôn ngữ chính
C
Star
1.2k
Fork
190
Merge trung bình
1 ngày 18 giờ
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pspdev/pspsdk

Tất cả issue của pspdev/pspsdk

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.