Поиск:

Ответ в темуСоздание новой темы Создание опроса
> Работа со звуком! 
:(
    Опции темы
wrvu
  Дата 28.12.2009, 00:59 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Новичок



Профиль
Группа: Участник
Сообщений: 22
Регистрация: 21.12.2009

Репутация: нет
Всего: нет



Подскажите, какой IP-функцией нужно воспользоваться, что бы программа воспроизвела аудио файл(звуковой файл)?
Если есть простая программа-пример,  этот вариан будет очень полезен. С уважением. 
PM MAIL   Вверх
Mikl_
Дата 28.12.2009, 07:25 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Опытный
**


Профиль
Группа: Участник
Сообщений: 537
Регистрация: 9.11.2007

Репутация: нет
Всего: 14



wrvu
PlaySoundA smile 
Код
.data 
soundfile db '\SOUNDS\BELLS.WAV',0
.code
push SND_SYNC
push 0
push offset soundfile
call PlaySoundA


Это сообщение отредактировал(а) Mikl_ - 28.12.2009, 08:41
PM MAIL   Вверх
wrvu
Дата 30.12.2009, 01:55 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Новичок



Профиль
Группа: Участник
Сообщений: 22
Регистрация: 21.12.2009

Репутация: нет
Всего: нет



Mikl_ Благодарю за помощь! Пойду проверю эту функцию!!!  smile 
PM MAIL   Вверх
Mikl_
Дата 30.12.2009, 04:34 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Опытный
**


Профиль
Группа: Участник
Сообщений: 537
Регистрация: 9.11.2007

Репутация: нет
Всего: 14



wrvu
Проверять так уж по полной программе. А еще можно воспроизводить звуки через DirectSound (Google в помощь smile )
Programming element    Description
PlaySound                        Plays a sound specified by a file name, resource, or system event.
sndPlaySound                  Plays a waveform sound.
waveInAddBuffer             Sends an input buffer to the specified waveform-audio input device.
waveInClose                    Closes the specified waveform-audio input device.
waveInGetDevCaps         Retrieves the capabilities of a specified waveform-audio input device.
waveInGetErrorText         Retrieves a textual description of the error identified by the specified error number.
waveInGetID                    Gets the device identifier for the specified waveform-audio input device.
waveInGetNumDevs         Retrieves the number of waveform input devices present in the system.
waveInGetPosition           Retrieves the current input position of the specified waveform input device.
waveInGetProperty          Queries the value of a specific property in a property set for waveform audio input.
waveInMessage               Sends messages to the waveform output device drivers.
waveInOpen                     Opens a specified waveform input device for recording.
waveInPrepareHeader     Prepares a buffer for waveform input.
waveInProc                      Callback function used with the waveform-audio input device.
waveInReset                    Stops input on a specified waveform input device and resets the current position to 0.
waveInSetProperty          Sets the value of a specific property in a property set for waveform audio input.
waveInStart                     Starts input on the specified waveform input device.
waveInStop                      Stops waveform input.
waveInUnprepareHeader Cleans up the preparation performed by waveInPrepareHeader.
waveOutBreakLoop          Breaks a loop on a specified waveform output device.
waveOutClose                  Closes the specified waveform output device.
waveOutGetDevCaps       Queries a specified waveform device to determine its capabilities.
waveOutGetErrorText       Retrieves a textual description of the error identified by the specified error number.
waveOutGetID                  Gets the device identifier for a waveform output device.
waveOutGetNumDevs       Retrieves the number of waveform output devices present in the system.
waveOutGetPitch              Queries the current pitch setting of a waveform output device.
waveOutGetPlaybackRate Queries the current playback rate setting of a waveform output device.
waveOutGetPosition          Retrieves the current playback position of the specified waveform output device.
waveOutGetProperty         Queries the value of a specific property in a property set for waveform audio output.
waveOutGetVolume           Queries the current volume setting of a waveform output device.
waveOutMessage              Sends messages to the waveform output device drivers.
waveOutOpen                   Opens a specified waveform output device for playback.
waveOutPause                  Pauses playback on a specified waveform output device.
waveOutProc                     Callback function used with the waveform-audio output device.
waveOutPrepareHeader    Prepares a waveform data block for playback.
waveOutReset                   Stops playback on a specified waveform output device and resets the current position to 0.
waveOutRestart                 Restarts a paused waveform output device.
waveOutSetPitch               Sets the pitch of a waveform output device.
waveOutSetPlaybackRate  Sets the playback rate of a waveform output device.
waveOutSetProperty          Sets the value of a specific property in a property set for waveform audio output.
waveOutSetVolume            Sets the volume of a waveform output device.
waveOutUnprepareHeader Cleans up the preparation performed by waveOutPrepareHeader.
waveOutWrite                     Sends a data block to the specified waveform output device.
PM MAIL   Вверх
dumb
Дата 30.12.2009, 18:05 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


sceloglauxalbifacies
****


Профиль
Группа: Экс. модератор
Сообщений: 2929
Регистрация: 16.6.2006

Репутация: 2
Всего: 158



wrvu, раз уж ты так красиво выделил:
"апи-функции" - происходят от слова API(в частности, речь идет о WinAPI), а не от названия протокола IP
PM MAIL   Вверх
wrvu
Дата 30.12.2009, 21:08 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Новичок



Профиль
Группа: Участник
Сообщений: 22
Регистрация: 21.12.2009

Репутация: нет
Всего: нет



Всех благодарю, тема закрыта, отдельное спасибо опытному участнику Mikl_.


M
dumb
wrvu, раз уж ты так красиво выделил:
если вопрос темы решен, то нужно найти ссылку с названием "Пометить как решённый"(в верхнем правом углу этой страницы) и жмякнуть на нее.


Это сообщение отредактировал(а) wrvu - 30.12.2009, 21:11
PM MAIL   Вверх
  
Ответ в темуСоздание новой темы Создание опроса
Правила форума "Asm для Windows/DOS"
MAKCim
  • Проставьте несколько ключевых слов темы, чтобы её можно было легче найти.
  • Не забывайте пользоваться кнопкой КОД.
  • Телепатов на форуме нет! Задавайте чёткий, конкретный и полный вопрос. Указывайте полностью ошибки компилятора и компоновщика.
  • Новое сообщение должно иметь прямое отношение к разделу форума. Флуд, флейм, оффтопик запрещены.
  • Категорически запрещается обсуждение вареза, "кряков", взлома программ и т.д.

Если Вам понравилась атмосфера форума, заходите к нам чаще! С уважением, MAKCim.

 
 
0 Пользователей читают эту тему (0 Гостей и 0 Скрытых Пользователей)
0 Пользователей:
« Предыдущая тема | Asm для Windows/Dos | Следующая тема »


 




[ Время генерации скрипта: 0.0460 ]   [ Использовано запросов: 22 ]   [ GZIP включён ]


Реклама на сайте     Информационное спонсорство

 
По вопросам размещения рекламы пишите на vladimir(sobaka)vingrad.ru
Отказ от ответственности     Powered by Invision Power Board(R) 1.3 © 2003  IPS, Inc.